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

OptionDescription
--wait / --no-waitWaits for the deployment to finish. Enabled by default.
--auto / --no-autoAutomatically promotes the deployment when it's ready. Enabled by default.
--checkValidates the deployment before creating it. Disabled by default.
--allow-destructive-operations / --no-allow-destructive-operationsAllows destructive operations, like removing data sources. Disabled by default.
--template TEXTURL of a Tinybird project template to deploy.
-v, --verboseShows verbose output. Disabled by default.

See tb deployment for more information.

Auto-promotion failures

When --wait and --auto are enabled, tb deploy waits for the deployment to be promoted. If Tinybird can't promote the deployment automatically, for example because a Connection lacks the required permissions, tb deploy prints the error and exits with a non-zero code. The deployment stays ready but isn't live.

To promote the deployment, fix the issue and run the tb deployment promote command that tb deploy prints. For example:

Promote a deployment manually
tb --cloud deployment promote

Environment support

EnvironmentSupportedDescription
--local✓ Yes (default)Deploys to Tinybird Local.
--cloud✓ YesDeploys to Tinybird Cloud.
--branch=BRANCH_NAME✓ YesDeploys to a branch.
Updated