indigo auth
The auth command group manages authentication for the Indigo CLI. Credentials are stored in the system keychain and shared with Indigo Desktop.
Commands
indigo auth login
Opens your default browser for OAuth authentication. After you approve, the CLI receives and stores your credentials.
indigo auth loginOutput:
Opening browser for authentication...Authentication successful. Credentials saved to keychain.indigo auth status
Displays the current authentication state, including the associated account and token expiry.
indigo auth statusOutput:
Authenticated as: user@example.comToken expires: 2025-02-15T09:00:00ZStatus: ValidWith JSON output:
indigo auth status --json{ "authenticated": true, "email": "user@example.com", "expires_at": "2025-02-15T09:00:00Z", "status": "valid"}indigo auth logout
Removes stored credentials from the system keychain.
indigo auth logoutOutput:
Logged out. Credentials removed from keychain.Credential sharing
The CLI and Indigo Desktop share credentials through the system keychain:
| Platform | Keychain |
|---|---|
| macOS | Keychain Access |
| Windows | Windows Credential Manager |
| Linux | libsecret / Secret Service API |
Authenticating in either the CLI or the desktop app grants access to both. There is no need to sign in separately.
Options
| Flag | Description |
|---|---|
--json | Output result as JSON (available on login and status) |