linear
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseLinear CLI
Linear CLI
Standalone CLI for the Linear issue tracker. Zero dependencies beyond Python 3.
一款独立的Linear问题追踪器CLI工具,除Python 3外无其他依赖。
Setup
配置
On first use, authenticate via browser OAuth (no API keys needed):
bash
linear authOpens the browser for Linear authorization. Uses MCP Dynamic Client Registration + PKCE — credentials are stored at with permissions.
~/.config/linear/0600The CLI script is bundled at within this skill directory. Execute it directly or reference its absolute path.
scripts/linear首次使用时,通过浏览器OAuth认证(无需API密钥):
bash
linear auth将打开浏览器进行Linear授权。采用MCP动态客户端注册+PKCE机制——凭证存储在目录下,权限为。
~/.config/linear/0600CLI脚本位于本技能目录的路径下。可直接执行或引用其绝对路径。
scripts/linearCommands
命令
Create an issue
创建任务
bash
linear create "Issue title" \
--team GLE \
--state Todo \
--assignee me \
--due today \
--priority high \
--description "Markdown description" \
--label "Bug"Priority: , , , , (or 0-4).
urgenthighmediumlownoneDue date: , , .
YYYY-MM-DDtodaytomorrowbash
linear create "Issue title" \
--team GLE \
--state Todo \
--assignee me \
--due today \
--priority high \
--description "Markdown description" \
--label "Bug"优先级选项:、、、、(或0-4)。
urgenthighmediumlownone截止日期格式:、、。
YYYY-MM-DDtodaytomorrowList issues
列出任务
bash
linear list --mine --status "In Progress"
linear list --team GLE --status Todo --limit 10
linear list --priority high --jsonbash
linear list --mine --status "In Progress"
linear list --team GLE --status Todo --limit 10
linear list --priority high --jsonShow issue details
查看任务详情
bash
linear show GLE-123
linear show GLE-123 --jsonbash
linear show GLE-123
linear show GLE-123 --jsonUpdate an issue
更新任务
bash
linear update GLE-123 --state "In Progress"
linear update GLE-123 --priority urgent --due 2026-05-01
linear update GLE-123 --assignee me --title "New title"bash
linear update GLE-123 --state "In Progress"
linear update GLE-123 --priority urgent --due 2026-05-01
linear update GLE-123 --assignee me --title "New title"Add a comment
添加评论
bash
linear comment GLE-123 "This is done, merging now"bash
linear comment GLE-123 "This is done, merging now"Workspace info
工作区信息
bash
linear teams
linear me
linear statuses --team GLE
linear labels --team GLEbash
linear teams
linear me
linear statuses --team GLE
linear labels --team GLEConventions
约定
- Use team key (e.g. ), not full team name, in
GLEflags.--team - Default assignee: unless specified otherwise.
me - Default state for new issues: .
Todo - Use for same-day tasks.
--due today - The CLI outputs human-readable text by default; pass for machine-readable output.
--json - When creating issues from conversation context, write a concise title and structured markdown description.
- 在参数中使用团队标识(例如
--team),而非完整团队名称。GLE - 默认经办人:未指定时为(当前用户)。
me - 新建任务的默认状态:。
Todo - 当日任务使用参数。
--due today - CLI默认输出易读的文本格式;添加参数可获取机器可读的输出。
--json - 根据对话上下文创建任务时,需撰写简洁的标题和结构化的Markdown描述。