Skip to content

Authentication

OAuth is the default. Run lnr auth login, or run any command that needs Linear and sign in when prompted.

Terminal window
lnr auth login

Override the requested scopes only when necessary:

Terminal window
export LINEAR_OAUTH_SCOPES='read write'

Log out and clear account-specific cached data with:

Terminal window
lnr auth logout

Set LINEAR_API_KEY to use a personal API key. It takes precedence over OAuth.

Terminal window
export LINEAR_API_KEY='lin_api_...'

Never commit the key. Issue deletion requires a personal API key because Linear’s hosted OAuth service does not expose deletion.