CLI Reference
Complete reference for the Telbase CLI. Every command, flag, and example.
Installation
The fastest way to use the CLI is with npx — no install needed:
npx telbase deployFor a global install:
npm install -g telbaseGlobal flags
These flags work with every command:
--json— output as JSON (machine-readable)--quiet,-q— minimal output--verbose,-v— debug logging to stderr (works alongside--json)--service <name>— target a specific service in a multi-service project
deploy
Deploy your app to Telbase. Auto-detects framework, provisions infrastructure, and deploys.
telbase deploy [flags]Source flags
--local— deploy from local files (default when no--repo)--repo <url>— deploy from a GitHub repository--branch <name>— branch to deploy (default: main)--root-dir <path>— subdirectory for monorepos
Provider flags
--provider <name>— force compute provider:vercelorgcp--database-provider <name>— force database provider:neon,turso, orcloud_sql--database— explicitly request database provisioning--no-db— skip database even if ORM is detected
Build flags
--clear-cache— clear build cache before deploying--force-env-sync— re-sync all env vars to the provider--skip-env-check— skip env var detection (useful for CI/CD)
Health check flags
--skip-health-check— skip post-deploy health verification--health-timeout <seconds>— health check timeout (default: 30)--health-path <path>— health check endpoint (default: /)
Behavior flags
--auto— skip interactive prompts (required for AI agents and CI/CD)--no-wait— return immediately without streaming logs
Schedule flags
--schedule <cron>— deploy as a scheduled job with a 5-field cron expression (e.g.,"0 * * * *")--schedule-timezone <tz>— IANA timezone for the schedule (default:UTC)
Examples
# Deploy from current directory
telbase deploy
# Deploy with JSON output (for Claude Code)
telbase deploy --local --json --auto
# Deploy from GitHub
telbase deploy --repo https://github.com/user/my-app
# Force a specific provider
telbase deploy --provider gcp --database-provider cloud_sql
# Monorepo: deploy a subdirectory
telbase deploy --root-dir apps/web
# Deploy without database
telbase deploy --no-db
# Deploy a scheduled job (runs every hour)
telbase deploy --schedule "0 * * * *" --schedule-timezone "America/New_York"run
Manually trigger a scheduled job execution.
telbase run # Trigger execution
telbase run --follow # Trigger and stream logsFlags
--follow,-f— stream execution logs in real-time until completion
env
Manage environment variables and secrets. All values are encrypted at rest.
env set
Set one or more environment variables.
# Set a variable
telbase env set API_KEY=sk-abc123
# Set a secret (masked in output)
telbase env set DATABASE_URL=postgres://... --secret
# Load from a file
telbase env set --file .env--file,-f <path>— load variables from a file--secret,-s— mark all variables as secrets
env get
Retrieve the value of a specific variable.
telbase env get DATABASE_URLenv list
List all environment variables. Secrets are masked by default.
# List all (secrets masked)
telbase env list
# Reveal all values
telbase env list --showenv unset
Remove an environment variable.
telbase env unset API_KEYenv pull
Download remote variables to a local file.
# Download to .env.local (default)
telbase env pull
# Download to a specific file
telbase env pull --output .env.development--output,-o <path>— output file (default: .env.local)--force,-f— overwrite existing file
env push
Upload local variables to the deployed app.
# Push .env.local (default)
telbase env push
# Push a specific file
telbase env push --file .env.productionenv diff
Compare local and remote environment variables.
telbase env diffdb
Manage your project's database. See the Databases guide for detailed usage.
db status
Show database health, provider, region, and plan.
telbase db statusdb info
Show connection details (host, port, user, database).
telbase db infodb connect
Open an interactive psql session (PostgreSQL only).
telbase db connectdb url
Print the database connection string.
telbase db urldb query
Execute a read-only SQL query (SELECT, WITH, EXPLAIN). Max 1,000 rows.
telbase db query "SELECT * FROM users LIMIT 10"
telbase db query --file report.sql--file,-f <path>— read SQL from a file
db exec
Execute any SQL statement (INSERT, UPDATE, DELETE, CREATE, ALTER).
telbase db exec "CREATE INDEX idx_users_email ON users(email)"
telbase db exec --file migrations/seed.sql--file,-f <path>— read SQL from a file--timeout <ms>— timeout in milliseconds (default: 30000, max: 300000)
db create
Create a database manually (normally auto-provisioned on deploy).
telbase db create
telbase db create --name my-databasedb delete
Permanently delete the database and all data.
telbase db delete
telbase db delete --forcedb delete permanently removes all data. This cannot be undone. Create a backup first with telbase db backup.db backup
Create a manual backup snapshot.
telbase db backup
telbase db backup --name "before-v2-migration"db backups
List all available backups (automatic daily + manual).
telbase db backupsdb restore
Restore the database from a backup.
telbase db restore <backup-id>
telbase db restore --latestdb migrate
Run pending database migrations.
telbase db migrate
telbase db migrate --dry-rundb migrate:status
Show which migrations have been applied and which are pending.
telbase db migrate:statusdb migrate:rollback
Guidance for rolling back migrations. Prisma does not support automatic rollback — this command provides manual rollback steps.
telbase db migrate:rollbackdb extensions
List available and enabled PostgreSQL extensions.
telbase db extensionsdb enable-extension
Enable a PostgreSQL extension.
telbase db enable-extension pgvector
telbase db enable-extension pgvector --preset openai-3-small --create-table--preset <name>— embedding model preset (openai-ada-002, openai-3-small, openai-3-large, claude, cohere-english, sentence-transformers)--dimensions <int>— vector dimensions (default: 1536)--index-type <type>— index type: hnsw, ivfflat, or none (default: hnsw)--metric <name>— distance metric: cosine, l2, or inner_product (default: cosine)--create-table— create a sample embeddings table--table-name <name>— name for the embeddings table (default: embeddings)--column-name <name>— name for the embedding column (default: embedding)
domain
Manage custom domains with automatic SSL certificates.
domain add
Add a custom domain. Returns DNS instructions.
telbase domain add app.yourcompany.comThe response includes dnsInstructions with the CNAME or A record to add at your DNS provider.
domain remove
Remove a custom domain.
telbase domain remove app.yourcompany.com
telbase domain remove app.yourcompany.com --forcedomain list
List all configured domains with verification and SSL status.
telbase domain listdomain verify
Check if DNS records are correctly configured.
telbase domain verify app.yourcompany.comdomain primary
Set the primary (canonical) domain for your app.
telbase domain primary app.yourcompany.comdomain ssl
Check SSL certificate status (issuer, expiration).
telbase domain ssl app.yourcompany.comorg
Manage organization-level domains. Organization domains let you serve all projects under your company domain using subdomain or path routing.
org domain add
Add an organization domain with a routing mode.
# Subdomain mode (default): {slug}.acme.com
telbase org domain add acme.com
# Path mode: acme.com/{slug}
telbase org domain add acme.com --mode path--mode <mode>— routing mode:subdomain(default) orpath
Returns DNS instructions (TXT record for verification).
org domain list
List all organization domains with status and routing mode.
telbase org domain list
telbase org domain lsorg domain verify
Verify DNS configuration for an organization domain.
telbase org domain verify acme.comorg domain remove
Remove an organization domain. Projects using it will lose their custom URLs.
telbase org domain remove acme.com
telbase org domain remove acme.com --force--force— skip confirmation prompt
dashboard.acme.com and api.acme.com. Best for clear project separation. Path mode creates URLs like acme.com/dashboard and acme.com/api. Best for SEO and environments where wildcard DNS is not available. See the Custom Domains guide for details.projects
List and manage your Telbase projects.
projects (list)
List all projects in your organization.
telbase projects
telbase projects --status running --limit 50--all,-a— include deleted projects--limit,-l <int>— max projects to list (default: 20)--status <name>— filter by status: creating, running, suspended, failed
projects switch
Switch the active project for subsequent commands.
telbase projects switch my-dashboardprojects info
Show detailed project information (framework, provider, last deploy).
telbase projects info
telbase projects info my-dashboardprojects delete
Delete a project. Stops the service, removes env vars and domains. This action is permanent.
telbase projects delete
telbase projects delete my-dashboard --forceauth
Manage authentication with Telbase.
login
Authenticate using device authorization flow. Opens a browser window and displays a confirmation code in your terminal.
telbase loginlogout
Clear all stored credentials from this machine.
telbase logoutauth status
Show current authentication status (user, organization, plan, token expiry).
telbase auth statusgithub
Connect GitHub for automatic deployments on every push.
github connect
Install the Telbase GitHub App and select repositories.
telbase github connectgithub disconnect
Remove the GitHub integration.
telbase github disconnectgithub status
Show connected GitHub accounts and linked repos.
telbase github statusgithub repos
List all GitHub repositories accessible to Telbase.
telbase github reposgithub link
Link a GitHub repository to the current project for auto-deploy.
telbase github link myorg/my-app
telbase github link myorg/my-app --branch develop --no-autodeploy
telbase github link myorg/my-app --root-dir apps/web--branch <name>— branch to deploy from (default: main)--root-dir <path>— root directory within repo (for monorepos)--no-autodeploy— disable auto-deploy on push
github unlink
Unlink the repository from the current project.
telbase github unlinkgithub autodeploy
Enable or disable automatic deployments on push.
telbase github autodeploy enable
telbase github autodeploy disablegithub branch
Change the branch that triggers auto-deploy.
telbase github branch developgithub info
Show GitHub link info for the current project.
telbase github infogithub deploys
List GitHub-triggered deployments.
telbase github deploys
telbase github deploys --limit 20--limit <int>— number of deploys to show (default: 10)
storage
Manage file storage (Cloudflare R2). See File Storage for details.
storage create
Create a new storage bucket.
telbase storage create
telbase storage create --name my-uploads--name <name>— custom bucket name
storage status
Show storage status and usage.
telbase storage statusstorage credentials
Show or rotate storage credentials.
telbase storage credentials
telbase storage credentials --show
telbase storage credentials --rotate--show— reveal unmasked credentials--rotate— rotate access credentials (invalidates old keys immediately)
storage delete
Permanently delete a storage bucket and all its contents.
telbase storage delete
telbase storage delete --force--force,-f— skip confirmation
storage cors
Manage CORS origins for browser-side uploads.
telbase storage cors list
telbase storage cors add https://myapp.com
telbase storage cors remove https://myapp.comteam
Manage team members and permissions.
team (list)
List all team members. Runs by default when no subcommand is given.
telbase teamteam invite
Invite a new team member by email.
telbase team invite [email protected]
telbase team invite [email protected] --role admin--role,-r <role>— admin, developer (default), or viewer
team remove
Remove a team member.
telbase team remove [email protected]
telbase team remove [email protected] --force--force,-f— skip confirmation
team role
Change a member's role.
telbase team role [email protected] adminaccess
Manage authentication and access control for deployed applications via Cloudflare Access.
access enable
Enable SSO authentication. Supported providers: google, microsoft, github, onetimepin.
telbase access enable google
telbase access enable onetimepin--session <duration>— session length (default: 24h)
access disable
Disable authentication for the project.
telbase access disable
telbase access disable --force--force,-f— skip confirmation
access domain
Manage allowed email domains.
telbase access domain list
telbase access domain add yourcompany.com
telbase access domain remove yourcompany.comaccess allow / deny
Manage individual email allowlist.
telbase access allow [email protected]
telbase access deny [email protected]access status
Show current authentication configuration.
telbase access statusaccess users
List active authenticated users.
telbase access usersconfig
View and modify project configuration.
config list
List all project configuration settings.
telbase config listconfig get
Get a specific configuration value.
telbase config get regionconfig set
Set a configuration value. Currently only region is configurable.
telbase config set region us-central1provider
Manage infrastructure providers. Most operations require platform administrator access.
provider status
Show provider status, health, and which is the default.
telbase provider statusprovider set
Set the default compute provider (admin only).
telbase provider set vercelprovider enable / disable
Enable or disable a provider (admin only). Cannot disable the default provider.
telbase provider enable gcp
telbase provider disable gcpservices
Control your running service without redeploying.
restart
Gracefully restart your service. Clears memory and restarts background processes.
telbase restartsuspend
Suspend your service to save resources. Configuration, environment variables, and databases are preserved.
telbase suspend
telbase suspend --force--force,-f— skip confirmation
resume
Resume a previously suspended service.
telbase resumescale
Scale horizontally (instances) or vertically (plan).
telbase scale --instances 3
telbase scale --plan builder--instances,-i <int>— number of instances (1-10)--plan,-p <name>— service plan (free, starter, builder, pro)--force,-f— skip confirmation for paid upgrades
Other Commands
init
Initialize a Telbase project in the current directory.
telbase init
telbase init --name my-app --provider vercel--name <name>— project name (default: directory name)--force— overwrite existing configuration--link <name>— link to an existing project by name or ID--provider <name>— infrastructure provider
status
Show current deployment status, service health, and resource usage.
telbase statuslogs
View application or build logs.
# Stream application logs
telbase logs
# Last 100 lines then exit
telbase logs --lines 100
# Build logs from last deploy
telbase logs --build
# Filter by level
telbase logs --level error
# Logs from a specific time range
telbase logs --since 6h
# Execution history for scheduled jobs
telbase logs --executions--lines,-n <int>— number of lines to show--since <duration>— show logs from: 1h, 6h, 24h, 7d, 4w--search,-s <term>— filter logs containing term--level,-l <name>— filter by level: info, warn, error--build— show build logs for last deploy--deploy <id>— show logs for a specific deploy--follow,-f— follow log output (default: true)--executions— show execution history for scheduled jobs instead of deploy logs
deploys
List recent deployments with status, trigger, and duration.
telbase deploys
telbase deploys --limit 20rollback
Redeploy a previous successful version.
# Rollback to the previous deploy
telbase rollback
# Rollback to a specific deploy
telbase rollback <deploy-id>
# List available rollback targets
telbase rollback --list
# Skip confirmation
telbase rollback --forcecancel
Cancel an in-progress deployment.
telbase cancel
telbase cancel <deploy-id> --forcedoctor
Diagnose common issues (CLI version, auth, project, service health, database, env vars).
telbase doctor
telbase doctor --fixmcp register
Register Telbase as an MCP server for Claude Code. See Using with Claude Code for details.
telbase mcp registermcp unregister
Remove Telbase from Claude Code's MCP configuration.
telbase mcp unregisteropen
Open your project in the browser.
telbase open # Open deployed app
telbase open --dashboard # Open Telbase dashboard
telbase open --logs # Open logs view
telbase open --github # Open linked GitHub repoupgrade
Upgrade the Telbase CLI to the latest version.
telbase upgrade
telbase upgrade --check--check— check for updates without installing
version
Print version and build information.
telbase versiontelbase --help for a list of all commands, or telbase <command> --help for details on any specific command. For support, email [email protected].