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/394/help/man/man1/gcloud_cloud-shell_get-mount-command.1
.TH "GCLOUD_CLOUD\-SHELL_GET\-MOUNT\-COMMAND" 1



.SH "NAME"
.HP
gcloud cloud\-shell get\-mount\-command \- prints a command to mount the Cloud Shell home directory via sshfs



.SH "SYNOPSIS"
.HP
\f5gcloud cloud\-shell get\-mount\-command\fR \fIMOUNT_DIR\fR [\fB\-\-force\-key\-file\-overwrite\fR] [\fB\-\-ssh\-key\-file\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]



.SH "DESCRIPTION"

\fBgcloud cloud\-shell get\-mount\-command\fR starts your Cloud Shell if it is
not already running, then prints out a command that allows you to mount the
Cloud Shell home directory onto your local file system using \fBsshfs\fR. You
must install and run sshfs yourself.

After mounting the Cloud Shell home directory, any changes you make under the
mount point on your local file system will be reflected in Cloud Shell and
vice\-versa.



.SH "EXAMPLES"

To print a command that mounts a remote directory onto your local file system,
run:

.RS 2m
$ gcloud cloud\-shell get\-mount\-command REMOTE\-DIR
.RE



.SH "POSITIONAL ARGUMENTS"

.RS 2m
.TP 2m
\fIMOUNT_DIR\fR

Local directory onto which the Cloud Shell home directory should be mounted.


.RE
.sp

.SH "FLAGS"

.RS 2m
.TP 2m
\fB\-\-force\-key\-file\-overwrite\fR

If enabled gcloud will regenerate and overwrite the files associated with a
broken SSH key without asking for confirmation in both interactive and
non\-interactive environment.

If disabled gcloud will not attempt to regenerate the files associated with a
broken SSH key and fail in both interactive and non\-interactive environment.

.TP 2m
\fB\-\-ssh\-key\-file\fR

The path to the SSH key file. By default, this is
\fB~/.ssh/google_compute_engine\fR.


.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"

These variants are also available:

.RS 2m
$ gcloud alpha cloud\-shell get\-mount\-command
.RE

.RS 2m
$ gcloud beta cloud\-shell get\-mount\-command
.RE