CLI
Authentication
Sign in to the CLI with browser SSO or an API key.
Sign in
nextune loginChoose one of:
- SSO (browser) — recommended. The CLI opens a sign-in URL in your browser and waits for authorization.
- API key — paste a key that starts with
SK-…from your Nextune dashboard.
SSO flow
nextune login
# Choose "SSO (browser)"
# Open the URL shown, sign in, then return to the terminalOn success you see Logged in successfully.
API key flow
nextune login
# Choose "API key"
# Paste API key (SK-...): SK-xxxxxxxxOn success you see API key saved.
Sign out
nextune logoutThis clears local credentials and your saved workspace selection.
Current user
nextune whoamiShows your name, email, auth mode, and active workspace. Add --json for machine-readable output.
nextune whoami --jsonSecurity notes
- Credentials are stored locally in
~/.config/nextune/config.yaml. - Never share API keys or paste them into public channels.
- Use
nextune logouton shared machines.