Linear CLI
The linear-cli skill wraps the linear CLI
(@schpet/linear-cli) — a git/jj-aware client for managing your
Linear workspace from the terminal. It supports issues,
teams, users, projects, milestones, documents, comments, and attachments, plus
GitHub-PR creation tied to an issue.
Installation
Section titled “Installation”The skill ships in the jreb-agents
git package (since the 2026-09-18 consolidation — it previously had its own
jreb-pi-skills repo, now archived):
pi install git:github.com/JohannesBertens/jreb-agentsThe linear command must be installed and authenticated:
linear --version # is it on PATH?linear auth login # authenticate with a Linear API keylinear config # configure this repo (run once, in the repo)If not installed globally, run it via npx — the skill’s scripts fall back to this automatically:
npx --yes @schpet/linear-cli --versionCreate an API key at linear.app/settings/account/security.
What you can do
Section titled “What you can do”Issues
Section titled “Issues”linear issue mine— unstarted issues assigned to youlinear issue list— table view (-s/--state,--sort,--project,--milestone)linear issue query --search "text"/--team ENG/--all-teams/--json/--limitlinear issue start [ABC-123]— create/switch to an issue branch, mark startedlinear issue view [id]— details as markdown (-wweb,-aLinear.app)linear issue id | title | url— print just the id / title / URLlinear issue pr— create a GitHub PR from the issue (usesgh)linear issue create | update | deletelinear issue comment list | add | updatelinear issue attach <id> <file>— attach a file (private by default;--publicfor images)linear issue commits— show commits for an issue (jj only)
The current issue is derived from the git branch name (e.g.
eng-123-...) or, with jj, a Linear-issue commit trailer.
Teams & users
Section titled “Teams & users”linear team list | id | members | create | autolinkslinear team members --all --jsonlinear user list [--all] [--json]
Projects & milestones
Section titled “Projects & milestones”linear project list | view | create --name "API v2" --team ENGlinear milestone list --project <id> | view | create | update | delete(alias:m)
Documents
Section titled “Documents”linear document list | view | create | update | delete(alias:docs)linear document create --title "Spec" --content-file ./spec.mdlinear document view <slug> --raw— pipe raw markdown
Use linear --help to discover every command and flag.
Key scripts
Section titled “Key scripts”The skill ships a script for listing all open issues across all teams:
script="$HOME/.pi/agent/skills/linear-cli/scripts/list-all-issues.sh"bash "$script" # all open issues, all teams (table)bash "$script" --json # all issues as JSON (for agents)bash "$script" --project "My Pi" # filter to a project (configured team)bash "$script" --tsv # tab-separated: identifier, title, team, state--json and --tsv are mutually exclusive; --tsv needs python3.
Rate limits
Section titled “Rate limits”The Linear API has strict rate limits. Always insert sleep 1 between
consecutive linear calls — the skill’s scripts do this automatically.