How to Install Google Cloud SDK [macOS Edition]

Tadashi Shigeoka ·  Sat, July 31, 2021

I’ll introduce how to install Google Cloud SDK on macOS.

Google Cloud

Background: Accidentally Installed Google Cloud SDK to Downloads Folder

Following the official article Google Cloud SDK のインストール | Cloud SDK のドキュメント, I mindlessly went through the installation and accidentally installed Google Cloud SDK to the Downloads folder.

To avoid repeating the same mistake, I’m writing down the Google Cloud SDK installation steps for my future self.

Google Cloud SDK Installation Steps

The key point for Google Cloud SDK installation is to perform it in the home directory as follows:

mv ~/Downloads/google-cloud-sdk-347.0.0-darwin-x86_64.tar.gz ~/
cd ~/
tar -zxvf google-cloud-sdk-347.0.0-darwin-x86_64.tar.gz

./google-cloud-sdk/install.sh
./google-cloud-sdk/bin/gcloud init

That’s all from the Gemba.