HEX
Server: Apache/2.4.65 (Ubuntu)
System: Linux ielts-store-v2 6.8.0-1036-gcp #38~22.04.1-Ubuntu SMP Thu Aug 14 01:19:18 UTC 2025 x86_64
User: root (0)
PHP: 7.2.34-54+ubuntu20.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: //snap/google-cloud-cli/396/help/man/man1/gcloud_beta_run_services_proxy.1
.TH "GCLOUD_BETA_RUN_SERVICES_PROXY" 1



.SH "NAME"
.HP
gcloud beta run services proxy \- proxy a service to localhost authenticating as the active account or with the specified token



.SH "SYNOPSIS"
.HP
\f5gcloud beta run services proxy\fR (\fISERVICE\fR\ :\ \fB\-\-namespace\fR=\fINAMESPACE\fR) [\fB\-\-port\fR=\fIPORT\fR] [\fB\-\-region\fR=\fIREGION\fR] [\fB\-\-tag\fR=\fITAG\fR] [\fB\-\-token\fR=\fITOKEN\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]



.SH "DESCRIPTION"

\fB(BETA)\fR Runs a server on localhost that proxies requests to the specified
Cloud Run Service with credentials attached.

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 allow \f5internal\fR
ingress, this command will not work from outside the service's VPC network.



.SH "EXAMPLES"

To proxy the service 'my\-service' at localhost port 8080:

.RS 2m
$ gcloud beta run services proxy my\-service \-\-port=8080
.RE

To proxy the existing traffic tag 'my\-tag' on the service 'my\-service:

.RS 2m
$ gcloud beta run services proxy my\-service \-\-tag=my\-tag
.RE



.SH "POSITIONAL ARGUMENTS"

.RS 2m
.TP 2m

Service resource \- Service to proxy locally. The arguments in this group can be
used to specify the attributes of this resource.

This must be specified.


.RS 2m
.TP 2m
\fISERVICE\fR

ID of the service or fully qualified identifier for the service.

To set the \f5service\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5SERVICE\fR on the command line.
.RE
.sp

This positional argument must be specified if any of the other arguments in this
group are specified.

.TP 2m
\fB\-\-namespace\fR=\fINAMESPACE\fR

Specific to Cloud Run for Anthos: Kubernetes namespace for the service.

To set the \f5namespace\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5SERVICE\fR on the command line with a fully specified
name;
.IP "\(bu" 2m
provide the argument \f5\-\-namespace\fR on the command line;
.IP "\(bu" 2m
set the property \f5run/namespace\fR;
.IP "\(bu" 2m
For Cloud Run on Kubernetes Engine, defaults to "default". Otherwise, defaults
to project ID.;
.IP "\(bu" 2m
provide the argument \f5project\fR on the command line;
.IP "\(bu" 2m
set the property \f5core/project\fR.
.RE
.sp


.RE
.RE
.sp

.SH "FLAGS"

.RS 2m
.TP 2m
\fB\-\-port\fR=\fIPORT\fR

Local port number to expose the proxied service. If not specified, it will be
set to 8080.

.TP 2m
\fB\-\-region\fR=\fIREGION\fR

Region in which the resource can be found. Alternatively, set the property
[run/region].

.TP 2m
\fB\-\-tag\fR=\fITAG\fR

Traffic tag of the service to expose via the proxy. If not specified, the
default service URL will be proxied which may serve different revisions based on
traffic\-splits. Custom tags can be used to proxy specific revisions. Please see
https://cloud.google.com/run/docs/rollouts\-rollbacks\-traffic\-migration#tags.

.TP 2m
\fB\-\-token\fR=\fITOKEN\fR

The specific identity token to add to all requests of the proxied service. If
not specified, the identity token of the currently active authenticated account
will be used (e.g. gcloud auth print\-identity\-token).


.RE
.sp

.SH "GCLOUD WIDE FLAGS"

These flags are available to all commands: \-\-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 \fB$ gcloud help\fR for details.



.SH "NOTES"

This command is currently in beta and might change without notice. These
variants are also available:

.RS 2m
$ gcloud run services proxy
.RE

.RS 2m
$ gcloud alpha run services proxy
.RE