easygcloud

Map a custom domain to a Cloud Run service

command

gcloud beta run domain-mappings create --service=SERVICE_NAME --domain=DOMAIN_NAME --region=REGION

also accepted

gcloud beta run domain-mappings creategcloud beta run domain-mappings create --service

Command breakdown

Part of the Google Cloud CLI (gcloud) — Alpha & Beta category.

gcloudbetarundomain-mappingscreate--service=SERVICE_NAME--domain=DOMAIN_NAME--region=REGION
FlagPurpose
--serviceSet to: SERVICE_NAME
--domainSet to: DOMAIN_NAME
--regionSet to: REGION

Test your recall — not just your reading.

Practice with interactive quiz →