Skip to content

Linear CLI

The linear-cli skill wraps the Linear CLI for managing your Linear workspace entirely from the terminal. It enables full CRUD on issues, projects, teams, cycles, milestones, initiatives, documents, and labels — plus raw GraphQL access for unsupported queries.

The skill is installed under .pi/agent/skills/linear-cli/. The linear command must be on your PATH:

Terminal window
linear --version

If not installed globally, run it via npx:

Terminal window
npx @schpet/linear-cli --version
  • Create, update, view, delete, and query issues
  • List your issues, start/stop work, add comments
  • Attach links, manage relations, track agent sessions
  • List and view all teams and projects
  • Create, update, and delete projects
  • View team members and autolinks
  • Manage cycles, milestones, and initiatives
  • Create status updates (timeline posts)
  • Add/remove projects from initiatives
  • Raw GraphQL API access with interactive query builder
  • Schema introspection for discovering types and fields
  • Config file generation (linear config)

The skill ships a handy script for listing all issues across all projects:

Terminal window
script="$HOME/.pi/agent/skills/linear-cli/scripts/list-all-issues.sh"
bash "$script" --json # all open issues, JSON output
bash "$script" --project "My Pi" --tsv # single project, TSV

The Linear API has strict rate limits. Always insert sleep 1 between consecutive linear calls.