Search code examples
google-cloud-platformgcloudgoogle-cloud-run

Pass service name on gcloud beta run deploy


I am using the new way to deploy google cloud run (and loving!) but how can I pass the service name on the command?

I saw the docs but nothing related.

gcloud beta run deploy --source .                                 
Service name: my-cloud-run-name

How can I pass the service name by the command line? Something like:

gcloud beta run deploy --name my-cloud-run-name --source .                                 

Solution

  • Use a positional argument: gcloud beta run deploy SERVICE-NAME --source .