Cloud Shell is an interactive shell environment for Google Cloud Platform that works directly in the browser. Cloud Shell has many commonly used CLI tools preinstalled, including gcloud. Almost all the tasks/examples on this site can be done in Cloud Shell, so you don't need to install any CLIs!
Select a Project
After you logged into the Google Cloud console, make sure you have selected a project in the top bar, by clicking Select a project.
Select a project
From the Select a project dialog, select a Google Cloud Project to use. This will help pre-configure Cloud Shell to use that project as the default project.
Activate Cloud Shell
On the top right, click the Activate Cloud Shell icon.
Activate Cloud Shell icon
If it's your first time using Cloud Shell, in the introduction dialog, click Start Cloud Shell to continue. Wait for the Cloud Shell machine to provision (it may take a few minutes).
Make sure your Cloud Shell is configured with the current project by checking the current Project ID configured for gcloud:
gcloud config get-value project
The Cloud Shell instance is ephemeral, but your home directory will persist and its contents will be carried to future Cloud Shell sessions. Any data/binaries stored outside of the home directory may be lost.
If you want to install any additional binaries, make sure to store them inside your home directory, maybe under a bin directory.