Google Cloud CLI

Google · A command-line toolset for managing Google Cloud projects, cloud resources, and applications, suited for terminal operations and automated deployment.

CaskDeveloper ToolsAuto-updatesApple silicon · Intel
From homebrew/cask
30-day installs28,769#4 in App
1-year installs558.8KLast 365 days
Latest version588.0.018 hours ago · Oct 7
Download size54MBarm64 / x86_64 · gz
Release cadenceWeekly3 releases in 30 days
System requirements
Not confirmed
Command line dependencies
[email protected]
Platform availability
  • macOS 27 · Intel · 588.0.0 Not confirmed
  • macOS 27 · Apple chip · 588.0.0 Not confirmed
  • macOS 26 · Intel · 588.0.0 Not confirmed
  • macOS 26 · Apple chip · 588.0.0 Not confirmed
  • macOS 15 · Intel · 588.0.0 Not confirmed
  • macOS 15 · Apple chip · 588.0.0 Not confirmed
  • macOS 14 · Intel · 588.0.0 Not confirmed
  • macOS 14 · Apple chip · 588.0.0 Not confirmed
  • macOS 13 · Intel · 588.0.0 Not confirmed
  • macOS 13 · Apple chip · 588.0.0 Not confirmed
  • macOS 12 · Intel · 588.0.0 Not confirmed
  • macOS 12 · Apple chip · 588.0.0 Not confirmed
  • macOS 11 · Intel · 588.0.0 Not confirmed
  • macOS 11 · Apple chip · 588.0.0 Not confirmed
View full declaration
{
  "formula": [
    "[email protected]"
  ]
}
Tap
homebrew/cask
Also known as
Google Cloud CLI · google-cloud-sdk · gcloud-cli
Commands
git-credential-gcloud gsutil bq docker-credential-gcloud gcloud
SHA-256
7941b3911838373f…

Installation and removal contents

  • Install preflight_steps

    View full declaration
    {
      "preflight_steps": [
        {
          "steps": [
            {
              "recursive": true,
              "source": {
                "base": "staged_path",
                "path": "google-cloud-sdk/."
              },
              "target": {
                "base": "homebrew_prefix",
                "path": "share/google-cloud-sdk"
              },
              "type": "copy"
            },
            {
              "paths": [
                {
                  "base": "staged_path",
                  "path": "google-cloud-sdk"
                }
              ],
              "recursive": true,
              "type": "remove"
            },
            {
              "source": {
                "path": "{{HOMEBREW_PREFIX}}/share/google-cloud-sdk"
              },
              "target": {
                "base": "staged_path",
                "path": "google-cloud-sdk"
              },
              "type": "symlink"
            }
          ]
        }
      ]
    }
  • Uninstall uninstall

    View full declaration
    {
      "uninstall": [
        {
          "trash": "$HOMEBREW_PREFIX/Caskroom/gcloud-cli/latest"
        }
      ]
    }
  • Install installer

    View full declaration
    {
      "installer": [
        {
          "script": {
            "args": [
              "--quiet",
              "--usage-reporting",
              "false",
              "--bash-completion",
              "false",
              "--path-update",
              "false",
              "--rc-path",
              "false",
              "--update-installed-components",
              "--install-python",
              "false"
            ],
            "executable": "google-cloud-sdk/install.sh"
          }
        }
      ]
    }
  • Install binary

    Source file: google-cloud-sdk/bin/git-credential-gcloud.sh

    Declared destination: $HOMEBREW_PREFIX/bin/git-credential-gcloud

    View full declaration
    {
      "binary": [
        "google-cloud-sdk/bin/git-credential-gcloud.sh",
        {
          "target": "git-credential-gcloud"
        }
      ],
      "target": "$HOMEBREW_PREFIX/bin/git-credential-gcloud"
    }
  • Install binary

    Source file: google-cloud-sdk/bin/gsutil

    Declared destination: $HOMEBREW_PREFIX/bin/gsutil

    View full declaration
    {
      "binary": [
        "google-cloud-sdk/bin/gsutil"
      ],
      "target": "$HOMEBREW_PREFIX/bin/gsutil"
    }
  • Install binary

    Source file: google-cloud-sdk/bin/bq

    Declared destination: $HOMEBREW_PREFIX/bin/bq

    View full declaration
    {
      "binary": [
        "google-cloud-sdk/bin/bq"
      ],
      "target": "$HOMEBREW_PREFIX/bin/bq"
    }
  • Install binary

    Source file: google-cloud-sdk/bin/docker-credential-gcloud

    Declared destination: $HOMEBREW_PREFIX/bin/docker-credential-gcloud

    View full declaration
    {
      "binary": [
        "google-cloud-sdk/bin/docker-credential-gcloud"
      ],
      "target": "$HOMEBREW_PREFIX/bin/docker-credential-gcloud"
    }
  • Install binary

    Source file: google-cloud-sdk/bin/gcloud

    Declared destination: $HOMEBREW_PREFIX/bin/gcloud

    View full declaration
    {
      "binary": [
        "google-cloud-sdk/bin/gcloud"
      ],
      "target": "$HOMEBREW_PREFIX/bin/gcloud"
    }
  • Install bash_completion

    Source file: google-cloud-sdk/completion.bash.inc

    Declared destination: $HOMEBREW_PREFIX/etc/bash_completion.d/google-cloud-sdk

    View full declaration
    {
      "bash_completion": [
        "google-cloud-sdk/completion.bash.inc",
        {
          "target": "google-cloud-sdk"
        }
      ],
      "target": "$HOMEBREW_PREFIX/etc/bash_completion.d/google-cloud-sdk"
    }
  • Install zsh_completion

    Source file: google-cloud-sdk/completion.zsh.inc

    Declared destination: $HOMEBREW_PREFIX/share/zsh/site-functions/_google_cloud_sdk

    View full declaration
    {
      "target": "$HOMEBREW_PREFIX/share/zsh/site-functions/_google_cloud_sdk",
      "zsh_completion": [
        "google-cloud-sdk/completion.zsh.inc",
        {
          "target": "_google_cloud_sdk"
        }
      ]
    }
  • Install postflight_steps

    View full declaration
    {
      "postflight_steps": [
        {
          "steps": [
            {
              "force": true,
              "guards": [
                {
                  "condition": "unless_exists",
                  "id": "1",
                  "path": "{{caskroom_path}}/latest"
                }
              ],
              "source": {
                "path": "{{staged_path}}"
              },
              "target": {
                "path": "{{caskroom_path}}/latest"
              },
              "type": "symlink"
            },
            {
              "args": [
                "config",
                "virtualenv",
                "delete",
                "-q"
              ],
              "command": {
                "base": "homebrew_prefix",
                "path": "share/google-cloud-sdk/bin/gcloud"
              },
              "env": {
                "CLOUDSDK_PYTHON": "{{HOMEBREW_PREFIX}}/opt/[email protected]/libexec/bin/python"
              },
              "guards": [
                {
                  "condition": "on",
                  "id": "2",
                  "value": "macos"
                },
                {
                  "condition": "if_exists",
                  "id": "3",
                  "path": "~/.config/gcloud/virtenv"
                }
              ],
              "type": "run"
            },
            {
              "args": [
                "config",
                "virtualenv",
                "create",
                "--python-to-use",
                "{{HOMEBREW_PREFIX}}/opt/[email protected]/libexec/bin/python"
              ],
              "command": {
                "base": "homebrew_prefix",
                "path": "share/google-cloud-sdk/bin/gcloud"
              },
              "env": {
                "CLOUDSDK_PYTHON": "{{HOMEBREW_PREFIX}}/opt/[email protected]/libexec/bin/python"
              },
              "guards": [
                {
                  "condition": "on",
                  "id": "2",
                  "value": "macos"
                }
              ],
              "network_access": true,
              "type": "run"
            },
            {
              "args": [
                "config",
                "virtualenv",
                "enable"
              ],
              "command": {
                "base": "homebrew_prefix",
                "path": "share/google-cloud-sdk/bin/gcloud"
              },
              "env": {
                "CLOUDSDK_PYTHON": "{{HOMEBREW_PREFIX}}/opt/[email protected]/libexec/bin/python"
              },
              "guards": [
                {
                  "condition": "on",
                  "id": "2",
                  "value": "macos"
                }
              ],
              "type": "run"
            },
            {
              "args": [
                "version"
              ],
              "command": {
                "base": "homebrew_prefix",
                "path": "share/google-cloud-sdk/bin/gcloud"
              },
              "env": {
                "CLOUDSDK_PYTHON": "{{HOMEBREW_PREFIX}}/opt/[email protected]/libexec/bin/python"
              },
              "guards": [
                {
                  "condition": "on",
                  "id": "2",
                  "value": "macos"
                }
              ],
              "type": "run"
            }
          ]
        }
      ]
    }
  • Remove user data zap

    View full declaration
    {
      "zap": [
        {
          "trash": [
            "$HOMEBREW_PREFIX/share/google-cloud-sdk.staging",
            "$HOMEBREW_PREFIX/share/google-cloud-sdk"
          ]
        }
      ]
    }

Caveats

To use additional binary components installed via gcloud, add the "$HOMEBREW_PREFIX/share/google-cloud-sdk/bin"
directory to your PATH environment variable, e.g., (for Bash shell):
   export PATH=$HOMEBREW_PREFIX/share/google-cloud-sdk/bin:"$PATH"

An open-source interface for Homebrew. Installs run through the macOS app or the brew command.

© 2026 OpenNavo