Stay organized with collections Save and categorize content based on your preferences.
The Google Cloud CLI provides an installer for each supported platform and can be deployed interactively or non-interactively.
Interactive installationThe installer lets you download, install, and set up the latest version of Google Cloud CLI in an interactive mode. When you run the installer, it downloads Google Cloud CLI components and installs them on the local system. It also performs additional setup tasks like adding gcloud CLI components to your PATH
and enabling command completion in your shell.
curl https://sdk.cloud.google.com | bash
google-cloud-sdk
subdirectory under.Y
when prompted.PATH
and enable command completion, answer Y
when prompted.exec -l $SHELL
gcloud init
:
gcloud init
Download the Google Cloud CLI 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.
If you're using a screen reader, check the Turn on screen reader mode checkbox. This option configures gcloud
to use status trackers instead of unicode spinners, display progress as a percentage, and flatten tables. For more information, see the Accessibility features guide.
Google Cloud CLI requires Python; supported versions are Python 3.9 to 3.14. By default, the Windows version of Google Cloud CLI comes bundled with Python 3. To use Google Cloud CLI your operating system must be able to run a supported version of Python.
The installer installs all necessary dependencies, including the needed Python version. While Google Cloud CLI installs and manages Python 3 by default, you can use an existing Python installation if necessary by unchecking the option to Install Bundled Python. See gcloud topic startup
to learn how to use an existing Python installation.
After installation is complete, the installer gives you the option to create Start Menu and Desktop shortcuts, start the Google Cloud CLI shell, and configure the gcloud CLI. Make sure that you leave the options to start the shell and configure your installation selected. The installer starts a terminal window and runs the gcloud init
command.
gcloud
commands. These components can be installed using the gcloud CLI component manager.find
command not being recognized, ensure your PATH
environment variable is set to include the folder containing find
. Usually, this is C:\WINDOWS\system32;
.You can also install the latest version from a downloaded .zip
file:
Download google-cloud-sdk.zip and extract its contents. (Right click on the downloaded file and select Extract All.)
Launch the google-cloud-sdk\install.bat
script and follow the installation prompts.
When the installation finishes, restart the command prompt (cmd.exe
).
Run gcloud init
:
C:\> gcloud init
You can automate Google Cloud CLI installation using the install script.
For Linux and MacOS:
Save the install script locally instead of piping it to bash.
curl https://sdk.cloud.google.com > install.sh
bash install.sh --disable-prompts
The install.sh
options are:
--disable-prompts
- disable prompts.--install-dir=DIRECTORY
- set the installation root directory to DIRECTORY
. The Google Cloud CLI is installed in DIRECTORY/google-cloud-sdk
. The default is $HOME.For Windows:
Important: These flags are for the Windows installer and are case sensitive./S
- install silently. No installer pages are displayed. Use flags to change install settings./D
- set the default installation directory. It must be the last parameter used in the command line and must not contain any quotes, even if the path contains spaces. Only absolute paths are supported, for example /D=C:\CloudSDK
/allusers
- install for all users/singleuser
- install for current user (default)/screenreader
- turn on screen reader mode (default is to turn it off)/reporting
- enable usage reporting (default is to turn off usage reporting)/noreporting
- disable usage reporting (default is to turn off usage reporting)/nostartmenu
- don't create start menu shortcut (default is to create shortcut)/nodesktop
- don't create desktop shortcut (default is to create shortcut)If you're new to Google Cloud, create an account to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.
Get started for freeExcept as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-07 UTC."],[],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.5