Installing Cloud SDK on both Linux and macOS follows the steps listed here. Let's install Cloud SDK under your home directory:
- Open the Terminal.
- Type the following command to download and run the Cloud SDK installer:
$ curl https://sdk.cloud.google.com | bash
- It asks for your desired installation directory. By default, it is under your home directory. So, type return:
Installation directory (this will create a google-cloud-sdk subdirectory) (/Users/saito):
- It asks whether to send user usage data; it will send some information when it crashes. Based on your privacy policy, if don't wish to send any data to Google, choose n. Otherwise choose Y to improve their quality:
Do you want to help improve ...