Skip to main content

Using CLI tool

You can use the CloudBase CLI tool to manage and configure data models.

Managing Data Models with CLI Tool​

The CloudBase CLI tool provides a series of commands to help you efficiently manage data models.

Commands Overview​

  • list: List all data models in the cloud.
  • pull: Pull data models from the cloud to local.
  • push: Push the local data model to the cloud.

List All Data Models in the Cloud​

tcb db list

# If CloudBase CLI is not installed locally, you can use the following command
npx --package=@cloudbase/cli@2.5 tcb db list

This command will display a list of all your data models in the cloud.

Pull Data Models from the Cloud to Local​

tcb db pull


# If CloudBase CLI is not installed locally, you can use the following command
npx --package=@cloudbase/cli@2.5 tcb db pull

Using this command, you can synchronize data models from the cloud to your local environment.

Push the Local Data Model to the Cloud​

tcb db push

# If CloudBase CLI is not installed locally, you can use the following command
npx --package=@cloudbase/cli@2.5 tcb db push

Using this command, you can create or update data models in the cloud with one click to reflect local changes.

More Information​

To get more information about the CloudBase CLI tool, please visit the CloudBase CLI Command-Line Tool.