Using the CLI
CloudBase CLI manages data models through the tcb db model commands.
Commands
| Command | Purpose | Docs |
|---|---|---|
tcb db model list | List cloud data models | List data models |
tcb db model pull | Pull models from the cloud | Pull data models |
tcb db model push | Push local models to the cloud | Push data models |
tcb db model list -e your-env-id
tcb db model pull -e your-env-id
tcb db model push -e your-env-id
Without a local installation, run npx --package=@cloudbase/cli tcb db model list.
Top-level commands are deprecated
tcb db list, tcb db pull, and tcb db push remain backward compatible; use the tcb db model subcommands instead.
More information
- Parameters and examples: Database command overview
- Installation: CloudBase CLI