Linear Issue Management
Lightweight Node CLI to drive Linear's issue tracker. Use whenever the user mentions Linear or asks to work with issues, teams, projects, or users.
When to use
- "create a Linear issue for X", "comment on ENG-123", "what's the status of ENG-45"
- "list my in-progress issues", "assign this ticket to Sam", "bump priority to urgent"
- "show open issues for the backend team", "delete that ticket"
Setup
- Requires
node. Dependencies (@linear/sdk,dotenv) auto-install on first run. - Needs a Linear personal API key in env:
LINEAR_API_KEY. Get one at https://linear.app/settings/api (Settings > API > Personal API keys > Create key). - The CLI entrypoint is the
linearscript in the skill dir; the implementation lives atscripts/linear-cli.jsin the source repo (https://github.com/Valian/linear-cli-skill/tree/main/linear). Run it as./linearfrom the skill directory.
Command pattern
./linear <resource> <action> [arguments] [options]
Resources: issue, user, team, project. Add --json to any command for
machine-readable output; --help on any command for details.
Lookups (get the UUIDs you need)
./linear user list # -> #<user-id> <name> <email>
./linear team list # -> #<team-id> <name> <key>
./linear project list # -> #<project-id> <name> <state>
User/team/project IDs are UUIDs; grab them from these list commands before creating or filtering.
Issues
List (filterable):
./linear issue list [--team <id>] [--assignee <id>] [--status <name>] [--limit <n>]
# default limit 50; returns: #<identifier> <title> <status> <assignee>
./linear issue list --assignee def456 --status "In Progress"
View full detail (title, status, assignee, team, priority, labels, dates, description, comments):
./linear issue view ENG-123 # or a UUID
Create (--team required):
./linear issue create "Fix login bug" --team abc123 --priority 2 \
[--description <text>] [--assignee <id>] [--status <name>]
Comment (multi-word text auto-combined, no quotes needed):
./linear issue comment ENG-123 needs another reviewer before merge
Update (one or many fields at once):
./linear issue update ENG-123 --status "In Progress" --assignee abc123 \
[--priority <n>] [--title <text>] [--description <text>]
Delete (soft delete -> trash, recoverable):
./linear issue delete ENG-123
Priority values
0=None, 1=Urgent, 2=High, 3=Medium, 4=Low.
Gotchas
- Issue identifiers are case-insensitive (
ENG-123==eng-123). - Status names are case-SENSITIVE:
"In Progress"!="in progress". - User/team/project IDs are UUIDs — always fetch via the
listcommands, never guess. - Issue key format is
<TEAM_KEY>-<NUMBER>(e.g.ENG-123). - API-key errors are self-explanatory; fix
LINEAR_API_KEYand re-run.