Skip to content

linear

Query and manage Linear issues, projects, cycles, teams, and labels.

The linear command supports direct scripting operations and clanker linear ask for natural-language project and triage questions.

Usage

bash
clanker linear [command]

Alias: lin

Authentication

yaml
linear:
  api_key: ""
  workspace_id: ""
  default_team: ""

Environment variables:

VariableDescription
LINEAR_API_KEYLinear Personal API Key
LINEAR_WORKSPACE_IDOptional workspace UUID
LINEAR_TEAMOptional default team key, for example ENG

Linear expects the raw API key in the authorization header. Do not prefix it with Bearer.

Commands

CommandDescription
askAsk natural-language questions about your Linear workspace
listList issues, projects, cycles, teams, labels, users, or workspaces
getGet a single resource by ID or issue identifier
createCreate issues, projects, and cycles
updateUpdate issues and projects
resolveMove issues to the first completed-type state for their team
assignAssign an issue to a user
commentPost a comment on an issue
labelManage issue labels

Examples

bash
clanker linear list issues --team ENG --state started
clanker linear list cycles --team ENG --active
clanker linear get issue ENG-42
clanker linear create issue --team-id <team-uuid> --title "Fix prod alert"
clanker linear comment ENG-42 "Investigating with Clanker"

Natural-language work triage:

bash
clanker linear ask "what is on my plate this cycle?"
clanker linear ask "what projects are blocked?"
clanker linear ask "are there unresolved bugs in auth-rewrite?" --team ENG

Infrastructure Labels

For Clanker Cloud resource drawers and infra-linked work, use labels in this shape:

text
infra:<type>:<id>

Example:

bash
clanker linear label create infra:lambda:arn:aws:lambda:us-east-1:123:function:api <team-id>

The app can then find work connected to a cloud resource without scraping issue text.

MCP

The MCP server exposes Linear tools for ask, issue/project/cycle/team listing, issue/project create/update, comments, and label search. See mcp.