Function Version
The version of a cloud function contains the function's code and configuration. In practical development, releasing versions can fix the function code and configuration, reducing factors that impact the business system.
tip
By default, a function has a recent version/latest version ($LATEST) upon creation. Only the configuration and code of the $LATEST version can be modified. Publishing uses the $LATEST version's configuration and code as the basis to generate a new version.
Publish New Version
You can use the following command to publish a new function version:
tcb fn publish-version <name> [description] // name: function name, description: version description
View Function Version List
You can use the following command to view the function versions:
tcb fn list-function-versions <name>
You will see output similar to the following: