Skip to content

4.0.0 - 2026-11-30

Latest

Choose a tag to compare

@github-actions github-actions released this 30 Nov 19:25

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 setup or linear skill setup --force to get it
  • changed up the git/jj integrations to be a bit less magic, so e.g. linear issue git start ENG-123 instead of linear issue start ENG-123 - similarly there's now @git and @jj references 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, and project view on styled terminals. Pipes and unstyled terminals show the name.

  • issue view now keeps comment IDs plain on unstyled terminals, including when NO_COLOR is set.

  • Issue metadata captions such as State: and Archived: are bold on styled terminals and plain text in pipes. Custom issue views can combine field_label, issue_heading, and footer on the same text or hyperlink.

  • Deleted (trashed) and archived issues are marked in issue views, lists and references; issue JSON includes trashed and archivedAt. 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_VCS settings are ignored quietly, including values older versions rejected. Retired pr_template / LINEAR_PR_TEMPLATE values are also ignored without validation, with migration guidance only during pull request creation. Both settings are safe to leave in place.

  • issue view shows the description passage an inline comment is anchored to as a block quote above the comment, as comment list already did.

Breaking

  • issue list and its issue l alias are removed. Run linear issue mine for your own issues or linear issue query for filtering and search. The old commands fail with exit 2 and a hint naming both replacements, including when passed old flags or --help.

  • issue start only 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, run linear issue git start (git) or linear issue jj start (jj), which prepare the branch or change and then start the issue. --branch and --from-ref moved to issue git start, and passing them to issue start is an error that says so

    3.x 4.0
    linear issue start ENG-123 (git) linear issue git start ENG-123
    linear issue start ENG-123 --branch topic --from-ref main linear issue git start ENG-123 --branch topic --from-ref main
    linear issue start ENG-123 (with vcs = "jj") linear issue jj start ENG-123
    linear issue create -t "…" --start linear issue create -t "…" --start, then linear issue git start <ID> or linear issue jj start <ID>
  • issue create --start and the last question of issue create -i no 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. --start cannot be combined with --state, and the wizard's question now reads Start this issue now (first started status, assigned to you)?

  • issue pull-request and its alias issue pr moved to issue gh pull-request and issue gh pr. It fetches the issues, builds the title and body and runs gh pr create; linear itself never creates, moves or pushes a branch or bookmark. Everything after -- is passed to gh pr create unchanged, after linear's --title and --body, so a flag there wins: --base, --draft, --web and --head moved 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; -- --head names a branch that is already pushed and turns that off. The old spellings fail with an error that names the new command

    3.x 4.0
    linear issue pr ENG-123 linear issue gh pr ENG-123
    linear issue pr ENG-123 --draft --base main linear issue gh pr ENG-123 -- --draft --base main
    linear issue pr ENG-123 --head topic --web linear issue gh pr ENG-123 -- --head topic --web
    linear issue pr ENG-123 (with vcs = "jj") `branch=$(linear issue view ENG-123 --json
  • issue gh pull-request --title is 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 --title is a usage error, where 3.x used the issue title. The body of a pull request for one issue now has the Fixes ENG-123 clause between the description and the issue URL, as for several issues; --references writes References ENG-123 instead, and changes only that clause, never a title or body you supply

    3.x 4.0
    linear issue pr ENG-123 --title "Fix login" (title ENG-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-request no longer reads the 3.x starting-body template file. New MiniJinja preferences configure generated layouts separately. --template (-T) and --no-template are removed, and so is the pr_template option (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 the Fixes clause and the issue URLs; add -- --editor to fill it in in gh before the pull request is created. --template and --no-template fail with exit 2 and say so. Existing pr_template values are ignored without validation. Only pull request creation and linear config check report them, with --body-file guidance; the setting is safe to keep

    3.x 4.0
    linear issue pr ENG-123 --template .github/pr.md linear issue gh pr ENG-123 -F .github/pr.md
    linear issue pr ENG-123 (with pr_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-template linear issue gh pr ENG-123
  • the vcs setting (vcs in a config file, LINEAR_VCS in 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 @git or @jj. Existing vcs values are ignored quietly without validation and are safe to leave in place; linear config check reports their sources and replacement commands. linear config does not write it

    3.x (with vcs = "jj") 4.0
    linear issue start ENG-123 linear issue jj start ENG-123
    linear issue view linear issue view @jj
    linear issue commits ENG-123 jj 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-issue trailers unless an argument asks for it with @git or @jj (see Added). Every command that defaulted to "the current branch's issue" now requires the issue as an argument (an ID like ENG-123, an issue URL, a bare number in the configured team, @git or @jj): issue view, title, url, describe, gh pull-request, update, archive, comment add, comment list, relation list and agent-session list. Leaving it out is a usage error (exit 2) before anything is sent; for issue gh pull-request the error suggests an ID, @git or @jj. issue archive and issue delete need an issue or one of the --bulk options. An argument that names no issue fails with Not an issue ID: … instead of Could not determine issue ID

    3.x 4.0
    linear issue view (issue from the git branch) linear issue view @git
    linear issue view (issue from jj trailers) linear issue view @jj
    linear issue pr linear issue gh pr @git
    linear issue id linear issue id @git (or @jj)
  • @jj reads the Linear-issue trailers of every change in trunk()..@ and takes all the issues they name, where 3.x took the nearest trailer among all ancestors. It is refused when jj's trunk() is the root commit (no trunk bookmark it recognises), and a command that acts on one issue refuses it when it names several

  • issue commits is removed. Running it fails with exit 2 and shows the jj log search that replaces it, which lists the changes whose Linear-issue trailers name the issue: jj log -p -r "description(regex:'(?mi)^Linear-issue:.*\bENG-123\b')"

  • issue link takes 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 id requires the issue argument and prints what it names: linear issue id @git prints the issue in the branch name, as linear issue id did, and linear issue id @jj prints 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 mine and issue query support ordered table columns with --columns.

  • linear skill setup also installs SessionStart reminders for Claude Code and Codex to load the linear-cli skill or run linear skill show before 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, honor CODEX_HOME, and require review in Codex's /hooks menu.

  • linear config check validates 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 start descriptions, and pull request titles and bodies. Configure [templates] and reusable [template-aliases] globally, per project, or with repeatable --config-file / --config overlays. Shipped defaults remain available through builtin/<name>. Explicit --title and gh arguments after -- retain precedence; a custom template can generate a title for several issues.

  • Targeted linear skill show issue comment add guidance inherits parent hooks; ordinary skill show includes custom hooks even for commands with no shipped prose. config list, config get, and config list --show-origin inspect templates offline. skill show --builtin and config list --defaults bypass local configuration for recovery. Ordinary skill show now validates selected template configuration.

  • linear config preserves existing template preferences and unknown TOML values when updating workspace, team and sort settings, while removing the retired vcs and pr_template settings. Comments may be reformatted.

  • @git and @jj stand for the issue in the repository wherever a command takes an issue, including issue create --parent, issue update --parent and --issue of document list, document create and document update: @git is the first issue ID in the current git branch's name, and @jj is every issue named by Linear-issue trailers of the changes in trunk()..@, read without snapshotting the working copy. The command says on stderr which issues a reference named before anything is sent; issue view @jj shows all of them, and issue gh pr @jj covers 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-request opens one pull request for several issues: linear issue gh pr ENG-7 ENG-9 --title "Fix login", or linear issue gh pr @jj --title "…" -- --head <branch> for every issue the trailers in trunk()..@ 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) writes References … instead of Fixes …, 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 the Fixes (or References) clause and issue URLs. A --title or --body given to gh after -- replaces linear's, links included

  • issue complete and issue cancel move an issue to its team's completed or canceled status, alongside issue 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 for issue update --state instead of choosing one

  • a Nix flake builds linear from source on Linux and Apple silicon macOS: nix run github:schpet/linear-cli, or add the repository as a flake input for packages.<system>.linear and overlays.default (#209; thanks @y0usaf)

  • linear skill show prints 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; --builtin bypasses configuration

  • linear skill setup installs a small skill for Claude Code, Codex, OpenCode and Pi that tells the agent to run linear 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-cli when Claude Code is set up; --agent chooses, --project sets up the current repository for a team, and --dry-run previews. A linear-cli skill it did not install is left alone and reported; --force moves it to a backup directory instead of deleting it

  • on a terminal, issue view, project view, document view, initiative view and cycle view end with a View this … on Linear: <url> line, as gh issue view does, so the page is one click away; milestone view links to its project and issue agent-session view to its issue. Piped output and --json are unchanged

  • in kitty, Ghostty and Rex, issue view and document view draw the PNG images in descriptions and comments under their links, with the kitty graphics protocol. Images use Unicode placeholders, so they still show inside less. Other formats, other terminals, tmux and screen, piped output and NO_COLOR keep the plain link. Turn it off with inline_images = false or LINEAR_INLINE_IMAGES=false

  • linear skill status reports what each of those directories holds, including an older copy that an agent would read instead, and linear skill remove deletes only what setup installed. All three take --json

  • issue view accepts multiple issue IDs or URLs, showing them in argument order with one pager session. --json returns 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), or format_project_name(project) to reuse the configured labels and links.

  • Set format_project_name to customize project labels across these commands. Include builtin/project_name/app to open the desktop app or builtin/project_name/web for the website.

  • format_comment_id customizes comment and reply IDs in the built-in issue view threads. Include builtin/comment_id/web or builtin/comment_id/app to link directly to each comment. Piped output and unstyled terminals show the plain label.

  • issue view uses a built-in Markdown template for each issue. Override issue_view_heading, issue_view_metadata, issue_view_description, or issue_view_footer individually, or replace issue_view to reorder or omit sections. Issue-view interpolations display literal text. Use markdown(text) to render Markdown and label(name, content) for semantic styling. Enable these overrides with --experimental-templates or the persistent setting below.

  • Enable --experimental-templates or set templates = true under [experimental] in Linear config to try named --format rows, format_issue_id overrides, 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/app or builtin/issue_id/web in format_issue_id to link IDs to the Linear desktop app or website.

  • Set templates = false under [experimental] globally or per project to turn off experimental templates while keeping their definitions for later.

Changed

  • linear skill show calls out the Markdown rules for comments and other bodies: reference issues with bare URLs instead of IDs, and mention people with profile URLs. linear markdown and body-command help make this explicit, with an issue-reference example in the Markdown reference
  • issue git start and issue jj start print one line on stdout for each thing they did, as they do it, so the side effects are plain to whoever runs them. git start names 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-ref was not used. jj start names the full ID of the change it created or reused, shows the description and trailers it wrote (@jj reads the Linear-issue one), and says that @ is now the described change, so jj new is 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 start now checks that --from-ref names a commit before it creates the branch
  • issue view puts 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 --json includes creator, createdAt and updatedAt
  • The linear-cli skill that npx skills add schpet/linear-cli installs is now the same small stub linear skill setup writes. It tells the agent to run linear skill show instead of carrying a copy of the guide and a generated reference for every command, so it no longer goes out of date. linear COMMAND --help is the reference

Removed

  • The Claude Code plugin (/plugin install linear-cli@linear-cli) is no longer published. Uninstall it with claude plugin uninstall linear-cli@linear-cli and claude plugin marketplace remove linear-cli, then run linear skill setup. If an older copy of the skill is in an agent's skills directory, linear skill setup --force moves 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, so project update and project-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 login on a machine without a system keyring now says how to install secret-tool on Linux, and when an API key is already configured (LINEAR_API_KEY, a .env file, or api_key in a config file) it says that other commands already use it instead of suggesting to set LINEAR_API_KEY. It still fails there, since it has nowhere to store a key; --plaintext stores 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 | sh

Install prebuilt binaries via Homebrew

brew install schpet/tap/linear

Install prebuilt binaries into your npm project

npm install @schpet/linear-cli@4.0.0

Download 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