Google Cloud CLI (gcloud) · Cloud Run, Functions and builds

Deploy a function

Deploy an HTTP-triggered Python function from the current folder.

gcloud functions deploy my-function --gen2 --runtime python312 --trigger-http --region us-central1 --entry-point main

Official Google Cloud CLI (gcloud) documentation

More cloud run, functions and builds commands

All cloud run, functions and builds commands · Google Cloud CLI (gcloud) cheatsheet

Was this page helpful?