Repository navigation
Release Notes
Highlights
welcome to linear cli four-point-oh. some fun things in here are:
- issue ids and other links now have OSC8 links - defaults to urls but can be customized
- content with images now renders in your terminal via kitty graphics protocol
- skills are now provided by the executable - run
linear skill setuporlinear skill setup --forceto get it - changed up the git/jj integrations to be a bit less magic, so e.g.
linear issue git start ENG-123instead oflinear issue start ENG-123- similarly there's now@gitand@jjreferences to look up issues by branches or commits - experimental templating layer using minijinja (this is gated behind an experimental flag), basically a crude thought experiment asking "what if this had jj's sweet template system"
and a bunch of other stuff noted below! if i broke anything, please let me know in the issues.
Changed
-
Project names link to Linear in
issue view,project list, andproject viewon styled terminals. Pipes and unstyled terminals show the name. -
issue viewnow keeps comment IDs plain on unstyled terminals, including whenNO_COLORis set. -
Issue metadata captions such as
State:andArchived:are bold on styled terminals and plain text in pipes. Custom issue views can combinefield_label,issue_heading, andfooteron the same text or hyperlink. -
Deleted (trashed) and archived issues are marked in issue views, lists and references; issue JSON includes
trashedandarchivedAt. Comment lists and commit descriptions warn about inactive issues, rejected writes explain confirmed deletion, and VCS starts and pull request creation refuse known deleted issues before making changes. -
Retired
vcs/LINEAR_VCSsettings are ignored quietly, including values older versions rejected. Retiredpr_template/LINEAR_PR_TEMPLATEvalues are also ignored without validation, with migration guidance only during pull request creation. Both settings are safe to leave in place. -
issue viewshows the description passage an inline comment is anchored to as a block quote above the comment, ascomment listalready did.
Breaking
-
issue listand itsissue lalias are removed. Runlinear issue minefor your own issues orlinear issue queryfor filtering and search. The old commands fail with exit 2 and a hint naming both replacements, including when passed old flags or--help. -
issue startonly changes the issue's status: it moves the issue to its team's first started status, as Linear's "Move issue to started status" does, and no longer creates a git branch or a jj change. An issue that is already started, completed, canceled or a duplicate is left as it is, where 3.x moved it back to the first started status. To keep the old behavior, runlinear issue git start(git) orlinear issue jj start(jj), which prepare the branch or change and then start the issue.--branchand--from-refmoved toissue git start, and passing them toissue startis an error that says so3.x 4.0 linear issue start ENG-123(git)linear issue git start ENG-123linear issue start ENG-123 --branch topic --from-ref mainlinear issue git start ENG-123 --branch topic --from-ref mainlinear issue start ENG-123(withvcs = "jj")linear issue jj start ENG-123linear issue create -t "…" --startlinear issue create -t "…" --start, thenlinear issue git start <ID>orlinear issue jj start <ID> -
issue create --startand the last question ofissue create -ino longer create a branch or a jj change. They create the issue in the team's first started status, assigned to you, in one request.--startcannot be combined with--state, and the wizard's question now readsStart this issue now (first started status, assigned to you)? -
issue pull-requestand its aliasissue prmoved toissue gh pull-requestandissue gh pr. It fetches the issues, builds the title and body and runsgh pr create; linear itself never creates, moves or pushes a branch or bookmark. Everything after--is passed togh pr createunchanged, after linear's--titleand--body, so a flag there wins:--base,--draft,--weband--headmoved there, and giving one before--is a usage error that says where it goes. Without-- --head, gh opens the pull request from the current git branch and in a terminal may offer to push it (or fork the repository) first;-- --headnames a branch that is already pushed and turns that off. The old spellings fail with an error that names the new command3.x 4.0 linear issue pr ENG-123linear issue gh pr ENG-123linear issue pr ENG-123 --draft --base mainlinear issue gh pr ENG-123 -- --draft --base mainlinear issue pr ENG-123 --head topic --weblinear issue gh pr ENG-123 -- --head topic --weblinear issue pr ENG-123(withvcs = "jj")`branch=$(linear issue view ENG-123 --json -
issue gh pull-request --titleis used exactly as given, for one issue as for several: 3.x put the issue ID in front of it (ENG-123 <title>). A blank--titleis a usage error, where 3.x used the issue title. The body of a pull request for one issue now has theFixes ENG-123clause between the description and the issue URL, as for several issues;--referenceswritesReferences ENG-123instead, and changes only that clause, never a title or body you supply3.x 4.0 linear issue pr ENG-123 --title "Fix login"(titleENG-123 Fix login)linear issue gh pr ENG-123 --title "ENG-123 Fix login"linear issue pr ENG-123 --title ""linear issue gh pr ENG-123 -
issue gh pull-requestno longer reads the 3.x starting-body template file. New MiniJinja preferences configure generated layouts separately.--template(-T) and--no-templateare removed, and so is thepr_templateoption (LINEAR_PR_TEMPLATE), which 3.x read as every pull request's starting body (a path relative to the config file that set it), with the issue URL appended. Pass the file with--body-file(-F) instead: the shipped body layout is its text, then theFixesclause and the issue URLs; add-- --editorto fill it in in gh before the pull request is created.--templateand--no-templatefail with exit 2 and say so. Existingpr_templatevalues are ignored without validation. Only pull request creation andlinear config checkreport them, with--body-fileguidance; the setting is safe to keep3.x 4.0 linear issue pr ENG-123 --template .github/pr.mdlinear issue gh pr ENG-123 -F .github/pr.mdlinear issue pr ENG-123(withpr_template = ".github/pr.md")linear issue gh pr ENG-123 -F .github/pr.md(relative to the current directory)linear issue pr ENG-123 --no-templatelinear issue gh pr ENG-123 -
the
vcssetting (vcsin a config file,LINEAR_VCSin the environment or.env) is removed. Every command that touches the repository names its tool instead (issue git start,issue jj start,issue gh pull-request), and the issue is read from the repository only with@gitor@jj. Existingvcsvalues are ignored quietly without validation and are safe to leave in place;linear config checkreports their sources and replacement commands.linear configdoes not write it3.x (with vcs = "jj")4.0 linear issue start ENG-123linear issue jj start ENG-123linear issue viewlinear issue view @jjlinear issue commits ENG-123jj log -p -r "description(regex:'(?mi)^Linear-issue:.*\bENG-123\b')" -
the issue is no longer read from the git branch name or from jj
Linear-issuetrailers unless an argument asks for it with@gitor@jj(see Added). Every command that defaulted to "the current branch's issue" now requires the issue as an argument (an ID likeENG-123, an issue URL, a bare number in the configured team,@gitor@jj):issue view,title,url,describe,gh pull-request,update,archive,comment add,comment list,relation listandagent-session list. Leaving it out is a usage error (exit 2) before anything is sent; forissue gh pull-requestthe error suggests an ID,@gitor@jj.issue archiveandissue deleteneed an issue or one of the--bulkoptions. An argument that names no issue fails withNot an issue ID: …instead ofCould not determine issue ID3.x 4.0 linear issue view(issue from the git branch)linear issue view @gitlinear issue view(issue from jj trailers)linear issue view @jjlinear issue prlinear issue gh pr @gitlinear issue idlinear issue id @git(or@jj) -
@jjreads theLinear-issuetrailers of every change intrunk()..@and takes all the issues they name, where 3.x took the nearest trailer among all ancestors. It is refused when jj'strunk()is the root commit (no trunk bookmark it recognises), and a command that acts on one issue refuses it when it names several -
issue commitsis removed. Running it fails with exit 2 and shows thejj logsearch that replaces it, which lists the changes whoseLinear-issuetrailers name the issue:jj log -p -r "description(regex:'(?mi)^Linear-issue:.*\bENG-123\b')" -
issue linktakes the issue and the URL,linear issue link ENG-123 https://example.com/doc. The one-argument form that linked a URL to the current branch's issue is gone -
issue idrequires the issue argument and prints what it names:linear issue id @gitprints the issue in the branch name, aslinear issue iddid, andlinear issue id @jjprints each issue the trailers name on its own line. It needs no credentials unless the argument is a URL
Added
-
Issue lists, views, and relations link IDs to their canonical Linear URLs on styled terminals.
issue mineandissue querysupport ordered table columns with--columns. -
linear skill setupalso installsSessionStartreminders for Claude Code and Codex to load thelinear-cliskill or runlinear skill showbefore using Linear, independently of the skill catalog. Setup, status, removal, agent selection and dry runs manage the hooks while preserving unrelated settings and hooks. Claude Code also supports project setup; Codex hooks are account-only, honorCODEX_HOME, and require review in Codex's/hooksmenu. -
linear config checkvalidates loaded settings and template overlays offline, without credentials, API requests or file changes. It reports ignored legacy settings as informational notes with their sources, never their values. Harmless leftovers exit successfully; invalid active settings and malformed config still fail. -
Layered MiniJinja templates for agent guidance, shared
issue describe/issue jj startdescriptions, and pull request titles and bodies. Configure[templates]and reusable[template-aliases]globally, per project, or with repeatable--config-file/--configoverlays. Shipped defaults remain available throughbuiltin/<name>. Explicit--titleand gh arguments after--retain precedence; a custom template can generate a title for several issues. -
Targeted
linear skill show issue comment addguidance inherits parent hooks; ordinaryskill showincludes custom hooks even for commands with no shipped prose.config list,config get, andconfig list --show-origininspect templates offline.skill show --builtinandconfig list --defaultsbypass local configuration for recovery. Ordinaryskill shownow validates selected template configuration. -
linear configpreserves existing template preferences and unknown TOML values when updating workspace, team and sort settings, while removing the retiredvcsandpr_templatesettings. Comments may be reformatted. -
@gitand@jjstand for the issue in the repository wherever a command takes an issue, includingissue create --parent,issue update --parentand--issueofdocument list,document createanddocument update:@gitis the first issue ID in the current git branch's name, and@jjis every issue named byLinear-issuetrailers of the changes intrunk()..@, read without snapshotting the working copy. The command says on stderr which issues a reference named before anything is sent;issue view @jjshows all of them, andissue gh pr @jjcovers all of them. They are the only way the CLI reads the issue from the repository. Bulk input (--bulk,--bulk-file,--bulk-stdin) takes issue IDs only. In PowerShell, quote them ('@git') -
issue gh pull-requestopens one pull request for several issues:linear issue gh pr ENG-7 ENG-9 --title "Fix login", orlinear issue gh pr @jj --title "…" -- --head <branch>for every issue the trailers intrunk()..@name. Repeated issues count once, in the order first named. With more than one issue the shipped title template requires--title; a configured title can generate one instead. The shipped body layout is the description, then the clause Linear reads to close them on merge (Fixes ENG-7 and ENG-9,Fixes ENG-7, ENG-9, and ENG-12), then each issue's URL on its own line.--references(-r,--ref) writesReferences …instead ofFixes …, linking without closing. Every issue is fetched before gh runs -
issue gh pull-request --body <TEXT>(-b) and--body-file <FILE>(-F,-for stdin) give the body template's description data; the shipped layout appends theFixes(orReferences) clause and issue URLs. A--titleor--bodygiven to gh after--replaces linear's, links included -
issue completeandissue cancelmove an issue to its team's completed or canceled status, alongsideissue start. An issue already in a status of that type is left as it is. When the team has several statuses of the type, the command lists them and asks forissue update --stateinstead of choosing one -
a Nix flake builds
linearfrom source on Linux and Apple silicon macOS:nix run github:schpet/linear-cli, or add the repository as a flake input forpackages.<system>.linearandoverlays.default(#209; thanks @y0usaf) -
linear skill showprints a guide to the CLI written for coding agents. The guide ships with the binary and applies template preferences, so it describes the commands of the version that printed it. It needs no login or network;--builtinbypasses configuration -
linear skill setupinstalls a small skill for Claude Code, Codex, OpenCode and Pi that tells the agent to runlinear skill show, so the installed skill does not go out of date when linear is upgraded. It writes~/.agents/skills/linear-cli, which Codex, OpenCode and Pi all read, and~/.claude/skills/linear-cliwhen Claude Code is set up;--agentchooses,--projectsets up the current repository for a team, and--dry-runpreviews. Alinear-cliskill it did not install is left alone and reported;--forcemoves it to a backup directory instead of deleting it -
on a terminal,
issue view,project view,document view,initiative viewandcycle viewend with aView this … on Linear: <url>line, asgh issue viewdoes, so the page is one click away;milestone viewlinks to its project andissue agent-session viewto its issue. Piped output and--jsonare unchanged -
in kitty, Ghostty and Rex,
issue viewanddocument viewdraw the PNG images in descriptions and comments under their links, with the kitty graphics protocol. Images use Unicode placeholders, so they still show insideless. Other formats, other terminals, tmux and screen, piped output andNO_COLORkeep the plain link. Turn it off withinline_images = falseorLINEAR_INLINE_IMAGES=false -
linear skill statusreports what each of those directories holds, including an older copy that an agent would read instead, andlinear skill removedeletes only whatsetupinstalled. All three take--json -
issue viewaccepts multiple issue IDs or URLs, showing them in argument order with one pager session.--jsonreturns an array for multiple issues and keeps the existing object for one issue. If an issue cannot be fetched, the command fails without printing partial results.
Experimental
-
Custom issue views and named rows can call
format_issue_id(issue),format_comment_id(comment, issue), orformat_project_name(project)to reuse the configured labels and links. -
Set
format_project_nameto customize project labels across these commands. Includebuiltin/project_name/appto open the desktop app orbuiltin/project_name/webfor the website. -
format_comment_idcustomizes comment and reply IDs in the built-inissue viewthreads. Includebuiltin/comment_id/weborbuiltin/comment_id/appto link directly to each comment. Piped output and unstyled terminals show the plain label. -
issue viewuses a built-in Markdown template for each issue. Overrideissue_view_heading,issue_view_metadata,issue_view_description, orissue_view_footerindividually, or replaceissue_viewto reorder or omit sections. Issue-view interpolations display literal text. Usemarkdown(text)to render Markdown andlabel(name, content)for semantic styling. Enable these overrides with--experimental-templatesor the persistent setting below. -
Enable
--experimental-templatesor settemplates = trueunder[experimental]in Linear config to try named--formatrows,format_issue_idoverrides, custom hyperlinks with plain-text fallbacks, and native MiniJinja macros and call blocks. These features may change or be removed in a minor release. -
With experimental templates enabled, include
builtin/issue_id/apporbuiltin/issue_id/webinformat_issue_idto link IDs to the Linear desktop app or website. -
Set
templates = falseunder[experimental]globally or per project to turn off experimental templates while keeping their definitions for later.
Changed
linear skill showcalls out the Markdown rules for comments and other bodies: reference issues with bare URLs instead of IDs, and mention people with profile URLs.linear markdownand body-command help make this explicit, with an issue-reference example in the Markdown referenceissue git startandissue jj startprint one line on stdout for each thing they did, as they do it, so the side effects are plain to whoever runs them.git startnames the branch it created and the ref and commit it was created from, or the branch it switched to and what was checked out before (✓ Created and switched to git branch "eng-7-fix" from "HEAD" (0123456789ab); previous branch: "main"); when switching to an existing branch it says that--from-refwas not used.jj startnames the full ID of the change it created or reused, shows the description and trailers it wrote (@jjreads theLinear-issueone), and says that@is now the described change, sojj newis the way to keep editing in an empty change on top. Both end with what happened in Linear (✓ Moved Linear issue ENG-7 from "Todo" to "In Progress", or✓ Left Linear issue ENG-7 in "In Review" (already started)), and when a later step fails the lines already printed still say what was done.git startnow checks that--from-refnames a commit before it creates the branchissue viewputs each detail (state, priority, assignee, project, cycle and so on) on its own line instead of one line separated by|, and adds who created the issue and when it was created and last updated.issue view --jsonincludescreator,createdAtandupdatedAt- The
linear-cliskill thatnpx skills add schpet/linear-cliinstalls is now the same small stublinear skill setupwrites. It tells the agent to runlinear skill showinstead of carrying a copy of the guide and a generated reference for every command, so it no longer goes out of date.linear COMMAND --helpis the reference
Removed
- The Claude Code plugin (
/plugin install linear-cli@linear-cli) is no longer published. Uninstall it withclaude plugin uninstall linear-cli@linear-cliandclaude plugin marketplace remove linear-cli, then runlinear skill setup. If an older copy of the skill is in an agent's skills directory,linear skill setup --forcemoves it to a backup directory and installs the new one
Fixed
- List tables measure emoji and combining sequences by their terminal width and keep them intact when shortening a cell.
- Release preparation verifies exact svbump versions and cargo-dist announcement metadata before publishing stable or alpha tags; the release process documents dated alpha notes and pushes only the selected tag.
- Template names now separate guide layouts and sections (
guide,guide_targeted,guide_*) from command guidance (skill_*). Command hook names preserve hyphens, soproject updateandproject-update(and their initiative equivalents) can have independent guidance without duplicate instructions in the full guide. - Built-in templates use consistent LF line endings in Windows builds, fixing CRLF in generated commit descriptions and pull request bodies. Custom template text and data retain their original whitespace.
auth loginon a machine without a system keyring now says how to installsecret-toolon Linux, and when an API key is already configured (LINEAR_API_KEY, a.envfile, orapi_keyin a config file) it says that other commands already use it instead of suggesting to setLINEAR_API_KEY. It still fails there, since it has nowhere to store a key;--plaintextstores one in the credentials file (#231, #301; thanks @bitnahian)
Install linear 4.0.0
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/schpet/linear-cli/releases/download/v4.0.0/linear-installer.sh | shInstall prebuilt binaries via Homebrew
brew install schpet/tap/linearInstall prebuilt binaries into your npm project
npm install @schpet/linear-cli@4.0.0Download linear 4.0.0
| File | Platform | Checksum |
|---|---|---|
| linear-aarch64-apple-darwin.tar.xz | Apple Silicon macOS | checksum |
| linear-x86_64-apple-darwin.tar.xz | Intel macOS | checksum |
| linear-x86_64-pc-windows-msvc.zip | x64 Windows | checksum |
| linear-aarch64-unknown-linux-gnu.tar.xz | ARM64 Linux | checksum |
| linear-x86_64-unknown-linux-gnu.tar.xz | x64 Linux | checksum |