Basically, this is a HowTo that prevents the usage of a browser in https://developers.google.com/cloud/sdk/ installation.
Easy. I wanted to build my own image; from scratch. I wanted https://fedoraproject.org/ 20 on that cloud. The problem is that I have the poorest Internet connection (WiMax @ 2 Mbps/128 Kbps) so building stuff would take ages.
So, I used my http://fedoraproject.org/, Fedora 20 server for the build. That server is headless and I needed to authenticate with a browser if I followed Google's instructions.
# setup google cloud sdk curl https://sdk.cloud.google.com | bash # activate google cloud in current shell source ~/.bash_profile # login gcloud auth login --no-launch-browser
This lets me authenticate the SDK by following a link and getting back a key to paste on the CLI. That easy.