Install
serverless install --url https://github.com/some/service
Options
- --url or -u: The services GitHub URL, which is required.
- --name or -n: Name for the service.
Examples
- Install a service from a GitHub URL
serverless install --url https://github.com/zy-linn/examples/tree/v3/legacy/huawei-nodejs
This example will download the .zip file of the huawei-nodejs service from GitHub, create a new directory named huawei-nodejs in the current working directory, and unzip the file in this directory.
- Install a service from a GitHub URL with a new service name
serverless install --url https://github.com/zy-linn/examples/tree/v3/legacy/huawei-nodejs--name my-huawei-service
The execution process is as follows:
- Download the .zip file of the huawei-nodejs service from GitHub.
- Create a new directory with the name my-huawei-service in the current working directory.
- Unzip the files in this directory.
- Rename the service to my-huawei-service if serverless.yml exists in the service root.
- Install a service from a directory in a GitHub URL
serverless install --url https://github.com/zy-linn/examples/tree/v3/legacy/huawei-nodejs
In this example, the huawei-nodejs service will be downloaded from GitHub.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot