Skip to main content

Authentication commands

auth login

Save an API key as api_key in the local configuration file.

linear-cli auth login --token lin_api_your_key
FlagRequiredDescription
--token <key>YesLinear API key to save

auth whoami

Fetch the authenticated viewer. The returned user includes id, name, email, displayName, active, and admin.

linear-cli auth whoami

See authentication for resolution precedence.