Skip to content

Device login

View Markdown

On a remote server or container with no browser:

Terminal window
nodus login --device

The CLI prints a code like BDWP-HMTR and a link. Open the link on any device where you are signed in, check that the code matches, pick the orgs and approve. The CLI finishes on its own within a few seconds. The code works for 10 minutes; denying it stops the login.

The CLI polls every 5 seconds. Every key it receives is the same kind nodus login creates: one per chosen org, 90 days, revocable with nodus logout or nodus delete apikey.

Pass an existing key instead of signing in:

Terminal window
echo "$NODUS_API_KEY" | nodus login --with-token

Prefer a service account token for CI, so it keeps working when people leave.