mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
1.9 KiB
1.9 KiB
Read this on the main serverless docs site
Tencent-SCF - Install
Installs a service from a GitHub URL in the current working directory.
serverless install --url https://github.com/serverless-tencent/serverless-tencent-scf/tree/master/templates/tencent-nodejs
Options
--urlor-uThe services Git URL. Required.--nameor-nName for the service.
Examples
Installing a service from a GitHub URL
serverless install --url https://github.com/serverless-tencent/serverless-tencent-scf/tree/master/templates/tencent-nodejs
This example will download the .zip file of the tencent-nodejs service from GitHub, create a new directory with the name tencent-nodejs in the current working directory and unzips the files in this directory.
Installing a service from a GitHub URL with a new service name
serverless install --url https://github.com/serverless-tencent/serverless-tencent-scf/tree/master/templates/tencent-nodejs --name my-service
This example will download the .zip file of the tencent-nodejs service from GitHub, create a new directory with the name my-service in the current working directory and unzips the files in this directory and renames the service to my-service if serverless.yml exists in the service root.
Installing a service from a directory in a GitHub URL
serverless install --url https://github.com/tencentyun/scf-demo-repo/tree/master/Nodejs8.9-HexoDemo
This example will download the Nodejs8.9-HexoDemo service from GitHub.