.agents/skills/tinybird/rules/build-deploy.md
Start new projects with tb init.
Use tinybird.config.json as the source of truth for tb build targeting.
Example:
{
"dev_mode": "branch",
"include": [
"tinybird"
]
}
dev_mode from tinybird.config.json.tb build against the configured development target.tb deploy only when deployment to cloud production is explicitly requested.tb build Targetingdev_mode: "local" -> tb build runs against Tinybird Local.dev_mode: "branch" -> tb build runs against a Tinybird Cloud branch.tb deploy Targetingtb --cloud deploy deploys to Tinybird Cloud production. It creates a staging deployment, migrates data, and promotes to live.tb deploy is equivalent to tb --cloud deploy.tb build as a production deployment.tb --cloud deploy --check to validate a deployment without applying it. Recommended for CI.tb --cloud deployment create --wait followed by tb --cloud deployment promote.Commands like tb sql and tb logs run against local by default.
Use explicit overrides to target other environments:
--cloud for cloud--branch=<branch-name> for a specific branchExamples:
tb sql "SELECT 1"
tb sql --cloud "SELECT 1"
tb sql --branch=feature_metrics "SELECT 1"
tb logs
tb logs --cloud
tb logs --branch=feature_metrics