Installing Cloud SDK on Linux and macOS

Installing Cloud SDK on both Linux and macOS follows the steps listed here. Let's install Cloud SDK under your home directory:

  1. Open the Terminal.
  2. Type the following command to download and run the Cloud SDK installer:
$ curl https://sdk.cloud.google.com | bash
  1. 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):
  1. 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 the Google Cloud SDK (Y/n)? n
  1. It asks whether to update .bash_profile by adding the gcloud command to your command search path; type y to proceed:
Modify profile to update your $PATH and enable shell command
completion?
Do you want to continue (Y/n)? y
The Google Cloud SDK installer will now prompt you to update an rc
file to bring the Google Cloud CLIs into your environment.
Enter a path to an rc file to update, or leave blank to use
[/Users/saito/.bash_profile]:
  1. Open another Terminal or type exec -l $SHELL to refresh your command search path:
//reload .bash_profile
$ exec -l $SHELL

//check gcloud command is in your search path
$ which gcloud
/Users/saito/google-cloud-sdk/bin/gcloud
  1. Type gcloud info to check whether you can see the Cloud SDK version:
$ gcloud info
Google Cloud SDK [187.0.0]
Platform: [Mac OS X, x86_64] ('Darwin', 'Hideto-Saito-no-MacBook.local', '17.4.0', 'Darwin Kernel Version 17.4.0: Sun Dec 17 09:19:54 PST 2017; root:xnu-4570.41.2~1/RELEASE_X86_64', 'x86_64', 'i386')
Python Version: [2.7.14 (default, Jan 21 2018, 12:22:04) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.38)]]
Python Location: [/usr/local/Cellar/python/2.7.14_2/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python]

Now you can start to configure Cloud SDK!

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.93.12