A command-line interface for managing issues, projects, cycles, and teams in Linear.
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.
Create an API key at https://linear.app/settings/api, then:
linear auth login
# Or non-interactively:
linear auth login --key <your-api-key>OAuth requires registering an OAuth application in Linear (admin permissions required):
linear auth login --oauthlinear auth status# 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-123# 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 completedlinear teams list
linear teams view TECHlinear cycles list --team TECH
linear cycles current --team TECH
linear cycles create --team TECH --starts-at 2026-02-02 --ends-at 2026-02-16linear labels list
linear labels create --name "urgent" --color "#ff0000" --team TECHlinear users list
linear users me
linear users view "John Doe"linear states list --team TECHAll commands support these options:
--json- Output as JSON (useful for scripting)--no-color- Disable colored output--help- Show help for a command
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.
LINEAR_API_KEY- Personal API key (overrides stored credentials)LINEAR_ACCESS_TOKEN- OAuth access token (overrides stored credentials)
Credentials are stored in ~/.config/linear-cli/config.json with secure file permissions (600).
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.
# 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 --global# 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.
MIT