CLI Reference
Complete reference for the Telbase CLI. Every command, flag, and example.
Installation
npm install -g telbaseThe CLI needs Node.js. telbase gcloud also needs the gcloud CLI installed.
Global 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>— one service of an app with several, by its name (web,api…); see Full-Stack
Commands that act on one app (db, env, domain, logs, deploys, rollback, the service controls) take --project <app>, or use the current project set with telbase projects switch <name>.
skill
Install or update the Telbase skills where your coding agent reads them, in this directory. See AI Agent Setup.
telbase skill install # Claude Code: .claude/skills/
telbase skill install --for cursor # .cursor/skills/
telbase skill install --for windsurf # .windsurf/skills/
telbase skill install --for agents-md # .agents/skills/ and a block in AGENTS.md
telbase skill install --global # in your home directory, for every projectapps
Register and inspect apps. An app is registered before its first deploy; its name becomes <name>.telbase.ai.
apps create
telbase apps create my-app --provider vercel --framework nextjs
telbase apps create api --provider cloudrun --database postgres
telbase apps create my-app --service api --provider cloudrun --path /api--provider <name>—vercelorcloudrun--database <dialect>—postgresorsqlite: create the app's database--framework <preset>— the Vercel framework preset, such asnextjsorvite--root-directory <dir>— the app's folder inside the repository, for a Vercel monorepo--dir <dir>— the directory the app is deployed from (default: the current one)--service <name>with--path <path>— add a further service to the registered app, served under its URL at the path (default/<name>); see Full-Stack
The answer gives the app's Telbase URL and its deploy command. telbase apps delete my-app --service api --yes removes one service.
apps list / info
telbase apps list
telbase apps info my-app # URL, deploy command, database commands, sign-in, servicesapps protect
Require sign-in at the app's Telbase URL (every plan).
telbase apps protect my-app --allow [email protected] --allow-domain acme.com
telbase apps protect my-app --sign-in google --session-length 168h
telbase apps protect my-app --offapps delete
Deletes the app with its hosting, database, files, scheduled jobs and Telbase URL. It cannot be undone.
telbase apps delete my-app --yesvercel and gcloud
Run the Vercel CLI or gcloud against Telbase's accounts, with your Telbase session. Arguments pass through unchanged. You need no Vercel or Google account.
telbase vercel deploy --prod --yes
telbase gcloud run deploy <service> --source . --region us-central1 --quiettelbase apps info <app> prints the exact deploy command for each app.
session
Start or refresh the Telbase session (12 hours) that the launchers and telbase db use. They renew it themselves, so you rarely run it.
telbase sessionenv
Read and write an app's environment variables, which the provider holds. On Vercel a change rebuilds the live deployment.
env set
Set one or more environment variables. Listings mask a value whose key or value looks like a credential.
# Set a variable
telbase env set API_KEY=sk-abc123
# Load from a file
telbase env set --file .env--file,-f <path>— load variables from a file
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 run
Run one command with the app's DATABASE_URL set: migrations, schema tools, seeds. Nothing is written to disk.
telbase db run my-app -- npx prisma migrate deploy
telbase db run my-app -- python manage.py migratedb 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. Export your data first, for example with pg_dump "$(telbase db url)".db 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 and link a repository to a project. Telbase does not deploy on push yet: your agent deploys.
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 an App: --project <app>, else the current project. unlink, info, autodeploy, branch and deploys take --project too.
telbase github link myorg/my-app --project my-app
telbase github link myorg/my-app --branch develop --no-autodeploy
telbase github link myorg/my-app --root-dir apps/web--branch <name>— the link's branch (default: main)--root-dir <path>— root directory within repo (for monorepos)--no-autodeploy— turn off the link's auto-deploy setting
github unlink
Unlink the repository from the current project.
telbase github unlinkgithub autodeploy
Turn the link's auto-deploy setting on or off. Telbase does not deploy on push yet, so the setting has no effect until it does.
telbase github autodeploy enable
telbase github autodeploy disablegithub branch
Change the link's branch.
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 the app's storage bucket. The answer names the bucket and its four values.
telbase storage create my-app
telbase storage create my-app --name my-uploads--name <name>— custom bucket name
storage status
Show storage status and usage.
telbase storage status my-appstorage credentials
Show, get one value of, or rotate storage credentials.
telbase storage credentials my-app
telbase storage credentials my-app --get R2_SECRET_ACCESS_KEY
telbase storage credentials my-app --rotate --yes--show— reveal unmasked credentials--get <name>— print one value alone, to pipe it to the provider--rotate— rotate access credentials (invalidates old keys immediately)
storage delete
Permanently delete a storage bucket and all its contents.
telbase storage delete my-app --yes
telbase storage delete my-app --force--yes,-y— skip confirmation; a bucket that holds files is still refused--force,-f— skip confirmation and delete the files too
storage cors
Manage CORS origins for browser-side uploads.
telbase storage cors list my-app
telbase storage cors add my-app https://my-app.telbase.ai
telbase storage cors remove my-app https://my-app.telbase.aistorage run
Run one command with the four R2_* values set, for seeds and scripts that write to the bucket.
telbase storage run my-app -- npm run seedjobs
Scheduled jobs of an app: Cloud Run jobs that Telbase starts on a cron schedule. See Scheduled Jobs.
telbase jobs create my-app nightly-report --schedule "0 6 * * *" --timezone Europe/Paris
telbase jobs list
telbase jobs info nightly-report
telbase jobs run nightly-report
telbase jobs executions nightly-report
telbase jobs pause nightly-report
telbase jobs resume nightly-report
telbase jobs schedule nightly-report --schedule "0 7 * * *"
telbase jobs delete nightly-report --yesjobs create reserves the job and answers its deploy command, a telbase gcloud run jobs deploy from the directory that holds its code.
team
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. Each command acts on --project <app>, else the current project (telbase projects switch).
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 who signed in to the app recently, up to 30 days back, each with their latest sign-in.
telbase access usersconfig
View an App's configuration. It is read-only: the region is set when the App is registered.
config list
List all project configuration settings.
telbase config listconfig get
Get a specific configuration value.
telbase config get region --project my-appservices
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
reset-service
Delete a Cloud Run app's service and create it again from the build that served, with its variables and scaling.
telbase reset-service --project my-app --forceexec
Run a one-off command once in a Cloud Run app's own container, with its variables.
telbase exec --project my-app -- python manage.py createsuperuser --noinputwarm-start
Always On: keep a Cloud Run app's instance warm (a paid feature).
telbase warm-start enable --project my-app
telbase warm-start disable --project my-appOther Commands
status
Show current deployment status, service health, and resource usage.
telbase statuslogs
View application or build logs.
# Recent application logs
telbase logs --project my-app
# Stream live logs
telbase logs --project my-app --follow
# 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— stream live output instead of returning the recent lines--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
Serve an earlier live deploy's build again, without rebuilding. It counts as a deploy.
# 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: sign-in, the Telbase session, the skills in this folder, the Vercel CLI and gcloud, and the app.
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 --project my-app # Open another 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].