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시간 제공됩니다.

연중무휴 24시간 전화 지원