Upgrading from v1/v2 to v3
CloudBase CLI v3.0 expands features and integrates some commands based on v1/v2, while maintaining full compatibility with the existing command formats from v1/v2.
Upgrade Procedure
npm install -g @cloudbase/cli
View current version:
tcb --version
v3.0 Important Changes
New Modules
v3.0 added the following top-level command modules:
| New Command | Description |
|---|---|
tcb cors | Security Domain Management (Web SDK allowlist) |
tcb domains | Custom Domain Management (HTTP access service, requires SSL certificate) |
tcb routes | HTTP Service Routing Management |
tcb agent | AI Agent Management |
tcb app | Application Deployment Management |
tcb logs | Log Search |
tcb secrets | Secret Management |
tcb user | User Management |
tcb permission | Permission Management |
tcb role | Role Management |
tcb api | API Management |
tcb db | Database Management |
Environment ID Resolution Priority
v3.0 introduced the tcb env use global default environment configuration. The environment ID resolution priority is (low → high):
Global configuration (tcb env use) < Project cloudbaserc.json < Command line -e / --env-id
That is: the command line parameter -e always takes precedence, followed by the project configuration file, and finally the global default environment.
Removed Modules
The following modules have been completely removed in v3.0 and are no longer supported:
tcb fun — Function-based Hosting (removed)
The tcb fun list, tcb fun deploy, tcb fun run commands have been removed. Function-based Hosting capabilities have been integrated into tcb cloudrun:
| Old Command (Removed) | Replacement Command |
|---|---|
tcb fun list | tcb cloudrun list |
tcb fun deploy | tcb cloudrun deploy |
tcb fun run | tcb cloudrun run |
tcb run standalonegateway — Standalone Gateway (removed)
The tcb run standalonegateway create/destroy/list/package/turn commands have been removed with no replacement commands. For related capabilities, see the Cloud Run console.
Deprecated Commands (retained for compatibility, recommended to migrate)
The following commands are still available but have been marked as deprecated and may be removed in future versions:
SCF (fn)
| Old Command Format (Deprecated) | New Command Format (Recommended) |
|---|---|
tcb functions:deploy | tcb fn deploy |
tcb functions:list | tcb fn list |
tcb functions:delete | tcb fn delete |
tcb functions:detail | tcb fn detail |
tcb functions:invoke | tcb fn invoke |
tcb functions:log | tcb fn log |
tcb functions:copy | tcb fn cp |
tcb functions:download | tcb fn code download |
tcb functions:code:update | tcb fn code update |
tcb functions:config:update | tcb fn config update |
tcb functions:trigger:create | tcb fn trigger create |
tcb functions:trigger:delete | tcb fn trigger delete |
tcb functions:run | tcb fn run |
Cloud storage (storage)
| Old Command Format (Deprecated) | New Command Format (Recommended) |
|---|---|
tcb storage:upload | tcb storage upload |
tcb storage:download | tcb storage download |
tcb storage:delete | tcb storage rm |
tcb storage:list | tcb storage list |
tcb storage:url | tcb storage url |
tcb storage:detail | tcb storage detail |
tcb storage:get-acl | tcb permission |
tcb storage:set-acl | tcb permission |
Static Website Hosting (hosting)
| Old Command Format (Deprecated) | New Command Format (Recommended) |
|---|---|
tcb hosting:detail | tcb hosting detail |
tcb hosting:deploy | tcb hosting deploy |
tcb hosting:delete | tcb hosting delete |
tcb hosting:list | tcb hosting list |
HTTP Access Service (service)
The tcb service series of commands have been deprecated, and their functionalities have been replaced by the following commands:
| Old Capability | New Command |
|---|---|
| Security Domain Allowlist | tcb cors add/list/rm |
| Bind/Unbind custom domain | tcb domains add/ls/rm |
| Create/Manage Routing Rules | tcb routes add/list/edit/delete |
Data Model (db)
| Old Command (Deprecated) | New Command (Recommended) |
|---|---|
tcb db list | tcb db model list |
tcb db pull | tcb db model pull |
tcb db push | tcb db model push |
Cloud Run (run)
The following top-level commands have been marked as deprecated. Please use the tcb cloudrun series of commands:
| Old Command (Deprecated) | Description |
|---|---|
tcb run list | Deprecated, use tcb cloudrun list |
tcb run delete | Deprecated, use tcb cloudrun delete |