QwikSkills Blog

How to install Google Cloud SDK on PC?

Share on facebook
Facebook
Share on twitter
Twitter
Share on linkedin
LinkedIn
Share on telegram
Telegram
Share on whatsapp
WhatsApp
Share on email
Email

Table of Contents

How to install Google Cloud Platform (GCP) SDK – gcloud CLI tool?

gcloud is the command-line interface (CLI) tool for interacting with GCP services.
Per Google’s product overview page for gcloud:

“The Cloud SDK is a set of tools for Cloud Platform. It contains gcloud, gsutil, and bq, which you can use to access Google Compute Engine, Google Cloud Storage, Google BigQuery, and other products and services from the command-line. You can run these tools interactively or in your automated scripts”.

Let’s start with downloading, installing and initializing this tool in an interactive manner, accept all default settings for all prompts. 

Step 1. Download the Cloud SDK installer.

Alternatively, open a PowerShell terminal and run the following PowerShell commands.

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

Launch the installer and follow the prompts. The installer is signed by Google LLC.
gcloud SDK install
Cloud SDK requires Python. Supported versions are 3.5 to 3.8, and 2.7.9 or higher.
The installer will install all necessary dependencies, including the needed Python version. While Cloud SDK currently uses Python 3 by default, you can use an existing Python installation if necessary by unchecking the option to ‘Install Bundled Python’.

Step 2. Start Google Cloud SDK Shell

After the installation has completed, start the command prompt and do remember to “Run as Administrator”. It will help in installing components if needed.

Step 3: Initialize the Cloud SDK

  1. Run the following at a command prompt:
gcloud init

Go with the installation as it tries to log into your Google Cloud account and set the project.
If the above installation steps go well, check its version:

gcloud version

gcloud SDK version
A simple way to validate if the CLI is working as expected is to list all the GCP regions:

gcloud compute regions list

gcloud compute regions list
Only the core components of the gcloud SDK are installed during initial installation. For any additional component to interact with GCP, you have to install the additional component. For instance, to install the component for interactive with Google Kubernetes Engine(GKE) you have to install kubectl:

gcloud components install kubectl

Many features of GCP are available in Beta only, for that you have to install the beta component:

gcloud components install beta

Stay up to date with:

gcloud components update

You can find the troubleshooting tips on https://cloud.google.com/sdk/docs/quickstart.
The instructions used in this post were tested on Windows 10.

Leave a Comment

Your email address will not be published. Required fields are marked *

By submitting this form: You agree to the processing of the submitted personal data in accordance with QwikSkills’ Privacy Policy, including the transfer of data to Europe.

Comment policy: We love comments and appreciate the time that readers spend to share ideas and give feedback. However, all comments are manually moderated and those deemed to be spam or solely promotional will be deleted.

We're proud to be 
backed 
mentored 
by the best.

Subscribe for any news update from QwikSkills

Effective practice tests curated by experts to help you gain true mastery over your Cloud Certifications.

Recognized By:

Join us

Company

Resource Center

© 2020-2021 - Pravika Intellicorp Pvt. Ltd. All Rights Reserved. The certification names are the trademarks of their respective owners.

Scroll to Top

Ready to solve some problems?

Just share some details and our HR heroes will get back to you in a jiffy!

Get in touch with us

Our team is here to help you achieve your business's strategic certification goals.

Sign in

Monthly

$ 14.99

Per Month

Starter

*cancel anytime

Annual

$ 79.99

Per Year

Save $100

*cancel anytime

Monthly

₹ 1,499

Per Month

Starter

*cancel anytime

Annual

₹ 5,999

Per Year

Save ₹11999

*cancel anytime

Monthly

€ 14.99

Per Month

Starter

*cancel anytime

Annual

€ 79.99

Per Year

Save €100

*cancel anytime

best deal of the year

FIRST

MONTH

30

%off

coupon code: FIRSTMONTH

Cloud certification Practice Tests

Ready to solve some problems?

Just share some details and our HR heroes will get back to you in a jiffy!

An authentic testing platform for your employees.

We offer affordable world-class online certification practice tests for your teams.

Contact Information

Find Us Here:

Leave us a message, and we'll get back.

Special Discount Coming Up!

QwikSkills

Ready to solve some problems?

Just share some details and our HR heroes will get back to you in a jiffy!