Skip to main content

A comprehensive CLI tool for Linear issue management with advanced search, bulk operations, and team collaboration features

Project description

Linearator

A comprehensive command-line interface for Linear issue management, enabling efficient project workflow automation and team collaboration through the Linear API.

Overview

Linearator is a powerful CLI tool that streamlines Linear project management workflows by providing command-line access to all core Linear functionality. Built with Python and designed for developers, project managers, and teams who prefer terminal-based workflows or need to automate Linear operations.

Key Features

Core Issue Management

  • Full CRUD Operations: Create, read, update, and delete Linear issues
  • Advanced Filtering: Filter issues by status, assignee, labels, teams, and custom criteria
  • Bulk Operations: Perform batch updates on multiple issues simultaneously
  • Status Management: Update issue states, priorities, and assignments

Team & Label Management

  • Team Operations: List teams, switch contexts, manage team-specific configurations
  • Label Management: Create, update, and apply labels to organize issues effectively
  • User Management: View team members, workload distribution, and assignment suggestions

Advanced Capabilities

  • Powerful Search: Full-text search with advanced query syntax and saved searches
  • Interactive Mode: Guided issue creation and management workflows
  • Multiple Output Formats: JSON, table, and plain text formatting options
  • Shell Integration: Command completion and aliases for efficient usage

Authentication & Security

  • OAuth Flow: Secure authentication with Linear's OAuth system
  • API Key Support: Alternative authentication method for automation
  • Credential Management: Secure storage using system keyring
  • Token Refresh: Automatic token renewal and session management

Installation

From PyPI (Recommended)

pip install linearator

From Source

git clone https://github.com/AdiKsOnDev/linearator.git
cd linearator
pip install -e .

Development Installation

git clone https://github.com/AdiKsOnDev/linearator.git
cd linearator
make install-dev

Quick Start

1. Authentication

First, authenticate with Linear:

# OAuth flow (recommended)
linear auth login

# Or use API key
linear auth login --api-key YOUR_API_KEY

# Or set environment variable
export LINEAR_API_KEY=YOUR_API_KEY

2. Basic Usage

# List your issues
linear issue list

# Create a new issue
linear issue create --title "Bug fix" --description "Fix login error" --team "ENG"

# Update issue status
linear issue update ISS-123 --status "In Progress"

# Search issues
linear search "login bug" --status "Todo" --assignee "john@company.com"

3. Team Operations

# List available teams
linear-cli team list

# Switch default team context
linear-cli team switch "Engineering"

# View team members
linear-cli user list --team "Engineering"

Command Reference

Issue Commands

# Create issues
linear-cli issue create --title "Title" --description "Description" --team "TEAM"
linear-cli issue create --interactive  # Guided creation

# List and filter issues
linear-cli issue list --status "In Progress" --assignee "user@email.com"
linear-cli issue list --label "bug,urgent" --team "Backend"

# Update issues
linear-cli issue update ISS-123 --status "Done" --assignee "user@email.com"
linear-cli issue update ISS-123 --add-label "critical" --priority "High"

# Delete issues
linear-cli issue delete ISS-123

Bulk Operations

# Bulk status updates
linear-cli bulk update-status --status "In Progress" --filter "assignee:user@email.com"

# Bulk label management
linear-cli bulk add-label "refactor" --filter "team:Backend"

# Bulk assignment
linear-cli bulk assign "user@email.com" --filter "status:Todo,label:urgent"

Search Operations

# Basic search
linear-cli search "authentication bug"

# Advanced search with filters
linear-cli search "login" --status "Todo,In Progress" --created-after "2024-01-01"

# Save and manage searches
linear-cli search save "urgent-bugs" "priority:urgent AND status:Todo"
linear-cli search run "urgent-bugs"

Team & User Management

# Team operations
linear-cli team list
linear-cli team switch "Frontend"
linear-cli team info "Backend"

# User operations
linear-cli user list
linear-cli user workload --team "Engineering"
linear-cli user info "user@email.com"

Label Management

# List labels
linear-cli label list

# Create labels
linear-cli label create "refactor" --description "Code refactoring tasks" --color "#FF5722"

# Apply labels to issues
linear-cli label apply "bug" ISS-123 ISS-124

Configuration

# View configuration
linear-cli config show

# Set default values
linear-cli config set default.team "Engineering"
linear-cli config set output.format "table"

# Reset configuration
linear-cli config reset

Configuration

Linear CLI supports configuration through multiple methods:

Configuration File

Create ~/.linear-cli/config.toml:

[default]
team = "Engineering"
output_format = "table"

[api]
timeout = 30
retries = 3

[display]
colors = true
progress_bars = true

Environment Variables

export LINEAR_API_KEY="your_api_token"
export LINEARATOR_DEFAULT_TEAM="Engineering"
export LINEARATOR_OUTPUT_FORMAT="json"

Command Line Options

linear --team "Engineering" --format json issue list

Output Formats

Table Format (Default)

ID      Title              Status        Assignee      Labels
ISS-123 Fix authentication In Progress   john@co.com   bug, urgent
ISS-124 Add user profiles  Todo          jane@co.com   feature

JSON Format

linear-cli issue list --format json
[
  {
    "id": "ISS-123",
    "title": "Fix authentication",
    "status": "In Progress",
    "assignee": "john@company.com",
    "labels": ["bug", "urgent"],
    "createdAt": "2024-01-15T10:30:00Z"
  }
]

Plain Text Format

linear-cli issue list --format plain

Advanced Usage

Interactive Mode

For complex operations, use interactive mode:

linear-cli issue create --interactive
linear-cli search --interactive

Shell Completion

Enable shell completion for faster workflow:

# Bash
eval "$(_LINEARATOR_COMPLETE=bash_source linear-cli)"

# Zsh
eval "$(_LINEARATOR_COMPLETE=zsh_source linear-cli)"

# Fish
_LINEARATOR_COMPLETE=fish_source linear-cli | source

Command Aliases

Set up aliases for frequently used commands:

linear-cli config alias "my-issues" "issue list --assignee me"
linear-cli config alias "urgent" "search 'priority:urgent'"

Integration Examples

CI/CD Integration

# GitHub Actions example
- name: Create Linear issue for failed build
  run: |
    linear-cli issue create \
      --title "Build failed: ${{ github.ref }}" \
      --description "Build failure in ${{ github.repository }}" \
      --label "ci,bug" \
      --team "Engineering"

Automation Scripts

#!/bin/bash
# Daily standup preparation
echo "Your issues for today:"
linear-cli issue list --assignee me --status "In Progress,Todo"

echo "Urgent team issues:"
linear-cli search "priority:urgent AND team:$TEAM"

Development

Contributing

We welcome contributions! Please see our Contributing Guide for details.

Development Setup

# Clone repository
git clone https://github.com/linear-cli/linear-cli.git
cd linear-cli

# Install development dependencies
make install-dev

# Run tests
make test

# Run linting
make lint

# Build documentation
make docs

Running Tests

# Run all tests
make test

# Run specific test categories
make test-unit
make test-integration

# Run with coverage
make test-coverage

Requirements

  • Python 3.12 or higher
  • Linear account with API access
  • Internet connection for Linear API communication

License

This project is licensed under the MIT License. See LICENSE file for details.

Support

Changelog

See CHANGELOG.md for detailed release notes and version history.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

linearator-1.1.0.tar.gz (129.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

linearator-1.1.0-py3-none-any.whl (85.1 kB view details)

Uploaded Python 3

File details

Details for the file linearator-1.1.0.tar.gz.

File metadata

  • Download URL: linearator-1.1.0.tar.gz
  • Upload date:
  • Size: 129.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for linearator-1.1.0.tar.gz
Algorithm Hash digest
SHA256 ae9f73ce1a9846675edf28fd5450adf5864a997a64f7dfaa0c39d41b50e14319
MD5 83e02c9fff6a2c06c5390c875a99caba
BLAKE2b-256 a674e373a1734205afda0fd31d424024dbe8d44313120cf57dc0a8be1d106829

See more details on using hashes here.

Provenance

The following attestation bundles were made for linearator-1.1.0.tar.gz:

Publisher: publish-pypi.yml on AdiKsOnDev/linear-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file linearator-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: linearator-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 85.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for linearator-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7a58a6dae93ec30d36fe882595e6f05d07a6f5e396b9ebc640d53ec63961a96f
MD5 f51bba8fb59ff8982ae73378da795ce0
BLAKE2b-256 9d125b4e3ddf495f7f140bbd8bff151894bc025b67d33bab17af52903faf5832

See more details on using hashes here.

Provenance

The following attestation bundles were made for linearator-1.1.0-py3-none-any.whl:

Publisher: publish-pypi.yml on AdiKsOnDev/linear-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page