{"id":44473681,"url":"https://github.com/flipbit03/lineark","last_synced_at":"2026-04-18T03:01:05.163Z","repository":{"id":337947554,"uuid":"1155571372","full_name":"flipbit03/lineark","owner":"flipbit03","description":"Unofficial Linear CLI, for humans and coding agents","archived":false,"fork":false,"pushed_at":"2026-04-17T01:33:01.000Z","size":990,"stargazers_count":51,"open_issues_count":9,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-17T02:30:24.004Z","etag":null,"topics":["agents","cli","issue-tracker","linear","sdk"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/flipbit03.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":null,"dco":null,"cla":null}},"created_at":"2026-02-11T16:56:41.000Z","updated_at":"2026-04-17T01:25:47.000Z","dependencies_parsed_at":"2026-02-26T00:03:46.211Z","dependency_job_id":null,"html_url":"https://github.com/flipbit03/lineark","commit_stats":null,"previous_names":["flipbit03/lineark"],"tags_count":31,"template":false,"template_full_name":null,"purl":"pkg:github/flipbit03/lineark","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flipbit03%2Flineark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flipbit03%2Flineark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flipbit03%2Flineark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flipbit03%2Flineark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flipbit03","download_url":"https://codeload.github.com/flipbit03/lineark/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flipbit03%2Flineark/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31954736,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["agents","cli","issue-tracker","linear","sdk"],"created_at":"2026-02-12T22:04:57.706Z","updated_at":"2026-04-18T03:01:05.157Z","avatar_url":"https://github.com/flipbit03.png","language":"Rust","readme":"# lineark\n\nUnofficial [Linear](https://linear.app/) CLI and Rust SDK, for humans and coding agents.\n\n[![CI](https://github.com/flipbit03/lineark/actions/workflows/ci.yml/badge.svg)](https://github.com/flipbit03/lineark/actions/workflows/ci.yml)\n[![crates.io](https://img.shields.io/crates/v/lineark?label=lineark)](https://crates.io/crates/lineark)\n[![crates.io](https://img.shields.io/crates/v/lineark-sdk?label=lineark-sdk)](https://crates.io/crates/lineark-sdk)\n[![docs.rs](https://img.shields.io/docsrs/lineark-sdk?label=docs.rs)](https://docs.rs/lineark-sdk)\n[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n\n## Why lineark?\n\nI was using the Linear MCP server for agentic coding and found it ate ~13,000 tokens just to describe its tools, before doing anything useful.\n\nSo I built a CLI for Linear. The agent calls it via its shell tool, and when it needs to know what commands exist, it runs `lineark usage` and gets the full command reference in **under 1,000 tokens**.\n\nA nice side effect is that I now have a proper Linear CLI for personal scripts and quick lookups.\n\nIt's also a standalone **Rust SDK** ([lineark-sdk](https://crates.io/crates/lineark-sdk)) if you want to build your own Linear integrations.\n\n## Quick start\n\n### Install\n\n```sh\ncurl -fsSL https://raw.githubusercontent.com/flipbit03/lineark/main/install.sh | sh\n```\n\nOr via cargo: `cargo install lineark`\n\nTo update to the latest version: `lineark self update`\n\n### Set up your AI agent\n\nAdd these lines to your agent's context file (`CLAUDE.md`, `.cursorrules`, system prompt, etc.):\n\n```\nWe track our tickets and projects in Linear (https://linear.app), a project management tool.\nWe use the `lineark` CLI tool for communicating with Linear. Use your Bash tool to call the\n`lineark` executable. Run `lineark usage` to see usage information.\n```\n\nYour agent discovers all commands at runtime via `lineark usage` — no tool schemas, no function definitions, no context bloat.\n\n### Authenticate\n\nCreate a [Linear Personal API key](https://linear.app/settings/account/security) and save it:\n\n```sh\necho \"lin_api_...\" \u003e ~/.linear_api_token\n```\n\nFor multiple workspaces, use named profiles (`~/.linear_api_token_{name}`) and switch with `--profile`:\n\n```sh\necho \"lin_api_...\" \u003e ~/.linear_api_token_work\nlineark --profile work whoami\n```\n\nThat's it! Your agent is ready to use lineark.\n\n## What it can do\n\n| Area | Commands |\n|------|----------|\n| **Issues** | `list`, `read`, `search`, `find-branch`, `create`, `update`, `batch-update`, `archive`, `unarchive`, `delete` |\n| **Comments** | `create`, `update`, `resolve`, `unresolve`, `delete` |\n| **Relations** | `create` (blocks, blocked-by, related, duplicate, similar), `delete` |\n| **Labels** | `list`, `create`, `update`, `delete` (groups, parent labels, team-scoped) |\n| **Projects** | `list`, `read`, `create` |\n| **Milestones** | `list`, `read`, `create`, `update`, `delete` |\n| **Cycles** | `list`, `read` |\n| **Documents** | `list`, `read`, `create`, `update`, `delete` |\n| **Teams** | `list`, `read`, `create`, `update`, `delete`, `members add`, `members remove` |\n| **Users** | `list` |\n| **File embeds** | `upload`, `download` |\n\nEvery command supports `--help` for full details. Most flags accept human-readable names — `--team ENG`, `--assignee \"Jane Doe\"`, `--labels \"Bug,P0\"` — no UUIDs required.\n\nRun `lineark usage` for the complete command reference.\n\n## SDK: lineark-sdk\n\nUse lineark-sdk as a library in your own Rust projects:\n\n```sh\ncargo add lineark-sdk\n```\n\n```rust\nuse lineark_sdk::Client;\nuse lineark_sdk::generated::types::{User, Team, IssueSearchResult};\n\n#[tokio::main]\nasync fn main() -\u003e Result\u003c(), Box\u003cdyn std::error::Error\u003e\u003e {\n    let client = Client::from_env()?;\n\n    let me = client.whoami::\u003cUser\u003e().await?;\n    println!(\"{:?}\", me);\n\n    let teams = client.teams::\u003cTeam\u003e().first(10).send().await?;\n    for team in \u0026teams.nodes {\n        println!(\"{}: {}\", team.key.as_deref().unwrap_or(\"?\"), team.name.as_deref().unwrap_or(\"?\"));\n    }\n\n    let results = client.search_issues::\u003cIssueSearchResult\u003e(\"bug\").first(5).send().await?;\n    println!(\"Found {} issues\", results.nodes.len());\n\n    Ok(())\n}\n```\n\nAll query methods are generic over `T: DeserializeOwned + GraphQLFields` — define custom lean structs with `#[derive(GraphQLFields)]` to fetch only the fields you need.\n\n## Architecture\n\nlineark is four crates:\n\n- **lineark-codegen** — reads Linear's GraphQL schema and generates typed Rust code\n- **lineark-sdk** — generated types + hand-written core (client, auth, pagination)\n- **lineark-derive** — `#[derive(GraphQLFields)]` for custom lean types with zero overfetching\n- **lineark** — the CLI, a pure SDK consumer with no raw GraphQL\n\nSee [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md) for diagrams and detailed walkthrough.\n\n## License\n\nLicensed under the MIT License. See [LICENSE](LICENSE) for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflipbit03%2Flineark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflipbit03%2Flineark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflipbit03%2Flineark/lists"}