---
last_updated: "2026-11-25T11:55:21.000Z"
title: tb deploy
meta:
  description: Deploy your project to Tinybird Cloud.
---

# 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:

```shell {% title="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

{% table %}
  * 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.
{% /table %}

See [tb deployment](/forward/dev-reference/commands/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:

```shell {% title="Promote a deployment manually" %}
tb --cloud deployment promote
```

## Environment support

{% table %}
  * Environment
  * Supported
  * Description
  ---
  * `--local`
  * ✓ Yes (default)
  * Deploys to Tinybird Local.
  ---
  * `--cloud`
  * ✓ Yes
  * Deploys to Tinybird Cloud.
  ---
  * `--branch=BRANCH_NAME`
  * ✓ Yes
  * Deploys to a branch.
{% /table %}

{% callout type="info" %}
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](/forward/dev-reference/config-files).
{% /callout %}
