Infisical / infisical

♾ Infisical is the open-source secret management platform: Sync secrets across your team/infrastructure, prevent secret leaks, and manage internal PKI
https://infisical.com
Other
15.48k stars 951 forks source link

Automatically open the browser on `infisical login` #2351

Open net opened 2 months ago

net commented 2 months ago

Feature description

Most CLI tools that require signing in automatically open the browser instead of requiring the user to copy-paste a link.

Heroku:

> heroku login
heroku: Press any key to open up the browser to login or q to exit:
Opening browser to https://cli-auth.heroku.com/auth/cli/browser/xxxxxxxxxx
heroku: Waiting for login... ⣟

Crunchy Bridge:

> cb login
Press Enter to open a browser to login. (Ctrl+C to quit)
Or visit: https://crunchybridge.com/account/verify-cli/xxxxxxxxxx
Waiting for login... -

Why would it be useful?

This is a better DX than having to copy-paste a URL, especially given that Infisical periodically logs developers out. It's also how developers are used to modern CLI tools working.

callumfrederiksen commented 2 months ago

Ill take a look at the source code