Launching Google Cloud Shell
Google Cloud Shell is a free, open source tool that allows you to run the Google Cloud Platform (GCP) in your browser. GCP is a platform for developing, deploying, and managing applications on the web.
To launch GCloud Shell, open a browser and visit the Google Cloud Platform Console at https://console.cloud.google.
com. Click the big GCP logo in the top left corner, and select the Shell tab.
In the Shell tab, click the New button. In the New GCP Shell window, type gcloud shell and click the OK button.
The GCloud Shell window will open.
To use GCloud Shell, you’ll first need to install the Google Cloud Platform SDK. The Google Cloud Platform SDK is a toolkit that allows you to develop and deploy applications on GCP. To install the Google Cloud Platform SDK, type gcloud init and click the OK button.
The GCloud Command Line Interface (CLI) will open. In the GCloud CLI window, type gcloud shell and click the OK button.
To run GCP commands in GCloud Shell, you’ll first need to set a few environment variables. Type gcloud command-line environment-variables and hit the Enter key. The following environment variables will be set:
GCLOUD_CONFIG_DIR: The path to the GCP configuration directory.
GCLOUD_LOG_DIR: The path to the GCP log directory.
GCLOUD_SDK_ROOT: The path to the Google Cloud Platform SDK root directory.
To run a GCP command, type the command name, followed by the arguments. For example, to create a project, type gcloud project create my-project .
To exit GCloud Shell, type exit or press the Esc key.
Google Cloud Shell is a free, open source tool that allows you to run the Google Cloud Platform (GCP) in your browser.
GCloud Shell is easy to use and provides a simple way to explore the features of GCP.