Deploying Cloud Functions

Building and Testing Locally

Cloud Functions execute in runtime environments based on open source languages and frameworks so you can build and test your functions locally using standard Node.js 6, Node.js 8 and Python runtimes and development tools.

If your functions are written in Node.js, you can also use the Cloud Functions Node.js Emulator to run and debug your functions locally. This makes testing and debugging easier.

Deployment

You can deploy Cloud Functions from your local machine or from your GitHub or Bitbucket source repository (via Cloud Source Repositories). For details, see:

When deploying, Cloud Functions looks for particular files, depending on your runtime. See the Node.js 6, Node.js 8, and Python runtime overview pages for details.

Deploy using the console

If you prefer to use the GCP Console UI, you can also create and deploy functions from the Cloud Functions page in the GCP Console.

Deploy using the gcloud command-line tool

For the complete reference for the gcloud deploy command-line tool, see gcloud functions deploy.

Next steps

Was this page helpful? Let us know how we did:

Send feedback about...

Cloud Functions Documentation