Install gcloud SDK on Windows

  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 
  1. Launch the installer and follow the prompts. The installer is signed by Google LLC.

    If you'd like to enable screen reader mode, select the Turn on screen reader mode option for a more streamlined screen reader experience. To read more about the Cloud SDK screen reader experience, refer to the Accessibility features guide.

    Google Cloud SDK Setup welcome dialog for Windows with checkbox for enabling screen reader mode

  2. Cloud SDK requires Python; supported versions are Python 3 (preferred, 3.5 to 3.8) and Python 2 (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.

  3. After installation has completed, the installer presents several options:

    Windows installer prompts

    Make sure that the following are selected:

    • Start Google Cloud SDK Shell
    • Run gcloud init

    The installer starts a terminal window and runs the gcloud init command.

  4. 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.

Troubleshooting tips:

Optional: Install the latest Google Cloud Client Libraries

You can download Cloud Client Libraries for supported languages.

Other installation options

Depending on your development needs, instead of the recommended installation, you can use an alternative method of installing Cloud SDK:

What's in the box?

All of the installation methods above install the default Cloud SDK components, which include gcloud, gsutil and bq command-line tools.

You can install additional components using the gcloud components install command, or by installing the appropriate deb or RPM packages.

Managing an installation

After you have installed Cloud SDK, you can use commands in the gcloud components command group to manage your installation. This includes viewing installed components, adding and removing components, and upgrading to a new version (or downgrading to a specific version) of Cloud SDK.

Note: Updating and removing components using gcloud components is disabled if you installed Cloud SDK using apt-get or yum. To manage the Cloud SDK in this case, continue using the package management tool used during installation.

Older versions of Cloud SDK

If you'd need an older version of Cloud SDK to revert to, you can find all previous releases available to download from this archive.


Links: Install gcloud SDK on Ubuntu | [[GCP/Google Cloud Setup Notes]] Source: Installing Google Cloud SDK  (Windows) |  Cloud SDK Documentation