How do I make gcloud auth login actually launch a web browser?

Hello,

So I’ve been working a lot on development containers for many projects, and they don’t tend to support browser launches natively.

Now recently I was able to get this working for hashicorp vault cli login, and I’m hoping to do the same for gcloud auth login. But despite flags like “–launch-browser --user-output-enabled true --verbosity debug”, I cannot find a single hint, error message or anything of what the sdk is looking for to decide to launch a web browser.

I already have a way to launch a web browser from a development container, now I would love to wire up the same for gcloud auth login. Any ENV vars or command line script it expects?

What’s your console output for --launch-browser command? For me, it generates a URL.