Deploying to Tinybird using the CLI

The Tinybird CLI lets you deploy data projects to Tinybird Cloud directly from the command line.

To deploy to Tinybird Cloud, create a deployment using the --cloud flag. This prepares all the resources in the cloud environment.

1

Check the deployment

Before creating the deployment, you can check the deployment with the --check flag. This runs a series of checks to ensure the deployment is ready to be created. This is similar to a dry run.

# Checks the deployment
tb --cloud deployment create --check
2

Create a preview deployment

Create a new deployment in Tinybird Cloud. Pass the --wait flag to wait for the deployment to finish:

# Prepares all resources in Tinybird Cloud
tb --cloud deployment create --wait
3

Promote to live

When the preview deployment is ready, promote it in Tinybird Cloud:

# Enables the deployment in Tinybird Cloud
tb --cloud deployment promote

Next steps

Updated