version publish
version publish is used to publish a version.
You can run version publish -h or version publish --help to view the documentation.
This command also supports some global parameters, such as -a/--access and --debug. For details, see Global Parameters of Serverless Devs.
Parameter Parsing
Parameter Name |
Abbreviation |
Required in YAML |
Required in CLI |
Description |
---|---|---|---|---|
region |
- |
No |
Yes |
Region |
function-name |
- |
No |
Yes |
Function name |
version-name |
- |
No |
Yes |
Version |
description |
- |
No |
Yes |
Description |
Examples
- If you have a resource description file (YAML), run s version publish to publish a version.
- If you use CLI (without a YAML resource description file), specify a region and service name. For example, s cli fgs version publish --region cn-north-4 --function-name fg-test --version-name 1 --description "test publish version".
When using CLI, if the key is not default, add the access parameter. For example, s cli fgs version publish --region cn-north-4 --function-name fg-test --version-name 1 --description "test publish version" --access xxxx.
fg-test: version: 1 description: test publish version lastModifiedTime: 2021-11-08T06:07:00Z
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot