Google Cloud CLI (gcloud) · Cloud Run, Functions and builds
Deploy to Cloud Run from source
Build the current folder and deploy it as a Cloud Run service.
gcloud run deploy my-service --source . --region us-central1 --allow-unauthenticated
Caution: --allow-unauthenticated makes the service public. Remove it for private services.
Official Google Cloud CLI (gcloud) documentation
More cloud run, functions and builds commands
- Deploy a container image to Cloud Run
- Read Cloud Run logs
- Show a service's URL
- Deploy a function
- Build an image with Cloud Build
All cloud run, functions and builds commands · Google Cloud CLI (gcloud) cheatsheet