CLI Login
Authenticate the CLI via browser with a magic link.
Login
bash
cueapi loginThis starts the device code authentication flow:
- CLI generates a code (e.g.,
ABCD-1234) - Opens your browser to the verification page
- You enter your email in the browser
- CueAPI sends a magic link to your email
- You click the link to verify
- CLI automatically receives your API key
$ cueapi login
Your device code: ABCD-1234
Opening browser for verification...
Waiting for verification...
Logged in as you@example.com
API key saved to ~/.config/cueapi/credentials.json
Check current user
bash
cueapi whoamiEmail: you@example.com
Plan: Free
Active cues: 3 / 10
Executions: 42 / 300
Logout
bash
cueapi logout # Remove default profile
cueapi logout --all # Remove all profilesMultiple profiles
Use --profile to manage multiple accounts:
bash
cueapi --profile work login
cueapi --profile work list
cueapi --profile personal loginAPI key precedence
The CLI resolves API keys in this order:
--api-keyflagCUEAPI_API_KEYenvironment variable- Profile from
~/.config/cueapi/credentials.json