1.0.10 • Published 8 months ago

@johndockery/linear-cli v1.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Linear CLI

A command-line interface for interacting with Linear.

Installation

npm install -g @johndockery/linear-cli

Usage

Initialize Configuration

linear init --api-key your_api_key_here

This will save your API key in ~/.linear-cli for future use.

List Teams

linear list-teams [--json]

List Projects

linear list-projects [--json] [--team <teamId>]

Create Issue

linear create-issue -t "Issue title" -p <projectId> --team-id <teamId> [options]

Options:
  -d, --description <description>  Issue description
  -s, --state-id <stateId>        State ID
  --labels <labels>               Comma-separated list of label IDs
  --assignee <assigneeId>         Assignee user ID
  --priority <priority>           Issue priority (0-4)

Update Issue

linear update-issue -i <issueId> [options]

Options:
  -t, --title <title>            New title
  -d, --description <description> New description
  -s, --state-id <stateId>       New state ID
  --labels <labels>              Comma-separated list of label IDs
  --assignee <assigneeId>        Assignee user ID
  --priority <priority>          Issue priority (0-4)

Get Issue Details

linear get-issue -i <issueId> [--json]

Examples

Initialize configuration:

linear init --api-key lin_api_xxxxxxxxxxxx

List all teams:

linear list-teams

Create a new issue:

linear create-issue -t "Fix login bug" -p proj_123 --team-id team_456 -d "Users can't login on Safari" --priority 2

Get issue details:

linear get-issue -i issue_789

License

MIT