Basically, this is a HowTo that prevents the usage of a browser in <a href="https://developers.google.com/cloud/sdk/">Google's Cloud SDK</a> installation.
Easy. I wanted to build my own image; from scratch. I wanted <a href="https://fedoraproject.org/">Fedora</a> 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 <a href="http://tracking.cloudsigma.com/SH1I">CloudSigma</a> <a href="http://fedoraproject.org/">Fedora</a> 20 server for the build. That server is headless and I needed to authenticate with a browser if I followed <a href="https://google.com/">Google</a>'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.