Google Cloud Shell provides: command-line access to computing resources hosted on Google Cloud Platform and is available in the Google Cloud Platform Console.
It makes it easy for you to manage your projects and resources without having to install the Google Cloud SDK and other tools on your laptop.
With Cloud Shell, the Cloud SDK gcloud
commands and other utilities you need are always available when you need them.
- Confirm that you are authenticated
gcloud auth list
gcloud config list project
if not, you can set it:
gcloud config set project <PROJECT_ID>
or
export PROJECT_ID=$(gcloud info --format='value(config.project)')
If you already have selected your project before opening CloudShell.
gcloud config set compute/zone us-west1-b
After Cloud Shell launches, you can use the command line to invoke the Cloud SDK gcloud command or other tools available on the virtual machine instance.
You can also use your
$HOME
directory in persistent disk storage to store files across projects and between Cloud Shell sessions. Your$HOME
directory is private to you and cannot be accessed by other users.
gcloud -h
gcloud config --help
orgcloud help config
gcloud config list
or more detailled likegcloud config list --all
Cloud Shell Documentation (https://cloud.google.com/shell/docs/) and tutorial video.
gcloud
Documentation (https://cloud.google.com/sdk/gcloud/) and tutorial video.