background

CloudBase CLI, an open source tool for command-line interface interaction, has been welcomed by a large number of developers since its release. We recently released the fresh-polished CloudBase CLI 1.0 Beta, which introduces a number of new features that will benefit developers. Here’s a look at the new CloudBase CLI version.

CloudBase CLI version 1.0 has been planned for a long time. In this version, we completely changed the way we use commands, simplifying the length of some commands, and moving to a more general way of using commands. This is the direction of our efforts to provide users with a simpler, easier to use, and more powerful CLI tool.

In addition, CloudBase CLI version 1.0 is fully compatible with commands in older versions, so you do not need to worry about possible problems caused by the upgrade. Still, we recommend that you use the new commands for a better experience.

Open cloud development: console.cloud.tencent.com/tcb?tdl_anc…

Optimized Updates

Let’s take a look at the CloudBase CLI 1.0 enhancements:

Command format changed

The biggest change in version 1.0 is the way commands are used. In this version, all commands are changed from env:list format to env list format, meaning that all: symbols in the command are changed to use Spaces. This helps us merge commands of the same type to provide a more straightforward help prompt. At the same time also in line with the majority of developers command use habits, reduce the cost of learning.

Here is a comparison of the 1.0 and 0.x commands:

(More commands, please click to zoom in)

Introduce the TCB command

In version 1.0, we introduced the TCB command to enable one-click creation and deployment of cloud development applications. We want to be able to deploy cloud development applications in a simpler and more elegant way, and will gradually increase the one-click deployment capability of the TCB command.

Upgrade init to the new command

The new command is an updated version of the original init command. It is used to create new cloud development applications and supports the creation of new cloud development applications from the Git repository address.

tcb new [appName] [templateUrl]
Copy the code

Among them:

  • appNameFor the application name
  • templateUrlIs the Git repository address or template name
Command name change

The names of the two main commands were changed in version 1.0:

  • The originalfunctionsThe order was changed to a brief onefnCommand, as originallytcb functions:deployChanged to:tcb fn deploy
  • Original cloud access commandserviceModified in order toaccessThe command
Remove programmatic API

In version 1.0, we completely removed the programmatic use of the CLI, so if you need to operate cloud development resources as an administrator, Please use the @ cloudbase/manager – node SDK (https://docs.cloudbase.net/api-reference/manager/node/introduction.html)

Experience immediately

The current 1.0 version is a Beta version, and it is expected to become an official version in mid-to-late September. Currently you can use the following commands to install and use the Beta.

npm i -g @cloudbase/cli@beta
Copy the code

Or use YARN:

yarn global add @cloudbase/cli@beta
Copy the code

For more documentation:

Link: docs.cloudbase.net/cli-v1/intr…

vision

CloudBase CLI has always adhered to the principle of simplicity and ease of use, providing resource management and deployment support for cloud development users. With the rapid growth of the cloud development product matrix, CloudBase CLI will also enter a new phase of development.

In the future, we will continue to implement the concept of “providing users with simpler, easier to use, and more powerful CLI tools”, focusing on the deployment and management capabilities of cloud development applications, and continuously optimize the CloudBase CLI user experience.

If you have any questions or suggestions, feel free to let us know in the comments section below or on GitHub:

Github.com/TencentClou…

Welcome to point a Star for the project to help us do better!