auth subcommand manages your local credentials and which workspace subsequent commands act on. Sign-in is OAuth-based; the CLI stores a token per user under your OS’s config directory.
Commands
auth login
- Fetches your list of workspaces.
- Pins the first one as active if you didn’t already have one.
- Writes credentials to your OS config location:
- macOS:
~/Library/Application Support/nora/credentials.json - Linux:
~/.config/nora/credentials.json - Windows:
%APPDATA%\nora\credentials.json
- macOS:
auth logout
auth status
- Active workspace name and id.
- All saved workspaces (name + id + role).
- Token (redacted, showing prefix only).
- Server URL you’re pointed at.
auth workspaces list
owner / manager / member) so you know your permissions before running destructive commands.
auth workspaces switch <id>
auth workspaces current
Multiple accounts on one machine
The CLI stores one active credential set. To use different accounts:NORA_CONFIG_DIR:
Personal vs. workspace tokens
Two token types both work:
Workspace tokens are the right choice for CI: they can’t accidentally act on the wrong workspace, and revoking one doesn’t sign your user out of the app.
For CI, set
NORA_TOKEN as a secret:
auth login needed — the CLI picks up NORA_TOKEN automatically.
Token lifetime
- Personal access tokens: valid until you revoke. Auto-refresh on use.
- Workspace tokens: valid until you revoke or the workspace deletes them.
Troubleshooting
“Not authenticated” — runauth login, or set NORA_TOKEN.
“Wrong workspace” — auth status to confirm active workspace, then auth workspaces switch to fix.
“401 from server despite valid token” — the token was revoked in the UI. Re-auth login.
Corporate proxy blocks OAuth — set HTTPS_PROXY=http://your-proxy:port before auth login.