First time:
python3 -m venv .venv
source .venv/bin/activate
pip install tinybird-cli
tb auth
More notes: Quickstart
Thereafter:
source .venv/bin/activate
Then change into the directory
cd packages/tinybird
You can also use the Docker image. This worked a lot better for me.
Run the following from this directory:
docker run -v .:/mnt/data -it tinybirdco/tinybird-cli-docker
Then within Docker:
cd mnt/data
Now you can run tb
commands. First you'll want to run tb auth
to sign in.
tb push datasources
# or:
tb push datasources/email.datasource
tb push pipes
# or:
tb push pipes/get_emails_by_period.pipe
# or to force changes:
tb push pipes --force --no-check
tb workspace ls # list workspaces
tb workspace use <workspace_name>