← Cloud Run286 / 640
hardgcloud

Route 100% of Cloud Run traffic to the latest deployed revision

command

gcloud run services update-traffic SERVICE --to-latest --region REGION

also accepted

gcloud run services update-traffic

Command breakdown

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

gcloudrunservicesupdate-trafficSERVICE--to-latest--regionREGION
FlagPurpose
--to-latestBoolean flag
--regionBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →