linLinear CLI
Commands

lin auth

Store and manage Linear API keys as named profiles

Manage Linear API keys locally so you stop re-exporting LINEAR_API_KEY. Keys live in named profiles in ~/.config/lin/config.json (mode 0600). Environment variables (LINEAR_API_KEY, LINEAR_API_KEY_FILE) still win.

lin auth login

Read a Linear API key (piped stdin, a hidden terminal prompt, or --from-env), validate it against Linear, and store it under --profile (default "default"). The key is never accepted as a flag.

lin auth login

Examples

echo $KEY | lin auth login
lin auth login --profile work
LINEAR_API_KEY=lin_api_... lin auth login --from-env --profile perso
FlagTypeDefaultDescription
--from-envboolfalseread the key from LINEAR_API_KEY instead of stdin/prompt

lin auth logout

Remove a stored profile

lin auth logout

lin auth status

List stored profiles and which one is active

lin auth status

lin auth switch

Set the default profile

lin auth switch <profile>

On this page