Installing using Homebrew

Google Cloud CLI can also be installed using Homebrew, a widely-used package manager for macOS, with the community-maintained gcloud-cli cask.

If you don't have Homebrew already, you'll need to install Homebrew first.

  • To install gcloud CLI using Homebrew, run:

        brew update && brew install --cask gcloud-cli
    
  • To update gcloud CLI, use the gcloud component manager:

        gcloud components update
    
  • To uninstall gcloud CLI, run:

        brew uninstall --cask gcloud-cli