Deploying Cloud Functions


Deployments work by uploading an archive containing your function's source code to a Google Cloud Storage bucket. You can deploy Cloud Functions from your local machine, from your GitHub or Bitbucket source repository (via Cloud Source Repositories), or from the Cloud Functions API directly.

When deploying, Cloud Functions looks for particular files, depending on your runtime. See Writing Cloud Functions for details.

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, Python, and Go runtimes and development tools.

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

Next steps