Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Tinybird CLI

$ tb Official Med Risk
Tinybird · Workspace & SaaS · MIT · macos / linux / windows

Tinybird 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.

FCRS-1.0 Score
83 /100
Good
Medium Confidence
Zero-Friction Install
pip install tinybird-cli
CLI vs MCP Decision CLI Preferred vs MCP

Local container testing (tb local), tb build validation, and tb test run require direct CLI execution against .datasource and .pipe files.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
✓ Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 21 / 25

Supports --output json|csv, TB_TOKEN env auth, and automated tb test run, though global flags must appear before the subcommand.

  • Global --output json flag
  • Headless auth via TB_TOKEN and TB_HOST
Trust & Safety 21 / 25

Strong isolation via --local containerized stack, --branch workspaces, and deploy --check pre-flight validation.

  • Branch isolation (--branch) and tb --local
  • tb deploy --check dry-run validation
Setup & Portability 12 / 15

Simple pip install tinybird-cli across macOS, Linux, and Windows, though tb local requires Docker.

  • PyPI distribution tinybird-cli
Utility & Efficiency 14 / 15

Covers local dev, SQL ad-hoc queries, regression testing, branch management, and production deploys in one tool.

  • Integrated build, test, sql, branch, and deploy commands
Maintenance & Lineage 8 / 10

First-party Tinybird tooling actively updated alongside Tinybird Cloud and Tinybird Local.

  • Official tinybird-cli PyPI package
Docs & Verifiability 7 / 10

Detailed Tinybird CLI docs and Click --help per subcommand.

  • Official documentation at tinybird.co/docs/cli

Security, Auth & Guardrails

Auth Modes
Env API Key Config File
Credential Storage

Reads workspace auth tokens from .tinyb or the TB_TOKEN and TB_HOST environment variables (or --token / --host flags).

Side Effects
Read-Only Local Write Remote Write Destructive
Cost & Quotas

MIT-licensed PyPI CLI; Tinybird offers a free Developer tier with usage-based Cloud plans.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Inspect active workspace and context in JSON
tb --output json info

Prints current Tinybird host, workspace, and token context as JSON.

Validate project datafiles locally
tb --local build

Compiles and validates .datasource and .pipe definitions against Tinybird Local without touching Cloud production.

Controlled Writes & Previews

Deploy changes to a remote branch
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, and deploy --check workflow keeps production safe.
  • + Supports --output json and TB_TOKEN for clean CI and agent pipelines.

Caveats & Pitfalls

  • ! Global flags like --output json and --branch must be placed before the subcommand.
  • ! Running tb local requires a local Docker runtime.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI