Install Google Cloud CLI
The gcloud CLI for Google Cloud Platform
The Google Cloud CLI (gcloud) is the primary command-line tool for Google Cloud — manage Compute Engine, GKE, storage, IAM and more.
Install on macOS
brew install --cask google-cloud-sdkInstall on Windows
(New-Object Net.WebClient).DownloadFile("https://dl.google.com/dl/cloudsdk/channels/rapid/GoogleCloudSDKInstaller.exe", "$env:Temp\GoogleCloudSDKInstaller.exe"); & "$env:Temp\GoogleCloudSDKInstaller.exe"Install on Linux
curl https://sdk.cloud.google.com | bashRun it
gcloud initVerify the install
gcloud --versionBefore you start
After installing, run gcloud init to authenticate and choose a project. Restart your shell so gcloud is on your PATH.
Official documentation: gcloud install docs
Frequently asked questions
What was it called before?
The gcloud CLI was previously known as the Google Cloud SDK; it's the same tool.
How do I authenticate?
Run gcloud init (first-time setup) or gcloud auth login.
I ran the installer but gcloud isn't found.
Restart your terminal so your PATH updates, or open a new shell session.
Google Cloud and gcloud are trademarks of Google LLC. cli-install.com is an independent resource and is not affiliated with or endorsed by the trademark owner.