gcloud beta cloud-shell COMMAND [GCLOUD_WIDE_FLAG …]
(BETA) Interact with and connect to your Cloud Shell environment.
More information on Cloud Shell can be found at https://cloud.google.com/shell/docs/.
--help.
Run
This command is currently in beta and might change without notice. These
variants are also available:
$ gcloud help for details.
is one of the following:
COMMAND
get-mount-command(BETA) Prints a command to mount the Cloud Shell home directory via
sshfs.
scp(BETA) Copies files between Cloud Shell and the local machine.
ssh(BETA) Allows you to establish an interactive SSH session with
Cloud Shell.
gcloud alpha shell command to launch an interactive
shell was renamed to gcloud alpha
interactive.
gcloud cloud-shellgcloud alpha cloud-shell
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.