How to install gcloud SDK on the macOS and start managing GCP through CLI?

Before Starting:

  1. Create one google cloud Platform Project.
  2. Cloud SDK requires Python. Supported versions are 3.5 to 3.7, and 2.7.9 or higher. To check the Python version installed on your system:
python -V

3. Download the archive file for your macOS 64-bit (x86_64) form here.

4. Extract the archive file to any location on your file system preferably the home directory this can be archive by opening the .tar.gz file in the preferred location.

5. Now install the script to add cloud SDK tools to your path using this command make sure you install it into your bash_profile:

./google-cloud-sdk/install.sh

Restart the terminal for the changes to take effects.

An alternative method if the above one fails is by using brew command to install it using below mention command.

Click Here

Tags: gcloud SDK