Open Source • PolyForm Shield 1.0.0

Linear from the Command Line

Full Linear API access from the terminal — search, create and update issues, manage projects, cycles, roadmaps, webhooks, notifications, documents, and more. Every command outputs JSON.

80+
CLI Commands
JSON
Structured Output
Agent
Warp + Claude Skill

Issue management that lives in your terminal

Every command outputs structured JSON — pipe into jq, scripts, or AI agents

Search
Full-Text
CRUD
Comments
Paginated
Auto-Fetching
Agent
Ready

Everything You Need from Linear

80+ commands covering issues, projects, cycles, roadmaps, teams, documents, webhooks, notifications, and more

Full-Text Search

Search across issues, documents, and projects. Results include identifiers, titles, and metadata — ready for scripting.

Issue CRUD

Create, update, delete, archive, and fetch issues by ID or identifier. Filter by team, assignee, state, priority, or label.

Projects, Cycles & Roadmaps

Full CRUD for projects, cycles, roadmaps, and initiatives. List milestones, post project updates, and manage planning entities.

Comments

Add, edit, delete, resolve, and unresolve comments. List your own comments. Full comment lifecycle from the terminal.

Attachments & Relations

Link GitHub PRs, issues, and external URLs to Linear issues. Create and delete issue relations (blocks, duplicate, related).

Labels & Workflow States

List, create, update, and delete labels. List workflow states per team. Complete metadata management from the CLI.

Notifications

List notifications, mark individual ones read or unread, and bulk-archive or bulk-mark all notifications in one command.

Webhooks

List, create, update, and delete webhooks. Full webhook lifecycle management without leaving the terminal.

Teams & Users

List all teams, fetch a single team, list all users or look up a specific user. Essential for scripting assignments.

Platform Status

Check Linear platform status including ongoing incidents and scheduled maintenances. No API key required.

Secure Init

Interactive setup validates your API key against the Linear API before storing it. Reconfigure anytime with --force.

Agent Skill

Includes a Warp and Claude Code skill. Agents automatically use linear when you ask about bugs or issues.

Auto-Pagination

All list commands fetch every page automatically. No manual cursor handling — just get all the data.

How It Works

Three steps from install to your first Linear query

1

Install linear

Install @dotbrains/linear-cli from GitHub Packages. One-time registry and auth token setup, then a single npm install.

2

Configure Your API Key

Run `linear init` to interactively set up your Linear API key. It validates the key against the API before saving.

3

Start Using It

Search issues, manage projects, post comments, track notifications, manage webhooks — all from the command line. Pipe JSON into jq, scripts, or AI agents.

Code Examples

See linear-cli in action — search, issues, comments, and agent workflows

bash
# Full-text search across issues, documents, and projects
$ linear search "auth bug"
[
    { "identifier": "ENG-123", "title": "Fix auth race condition", ... },
    { "identifier": "ENG-456", "title": "Auth token expiry bug", ... },
    { "identifier": "ENG-789", "title": "OAuth callback failure", ... }
  ]

# Search for documents
$ linear search "onboarding" --type Documents

Use Cases

From agent automation to CI pipelines — linear fits into any workflow

Agent Workflows

Let Warp or Claude autonomously search, triage, update, and comment on issues. The included skill gives agents full Linear API access.

Issue Triage

Search for issues by keyword, filter by label, and quickly assess priorities — all without leaving your terminal.

Bulk Comment Operations

Script bulk comment additions across issues. Pipe issue identifiers into comment-add for automated triage notes.

Status Monitoring

Check Linear platform status from CI pipelines or monitoring scripts. Detect incidents before they affect your workflow.

Data Export & Reporting

All output is JSON — pipe into jq for transforms, feed into dashboards, or generate reports from issue and comment data.

CI/CD Integration

Search for related issues in CI, post deployment comments automatically, or gate releases on issue status.

Quick Start

Install and run your first Linear query in under a minute

1. Install

Note: Published to GitHub Packages. One-time registry + auth setup required.

bash
# 1. Point @dotbrains scope at GitHub Packages
npm config set @dotbrains:registry https://npm.pkg.github.com

# 2. Authenticate (use a PAT with read:packages scope)
npm config set //npm.pkg.github.com/:_authToken $(gh auth token)

# 3. Install globally
npm install -g @dotbrains/linear-cli

2. Configure & Use

bash
# Set up your Linear API key
linear init

# Search for issues
linear search "auth bug"

# Get a specific issue with comments
linear issue ENG-123

# Create an issue
linear issue-create --team <teamId> --title "Fix login bug" --priority 1

# Add a comment
linear comment-add ENG-123 -b "On it"

# List your notifications
linear notifications

# Check Linear platform status
linear status

Tip: Generate a personal API key at Linear > Settings > Security.

Ready to Get Started?

Install @dotbrains/linear-cli and manage Linear from the command line in under a minute