{"id":50957850,"url":"https://github.com/otaviosoaresp/linear-cli","last_synced_at":"2026-06-18T09:32:35.560Z","repository":{"id":325375597,"uuid":"1100940112","full_name":"otaviosoaresp/linear-cli","owner":"otaviosoaresp","description":"A modern command-line interface for Linear - List, view, and manage issues with powerfu filtering, sorting, and Linear's native color schemes","archived":false,"fork":false,"pushed_at":"2025-11-21T01:50:47.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-21T03:14:29.514Z","etag":null,"topics":["cli","command-line","developer-tools","issue-management","issue-tracking","linear","linear-app","linear-cli","productivity","project-management","terminal","typescript","workflow"],"latest_commit_sha":null,"homepage":"","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/otaviosoaresp.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":"2025-11-21T01:06:00.000Z","updated_at":"2025-11-21T01:50:51.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/otaviosoaresp/linear-cli","commit_stats":null,"previous_names":["otaviosoaresp/linear-cli"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/otaviosoaresp/linear-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otaviosoaresp%2Flinear-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otaviosoaresp%2Flinear-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otaviosoaresp%2Flinear-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otaviosoaresp%2Flinear-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/otaviosoaresp","download_url":"https://codeload.github.com/otaviosoaresp/linear-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otaviosoaresp%2Flinear-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34485163,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-18T02:00:06.871Z","response_time":128,"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":["cli","command-line","developer-tools","issue-management","issue-tracking","linear","linear-app","linear-cli","productivity","project-management","terminal","typescript","workflow"],"created_at":"2026-06-18T09:32:34.866Z","updated_at":"2026-06-18T09:32:35.545Z","avatar_url":"https://github.com/otaviosoaresp.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Linear CLI\n\n[![npm version](https://badge.fury.io/js/@scmfury%2Flinear-cli.svg)](https://www.npmjs.com/package/@scmfury/linear-cli)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nA modern command-line interface for Linear that brings powerful issue management directly to your terminal.\n\n**Features:** Advanced filtering with exclusions, smart sorting, native Linear colors, and an intuitive interface inspired by GitHub CLI.\n\n---\n\n## Table of Contents\n\n- [Features](#features)\n- [Prerequisites](#prerequisites)\n- [Installation](#installation)\n- [Authentication](#authentication)\n- [Commands](#commands)\n  - [Authentication](#authentication-commands)\n  - [Issues](#issue-commands)\n  - [Comments](#comment-commands)\n- [Advanced Usage](#advanced-usage)\n  - [Filtering](#filtering)\n  - [Exclusion Filters](#exclusion-filters)\n  - [Sorting](#sorting)\n  - [Combining Filters](#combining-filters)\n- [Examples](#examples)\n- [Configuration](#configuration)\n- [Development](#development)\n- [Troubleshooting](#troubleshooting)\n\n---\n\n## Features\n\n- **List and view issues** with rich, colorized output\n- **Advanced filtering** by status, assignee, labels, and more\n- **Exclusion filters** to remove unwanted results\n- **Smart sorting** by updated date, created date, priority, or title\n- **Native Linear colors** - status and labels use your workspace's configured colors\n- **Comment management** - read and create issue comments\n- **Clean table layout** with proper alignment and color support\n\n---\n\n## Prerequisites\n\n- Node.js \u003e= 18.0.0\n- npm or yarn\n- A Linear account with API access\n\n---\n\n## Installation\n\n### npm (Recommended)\n\nInstall globally via npm:\n\n```bash\nnpm install -g @scmfury/linear-cli\n```\n\nVerify installation:\n\n```bash\nlinear --version\nlinear --help\n```\n\n### From Source (Development)\n\nFor development or contributing:\n\n```bash\n# Clone the repository\ngit clone https://github.com/otaviosoaresp/linear-cli.git\ncd linear-cli\n\n# Install dependencies\nnpm install\n\n# Build the project\nnpm run build\n\n# Link globally (makes 'linear' command available)\nnpm link\n```\n\n---\n\n## Authentication\n\nBefore using the CLI, you must authenticate with your Linear API key.\n\n### Get Your API Key\n\n1. Go to https://linear.app/settings/api\n2. Generate a new Personal API Key\n3. Copy the key (starts with `lin_api_`)\n\n### Login\n\n```bash\nlinear auth login\n```\n\nYou'll be prompted to enter your API key. The key is stored securely in `~/.config/linear-cli/config.json`.\n\n### Alternative: Environment Variable\n\n```bash\nexport LINEAR_API_KEY=\"lin_api_your_key_here\"\n```\n\n---\n\n## Commands\n\n### Authentication Commands\n\n#### `linear auth login`\n\nAuthenticate with your Linear API key.\n\n```bash\nlinear auth login\n```\n\n---\n\n### Issue Commands\n\n#### `linear issue list [options]`\n\nList issues with optional filtering and sorting.\n\n**Options:**\n\n```\n--status \u003cstatus...\u003e           Filter by status (supports multiple values)\n--assignee \u003cemail...\u003e          Filter by assignee email\n--label \u003clabel...\u003e             Filter by label\n--exclude-status \u003cstatus...\u003e   Exclude issues with these statuses\n--exclude-assignee \u003cemail...\u003e  Exclude issues assigned to these users\n--exclude-label \u003clabel...\u003e     Exclude issues with these labels\n--sort \u003cfield\u003e                 Sort by: updated, created, priority, title (default: updated)\n--order \u003corder\u003e                Sort order: asc, desc (default: desc)\n--limit \u003cnumber\u003e               Limit number of results (default: 50)\n```\n\n**Examples:**\n\n```bash\n# List all issues\nlinear issue list\n\n# List issues with limit\nlinear issue list --limit 20\n\n# Filter by status\nlinear issue list --status \"In Progress\"\n\n# Multiple statuses\nlinear issue list --status \"In Progress\" \"Todo\"\n\n# Exclude completed issues\nlinear issue list --exclude-status \"Done\" \"Canceled\"\n\n# Sort by priority\nlinear issue list --sort priority\n\n# Filter and sort\nlinear issue list --status \"In Progress\" --sort created --limit 10\n```\n\n#### `linear issue view \u003cissue-id\u003e`\n\nView detailed information about a specific issue.\n\n**Example:**\n\n```bash\nlinear issue view LIN-123\n```\n\n**Output includes:**\n- Issue title and identifier\n- Status (with color)\n- Assignee\n- Creator\n- Team\n- Priority (with color)\n- Labels (with colors)\n- Dates (created, updated, due)\n- Estimate\n- Description\n- URL\n\n---\n\n### Comment Commands\n\n#### `linear issue comment list \u003cissue-id\u003e`\n\nList all comments on an issue.\n\n```bash\nlinear issue comment list LIN-123\n```\n\n#### `linear issue comment create \u003cissue-id\u003e --body \u003ctext\u003e`\n\nCreate a new comment on an issue.\n\n```bash\nlinear issue comment create LIN-123 --body \"This looks great!\"\n```\n\n---\n\n## Advanced Usage\n\n### Filtering\n\nFilter issues using `--status`, `--assignee`, or `--label` flags. All filters support multiple values.\n\n```bash\n# Single value\nlinear issue list --status \"In Progress\"\n\n# Multiple values\nlinear issue list --status \"In Progress\" \"Todo\" \"Backlog\"\n\n# Multiple filter types\nlinear issue list --status \"In Progress\" --label \"bug\" --assignee \"user@example.com\"\n```\n\n### Exclusion Filters\n\nExclude specific issues using exclusion flags. This is perfect for filtering out completed or canceled work.\n\n```bash\n# Exclude by status\nlinear issue list --exclude-status \"Done\" \"Canceled\"\n\n# Exclude by label\nlinear issue list --exclude-label \"wont-fix\" \"duplicate\"\n\n# Exclude by assignee\nlinear issue list --exclude-assignee \"bot@example.com\"\n\n# Combine inclusion and exclusion\nlinear issue list --status \"In Progress\" --exclude-label \"blocked\"\n```\n\n### Sorting\n\nSort results using the `--sort` flag.\n\n**Available sort fields:**\n- `updated` - Last updated date (default)\n- `created` - Creation date\n- `priority` - Priority level\n- `title` - Alphabetical by title\n\n**Sort order:**\n- `desc` - Descending (default)\n- `asc` - Ascending\n\n```bash\n# Most recently updated (default)\nlinear issue list --sort updated\n\n# Oldest first\nlinear issue list --sort created --order asc\n\n# Highest priority first\nlinear issue list --sort priority\n\n# Alphabetical\nlinear issue list --sort title --order asc\n```\n\n### Combining Filters\n\nCombine multiple filters, exclusions, and sorting for powerful queries.\n\n```bash\n# Active bugs, sorted by priority\nlinear issue list --label \"bug\" --exclude-status \"Done\" --sort priority\n\n# My issues that aren't blocked\nlinear issue list --assignee \"me@example.com\" --exclude-label \"blocked\"\n\n# Recent backlog items\nlinear issue list --status \"Backlog\" --sort created --limit 20\n\n# Everything except done/canceled, sorted by update\nlinear issue list --exclude-status \"Done\" \"Canceled\" --sort updated\n```\n\n---\n\n## Examples\n\n### Daily Workflow\n\n```bash\n# Check what's in progress\nlinear issue list --status \"In Progress\"\n\n# See your assigned issues\nlinear issue list --assignee \"your.email@company.com\"\n\n# Review backlog by priority\nlinear issue list --status \"Backlog\" --sort priority --limit 10\n```\n\n### Bug Triage\n\n```bash\n# All open bugs\nlinear issue list --label \"bug\" --exclude-status \"Done\"\n\n# High priority bugs\nlinear issue list --label \"bug\" --sort priority --limit 5\n\n# Unassigned bugs\nlinear issue list --label \"bug\" --exclude-status \"Done\" --assignee \"Unassigned\"\n```\n\n### Sprint Planning\n\n```bash\n# Everything except done/canceled\nlinear issue list --exclude-status \"Done\" \"Canceled\" --limit 50\n\n# Backlog sorted by priority\nlinear issue list --status \"Backlog\" --sort priority\n\n# Recently updated issues\nlinear issue list --sort updated --limit 20\n```\n\n### Issue Investigation\n\n```bash\n# View issue details\nlinear issue view CAR-123\n\n# Read comments\nlinear issue comment list CAR-123\n\n# Add a comment\nlinear issue comment create CAR-123 --body \"Investigating this issue\"\n```\n\n---\n\n## Configuration\n\nConfiguration is stored in `~/.config/linear-cli/config.json`\n\n**Structure:**\n```json\n{\n  \"apiKey\": \"lin_api_...\"\n}\n```\n\nYou can also use the `LINEAR_API_KEY` environment variable, which takes precedence over the config file.\n\n---\n\n## Development\n\n### Build\n\n```bash\nnpm run build\n```\n\n### Watch Mode\n\n```bash\nnpm run dev\n```\n\n### Project Structure\n\n```\nlinear-cli/\n├── src/\n│   ├── commands/\n│   │   ├── auth/\n│   │   │   └── login.ts           # Authentication\n│   │   └── issue/\n│   │       ├── list.ts            # List issues with filters\n│   │       ├── view.ts            # View issue details\n│   │       └── comment.ts         # Comment management\n│   ├── core/\n│   │   ├── config.ts              # Config management\n│   │   └── client.ts              # Linear API client\n│   ├── utils/\n│   │   ├── colors.ts              # Color conversion and badges\n│   │   ├── display.ts             # Table and output formatting\n│   │   ├── errors.ts              # Error handling\n│   │   └── filters.ts             # Filter parsing and building\n│   └── index.ts                   # CLI entry point\n├── dist/                          # Compiled output\n├── package.json\n├── tsconfig.json\n└── README.md\n```\n\n---\n\n## Troubleshooting\n\n### Command not found: linear\n\nMake sure you ran `npm link` after building:\n\n```bash\nnpm run build\nnpm link\n```\n\n### Authentication errors\n\nVerify your API key is valid:\n\n```bash\n# Re-authenticate\nlinear auth login\n\n# Or set environment variable\nexport LINEAR_API_KEY=\"lin_api_your_key_here\"\n```\n\n### Colors not showing\n\nColors should work automatically in most terminals. If colors aren't appearing, ensure your terminal supports ANSI colors.\n\n### Issues not showing\n\nCheck your filters - you might be excluding everything:\n\n```bash\n# List without filters first\nlinear issue list --limit 5\n```\n\n### TypeScript errors during build\n\nMake sure you have the correct Node.js version and all dependencies installed:\n\n```bash\nnode --version  # Should be \u003e= 18.0.0\nnpm install\nnpm run build\n```\n\n---\n\n## Tech Stack\n\n- **TypeScript** - Type-safe development\n- **Linear SDK** - Official Linear GraphQL client\n- **Commander.js** - CLI framework\n- **Picocolors** - Terminal colors\n\n---\n\n## License\n\nMIT\n\n---\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fotaviosoaresp%2Flinear-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fotaviosoaresp%2Flinear-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fotaviosoaresp%2Flinear-cli/lists"}