Skip to content

Instantly share code, notes, and snippets.

@kentarosasaki
Created October 18, 2016 09:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kentarosasaki/d76580f0374c46b160f3a570ddc5be01 to your computer and use it in GitHub Desktop.
Save kentarosasaki/d76580f0374c46b160f3a570ddc5be01 to your computer and use it in GitHub Desktop.
GCPのgcloudコマンドをインストールする ref: http://qiita.com/kentarosasaki/items/2232113b44b016a56adc
$ curl https://sdk.cloud.google.com | bash
Do you want to help improve the Google Cloud SDK (Y/n)? y
Modify profile to update your $PATH and enable shell command
completion? (Y/n)? y
Enter a path to an rc file to update, or leave blank to use [/home/test-user/.bashrc]:
$ exec -l $SHELL
$ which gcloud
~/google-cloud-sdk/bin/gcloud
$ gcloud init
Your current configuration has been set to: [default]
You must log in to continue. Would you like to log in (Y/n)? y
Go to the following link in your browser:
¦ https://accounts.google.com/o/oauth2/XXXXXXXXXXXXXXXXXXXXXX
Enter verification code: YYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
You are logged in as: [your-email@address].
Your current project has been set to: [your-project-name].
Do you want to configure Google Compute Engine
(https://cloud.google.com/compute) settings (Y/n)?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment