Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

Latest commit

 

History

History
50 lines (34 loc) · 1.9 KB

File metadata and controls

50 lines (34 loc) · 1.9 KB

Google - Install

Installs a service from a GitHub URL in the current working directory.

serverless install --url https://github.com/some/service

Options

  • --url or -u The services GitHub URL. Required.
  • --name or -n Name for the service.

Examples

Installing a service from a GitHub URL

serverless install --url https://github.com/serverless/boilerplate-googlecloudfunctions-nodejs

This example will download the .zip file of the boilerplate-googlecloudfunctions-nodejs service from GitHub, create a new directory with the name boilerplate-googlecloudfunctions-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/boilerplate-googlecloudfunctions-nodejs --name my-gcloud-service

This example will download the .zip file of the boilerplate-googlecloudfunctions-nodejs service from GitHub, create a new directory with the name my-gcloud-service in the current working directory and unzips the files in this directory and renames the service to my-gcloud-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/serverless/examples/tree/master/google-node-simple-http-endpoint

This example will download the google-node-simple-http-endpoint service from GitHub.