Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Linear CLI

$ linear Community Med Risk
Peter Schilling (schpet) · Code & DevOps · MIT · macos / linux / windows

Community 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.

FCRS-1.0 Score
80 /100
Good
Medium Confidence
Zero-Friction Install
brew install schpet/tap/linear
CLI vs MCP Decision Hybrid (CLI + MCP)

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

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
✓ NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 18 / 25

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
Trust & Safety 20 / 25

Scoped personal/bot LINEAR_API_KEY and clear separation between read commands and issue creation/checkout.

  • Reads LINEAR_API_KEY or ~/.config/linear/credentials.toml
Setup & Portability 13 / 15

Compiled standalone binary distributed via Homebrew tap and GitHub Releases for macOS, Linux, and Windows.

  • Pre-compiled Deno standalone binary across major OSes
Utility & Efficiency 13 / 15

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
Maintenance & Lineage 8 / 10

Community-maintained MIT project (schpet/linear-cli) with active updates, though unofficial.

  • Community repository schpet/linear-cli
Docs & Verifiability 8 / 10

Clear README and built-in --help across subcommands.

  • Command examples documented in repo README

Security, Auth & Guardrails

Auth Modes
Env API Key Config File
Credential Storage

Accepts LINEAR_API_KEY env var or stores API keys in ~/.config/linear/credentials.toml.

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

MIT open-source compiled Deno binary; requires a Linear workspace account.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

List issues without interactive pager
linear issue list --no-pager

Lists assigned or team Linear issues in terminal text without launching a pager.

View a Linear issue in Markdown
linear issue view ENG-42 --no-pager

Prints issue ENG-42 title, status, and description cleanly.

Controlled Writes & Previews

Create a Linear issue via explicit flags
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-interactive enable headless operation.
  • + Clean Markdown issue rendering is naturally readable by LLMs.

Caveats & Pitfalls

  • ! Community-maintained (not an official Linear binary) and lacks universal --json output.
  • ! Omitting --team or --title on issue create can trigger interactive prompts unless --no-interactive is set.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI