Local installation

  1. Home
  2. Local installation

Go back to GCP Tutorials

In this tutorial we will learn and understand about local installation.

Installation instructions

  • Firstly, 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

  • Secondly, launch the installer and follow the prompts. The installer is signed by Google LLC.
    • However, if you’d like to enable screen reader mode, select the Turn on screen reader mode option for a more streamlined screen reader experience.
  • Thirdly, 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’.
gcp cloud architect practice tests
  • Then, after the installation has completed, the installer presents several options:
    • Make sure to select the following:
      • Start Google Cloud SDK Shell
      • Run ‘gcloud init’
    • The installer starts a terminal window and runs the gcloud init command.
  • Lastly, the default installation does not include the App Engine extensions required to deploy an application using gcloud commands. These components can install using the Cloud SDK component manager.
Troubleshooting tips:
  • Firstly, if the Cloud SDK fails to run after installing version 274.0.0, please refer to this tracking bug for the latest workarounds.
  • Secondly, if your installation is unsuccessful due to the find command not being recognized, ensure your PATH environment variable is set to include the folder containing find. Usually, this is C:\WINDOWS\system32;.
  • Lastly, if you have just uninstalled Cloud SDK, you will need to reboot your system before installing Cloud SDK again.

Managing an installation

After you have installed Cloud SDK, you can use commands in the gcloud components command group to manage your installation. However, this includes:

  • Firstly, viewing installed components
  • Secondly, adding and removing components
  • Lastly, upgrading to a new version (or downgrading to a specific version) of Cloud SDK.
Local installation GCP cloud architect  online course

Reference: Google Documentation

Go back to GCP Tutorials

Menu