linear-api
Installation
SKILL.md
Raw GraphQL API
# Run a query
linear-cli api query '{ viewer { id name email } }'
# Query with variables
linear-cli api query -v teamId=abc '{ team(id: $teamId) { name } }'
# Run a mutation
linear-cli api mutate -v title="Bug" '
mutation($title: String!) {
issueCreate(input: { title: $title, teamId: "..." }) {
issue { id identifier }
}
}
'
# Pipe query from file
cat query.graphql | linear-cli api query -
Flags
| Flag | Purpose |
|---|---|
-v key=val |
GraphQL variables |
--output json |
JSON output |
--compact |
Compact JSON |
Exit Codes
0=Success, 1=Error, 2=Not found, 3=Auth error
Related skills
More from finesssee/linear-cli
linear-create
Create Linear issues. Use when creating bugs, tasks, or feature requests.
100linear-list
List and get Linear issues. Use when viewing issues, checking status, or fetching issue details.
98linear-search
Search Linear issues and projects. Use when finding issues, looking up bugs, or searching the backlog.
95linear-update
Update Linear issues. Use when changing status, priority, assignee, or labels.
95linear-workflow
Start/stop work on Linear issues. Use when beginning work, creating branches, or getting current issue context.
91linear-projects
Manage Linear projects - full CRUD with labels, members, archive. Use when managing projects.
89