Hosting » Google Cloud » How do I open Google Cloud Shell?

How do I open Google Cloud Shell?

Last updated on September 25, 2022 @ 8:56 pm

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.

PRO TIP: Google Cloud Shell is a free online command line interface that you can use to manage your Google Cloud Platform resources. However, it is important to note that you should never give your Google Cloud Shell password to anyone, as this could allow them to gain access to your account and resources.

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.

Conclusion

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.

Morgan Bash

Morgan Bash

Technology enthusiast and Co-Founder of Women Coders SF.