tencent cloud

フィードバック

List of Supported Commands

最終更新日:2023-05-04 18:11:11
Serverless Application Center (SLS) is deployed based on Serverless Cloud Framework and supports the following CLI commands:
scf registry: Lists available components.
scf registry publish: Publishes components to the SLS component registry.
--dev: Publishes components of the @dev version for development or testing.
scf init xxx: Downloads, from the component registry, a template specified by entering the template name after init, for example, "$ scf init fullstack".
scf init xxx --name my-app: Customizes the project directory name.
--debug: Lists log information during template download.
scf deploy: Deploys a component instance in the cloud.
--debug: Lists log information such as the deployment operations and the status output by console.log() during component deployment.
---inputs publish=true: Publishes a new version during function deployment.
---inputs traffic=0.1: Switches 10% of the traffic to the $latest function version during deployment and switches the rest of the traffic to the last published function version.
Description
The legacy command format scf deploy --inputs.key=value has been changed to scf deploy --inputs key=value since Serverless CLI v3.2.3. Legacy commands cannot be used in new versions of Serverless CLI. If you have upgraded Serverless CLI, please use the new commands.
scf is short for serverless-cloud-framework.
scf remove: Removes a component instance from the cloud.
--debug: Lists log information such as the removal operations and the status output by console.log() during component removal.
scf info: Gets and displays the information about a component instance.
--debug: Lists more state values.
scf dev: Enables the development mode ("DEV Mode") and automatically deploys changed information when component status changes are detected. In development mode, information such as execution logs, invocation information, and errors can be displayed on the CLI in real time. The development mode also supports in-cloud debugging for Node.js applications.
scf login: Supports logging in to the Tencent Cloud account and authorizing operations on associated resources by using the login command.
お問い合わせ

カスタマーサービスをご提供できるため、ぜひお気軽にお問い合わせくださいませ。

テクニカルサポート

さらにサポートが必要な場合は、サポートチケットを送信して弊社サポートチームにお問い合わせください。24時間365日のサポートをご提供します。

電話サポート(24 時間365日対応)