Tinybird CLI
$ tb Official Med RiskTinybird CLI (tb) lets developers and agents build, validate, test, and deploy real-time ClickHouse-backed data sources and SQL pipes as code. Global --local, --cloud, --branch, and --output json flags make branch-isolated validation and CI deployments deterministic.
pip install tinybird-cli Local container testing (tb local), tb build validation, and tb test run require direct CLI execution against .datasource and .pipe files.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports --output json|csv, TB_TOKEN env auth, and automated tb test run, though global flags must appear before the subcommand.
- Global
--output jsonflag - Headless auth via
TB_TOKENandTB_HOST
Strong isolation via --local containerized stack, --branch workspaces, and deploy --check pre-flight validation.
- Branch isolation (
--branch) andtb --local tb deploy --checkdry-run validation
Simple pip install tinybird-cli across macOS, Linux, and Windows, though tb local requires Docker.
- PyPI distribution
tinybird-cli
Covers local dev, SQL ad-hoc queries, regression testing, branch management, and production deploys in one tool.
- Integrated
build,test,sql,branch, anddeploycommands
First-party Tinybird tooling actively updated alongside Tinybird Cloud and Tinybird Local.
- Official
tinybird-cliPyPI package
Detailed Tinybird CLI docs and Click --help per subcommand.
- Official documentation at tinybird.co/docs/cli
Security, Auth & Guardrails
Reads workspace auth tokens from .tinyb or the TB_TOKEN and TB_HOST environment variables (or --token / --host flags).
MIT-licensed PyPI CLI; Tinybird offers a free Developer tier with usage-based Cloud plans.
# Tinybird CLI (`tb`) Agent Rules - Remember global flags (`--cloud`, `--local`, `--branch`, `--output json`) must precede the subcommand. - Always validate with `tb --local build` or `tb --branch <name> deploy --check` before deploying to main production.
Agent-Ready Command Recipes
Safe Read-Only Queries
tb --output json info
Prints current Tinybird host, workspace, and token context as JSON.
tb --local build
Compiles and validates .datasource and .pipe definitions against Tinybird Local without touching Cloud production.
Controlled Writes & Previews
tb --cloud --branch feature-check deploy --check
Validates and checks deployment compatibility against an isolated remote Tinybird branch.
Strengths for Agents
- + First-class
--local,--branch, anddeploy --checkworkflow keeps production safe. - + Supports
--output jsonandTB_TOKENfor clean CI and agent pipelines.
Caveats & Pitfalls
- ! Global flags like
--output jsonand--branchmust be placed before the subcommand. - ! Running
tb localrequires a local Docker runtime.