Skip to content

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.

Terminal window
indigo auth login

Output:

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.

Terminal window
indigo auth status

Output:

Authenticated as: user@example.com
Token expires: 2025-02-15T09:00:00Z
Status: Valid

With JSON output:

Terminal window
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.

Terminal window
indigo auth logout

Output:

Logged out. Credentials removed from keychain.

Credential sharing

The CLI and Indigo Desktop share credentials through the system keychain:

PlatformKeychain
macOSKeychain Access
WindowsWindows Credential Manager
Linuxlibsecret / 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

FlagDescription
--jsonOutput result as JSON (available on login and status)