Authentication
mycli uses email-based magic links for authentication. No passwords needed.
Login flow
Section titled “Login flow”my cli login- The CLI prompts for your email address
- A magic link is sent to your inbox via the device auth flow
- Click the link to verify your email
- The CLI receives a JWT token and stores it securely
Token storage
Section titled “Token storage”Auth tokens are stored in your operating system’s keyring (macOS Keychain, Linux Secret Service, Windows Credential Manager). If the keyring is unavailable, tokens fall back to ~/.my/credentials.json.
Check login status
Section titled “Check login status”my cli whoamiShows your user ID and email if logged in.
Check overall status
Section titled “Check overall status”my cli statusShows the API URL, login state, last sync time, and cached command count.
Logout
Section titled “Logout”my cli logoutClears stored credentials from the keyring and local file.
Token refresh
Section titled “Token refresh”Access tokens are short-lived JWTs. The CLI automatically refreshes tokens using a refresh token when needed. You should rarely need to log in again.
Working without an account
Section titled “Working without an account”Next steps
Section titled “Next steps” CLI Reference: login Login command details.
Environment Variables API configuration.