← Cloud Run290 / 640
hardgcloud

Update environment variables on a deployed Cloud Run service

command

gcloud run services update SERVICE --set-env-vars KEY=VALUE --region REGION

also accepted

gcloud run services updategcloud run services update SERVICE --set-env-vars

Command breakdown

Part of the Google Cloud CLI (gcloud) — Cloud Run category.

gcloudrunservicesupdateSERVICE--set-env-varsKEY=VALUE--regionREGION
FlagPurpose
--set-env-varsBoolean flag
--regionBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →