tencent cloud


List of Supported Commands

Last updated: 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.
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.
Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support