What is Google Cloud SDK | How to Install Cloud SDK in Windows?

Networking Funda
4 min readMar 26, 2021

--

Google Cloud Console already provides you with a powerful browser-based UI to manage the GCP product and services that drive your cloud apps.

With the Cloud SDK, you can manipulate and develop against your Cloud resources using the command line.

It often provides access to more options than the console, but it also makes it possible for you to script your actions as well as log and audit them.

You can also use Cloud SDK to access App Engine, Compute Engine, Cloud Storage Big Query, and every other GCP product from the command line.

And you have the choice to run these tools interactively or through automated scripts. Bq is another tool available in Cloud SDK for Big Query.

You can use Bq to create and get information about resources, list and update resources, load and query data, use external data sources, export data, and use the Big Query data transfer service.

The Cloud SDK RPM packages are supported for Red Hat Enterprise Linux 7 and CentOS 7.

Google Cloud SDK Installation in Windows:

1.Download Cloud SDK installer or Visit Google Cloud SDK

Or you can open a GCP Cloud Shell terminal and run the following Cloud Shell commands.

(New-Object Net.WebClient).DownloadFile(“https://dl.google.com/dl/cloudsdk/channels/rapid/GoogleCloudSDKInstaller.exe", “$env:Temp\GoogleCloudSDKInstaller.exe”) & $env:Temp\GoogleCloudSDKInstaller.exe

3.Cloud SDK requires Python; supported versions are Python 3 (preferred, 3.5 to 3.8) and Python 2 (2.7.9 or higher).

4.After installation has completed, the installer presents the following options:

Make sure that the following are selected:

  • Start Google Cloud SDK Shell
  • Run gcloud init

The installer starts a terminal window and runs the command you entered.

5.The default installation does not include the App Engine extensions required to deploy an application.

using gcloud commands these components can be installed using the Cloud SDK component manager.

If the Cloud SDK fails to run after installing or during the installation process please refer Help page.

Google Cloud SDK Installation in Linux:

1.Cloud SDK requires Python supported versions: Python 3 (preferred, 3.5 to 3.8) and Python 2 (2.7.9 or higher).

python –version

2. Download one of the following:

3.Alternatively, to download the Linux 64-bit archive file from your command-line, run:

curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google- cloud-sdk-333.0.0-linux-x86_64.tar.gz

For the 32-bit archive file, run:

curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google- cloud-sdk-333.0.0-linux-x86.tar.gz

4.Extract the contents of the file to any location on your file system. If you would like to replace an existing installation, remove the existing google-cloud-SDK directory and extract the archive to the same location.

Run the script (from the root of the folder you extracted in the last step) using this command:

./google-cloud-sdk/install.sh

This can also be done non-interactively (for example, using a script) as well by providing preferences as flags. These are described in:

./google-cloud-sdk/install.sh — help

Open a new terminal so that the changes take effect.

./google-cloud-sdk/bin/gcloud init

Google Cloud SDK Installation in macOS:

1. 1.Cloud SDK requires Python; supported versions are Python 3 (preferred, 3.5 to 3.8) and Python 2 (2.7.9 or higher). Modern versions of macOS include the appropriate version of Python required for the Cloud SDK.

However, if you’d like to install Python 3 with Cloud SDK, you can choose the macOS 64-bit with bundled Python installation offering.

To check your current Python version, run:

python -V

For more information on how to choose and configure your Python interpreter, refer to gcloud topic startup

2.Download One of the Following:

a. a.Extract the archive to any location on your file system (preferably your Home directory). On macOS, this can be achieved by opening the downloaded archive file in the preferred location.

If you would like to replace an existing installation, remove the existing google-cloud-sdk directory and extract the archive to the same location.

b. b.Optional. Use the install script to add Cloud SDK tools to your PATH. You'll also be able to opt-in to command-completion for your shell and usage statistics collection.

Run the script (from the root of the folder you extracted in the last step) using this command:

./google-cloud-sdk/install.sh

This can also be done non-interactively (for example, using a script) as well by providing preferences as flags. These are described in:

./google-cloud-sdk/install.sh — help

If you’d like to run the install script with screen reader mode on:

./google-cloud-sdk/install.sh — screen-reader=true

Open a new terminal so that the changes take effect.

C.Run gcloud init to initialize the SDK:

./google-cloud-sdk/bin/gcloud init

D.Optional. Install additional components using the component manager.

Also Read:

What is Information Technology (IT)? | By Google IT Support

What is Identity and Access Management (IAM)? | Google Cloud

Download More Google Cloud Free Courses

--

--

Networking Funda

Networking Funda is the hub of the google cloud platform where you will get Courses, Answers, and Quicklabs, A digital library for the absolute beginner