gcloud run services proxy (SERVICE : --namespace=NAMESPACE) [--port=PORT] [--region=REGION] [--tag=TAG] [--token=TOKEN] [GCLOUD_WIDE_FLAG …]
You can use this to test services protected with IAM authentication.
The Cloud Run service must be reachable from the machine running this command. For example, if the Cloud Run Service is configured to only allowinternal ingress, this command will not work from outside the
service's VPC network.
gcloud run services proxy my-service --port=8080To proxy the existing traffic tag 'my-tag' on the service 'my-service:
gcloud run services proxy my-service --tag=my-tagSERVICE
To set the service attribute:
SERVICE on the command line.
--namespace=NAMESPACEnamespace attribute:
SERVICE on the command line with a fully
specified name;
--namespace on the command line;
run/namespace;
project on the command line;
core/project.
--port=PORT--region=REGION--tag=TAG--token=TOKEN--access-token-file,
--account, --billing-project,
--configuration,
--flags-file,
--flatten, --format, --help, --impersonate-service-account,
--log-http,
--project, --quiet, --trace-token, --user-output-enabled,
--verbosity.
Run $ gcloud help for details.
gcloud alpha run services proxygcloud beta run services proxy
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-05-27 UTC.