Hello Google Cloud Developers,
In February 2022 the --no-launch-browser flag to gcloud auth login was deprecated in favor of --no-browser [1]. This is somewhat of a breaking change since it requires a machine with both gcloud and a browser. Could anyone please clarify what prompted this change? Was there anything wrong with --no-launch-browser?
For login with --no-launch-browser, you need gcloud on one machine and a web browser on another machine. You get an OAuth URL, open it in a browser, and paste the code back into gcloud.
With --no-browser, however, you are given a gcloud command to run on another machine which has a browser. But then that other machine needs both gcloud and a browser, which was not a requirement for --no-launch-browser.
Thank you,
Max
References