tinybird.config.json and environment variables from .env.local.
Quick Reference
Init
Initialize a new Tinybird TypeScript project
Dev
Watch for changes and auto-sync with Tinybird
Build
Build and push to a Tinybird branch
Deploy
Deploy resources to production
Migrate
Migrate datafiles to TypeScript
Pull
Download cloud resources as datafiles
Login
Authenticate with Tinybird
Branch
Manage Tinybird branches
Info
Display project and workspace information
Development Workflow
Typical development workflow using CLI commands:- Initialize your project with
tinybird init - Develop with auto-sync using
tinybird dev - Build to test changes on a branch with
tinybird build - Deploy to production with
tinybird deploy
Branch vs Deploy
The SDK enforces safe deployment practices:devandbuild: Only work on feature branches (not main)deploy: Only deploys to production from main branch
Development Modes
The CLI supports two development modes:Branch Mode (Default)
Uses Tinybird Cloud with git-based branching:tinybird.config.json
- Creates Tinybird branches automatically from git branches
- Each branch gets isolated workspace
- Perfect for team collaboration
Local Mode
Runs against a local Tinybird container:tinybird.config.json
- Works offline without cloud authentication
- Faster iteration during development
- Requires local Docker container
Command Categories
Project Setup
- init: Bootstrap a new project
- login: Authenticate with Tinybird
Development
- dev: Watch mode with auto-sync
- build: Build to feature branch
- deploy: Deploy to production
Resource Management
- pull: Download cloud resources
- migrate: Convert datafiles to TypeScript
- branch: Manage branches
- info: View project status
Environment Variables
All commands read from:.env.local(recommended for local development).env(fallback)process.env(system environment)
.env.local
Global Flags
Most commands support:--help: Show command help--cwd <path>: Run from specific directory
Exit Codes
CLI commands follow standard exit codes:0: Success1: Error (build failed, authentication failed, etc.)130: User cancelled (SIGINT)
Configuration
All commands respect settings intinybird.config.json: