7
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

HomebrewでGoogle Cloud SDK (gcloudコマンド) をインストールする

Posted at

HomebrewでGoogle Cloud SDKをインストールするにはHomebrew Caskを使います:

brew cask install google-cloud-sdk

インストールが成功すると、gcloudコマンドが使えるようになります:

$ gcloud --version
Google Cloud SDK 301.0.0
bq 2.0.58
core 2020.07.10
gsutil 4.51

Zshの設定

.zshrc
source "$(brew --prefix)/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc"
source "$(brew --prefix)/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc"
7
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?