linear-cli-0.3.13 is not a library.
linear-cli
A fast, powerful command-line interface for Linear built with Rust.
Features
- Full API Coverage - Issues, projects, labels, teams, users, cycles, comments, documents, milestones, roadmaps, initiatives, webhooks, custom views
- OAuth 2.0 - Browser-based PKCE auth with auto-refresh, plus API key support
- Issue Workflow - Start, stop, close, archive, assign, move, transfer, comment, link
- Git Integration - Checkout branches for issues, create PRs linked to issues
- jj (Jujutsu) Support - First-class support for Jujutsu VCS alongside Git
- Interactive Mode - TUI for browsing and managing issues with assignee, status, label selection
- Multiple Workspaces - Switch between Linear workspaces seamlessly
- Profiles & Auth - Named profiles with
auth login/logout/status/oauth/revoke - Secure Storage - Optional OS keyring support (Keychain, Credential Manager, Secret Service)
- Bulk Operations - Perform actions on multiple issues at once
- JSON/NDJSON Output - Machine-readable output for scripting and agents
- Smart Sorting - Numeric and date-aware sorting (10 > 9, not "10" < "9")
- Pagination & Filters -
--limit,--page-size,--all,--filter,--since,--mine,--label - Grouping -
--group-byfor kanban-style output by state, priority, assignee, or project - Webhooks - Full CRUD + real-time listener with HMAC-SHA256 signature verification
- Raw GraphQL -
api queryandapi mutatefor direct API access - Activity History -
--historyand--commentsflags on issue details - Markdown Stripping - Clean terminal display of issue descriptions
- Auto-Paging - Output auto-pages through
lesson Unix terminals - Reliable - HTTP timeouts, jittered retries, atomic cache writes
- Diagnostics -
doctorcommand for config and connectivity checks - Fast - Native Rust binary, no runtime dependencies
Installation
# From crates.io
# With secure storage (OS keyring support)
# From source
&&
Pre-built binaries available at GitHub Releases.
Agent Skills
linear-cli includes Agent Skills for AI coding assistants (Claude Code, Cursor, Codex, etc.).
# Install all skills for your AI agent
# Or install specific skills
27 skills covering all CLI features:
| Category | Skills |
|---|---|
| Issues | linear-list, linear-create, linear-update, linear-workflow |
| Git | linear-git, linear-pr |
| Planning | linear-projects, linear-roadmaps, linear-initiatives, linear-cycles |
| Organization | linear-teams, linear-labels, linear-relations, linear-templates |
| Operations | linear-bulk, linear-export, linear-triage, linear-favorites |
| Tracking | linear-metrics, linear-history, linear-time, linear-watch |
| Other | linear-search, linear-notifications, linear-documents, linear-uploads, linear-config |
Skills are 10-50x more token-efficient than MCP tools.
Quick Start
# 1. Configure your API key (get one at https://linear.app/settings/api)
# 2. List your issues
# 3. Start working on an issue (assigns, sets In Progress, creates branch)
# 4. Create a PR when done
Commands
| Command | Alias | Description |
|---|---|---|
issues |
i |
Manage issues (list, create, update, start, stop, close, assign, move, transfer, comment, link, archive) |
projects |
p |
Manage projects (list, get, create, update, delete, members, add-labels) |
git |
g |
Git branch operations and PR creation |
search |
s |
Search issues and projects |
comments |
cm |
Manage issue comments |
uploads |
up |
Fetch uploads/attachments |
bulk |
b |
Bulk operations on issues |
labels |
l |
Manage labels (list, create, update, delete) |
teams |
t |
List, view, and list team members |
users |
u |
List users, view profile, get user details |
cycles |
c |
Manage sprint cycles (list, get, current, create, update) |
milestones |
ms |
Manage project milestones (list, get, create, update, delete) |
relations |
rel |
Manage issue relations (blocks, duplicates, etc.) |
export |
ex |
Export issues to JSON/CSV/Markdown |
favorites |
fav |
Manage favorites |
history |
hist |
View issue history and audit logs |
initiatives |
init |
Manage initiatives (list, get, create, update) |
roadmaps |
rm |
Manage roadmaps (list, get, create, update) |
metrics |
met |
View workspace metrics |
notifications |
n |
Manage notifications (list, read, archive, count) |
documents |
doc |
Manage documents (list, get, create, update, delete) |
views |
v |
Manage custom views (list, get, create, update, delete, apply) |
webhooks |
wh |
Manage webhooks (list, get, create, update, delete, rotate-secret, listen) |
watch |
w |
Watch issues/projects/teams for changes (polling) |
triage |
tr |
Triage responsibility management |
sync |
sy |
Sync local folders with Linear |
interactive |
ui |
Interactive TUI mode |
api |
- | Raw GraphQL queries and mutations |
whoami |
- | Show current authenticated user |
auth |
- | Authentication (login, logout, oauth, revoke, status) |
config |
- | CLI configuration |
doctor |
- | Diagnose config and connectivity |
cache |
ca |
Cache inspection and clearing |
time |
tm |
Time tracking |
templates |
tpl |
Manage issue templates |
context |
ctx |
Detect current Linear issue from git branch |
common |
tasks |
Common tasks and examples |
agent |
- | Agent-focused capabilities and examples |
Run linear-cli <command> --help for detailed usage.
Common Examples
# Issues
# Git workflow
# OAuth authentication
# Search
# Teams & Users
# Projects
# Cycles
# Milestones
# Labels
# Webhooks
# Raw GraphQL
# Export
# JSON output (great for AI agents)
# Pagination + filters
# Template output
# Profiles
# Disable color for logs/CI
See docs/examples.md for comprehensive examples.
Configuration
# Set API key (stored in config file)
# Or use auth login
# OAuth 2.0 (browser-based, auto-refreshing tokens)
# Store in OS keyring (requires --features secure-storage)
# Migrate existing keys to keyring
# Check auth status (shows auth type, token expiry)
# Revoke OAuth tokens
# Or use environment variable
# Override profile per invocation
Auth priority: LINEAR_API_KEY env var > OS keyring > OAuth tokens > config file API key.
Config stored at ~/.config/linear-cli/config.toml (Linux/macOS) or %APPDATA%\linear-cli\config.toml (Windows).
Cache is scoped per profile at ~/.config/linear-cli/cache/{profile}/.
Documentation
- Agent Skills - 27 skills for AI agents
- AI Agent Integration - Setup for Claude Code, Cursor, OpenAI Codex
- Usage Examples - Detailed command examples
- Workflows - Common workflow patterns
- JSON Samples - Example JSON output shapes
- JSON Schema - Schema version reference
- Shell Completions - Tab completion setup
Comparison with Other CLIs
| Feature | @linear/cli | linear-go | linear-cli |
|---|---|---|---|
| Last updated | 2021 | 2023 | 2026 |
| Agent Skills | No | No | 27 skills |
| OAuth 2.0 (PKCE) | No | No | Yes |
| Issue workflow actions | No | No | assign, move, transfer, close, archive, comment |
| Activity history | No | No | --history, --comments |
| Webhooks + listener | No | No | CRUD + HMAC-SHA256 listener |
| Custom views | No | No | Full CRUD + apply |
| Milestones | No | No | Full CRUD |
| Raw GraphQL API | No | No | Yes |
| Auto-paging output | No | No | Yes |
| Git PR creation | No | No | Yes |
| jj (Jujutsu) support | No | No | Yes |
| Interactive TUI | No | No | Yes |
| Bulk operations | No | No | Yes |
| Multiple workspaces | No | No | Yes |
| JSON output | No | Yes | Yes |
| 40+ commands | No | No | Yes |
Contributing
Contributions welcome! Please open an issue or submit a pull request.