mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
1.1 KiB
1.1 KiB
Read this on the main serverless docs site
Tencent-SCF - Deploy Function
The sls deploy function command deploys an individual SCF function when there is any change in the function. This is a much faster way of deploying changes in code.
serverless deploy function -f functionName
Options
--functionor-fThe name of the function which should be deployed--stageor-sThe stage in your service that you want to deploy to.--regionor-rThe region in that stage that you want to deploy to.
Examples
Deployment without stage and region options
serverless deploy function --function helloWorld
Deployment with stage and region options
serverless deploy function --function helloWorld --stage dev --region ap-guangzhou