linear-cli-agents 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -9,8 +9,11 @@ A CLI for interacting with [Linear](https://linear.app), designed for LLMs and a
9
9
  ## Features
10
10
 
11
11
  - **JSON output**: All commands return structured JSON, perfect for parsing by LLMs
12
+ - **Multiple formats**: JSON (default), table (colored), or plain text output
12
13
  - **Schema introspection**: Discover available operations programmatically
13
14
  - **Full CRUD for issues**: List, create, update, and delete issues
15
+ - **Team management**: List and browse teams
16
+ - **Browser integration**: Open issues, teams, inbox directly in Linear
14
17
  - **Raw GraphQL queries**: Execute any GraphQL query directly
15
18
 
16
19
  ## Installation
@@ -23,9 +26,10 @@ pnpm add -g linear-cli-agents
23
26
 
24
27
  ## Authentication
25
28
 
26
- Get your API key from [Linear Settings > API](https://linear.app/settings/api).
27
-
28
29
  ```bash
30
+ # Open Linear API settings in browser to create a key
31
+ linear auth login --browser
32
+
29
33
  # Login with API key
30
34
  linear auth login --key lin_api_xxxxx
31
35
 
@@ -35,6 +39,9 @@ export LINEAR_API_KEY=lin_api_xxxxx
35
39
  # Check auth status
36
40
  linear auth status
37
41
 
42
+ # View current user info
43
+ linear me
44
+
38
45
  # Logout
39
46
  linear auth logout
40
47
  ```
@@ -53,8 +60,13 @@ linear issues list --assignee me
53
60
  linear issues list --state "In Progress"
54
61
  linear issues list --filter '{"priority":{"lte":2}}'
55
62
 
63
+ # Output formats: json (default), table (colored), plain (IDs only)
64
+ linear issues list --format table
65
+ linear issues list --format plain
66
+
56
67
  # Get a specific issue
57
68
  linear issues get ENG-123
69
+ linear issues get ENG-123 --format table
58
70
 
59
71
  # Create an issue
60
72
  linear issues create --title "Bug fix" --team-id <team-id>
@@ -68,6 +80,46 @@ linear issues update ENG-123 --state-id <state-id> --assignee-id <user-id>
68
80
  linear issues delete ENG-123
69
81
  ```
70
82
 
83
+ ### Teams
84
+
85
+ ```bash
86
+ # List all teams
87
+ linear teams list
88
+
89
+ # With table format
90
+ linear teams list --format table
91
+ ```
92
+
93
+ ### Open in Browser
94
+
95
+ ```bash
96
+ # Open an issue
97
+ linear open ENG-123
98
+
99
+ # Open a team
100
+ linear open --team ENG
101
+
102
+ # Open inbox
103
+ linear open --inbox
104
+
105
+ # Open my issues
106
+ linear open --my-issues
107
+
108
+ # Open settings
109
+ linear open --settings
110
+ ```
111
+
112
+ ### User Info
113
+
114
+ ```bash
115
+ # Show current user
116
+ linear me
117
+ linear whoami
118
+
119
+ # With table format
120
+ linear me --format table
121
+ ```
122
+
71
123
  ### Schema Introspection (for LLMs)
72
124
 
73
125
  ```bash
@@ -97,7 +149,9 @@ linear query --gql "query(\$id: String!) { issue(id: \$id) { title } }" \
97
149
 
98
150
  ## Output Format
99
151
 
100
- All commands return structured JSON:
152
+ ### JSON (default)
153
+
154
+ All commands return structured JSON by default, ideal for LLMs and scripts:
101
155
 
102
156
  ```json
103
157
  // Success
@@ -126,6 +180,37 @@ All commands return structured JSON:
126
180
  }
127
181
  ```
128
182
 
183
+ ### Table (human-readable)
184
+
185
+ Use `--format table` for colored, human-readable output:
186
+
187
+ ```bash
188
+ linear issues list --format table
189
+ # ID PRI TITLE
190
+ # ENG-123 High Fix login bug
191
+ # ENG-124 Medium Add dark mode
192
+ ```
193
+
194
+ ### Plain (minimal)
195
+
196
+ Use `--format plain` for minimal output (IDs/identifiers only):
197
+
198
+ ```bash
199
+ linear issues list --format plain
200
+ # ENG-123 Fix login bug
201
+ # ENG-124 Add dark mode
202
+ ```
203
+
204
+ ### Disabling Colors
205
+
206
+ Colors are automatically disabled when piping output. You can also disable them manually:
207
+
208
+ ```bash
209
+ NO_COLOR=1 linear issues list --format table
210
+ # or
211
+ linear issues list --format table --no-color
212
+ ```
213
+
129
214
  ## For LLM Integration
130
215
 
131
216
  The CLI is designed to be easily used by LLMs and AI agents:
@@ -762,5 +762,5 @@
762
762
  ]
763
763
  }
764
764
  },
765
- "version": "0.2.0"
765
+ "version": "0.2.1"
766
766
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linear-cli-agents",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "CLI for interacting with Linear, designed for LLMs and agents",
5
5
  "author": "Nacho",
6
6
  "bin": {