App Deployment
v3.0.0+
The tcb app command is available since v3.0.0.
The tcb app command is used to deploy and manage CloudBase cloud apps. Each deployment overwrites the previous one and retains deployment history (viewable via tcb app versions).
Best for: Frontend Projects with Build Pipelines
Suitable for:
- Frontend projects with install + build steps (React / Vue / Next.js / Vite / Angular / Nuxt, etc.)
- Pure static projects
- Automated deployment in CI/CD pipelines
CLI automatically handles: Install dependencies → Build → Upload artifacts → Bind routes. Each deployment overwrites the previous one. View deployment history via tcb app versions list.
tcb app deploy
Deploy an app. CLI automatically executes: install dependencies → build → upload build artifacts → bind routes.
The following three invocation styles are completely equivalent:
tcb app deploy [serviceName] [options] # Full command
tcb deploy [serviceName] [options] # Top-level alias
tcb [options] # Bare command (routes to app deploy when no subcommand given)
Parameters
| Parameter | Description | Default |
|---|---|---|
[serviceName] | App name (optional; reads from package.json or prompts interactively if omitted) | — |
-e, --env-id <envId> | Target environment ID | — |
--framework <type> | Framework type: react / vue / vite / next / nuxt / angular / static |