tb deploy¶
The tb deploy command is an alias of tb deployment create --wait --auto. Use tb deploy to create and promote a deployment to the Tinybird platform.
For example:
Deploy a project
tb deploy
Running against Tinybird Local
» Changes to be deployed...
-----------------------------------------------------------------
| status | name | path |
-----------------------------------------------------------------
| modified | user_actions | datasources/user_actions.datasource |
-----------------------------------------------------------------
✓ Deployment submitted successfully
Deployment is ready
Setting candidate deployment as live
Removing old deployment
Deployment promotion successfully started
Deployment promoted successfully
Options¶
| Option | Description |
|---|---|
| --wait / --no-wait | Waits for the deployment to finish. Enabled by default. |
| --auto / --no-auto | Automatically promotes the deployment when it's ready. Enabled by default. |
| --check | Validates the deployment before creating it. Disabled by default. |
| --allow-destructive-operations / --no-allow-destructive-operations | Allows destructive operations, like removing data sources. Disabled by default. |
| --template TEXT | URL of a Tinybird project template to deploy. |
| -v, --verbose | Shows verbose output. Disabled by default. |
See tb deployment for more information.
Environment support¶
| Environment | Supported | Description |
|---|---|---|
--local | ✓ Yes (default) | Deploys to Tinybird Local. |
--cloud | ✓ Yes | Deploys to Tinybird Cloud. |
--branch=BRANCH_NAME | ✓ Yes | Deploys to a branch. |
The table applies when dev_mode is manual or when you pass an environment flag. Without an environment flag and with dev_mode set to local or branch in tinybird.config.json, tb deploy deploys to the main workspace in Tinybird Cloud. See Config files.