linear-cli
SKILL.md
Linear CLI Skill
Overview
Use the linear CLI to manage Linear issues, teams, and projects from the terminal. Prefer CLI flows over raw GraphQL when a command exists.
Quick Start
- Verify the CLI is available:
linear --version. - Install the CLI if needed (see Install Linear CLI).
- Configure the API key and repo settings (see Configure API Key).
- Use
linear issue list,linear issue start, andlinear issue viewfor day-to-day workflows.
Install Linear CLI
Prefer NPM-distributed version from Injective Labs:
npm i -g @injectivelabs/linear-cli
One-time commands can be run via npx @injectivelabs/linear-cli.
If NPM is not available
Fetch binary for current platform using https://github.com/InjectiveLabs/linear-cli/releases/latest install it so it available in $PATH.
Configure API Key
- Create a personal API key in Linear account settings:
https://linear.app/settings/account/security. - If
linear auth loginexists, run it to authenticate. Otherwise export the key for the CLI session:export LINEAR_API_KEY=.... - Run
linear configinside the repo to generate.linear.tomlinteractively. - Use
linear auth tokenorlinear auth whoamito verify authentication. - Note: API key creation requires member access (not guest).
Common Workflows
- List issues:
linear issue listwith filters like--state,--assignee,--team, or--limit. - Start work on an issue:
linear issue start ABC-123(use-bto specify a branch). - View an issue:
linear issue view ABC-123(use-wfor web or-afor app). - Create an issue:
linear issue create --title "..." --team TEAM(add--project,--label,--priority, or--estimateas needed). - Update an issue:
linear issue update ABC-123 --state STATE --assignee USER. - Add a comment:
linear issue comment add ABC-123 --body "...". - Browse teams/projects:
linear team list,linear project list, thenlinear project view.
Command Reference
See references/commands.md for the full command and flag list extracted from linear completions bash.
When some command feels missing try npx @injectivelabs/linear-cli@latest completions bash to refresh the completions.
Safety
- Confirm destructive actions explicitly before running
linear issue delete. - Avoid raw schema dumps unless needed; prefer regular commands to inspect data.
Weekly Installs
1
Repository
injectivelabs/agent-skillsFirst Seen
Today
Installed on
amp1
opencode1
kimi-cli1
codex1
github-copilot1
gemini-cli1