@rolaca11/linear-cli
v1.1.0
Published
CLI tool for interfacing with the Linear API
Maintainers
Readme
Linear CLI
A command-line interface for managing issues, projects, cycles, and teams in Linear.
Installation
From npm (recommended):
npm install -g @rolaca11/linear-cliFrom source:
git clone https://github.com/rolaca11/linear-cli.git
cd linear-cli
npm install
npm run build
npm linkRequires Node.js 18 or later.
Authentication
Using Personal API Key (Recommended)
Create an API key at https://linear.app/settings/api, then:
linear auth login
# Or non-interactively:
linear auth login --key <your-api-key>Using OAuth
OAuth requires registering an OAuth application in Linear (admin permissions required):
linear auth login --oauthCheck Authentication Status
linear auth statusUsage
Issues
# List issues
linear issues list --team TECH
linear issues list --assignee me --state "In Progress"
# View issue details
linear issues view TECH-123
# Create an issue
linear issues create --title "Fix bug" --team TECH --priority 2
# Update an issue
linear issues update TECH-123 --state "Done"
# Add a comment
linear issues comment TECH-123 --body "This is fixed"
# Archive an issue
linear issues delete TECH-123Projects
# List projects
linear projects list
# View project details
linear projects view "Project Name"
# Create a project
linear projects create --name "Q1 Launch" --teams TECH,DESIGN
# Update a project
linear projects update "Project Name" --state completedTeams
linear teams list
linear teams view TECHCycles
linear cycles list --team TECH
linear cycles current --team TECH
linear cycles create --team TECH --starts-at 2026-02-02 --ends-at 2026-02-16Labels
linear labels list
linear labels create --name "urgent" --color "#ff0000" --team TECHUsers
linear users list
linear users me
linear users view "John Doe"Workflow States
linear states list --team TECHGlobal Options
All commands support these options:
--json- Output as JSON (useful for scripting)--no-color- Disable colored output--help- Show help for a command
Shell Completion
Enable bash completion:
linear --setup
source ~/.bashrcTo disable completion:
linear --cleanup
source ~/.bashrcCompletions are auto-generated from the CLI command structure using @naerth/commander-autocomplete.
Environment Variables
LINEAR_API_KEY- Personal API key (overrides stored credentials)LINEAR_ACCESS_TOKEN- OAuth access token (overrides stored credentials)
Configuration
Credentials are stored in ~/.config/linear-cli/config.json with secure file permissions (600).
AI Agent Skill
This CLI includes an agent skill that teaches AI coding assistants (Claude Code, Cursor, OpenCode, etc.) how to use the Linear CLI. It uses the Vercel Skills ecosystem.
Install the Skill
# Using the linear CLI (wrapper for npx skills)
linear skill install
# Or directly with npx skills
npx skills add rolaca11/linear-cli
# Install for specific agents
linear skill install -a claude-code -a cursor
# Install globally (user directory)
linear skill install --globalManage Skills
# List installed skills
linear skill list
# Update skills
linear skill update
# Uninstall
linear skill uninstallOnce installed, AI agents will automatically know how to use the Linear CLI when you mention Linear issues, projects, or related tasks.
License
MIT
