1
0

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 1 year has passed since last update.

Google Cloud SDKをサクッとインストールする。

Last updated at Posted at 2024-04-26

今回はタイトルの通り、Google Cloud SDKをサクッとインストールしていきます。備忘録としてお使いいただければ幸いです。

まず、以下のGoogle Cloud SDKドキュメントからパッケージをダウンロードします。Cloud SDK:https://cloud.google.com/sdk/docs/install-sdk?hl=ja
スクリーンショット 2024-04-26 16.29.26.png
ユーザー>PC名>ここにzipファイルを移動して解凍します。
スクリーンショット 2024-04-26 16.33.44.png
次に解凍したSDKを以下コマンドで実行します。

./google-cloud-sdk/install.sh

インストール前の質問が開始されます。
Do you want to help improve the Google Cloud CLI (y/N)? `という質問ではNを解凍し、以降yを選択します。
スクリーンショット 2024-04-26 16.36.06.png

Macのパスワードを入力します。

Running Python 3.11 installer, you may be prompted for sudo password...
Password:

インストール完了後、以下のコマンドを実行します。

source ~/.zshrc

gcloudコマンドが使えるようになれば成功です。

gcloud -v 

スクリーンショット 2024-04-26 16.44.46.png
最後にcloud components update コマンドで、Google Cloud SDK のコンポーネントを最新の状態にアップデートします。

1
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?