What problem does it solve?
Centralizes and standardizes the olares-cli authentication lifecycle by providing a reusable profile model, first-time login with password + TOTP, bootstrap from an existing refresh token, and robust handling for profile switching, listing, and removal across OS keychains and token stores.
Core Features & Use Cases
- Profile lifecycle: login (password + optional 2FA), import from a refresh token, list profiles with status, switch current profile, and remove profiles.
- Global profile flag: use --profile to script actions against multiple profiles without changing the current one.
- Token storage and refresh: describes where tokens live per OS and automatic token refresh via /api/refresh with reactive retry and proactive refresh for streaming uploads.
- Recovery and troubleshooting: guidance for common auth errors (expired/invalid tokens, not logged in, 2FA required) and how to recover by re-authenticating or importing.
- Use cases: suitable whenever configuring olares-cli for the first time, scripting parallel invocations, or managing multiple identities.
Quick Start
Run olares-cli profile login --olares-id <id> to create or authenticate your first profile.