linear-cli-0.2.1 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 - Bulk Operations - Perform actions on multiple issues at once
- JSON/NDJSON Output - Machine-readable output for scripting and agents
- Pagination & Filters -
--limit,--page-size,--all,--filter - Diagnostics -
doctorcommand for config and connectivity checks - Fast - Native Rust binary, no runtime dependencies
Installation
# From crates.io
# 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 |
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
# 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
# Or use auth login
# Or use environment variable
# Override profile per invocation
Config stored at ~/.config/linear-cli/config.toml (Linux/macOS) or %APPDATA%\linear-cli\config.toml (Windows).
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 | 2025 |
| 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.