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
- Deploy to Cloud Run from source
- Deploy a container image to Cloud Run
- Read Cloud Run logs
- Show a service's URL
- Build an image with Cloud Build
All cloud run, functions and builds commands · Google Cloud CLI (gcloud) cheatsheet