@fe-essential/linear-cli
v0.1.5
Published
A Bun-based CLI for Linear.
Downloads
409
Readme
@fe-essential/linear-cli
A Bun-based CLI for Linear.
Install CLI
Install globally with Bun:
bun add -g @fe-essential/linear-cli
linear --helpIf linear is not found, make sure Bun's global bin directory is in your PATH:
export PATH="$HOME/.bun/bin:$PATH"You can also install with npm, but Bun must still be available in your PATH because the CLI is a Bun executable:
npm install -g @fe-essential/linear-cli
linear --helpInstall dependencies
bun installRun locally
bun run index.ts --helpLink as a global command
bun link
linear --helpConfigure
Create a project-local config in the current directory:
linear initCreate a user-global config:
linear init --globalinit prompts for:
api_keyworkspaceproject
Local config is written to:
./linear.config.yamlGlobal config is written to:
~/.config/linear/linear.config.yamlConfig resolution order:
LINEAR_API_KEYforapi_keyonly./linear.config.yaml~/.config/linear/linear.config.yaml
Commands
Every subcommand supports -h and --help.
Issue commands:
linear issue --helpList all issues in the configured project:
linear issue listList issues by status:
linear issue list -s Todo
linear issue list --status completedAdd an issue to the configured project. The default status is Backlog:
linear issue add "Fix login bug"
linear issue add "Fix login bug" -d "Reproduce and patch auth flow"
linear issue add "Fix login bug" --image ./screenshot.png
linear issue add "Fix login bug" -d "See screenshots" --image ./before.png --image ./after.pngImage uploads support gif, jpeg, jpg, png, and webp. Uploaded images are embedded in the issue description.
Read one issue by Linear issue id or identifier:
linear issue read LIN-123Update issue title, description, images, or status:
linear issue update LIN-123 -t "Better title"
linear issue update LIN-123 -d "Replace the issue description"
linear issue update LIN-123 --append-description "Additional notes" --image ./screenshot.png
linear issue update LIN-123 -s DoneDelete an issue by Linear issue id:
linear issue delete <issue-id>Delete issues created on a UTC date in the configured project:
linear issue delete --date 2026-06-11 --yesCount all non-deleted workspace issues across all statuses:
linear workspace count-issueShow the authenticated user:
linear viewerDevelopment
bun run typecheckRelease
The GitHub Actions release workflow publishes to npm and creates a GitHub Release when a version tag is pushed.
First configure the repository secret NPM_TOKEN with npm publish permissions.
Then run one of the release scripts from a clean working tree:
bun run release:patch # 0.1.0 -> 0.1.1
bun run release:minor # 0.1.0 -> 0.2.0
bun run release:major # 0.1.0 -> 1.0.0The script automatically:
- bumps
package.jsonversion; - runs typecheck;
- commits
chore: release v${version}; - creates the matching git tag;
- pushes the branch and tag to trigger publishing.
The tag must match the package version exactly (v${version}).
