LoginSignup
4
0

More than 1 year has passed since last update.

M1 Mac でも Google Cloud SDK を簡単にインストールできる

Posted at

M1 Mac では、zshが標準のターミナルなのでzshを指定します。

curl https://sdk.cloud.google.com | zsh
sudo nano ~/.zshrc

パスを追記します。

source '/Users/ユーザ名/google-cloud-sdk/path.zsh.inc'
source '/Users/ユーザ名/google-cloud-sdk/completion.zsh.inc'

設定を反映します。

source ~/.zshrc

バージョンが表示されるとインストール OK です。

gcloud -v

Google Cloud SDK 342.0.0
bq 2.0.68
core 2021.05.21
gsutil 4.62

初期設定

gcloud init
4
0
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
4
0