{"id":42102863,"url":"https://github.com/bdsqqq/lnr","last_synced_at":"2026-03-06T22:11:21.033Z","repository":{"id":329466721,"uuid":"1119596042","full_name":"bdsqqq/lnr","owner":"bdsqqq","description":"command-line interface for Linear. ships as a single binary via bun.","archived":false,"fork":false,"pushed_at":"2026-02-24T18:00:58.000Z","size":23023,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-24T19:14:55.110Z","etag":null,"topics":["bun","cli","linear","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bdsqqq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2025-12-19T14:25:31.000Z","updated_at":"2026-02-24T18:01:04.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/bdsqqq/lnr","commit_stats":null,"previous_names":["bdsqqq/lnr"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/bdsqqq/lnr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdsqqq%2Flnr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdsqqq%2Flnr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdsqqq%2Flnr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdsqqq%2Flnr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bdsqqq","download_url":"https://codeload.github.com/bdsqqq/lnr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdsqqq%2Flnr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30200758,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T19:07:06.838Z","status":"ssl_error","status_checked_at":"2026-03-06T18:57:34.882Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bun","cli","linear","typescript"],"created_at":"2026-01-26T13:06:47.732Z","updated_at":"2026-03-06T22:11:20.995Z","avatar_url":"https://github.com/bdsqqq.png","language":"TypeScript","readme":"# lnr\n\ncommand-line interface for Linear. ships as a single binary via bun.\n\n## installation\n\n### from github releases (recommended)\n\ndownload the latest binary from [releases](https://github.com/bdsqqq/lnr/releases) and add to your PATH.\n\n### via nix\n\n```bash\n# run directly\nnix run github:bdsqqq/lnr\n\n# install to profile\nnix profile install github:bdsqqq/lnr\n\n# in a flake (add to inputs)\ninputs.lnr.url = \"github:bdsqqq/lnr\";\n# then use: inputs.lnr.packages.${system}.default\n```\n\n### from source\n\n```bash\nbun install\nbun run build\ncp lnr /usr/local/bin/lnr\n```\n\n### agent skill\n\nlnr includes an [Amp](https://ampcode.com) agent skill for AI-assisted issue management.\n\n```bash\namp skill add bdsqqq/lnr\n```\n\nthen load with `linear` in any Amp session.\n\n## usage\n\n```bash\n# authenticate\nlnr auth \u003capi-key\u003e\n\n# list your issues\nlnr issues\n\n# show a specific issue\nlnr issue ENG-123\n\n# create an issue\nlnr issue new --team ENG --title \"fix auth flow\"\n\n# update state\nlnr issue ENG-123 --state \"done\"\n```\n\napi key from: https://linear.app/settings/account/security\n\n## commands\n\n| entity | list | show / mutate |\n|--------|------|---------------|\n| issues | `lnr issues` | `lnr issue \u003cid\u003e` · `lnr issue new` · `lnr issue batch` |\n| projects | `lnr projects` | `lnr project \u003cname\u003e` · `lnr project milestone` |\n| cycles | `lnr cycles` | `lnr cycle \u003cn\u003e` |\n| views | `lnr views` | `lnr view \u003cname\u003e` |\n| labels | `lnr labels` | `lnr label \u003cid\u003e` |\n| docs | `lnr docs` | `lnr doc \u003cid\u003e` |\n| teams | `lnr teams` | `lnr team \u003ckey\u003e` |\n| users | `lnr users` | `lnr user \u003cname\u003e` |\n| initiatives | `lnr initiatives` | `lnr initiative \u003cname\u003e` |\n| roadmaps | `lnr roadmaps` | `lnr roadmap \u003cname\u003e` |\n| templates | `lnr templates` | `lnr template \u003cname\u003e` |\n| notifications | `lnr notifications` | `lnr notification \u003cid\u003e` |\n| git automations | `lnr git-automations` | `lnr git-automation \u003cevent\u003e` · `lnr git-branch` |\n| agent sessions | `lnr agent-sessions` | `lnr agent-session \u003cid\u003e` |\n\nplus: `lnr auth`, `lnr config`, `lnr me`, `lnr search`.\n\nevery list command supports `--json`, `--quiet`, and `--verbose`. see the full [command reference](docs/command-reference.md) for all flags and invocations.\n\n## architecture\n\nlnr uses **schema-driven code generation** to stay in sync with Linear's API while keeping full control over CLI UX.\n\n```\nLinear GraphQL Schema\n        ↓ introspect\n   schema metadata\n        ↓ codegen\n  generated commands\n        ↓ calls\n  hand-crafted UX layer\n```\n\n### what's generated (from Linear's schema)\n\n- **zod input schemas** — flags, types, descriptions\n- **operation inference** — `new` → create, mutation flags → update, etc.\n- **trpc router wiring** — command registration and dispatch\n- **handler dispatch** — routes to the right function\n\nwhen Linear adds a field to `IssueUpdateInput`, re-run codegen and the flag appears automatically.\n\n### what's hand-crafted (full control)\n\n- **output formatting** — tables, threaded comments, reactions, colors\n- **UX resolvers** — `@me` → user ID, `done` → state ID, `ENG-123` → UUID\n- **error messages** — actionable, lowercase, with fix suggestions\n- **composition rules** — which flags work together vs. conflict\n- **core business logic** — all SDK interactions in `packages/core`\n\nthis means the tedious plumbing (schema → zod → router) is automated, but the *experience* of using lnr stays yours.\n\n### UX resolvers\n\ntranslate human-friendly inputs to Linear API IDs:\n\n| input | resolver | output |\n|-------|----------|--------|\n| `@me` | `resolveAssignee` | current user UUID |\n| `done` | `resolveStateName` | state UUID for team |\n| `ENG-123` | `resolveIssueIdentifier` | issue UUID |\n| `MyProject` | `resolveProjectByName` | project UUID |\n| `ENG` | `resolveTeamByKey` | team UUID |\n| `Sprint 1` | `resolveCycleByName` | cycle UUID |\n| `v1.0` | `resolveMilestoneByName` | milestone UUID |\n\nresolvers live in `packages/core/src/resolvers.ts` and throw typed errors with available options.\n\n### regenerating commands\n\n```bash\n# regenerate all entity commands (issue, project, label, doc)\nbun run packages/codegen/generate-commands.ts\n\n# refresh schema from Linear API (requires LINEAR_API_KEY)\nbun run packages/codegen/introspect-linear.ts\nbun run packages/codegen/extract-schema.ts\n```\n\ngenerated files live in `packages/cli/src/generated/`.\n\n### CLI-only flags\n\nflags not in Linear's schema (like `--branch`, `--pr`) are handled in `packages/cli/src/hand-crafted/`.\n\n### ADRs\n\narchitecture decisions in [`docs/adr/`](docs/adr/):\n- [0001-schema-driven-cli-generation](docs/adr/0001-schema-driven-cli-generation.md)\n- [0002-introspection-over-sdk-types](docs/adr/0002-introspection-over-sdk-types.md)\n- [0003-field-resolver-registry](docs/adr/0003-field-resolver-registry.md)\n- [0004-milestones-scoped-to-projects](docs/adr/0004-milestones-scoped-to-projects.md)\n- [0005-entity-expansion-roadmap](docs/adr/0005-entity-expansion-roadmap.md)\n- [0006-todo-task-tracking](docs/adr/0006-todo-task-tracking.md)\n- [0007-entity-config-v2-exploration](docs/adr/0007-entity-config-v2-exploration.md)\n\n## development\n\n```bash\n# run in dev\nbun run dev\n\n# typecheck\nbun run check\n\n# run tests\nbun run test\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbdsqqq%2Flnr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbdsqqq%2Flnr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbdsqqq%2Flnr/lists"}