How to install the Google Cloud SDK on windows machine.
Google Cloud CLI includes the gcloud
, gsutil
and bq
command-line tools to interact with GCP.
‘gcloud’ is the primary CLI tool to work with Google Cloud resources.
‘gsutil’ is the primary CLI tool to work with Google Cloud Storage resources.
‘bq’ is the primary CLI tool to work with Google Cloud BigQuery resources.
Installation instructions
open a PowerShell terminal and run as an administrator 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
Once launched, follow the on-screen wizard to finish the installation.
Click on both checks and hit>> Enter
Click on I Agree and proceed
Select the install type of your choice and click on next .
Defaults it will take ‘C:\Program Files (x86)\Google\Cloud SD’ K’To install in a different folder, click Browse and select another folder. Click next to continue
Select all components to install . Click on install to continue
At least 5 to 10 minutes to complete the installation
Google Cloud CLI has been completed!
Check here installation finish looks like this.
Once you click on finish one more cmd screen will pop up automatically like this below screenshot
Important Notes:- Set environment variable where cloud SDK install Browse and go ti the bin folder and select it as per the below screenshot follow once set you can use gcloud CLI cm from any directory.
Installation confirmation to check with gcloud — version cmd
Initialization google cloud CLI follow the instructions steps
Microsoft Windows [Version 10.0.19044.2130]
© Microsoft Corporation. All rights reserved.C:\Users\Bisuchinu>gcloud init
Welcome! This command will take you through the configuration of gcloud.Settings from your current configuration [gcp-project] are:
accessibility:
screen_reader: ‘True’
core:
Pick configuration to use:
[1] Re-initialize this configuration [gcp-project] with new settings
[2] Create a new configuration
[3] Switch to and re-initialize existing configuration: [default]
Please enter your numeric choice: 1Your current configuration has been set to: [gcp-project]
You can skip diagnostics next time by using the following flag:
gcloud init — skip-diagnosticsNetwork diagnostic detects and fixes local network connection issues.
Checking network connection…done.
Reachability Check passed.
Network diagnostic passed (1/1 checks passed).Choose the account you would like to use to perform operations for this configuration:
[1] mr.bgiri26@gmail.com
[2] Log in with a new account
Please enter your numeric choice: 1You are logged in as: [mr.bgiri26@gmail.com].
Pick cloud project to use:
[1] bright-gearbox-253707
[2] confident-key-296005
[3] gcpwithbiswanath
[4] my-kubernetes-project-351105
[5] trim-dahlia-289507
[6] wise-ally-348408
[7] Enter a project ID
[8] Create a new project
Please enter numeric choice or text value (must exactly match list item): 6
Your current project has been set to: [wise-ally-348408].
Not setting default zone/region (this feature makes it easier to use
[gcloud compute] by setting an appropriate default value for the
— zone and — region flag).
See https://cloud.google.com/compute/docs/gcloud-compute section on how to set
default compute region and zone manually. If you would like [gcloud init] to be
able to do this for you the next time you run it, make sure the
Compute Engine API is enabled for your project on the
https://console.developers.google.com/apis page.
“Your Google Cloud SDK is configured and ready to use!”
Default SDK install doesn’t include some extra components like App Engine extensions, which you can separately install using the Cloud SDK component manager. The components include by default with SDK are: