The tinybird
directory is a Data Project containing a set of plain-text files (Datafiles) that describes Tinybird resources.
In other words, Datafiles are the source code of your Data Project.
To install the project dependencies and activate the virtual environment, execute the following command:
make venv
To authenticate to Tinybird, use the following command, replacing your-token
with your actual admin token:
tb auth --token your-token
Format the project files:
make format
Pull Data Projects file from server:
tb pull --folder tinybird
Create Pipe :
cd tinybird/pipes
tb pipe generate my_pipe "SELECT * FROM my_datasource WHERE action == 'page_hit'"
Push Data Projects file to the server:
tb push my_pipe.pipe
Publish API:
tb pipe publish my_pipe.pipe