home / skills / trevors / dot-claude / linear-cli
This skill helps you query, create, and manage Linear issues from the terminal, boosting productivity by simplifying issue handling directly in CLI.
npx playbooks add skill trevors/dot-claude --skill linear-cliReview the files below or copy the command above to add this skill to your agents.
---
name: Linear CLI
description: Query, create, and manage Linear issues from the command line. Use when checking assigned work, viewing issue details, creating new issues, or updating issue status.
---
# Linear CLI
Query, create, and update Linear issues without leaving the terminal.
## Quick Examples
```bash
# Check your assigned work
linear-cli my-work
# View issue details
linear-cli issue ENG-456
# Create a new issue
linear-cli create --title "Production bug" --priority 1 --team ENG
# Update status and add comment
linear-cli update ENG-456 --status "Done"
linear-cli comment ENG-456 "Shipped in v2.1.0"
```
## Key Flags
- `--team ENG` - Specify or filter by team
- `--status "In Progress"` - Set or filter by status
- `--priority 1` - Set priority (1-4, 1 is highest)
- `--assignee name` - Assign to team member
- `--description` - Add issue description
## More Info
See REFERENCE.md for complete flag documentation, advanced examples, and workflow patterns. Use `linear-cli --help` or `linear-cli <command> --help` for all options.
## Authentication
```bash
linear-cli login # OAuth login (stores credentials)
linear-cli logout # Clear stored credentials
linear-cli status # Verify connection
```
This skill lets you query, create, and manage Linear issues directly from the command line. It streamlines common Linear workflows—checking assigned work, viewing issue details, creating new issues, and updating status—without opening the web UI. Authentication is handled via CLI login to securely store credentials.
The CLI issues GraphQL requests to Linear on your behalf after authenticating via OAuth and storing credentials locally. Commands include listing assigned work, inspecting an issue by key, creating issues with flags for team, priority, assignee, and description, and updating status or adding comments. Use built-in help for command-specific flags and examples.
How do I authenticate the CLI?
Run linear-cli login to start OAuth authentication. The CLI stores credentials locally. Use linear-cli status to verify the connection and linear-cli logout to clear credentials.
How do I find available flags and commands?
Use linear-cli --help or linear-cli <command> --help to display command-specific flags, examples, and usage patterns.