File: //snap/google-cloud-cli/current/help/man/man1/gcloud_beta_workstations_start-tcp-tunnel.1
.TH "GCLOUD_BETA_WORKSTATIONS_START\-TCP\-TUNNEL" 1
.SH "NAME"
.HP
gcloud beta workstations start\-tcp\-tunnel \- start a tunnel through which a local process can forward TCP traffic to the workstation
.SH "SYNOPSIS"
.HP
\f5gcloud beta workstations start\-tcp\-tunnel\fR (\fIWORKSTATION\fR\ :\ \fB\-\-cluster\fR=\fICLUSTER\fR\ \fB\-\-config\fR=\fICONFIG\fR\ \fB\-\-region\fR=\fIREGION\fR) \fIWORKSTATION_PORT\fR [\fB\-\-local\-host\-port\fR=\fILOCAL_HOST_PORT\fR;\ default="localhost:0"] [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
\fB(BETA)\fR Start a tunnel through which a local process can forward TCP
traffic to the workstation.
Note that arguments for the \f5NO_PROXY\fR environment variable must be FQDNs.
.SH "EXAMPLES"
To start a tunnel to port 22 on a workstation, run:
.RS 2m
$ gcloud beta workstations start\-tcp\-tunnel \-\-project=my\-project \e
\-\-region=us\-central1 \-\-cluster=my\-cluster \-\-config=my\-config \e
my\-workstation 22
.RE
.SH "POSITIONAL ARGUMENTS"
.RS 2m
.TP 2m
Workstation resource \- The group of arguments defining a workstation The
arguments in this group can be used to specify the attributes of this resource.
(NOTE) Some attributes are not given arguments in this group but can be set in
other ways.
To set the \f5project\fR attribute:
.RS 2m
.IP "\(em" 2m
provide the argument \f5workstation\fR on the command line with a fully
specified name;
.IP "\(em" 2m
provide the argument \f5\-\-project\fR on the command line;
.IP "\(em" 2m
set the property \f5core/project\fR.
.RE
.sp
This must be specified.
.RS 2m
.TP 2m
\fIWORKSTATION\fR
ID of the workstation or fully qualified identifier for the workstation.
To set the \f5workstation\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5workstation\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\-\-cluster\fR=\fICLUSTER\fR
The cluster for the workstation.
To set the \f5cluster\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5workstation\fR on the command line with a fully
specified name;
.IP "\(bu" 2m
provide the argument \f5\-\-cluster\fR on the command line;
.IP "\(bu" 2m
set the property \f5workstations/cluster\fR.
.RE
.sp
.TP 2m
\fB\-\-config\fR=\fICONFIG\fR
The config for the workstation.
To set the \f5config\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5workstation\fR on the command line with a fully
specified name;
.IP "\(bu" 2m
provide the argument \f5\-\-config\fR on the command line;
.IP "\(bu" 2m
set the property \f5workstations/config\fR.
.RE
.sp
.TP 2m
\fB\-\-region\fR=\fIREGION\fR
The region for the workstation.
To set the \f5region\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5workstation\fR on the command line with a fully
specified name;
.IP "\(bu" 2m
provide the argument \f5\-\-region\fR on the command line;
.IP "\(bu" 2m
set the property \f5workstations/region\fR.
.RE
.sp
.RE
.sp
.TP 2m
\fIWORKSTATION_PORT\fR
The port on the workstation to which traffic should be sent.
.RE
.sp
.SH "FLAGS"
.RS 2m
.TP 2m
\fB\-\-local\-host\-port\fR=\fILOCAL_HOST_PORT\fR; default="localhost:0"
\f5LOCAL_HOST:LOCAL_PORT\fR on which gcloud should bind and listen for
connections that should be tunneled.
\f5LOCAL_PORT\fR may be omitted, in which case it is treated as 0 and an
arbitrary unused local port is chosen. The colon also may be omitted in that
case.
If \f5LOCAL_PORT\fR is 0, an arbitrary unused local port is chosen.
.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 workstations start\-tcp\-tunnel
.RE
.RS 2m
$ gcloud alpha workstations start\-tcp\-tunnel
.RE