Google Cloud CLI
Google · A command-line toolset for managing Google Cloud projects, cloud resources, and applications, suited for terminal operations and automated deployment.
- 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
- Download URL
- dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-588.0.0-darwin-x86_64.tar.gz
- SHA-256
- 7941b3911838373f…
- Homebrew definition
- github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/gcloud-cli.rb
- formulae.brew.sh
- formulae.brew.sh/cask/gcloud-cli
Installation and removal contents
Install
preflight_stepsView 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
uninstallView full declaration
{ "uninstall": [ { "trash": "$HOMEBREW_PREFIX/Caskroom/gcloud-cli/latest" } ] }Install
installerView 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
binarySource 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
binarySource 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
binarySource 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
binarySource 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
binarySource 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_completionSource 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_completionSource 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_stepsView 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
zapView 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"