CLI Guide¶
The vtb CLI handles project setup, development servers, production runs, frontend builds, type generation, background workers, MCP bridges, and standalone packaging.
Running vtb¶
Common Workflows¶
Scaffold a Project¶
Development & Production Servers¶
Run with Python reload and frontend hot reload:
Run in production with multiple workers and TLS (use --topology embedded or --topology shm to override automatic mode selection):
vtb run app:app \
--host 0.0.0.0 \
--port 8443 \
--workers 4 \
--tls-cert certs/server.pem \
--tls-key certs/server.key
Frontend & Type Generation¶
Install JS dependencies, bundle assets, and generate TypeScript types from your Python routes:
@vertebra/client ships inside the Python wheel and links automatically without npm.
Background Workers¶
Run standalone queue and cron workers:
Or run workers with HTTP health probes (/healthz, /readyz, /startupz) and no HTTP app ingress:
MCP Server & Bridge¶
Serve your app's MCP tools over stdio, or bridge a local stdio client to a remote HTTPS/IAP MCP server:
vtb ai mcp serve --app app:app
vtb ai mcp bridge \
--url https://agent.example.com/mcp \
--audience https://agent.example.com \
--timeout 30
Standalone Binaries¶
Package your app, extensions, and static assets into a standalone directory or single-file executable (add --include-agent-skills to bundle .agents/skills):
See the full flag list in the CLI Reference.