npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@rolaca11/linear-cli

v1.1.0

Published

CLI tool for interfacing with the Linear API

Readme

Linear CLI

npm version npm downloads CI License: MIT Node.js

A command-line interface for managing issues, projects, cycles, and teams in Linear.

Installation

From npm (recommended):

npm install -g @rolaca11/linear-cli

From source:

git clone https://github.com/rolaca11/linear-cli.git
cd linear-cli
npm install
npm run build
npm link

Requires Node.js 18 or later.

Authentication

Using Personal API Key (Recommended)

Create an API key at https://linear.app/settings/api, then:

linear auth login
# Or non-interactively:
linear auth login --key <your-api-key>

Using OAuth

OAuth requires registering an OAuth application in Linear (admin permissions required):

linear auth login --oauth

Check Authentication Status

linear auth status

Usage

Issues

# List issues
linear issues list --team TECH
linear issues list --assignee me --state "In Progress"

# View issue details
linear issues view TECH-123

# Create an issue
linear issues create --title "Fix bug" --team TECH --priority 2

# Update an issue
linear issues update TECH-123 --state "Done"

# Add a comment
linear issues comment TECH-123 --body "This is fixed"

# Archive an issue
linear issues delete TECH-123

Projects

# List projects
linear projects list

# View project details
linear projects view "Project Name"

# Create a project
linear projects create --name "Q1 Launch" --teams TECH,DESIGN

# Update a project
linear projects update "Project Name" --state completed

Teams

linear teams list
linear teams view TECH

Cycles

linear cycles list --team TECH
linear cycles current --team TECH
linear cycles create --team TECH --starts-at 2026-02-02 --ends-at 2026-02-16

Labels

linear labels list
linear labels create --name "urgent" --color "#ff0000" --team TECH

Users

linear users list
linear users me
linear users view "John Doe"

Workflow States

linear states list --team TECH

Global Options

All commands support these options:

  • --json - Output as JSON (useful for scripting)
  • --no-color - Disable colored output
  • --help - Show help for a command

Shell Completion

Enable bash completion:

linear --setup
source ~/.bashrc

To disable completion:

linear --cleanup
source ~/.bashrc

Completions are auto-generated from the CLI command structure using @naerth/commander-autocomplete.

Environment Variables

  • LINEAR_API_KEY - Personal API key (overrides stored credentials)
  • LINEAR_ACCESS_TOKEN - OAuth access token (overrides stored credentials)

Configuration

Credentials are stored in ~/.config/linear-cli/config.json with secure file permissions (600).

AI Agent Skill

This CLI includes an agent skill that teaches AI coding assistants (Claude Code, Cursor, OpenCode, etc.) how to use the Linear CLI. It uses the Vercel Skills ecosystem.

Install the Skill

# Using the linear CLI (wrapper for npx skills)
linear skill install

# Or directly with npx skills
npx skills add rolaca11/linear-cli

# Install for specific agents
linear skill install -a claude-code -a cursor

# Install globally (user directory)
linear skill install --global

Manage Skills

# List installed skills
linear skill list

# Update skills
linear skill update

# Uninstall
linear skill uninstall

Once installed, AI agents will automatically know how to use the Linear CLI when you mention Linear issues, projects, or related tasks.

License

MIT