linear-api

Execute raw GraphQL queries and mutations against the Linear API. Use for advanced operations not covered by other commands.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "linear-api" with this command: npx skills add finesssee/linear-cli/finesssee-linear-cli-linear-api

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

FlagPurpose
-v key=valGraphQL variables
--output jsonJSON output
--compactCompact JSON

Exit Codes

0=Success, 1=Error, 2=Not found, 3=Auth error

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

linear-list

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

linear-create

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

linear-update

No summary provided by upstream source.

Repository SourceNeeds Review