linear-cli-0.2.8 is not a library.
linear-cli
A fast, powerful command-line interface for Linear built with Rust.
Features
- Full API Coverage - Projects, issues, labels, teams, users, cycles, comments, documents
- 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
- Multiple Workspaces - Switch between Linear workspaces seamlessly
- Profiles & Auth - Named profiles with
auth login/logout/status - 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 - 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.
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 |
projects |
p |
Manage projects |
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 |
teams |
t |
List and view teams |
cycles |
c |
Manage sprint cycles |
relations |
rel |
Manage issue relations (blocks, duplicates, etc.) |
export |
ex |
Export issues to JSON/CSV |
favorites |
fav |
Manage favorites |
history |
hist |
View issue history and audit logs |
initiatives |
init |
Manage initiatives |
metrics |
met |
View workspace metrics |
roadmaps |
rm |
Manage roadmaps |
triage |
tr |
Triage responsibility management |
watch |
w |
Watch issues for changes |
sync |
sy |
Sync local folders with Linear |
interactive |
ui |
Interactive TUI mode |
config |
- | CLI configuration |
common |
tasks |
Common tasks and examples |
agent |
- | Agent-focused capabilities and examples |
auth |
- | API key management and status |
doctor |
- | Diagnose config and connectivity |
cache |
ca |
Cache inspection and clearing |
Run linear-cli <command> --help for detailed usage.
Common Examples
# Issues
# Git workflow
# Search
# Export
# Relations
# 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
# Store in OS keyring (requires --features secure-storage)
# Migrate existing keys to keyring
# Check auth status
# Or use environment variable
# Override profile per invocation
API key priority: LINEAR_API_KEY env var > OS keyring > config file.
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
- Usage Examples - Detailed command examples
- Workflows - Common workflow patterns
- AI Agent Integration - Setup for Claude Code, Cursor, OpenAI Codex
- Agent Skills - Pre-built skills for Claude Code and OpenAI Codex
- 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 |
| 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 |
Contributing
Contributions welcome! Please open an issue or submit a pull request.