neuro-inc/apolo-cli

Print the login url when running `neuro login`

Closed this issue · 0 comments

Is your feature request related to a problem? Please describe.

Sometimes the opening of the browser might fail, or the browser in which the user is signed in to web UI is different from the one being opened. There is neuro config login-headless, which will work, but that assumes that the user knows that neuro login is an alias to neuro config login, which is not often mentioned in the doc.

Describe the solution you'd like

We need to show the URL that should be used to log in to the CLI

Describe alternatives you've considered

It also might make some sense to provide a flag to explicitly show the URL, but the likes of gcloud show it every time.

Additional context

Example of the gcloud init URL being shown:

Your browser has been opened to visit:

    https://accounts.google.com/o/oauth2/auth?<OMITTED>