Linear CLI
$ linear Community Med RiskCommunity CLI (schpet/linear-cli) built for Git-centric workflows on Linear—automatically mapping branches to issue IDs, listing assigned issues, viewing issue details in Markdown, and creating issues via explicit flags. Supports LINEAR_API_KEY for headless auth.
brew install schpet/tap/linear Use linear CLI for quick branch-linked issue viewing and creation; prefer Linear's official GraphQL API or Linear MCP for complex structured JSON queries across projects and cycles.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports LINEAR_API_KEY, --no-pager, --no-interactive, and NO_COLOR=1, though output is formatted Markdown/text rather than structured JSON.
- Headless auth via
LINEAR_API_KEY - Emits human-readable text/Markdown tables rather than
--json
Scoped personal/bot LINEAR_API_KEY and clear separation between read commands and issue creation/checkout.
- Reads
LINEAR_API_KEYor~/.config/linear/credentials.toml
Compiled standalone binary distributed via Homebrew tap and GitHub Releases for macOS, Linux, and Windows.
- Pre-compiled Deno standalone binary across major OSes
Great branch-to-issue integration (linear issue start / view inferred from Git branch) for developer workflows.
- Auto-detects issue IDs from current Git branch name
Community-maintained MIT project (schpet/linear-cli) with active updates, though unofficial.
- Community repository
schpet/linear-cli
Clear README and built-in --help across subcommands.
- Command examples documented in repo README
Security, Auth & Guardrails
Accepts LINEAR_API_KEY env var or stores API keys in ~/.config/linear/credentials.toml.
MIT open-source compiled Deno binary; requires a Linear workspace account.
# Linear CLI (linear) Agent Rules - Set `LINEAR_API_KEY` and `NO_COLOR=1`, and pass `--no-pager` on `issue list` / `issue view`. - Pass `--no-interactive` and all required fields (`--title`, `--team`) when creating issues.
Agent-Ready Command Recipes
Safe Read-Only Queries
linear issue list --no-pager
Lists assigned or team Linear issues in terminal text without launching a pager.
linear issue view ENG-42 --no-pager
Prints issue ENG-42 title, status, and description cleanly.
Controlled Writes & Previews
linear issue create --title "Fix auth token refresh" --description "Details" --team ENG --no-interactive
Creates an issue non-interactively with explicit --title, --team, and --no-interactive.
Strengths for Agents
- + Automatically infers the active Linear issue ID from Git branch names.
- +
LINEAR_API_KEY,--no-pager, and--no-interactiveenable headless operation. - + Clean Markdown issue rendering is naturally readable by LLMs.
Caveats & Pitfalls
- ! Community-maintained (not an official Linear binary) and lacks universal
--jsonoutput. - ! Omitting
--teamor--titleonissue createcan trigger interactive prompts unless--no-interactiveis set.