gcloud cloud-shell Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud cloud-shell - manage Google Cloud Shell
- SYNOPSIS
gcloud cloud-shellCOMMAND[GCLOUD_WIDE_FLAG …]
- DESCRIPTION
- Interact with and connect to your Cloud Shell environment.
More information on Cloud Shell can be found athttps://cloud.google.com/shell/docs/.
- GCLOUD WIDE FLAGS
- These flags are available to all commands:
--help.Run
$gcloud helpfor details. - COMMANDS
is one of the following:COMMANDget-mount-command- Prints a command to mount the Cloud Shell home directory via sshfs.
scp- Copies files between Cloud Shell and the local machine.
ssh- Allows you to establish an interactive SSH session with Cloud Shell.
- NOTES
- The previous
gcloud alpha shellcommand to launch an interactiveshell was renamed togcloud alphainteractive.These variants are also available:
gcloudalphacloud-shellgcloudbetacloud-shell
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-07 UTC.