Skip to main content

Upgrading from v0 to v1

CloudBase CLI v1 has been planned for a long time. In the v1 version, we have completely changed the command usage, simplified the length of some commands, and aligned with more standard specifications. This is also the direction of our future efforts: to provide users with simpler and more powerful CLI tools.

At the same time, CloudBase CLI v1 is fully compatible with the command usage in CloudBase v0. You don't need to worry about problems that may arise from the upgrade. This is not a destructive or incompatible upgrade. Nevertheless, we still recommend that you use the new commands, as this is the direction of future development.

Upgrade Operations

  1. Uninstall the old version
npm uninstall -g @cloudbase/cli
  1. Install the new version
npm i -g @cloudbase/cli

Upgrade Instructions

tcb Command

In v1, we introduced the tcb command, which can create and deploy CloudBase projects with one click.

Command Format Changes

In v1, all commands have changed from env:list format to env list format, that is, all : symbols in commands are replaced with spaces. This helps us merge commands of the same type and provide simpler and more understandable command help prompts. It also conforms to most command usage habits and reduces learning costs.

Command Name Changes

  1. The original functions command has been changed to the shorter fn command, such as tcb fn list
  2. The original cloud access service command has been changed to the access command

Removal of Programmatic API

In v1, we have completely removed the programmatic use of CLI. If you need to operate CloudBase resources as an administrator, please use the @cloudbase/manager-node SDK