鱼皮AI导航
鱼皮AI导航
  • 主页
  • 社区
  • AI工具
  • AI知识库
  • AI提示词
  • MCP
  • Skills
  • AI学习资源
  • AI资讯
  • GitHub开源
登录/注册

linear-cli

通过命令行实现对 Linear 工作项的全生命周期管理,支持议题、项目、计划与标签的创建、更新及批量操作,适用于自动化工作流集成与跨系统任务同步,可结合脚本执行复杂查询和数据维护。

效率工具文档处理商业与营销
访问 GitHub
文档Skills.MD
name
linear-cli
description
Manage Linear issues from the command line using the linear cli. This skill allows automating linear management.
allowed-tools
Bash(linear:*), Bash(curl:*)

Linear CLI

A CLI to manage Linear issues from the command line, with git and jj integration.

Prerequisites

The linear command must be available on PATH. To check:

▼
bash
复制代码
linear --version

If not installed, follow the instructions at:
https://github.com/schpet/linear-cli?tab=readme-ov-file#install

Available Commands

▼
text
复制代码
linear issue # Manage issues (list, view, create, start, update, delete, comment) linear team # Manage teams (list, members, create, delete, autolinks) linear project # Manage projects (list, view, create) linear initiative # Manage initiatives (list, view, create, archive, unarchive, update, delete, add-project, remove-project) linear label # Manage labels (list, create, delete) linear milestone # Manage project milestones linear config # Configure the CLI for the current repo linear auth # Manage authentication (token, whoami) linear schema # Print the GraphQL schema (SDL or JSON)

Initiative Management

▼
bash
复制代码
# List initiatives (default: active only) linear initiative list linear initiative list --all-statuses linear initiative list --status planned # View initiative details linear initiative view <id-or-slug> # Create initiative linear initiative create --name "Q1 Goals" --status active linear initiative create -i # Interactive mode # Archive/unarchive linear initiative archive <id> linear initiative unarchive <id> # Link projects to initiatives linear initiative add-project <initiative> <project> linear initiative remove-project <initiative> <project>

Label Management

▼
bash
复制代码
# List labels (shows ID, name, color, team) linear label list linear label list --team DEV linear label list --workspace # Workspace-level only # Create label linear label create --name "Bug" --color "#EB5757" linear label create --name "Feature" --team DEV # Delete label (by ID or name) linear label delete <id> linear label delete "Bug" --team DEV

Project Management

▼
bash
复制代码
# List projects linear project list # View project linear project view <id> # Create project linear project create --name "New Feature" --team DEV linear project create --name "Q1 Work" --team DEV --initiative "Q1 Goals" linear project create -i # Interactive mode

Bulk Operations

▼
bash
复制代码
# Delete multiple issues linear issue delete --bulk DEV-123 DEV-124 DEV-125 # Delete from file (one ID per line) linear issue delete --bulk-file issues.txt # Delete from stdin echo -e "DEV-123\nDEV-124" | linear issue delete --bulk-stdin # Archive multiple initiatives linear initiative archive --bulk <id1> <id2>

Adding Labels to Issues

▼
bash
复制代码
# Add label to issue linear issue update DEV-123 --label "Bug" # Add multiple labels linear issue update DEV-123 --label "Bug" --label "High Priority"

Discovering Options

To see available subcommands and flags, run --help on any command:

▼
bash
复制代码
linear --help linear issue --help linear issue list --help linear issue create --help

Each command has detailed help output describing all available flags and options.

Using the Linear GraphQL API Directly

Prefer the CLI for all supported operations. Direct API calls via curl are slower and should only be used as a fallback for advanced queries not covered by the CLI. For complex queries involving multiple calls, write and execute a script.

To make direct API calls, use linear schema and linear auth token:

1. Check the schema for available types and fields

Write the schema to a tempfile, then search it:

▼
bash
复制代码
# Write schema to a tempfile (cross-platform) linear schema -o "${TMPDIR:-/tmp}/linear-schema.graphql" # Search for specific types or fields grep -i "cycle" "${TMPDIR:-/tmp}/linear-schema.graphql" grep -A 30 "^type Issue " "${TMPDIR:-/tmp}/linear-schema.graphql" # View filter options grep -A 50 "^input IssueFilter" "${TMPDIR:-/tmp}/linear-schema.graphql"

2. Get the auth token

▼
bash
复制代码
linear auth token

3. Make a curl request

▼
bash
复制代码
curl -s -X POST https://api.linear.app/graphql \ -H "Content-Type: application/json" \ -H "Authorization: $(linear auth token)" \ -d '{"query": "{ issues(filter: { team: { key: { eq: \"CLI\" } } }, first: 5) { nodes { identifier title state { name } } } }"}'

Example queries

▼
bash
复制代码
# Get issues assigned to current user curl -s -X POST https://api.linear.app/graphql \ -H "Content-Type: application/json" \ -H "Authorization: $(linear auth token)" \ -d '{"query": "{ viewer { assignedIssues(first: 10) { nodes { identifier title state { name } } } } }"}'
效率工具
文档处理
商业与营销

快捷安装

复制到终端去安装 Skill

npxskillsaddschpet/linear-cli--skill"linear-cli"
站长:程序员鱼皮 老鱼简历 商务合作 增值电信业务经营许可证
2026 鱼皮AI导航 | 沪ICP备19026706号-6
站长:程序员鱼皮 老鱼简历 商务合作 增值电信业务经营许可证
2026 鱼皮AI导航 | 沪ICP备19026706号-6
🔥热门工具
朱雀AI检测朱雀AI检测
朱雀AI检测助手朱雀AI检测助手
LovartLovart
老鱼简历老鱼简历
WritePass官网WritePass官网
面多多面多多
CursorCursor
星月写作星月写作
朱雀AI检测助手朱雀AI检测助手
零感AI零感AI
Skills 推荐
webapp-testing
提供本地 Web 应用的端到端测试能力,支持页面导航、元素交互、表单填写、动态等待、断言验证、截图捕获、浏览器日志收集及网络请求拦截,适用于前端功能验证与 UI 行为调试。
definition-of-done-generator
自动生成项目完成标准的规范定义与配置文件,提供符合企业级工作流要求的最佳实践指导,输出可直接投入生产环境的代码和验证结果,适用于需要标准化流程审批、合规审查及跨系统集成的复杂项目管理场景。
implement
实现 Linus Dashboard 的功能开发与集成,基于 TypeScript 和 Python 构建前后端组件,遵循严格的代码规范与架构模式,完成视图、卡片、服务及传感器等模块的创建与验证,确保高质量交付并兼容 Home Assistant 生态。
skill-planner
将研究结论转化为结构化、分阶段的落地执行方案,涵盖范围界定、任务拆解、风险预判与验证标准,确保每阶段目标明确、可独立验证,并自动生成符合规范格式的实施计划文档。
cloud-scheduler-job-creator
自动处理 Google Cloud Platform 中的云调度任务创建,提供符合最佳实践的配置方案与生产级代码生成,支持计算、存储、大数据及机器学习服务的集成部署。