Upgrading from v0 to v1
The CloudBase CLI v1 version has been planned for a long time. In v1, we have completely changed how commands are used, simplified the syntax of some commands, and aligned with more standard specifications. This is also the direction of our future development efforts: to provide users with a simpler and more powerful CLI tool.
Meanwhile, the CloudBase CLI v1 version remains fully compatible with the command usage in CloudBase v0. You need not worry about potential issues arising from the upgrade, as this is not a breaking or incompatible update. Nevertheless, we still recommend adopting the new commands, which represent the future direction of development.
If you are upgrading from v1/v2 to v3, see Upgrading from v1/v2 to v3.
Upgrade Procedure
- Uninstall the old version
npm uninstall -g @cloudbase/cli
- Install the new version
npm i -g @cloudbase/cli
Upgrade Notes
tcb Command
In v1, we introduced the tcb command, which can create and deploy TCB projects with one click.
Command Format Changes
In the v1 version, all commands changed from the env:list format to the env list format, meaning all : symbols in commands were replaced with spaces. This helps us merge similar commands, provide a simpler and more understandable command help prompt, and also conforms to most command usage habits, reducing the learning curve.
Command Name Changes
- The original
functionscommand has been changed to the shorterfncommand, such astcb fn list. - The original cloud access
servicecommand has been changed to theaccesscommand.
Removal of Programmatic APIs
In the v1 version, we have completely removed the programmatic use of the CLI. If you need to operate TCB resources as an administrator, please use the @cloudbase/manager-node SDK.