CLI Reference
auth
Authentication management for the LimAI CLI
$
limai auth <subcommand>Manage CLI authentication credentials. Store, verify, and clear API tokens.
Options
--jsonOutput raw JSON--verboseEnable debug loggingSubcommands
limai auth login
Authenticates against https://app.limai.io and stores your credentials locally at ~/.limai/config.json.
limai auth loginYou can authenticate three ways:
- Browser login (default) — opens your browser and completes automatically.
- Browser on another device — for terminals without a browser (SSH sessions, containers). The CLI prints a URL to open anywhere; after authorizing, paste the code shown in the browser back into the terminal.
- Manual token — paste an existing API token (input is hidden).
To authenticate against a different instance, set the LIMAI_API_URL environment variable or pass --api-url:
LIMAI_API_URL=https://app.staging.limai.io limai auth loginlimai auth logout
Clears all stored credentials.
limai auth logoutlimai auth status
Verifies that stored credentials are valid by making a health check request to the API.
limai auth statusExamples
Login and verify
limai auth login
limai auth statusCheck status with JSON output
limai auth status --jsonClear credentials
limai auth logout