gcloud cloud-shell get-mount-command MOUNT_DIR [--force-key-file-overwrite] [--ssh-key-file] [GCLOUD_WIDE_FLAG …]
gcloud cloud-shell get-mount-command 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 sshfs.
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.
gcloud cloud-shell get-mount-command REMOTE-DIRMOUNT_DIR--force-key-file-overwrite--ssh-key-file~/.ssh/google_compute_engine.
--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 cloud-shell get-mount-commandgcloud beta cloud-shell get-mount-command
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.