Skip to content

Securiteru/linear-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

linear-cli

Go Version MIT License Release Zero Dependencies

Linear issue tracking, from your terminal. One static binary, 35+ commands, zero runtime dependencies.

$ linear list --team ADI --status "In Progress"
ADI-12  Fix authentication redirect   In Progress  alice  High
ADI-34  Add rate limiting              In Progress  bob    Medium
ADI-37  Refactor GraphQL schema        In Progress  alice  High

$ linear create --title "Fix login redirect" --team ENG --priority 2
ENG-142 created

Quick Start

go install github.com/securiter/linear-cli@latest

export LINEAR_API_KEY=lin_api_...

linear list --team YOUR_TEAM

Generate an API key at Linear > Settings > API > Personal API keys.

Features

Category Commands
Issues list get create update delete archive search comment batch-create
Projects projects project-create project-update
Cycles cycles cycle-create
Initiatives initiatives init-create
Labels labels label-create label-delete
States states state-create
Documents docs doc-create
Webhooks webhooks webhook-create webhook-delete
Notifications notifications notif-archive notif-read
Users users me
Teams teams

Installation

Go install

go install github.com/securiter/linear-cli@latest

Pre-built binary

Download from Releases.

Usage

Issues

linear list --team ADI --status "In Progress" --assignee "Alice" --limit 50
linear list -s "authentication bug" --team ENG
linear get ENG-142
linear update ENG-142 --status "Done" --assignee "Bob" --priority 3
linear update ENG-142 --due 2026-06-01T00:00:00Z
linear update ENG-142 --clear-due
linear delete ENG-142
linear archive ENG-142
linear unarchive ENG-142

Search & Comments

linear search "API rate limit" --limit 10
linear comment ENG-142 "Fixed in commit abc123"
linear comments ENG-142

Batch Create (stdin JSON lines)

echo '{"title":"Setup CI","priority":2}
{"title":"Write tests","priority":3}' | linear batch-create --team ENG

Other Entities

linear projects --status "Planned"
linear cycles --team ENG
linear initiatives
linear labels --team ENG
linear states --team ENG
linear docs --team ENG
linear webhooks
linear notifications --limit 50

Create & Delete

linear project-create --name "Q3 Launch" --team ENG --desc "Ship v2"
linear cycle-create --name "Sprint 42" --team ENG --start 2026-05-01T00:00:00Z --end 2026-05-14T23:59:59Z
linear init-create --name "Platform V3" --target 2026-09-01T00:00:00Z
linear label-create --name "security" --team ENG --color "#ff0000"
linear state-create --name "In Review" --team ENG --type "started" --color "#ffa500"
linear doc-create --title "Architecture RFC" --team ENG --desc "Proposal for..."
linear webhook-create --url https://example.com/webhook --team ENG

Agentic Use

Designed for AI agents. Works with psst for secret injection -- the API key never enters the agent's context.

psst --global LINEAR_API_KEY -- linear list --team ADI --status "In Progress"

JSON output for structured consumption:

psst --global LINEAR_API_KEY -- linear list --team ADI --json | jq '.[].title'
psst --global LINEAR_API_KEY -- linear users --json
psst --global LINEAR_API_KEY -- linear get ENG-142 --json

Quiet mode for scripts and pipelines:

psst --global LINEAR_API_KEY -- linear create --title "New bug" --team ENG -q

Returns only the issue identifier, no extra output.

Development

git clone https://github.com/Securiteru/linear-cli.git
cd linear-cli
go build -o linear .
./linear --help
main.go              entry point
cmd/
  root.go            root command, auth check
  issues.go          list, search, filter flags
  create.go          issue create + helpers
  get.go             issue detail
  update.go          issue update
  delete.go          delete, archive, unarchive
  comment.go         add/list comments
  batch.go           batch-create from stdin
  teams.go           list teams
  labels.go          list/create/delete labels
  states.go          list/create workflow states
  projects.go        list/create/update projects
  cycles.go          list/create cycles
  initiatives.go     list/create initiatives
  documents.go       list/create documents
  users.go           list users
  me.go              current user
  webhooks.go        list/create/delete webhooks
  notifications.go   list/archive/read notifications
api/
  client.go          GraphQL HTTP client

License

MIT

About

Fast, native Go CLI for Linear -- 35+ commands for issues, projects, cycles, initiatives, webhooks, and more. Built for agentic workflows and psst-compatible.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages