linear-sdk-cli 0.1.0

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.
Files changed (111) hide show
  1. package/.claude-plugin/marketplace.json +20 -0
  2. package/.claude-plugin/plugin.json +9 -0
  3. package/CHANGELOG.md +807 -0
  4. package/COVERAGE.md +495 -0
  5. package/LICENSE +21 -0
  6. package/MIGRATING.md +220 -0
  7. package/README.md +524 -0
  8. package/package.json +87 -0
  9. package/skills/linear-sdk-cli/SKILL.md +534 -0
  10. package/skills/linear-sdk-cli/references/api.md +27 -0
  11. package/skills/linear-sdk-cli/references/attachment.md +82 -0
  12. package/skills/linear-sdk-cli/references/auth.md +174 -0
  13. package/skills/linear-sdk-cli/references/commands.md +37 -0
  14. package/skills/linear-sdk-cli/references/comment.md +154 -0
  15. package/skills/linear-sdk-cli/references/completion.md +17 -0
  16. package/skills/linear-sdk-cli/references/config.md +99 -0
  17. package/skills/linear-sdk-cli/references/cycle.md +131 -0
  18. package/skills/linear-sdk-cli/references/document.md +180 -0
  19. package/skills/linear-sdk-cli/references/favorite.md +78 -0
  20. package/skills/linear-sdk-cli/references/initiative-update.md +67 -0
  21. package/skills/linear-sdk-cli/references/initiative.md +256 -0
  22. package/skills/linear-sdk-cli/references/issue.md +928 -0
  23. package/skills/linear-sdk-cli/references/label.md +112 -0
  24. package/skills/linear-sdk-cli/references/milestone.md +139 -0
  25. package/skills/linear-sdk-cli/references/notification.md +123 -0
  26. package/skills/linear-sdk-cli/references/open.md +29 -0
  27. package/skills/linear-sdk-cli/references/organization.md +99 -0
  28. package/skills/linear-sdk-cli/references/project-update.md +67 -0
  29. package/skills/linear-sdk-cli/references/project.md +234 -0
  30. package/skills/linear-sdk-cli/references/roadmap.md +150 -0
  31. package/skills/linear-sdk-cli/references/schema.md +21 -0
  32. package/skills/linear-sdk-cli/references/state.md +61 -0
  33. package/skills/linear-sdk-cli/references/team.md +227 -0
  34. package/skills/linear-sdk-cli/references/user.md +103 -0
  35. package/skills/linear-sdk-cli/references/webhook.md +151 -0
  36. package/skills/linear-sdk-cli/references/whoami.md +26 -0
  37. package/skills/linear-sdk-cli/scripts/generate-docs.ts +339 -0
  38. package/src/bin/linear.ts +97 -0
  39. package/src/cli.ts +232 -0
  40. package/src/client.ts +172 -0
  41. package/src/commands/agent-session.ts +121 -0
  42. package/src/commands/api.ts +317 -0
  43. package/src/commands/attach.ts +90 -0
  44. package/src/commands/attachment.ts +74 -0
  45. package/src/commands/comment.ts +225 -0
  46. package/src/commands/completion.ts +69 -0
  47. package/src/commands/cycle.ts +125 -0
  48. package/src/commands/discover.ts +170 -0
  49. package/src/commands/document.ts +211 -0
  50. package/src/commands/favorite.ts +72 -0
  51. package/src/commands/initiative-update.ts +47 -0
  52. package/src/commands/initiative.ts +261 -0
  53. package/src/commands/issue.ts +1263 -0
  54. package/src/commands/label.ts +119 -0
  55. package/src/commands/meta.ts +534 -0
  56. package/src/commands/milestone.ts +163 -0
  57. package/src/commands/notification.ts +110 -0
  58. package/src/commands/open.ts +84 -0
  59. package/src/commands/organization.ts +79 -0
  60. package/src/commands/project-update.ts +47 -0
  61. package/src/commands/project.ts +339 -0
  62. package/src/commands/roadmap.ts +131 -0
  63. package/src/commands/state.ts +58 -0
  64. package/src/commands/team.ts +243 -0
  65. package/src/commands/user.ts +107 -0
  66. package/src/commands/webhook.ts +156 -0
  67. package/src/config.ts +1236 -0
  68. package/src/context.ts +117 -0
  69. package/src/git.ts +174 -0
  70. package/src/index.ts +10 -0
  71. package/src/lib/action.ts +26 -0
  72. package/src/lib/body.ts +172 -0
  73. package/src/lib/errors.ts +195 -0
  74. package/src/lib/introspect.ts +150 -0
  75. package/src/lib/keyring.ts +270 -0
  76. package/src/lib/mutation.ts +53 -0
  77. package/src/lib/open.ts +32 -0
  78. package/src/lib/options.ts +640 -0
  79. package/src/lib/output-shapes.ts +562 -0
  80. package/src/lib/pagination.ts +145 -0
  81. package/src/lib/prompt.ts +91 -0
  82. package/src/lib/resolve.ts +596 -0
  83. package/src/lib/shape.ts +273 -0
  84. package/src/lib/status-update.ts +91 -0
  85. package/src/lib/upload.ts +329 -0
  86. package/src/output/color.ts +52 -0
  87. package/src/output/format.ts +238 -0
  88. package/src/output/markdown.ts +133 -0
  89. package/src/output/pager.ts +131 -0
  90. package/src/output/sanitize.ts +76 -0
  91. package/src/output/table.ts +198 -0
  92. package/src/services/agent-session.ts +289 -0
  93. package/src/services/attachment.ts +198 -0
  94. package/src/services/comment.ts +262 -0
  95. package/src/services/cycle.ts +224 -0
  96. package/src/services/document.ts +357 -0
  97. package/src/services/favorite.ts +147 -0
  98. package/src/services/initiative-update.ts +59 -0
  99. package/src/services/initiative.ts +449 -0
  100. package/src/services/issue.ts +1153 -0
  101. package/src/services/label.ts +193 -0
  102. package/src/services/milestone.ts +262 -0
  103. package/src/services/notification.ts +190 -0
  104. package/src/services/organization.ts +144 -0
  105. package/src/services/project-update.ts +36 -0
  106. package/src/services/project.ts +494 -0
  107. package/src/services/roadmap.ts +177 -0
  108. package/src/services/state.ts +127 -0
  109. package/src/services/team.ts +386 -0
  110. package/src/services/user.ts +137 -0
  111. package/src/services/webhook.ts +203 -0
@@ -0,0 +1,234 @@
1
+ # linear project
2
+
3
+ > Work with projects
4
+
5
+ Group alias: `p`
6
+
7
+ _Generated from `linear commands --json`. `linear project --help` (or `<subcommand> --help`) is authoritative._
8
+
9
+ Every command also accepts the global flags `-j/--json`, `--no-input`, `-y/--yes`, `-q/--quiet`, `--workspace <slug>`, `--api-key <key>`, `-t/--team <key>`, `-n/--limit <n>`, `--all`, `-f/--fields <a,b,c>`, `--no-ansi` (alias `--no-color`), and `--debug`. Only command-specific options are listed below.
10
+
11
+ ### `linear project`
12
+
13
+ Work with projects
14
+
15
+ Aliases: `p`
16
+
17
+ ```
18
+ linear project [options]
19
+ ```
20
+
21
+ **Output (`--json`)**: a bare object — runs `project view` by default
22
+
23
+ ```text
24
+ id: string
25
+ name: string
26
+ description: string | null
27
+ content: string | null
28
+ labels: Array<{id: string, name: string}>
29
+ state: string | null
30
+ status: {id: string, name: string, type: string} | null
31
+ health: string | null
32
+ progress: number | null
33
+ priority: number
34
+ priorityLabel: string
35
+ url: string
36
+ startDate: string | null
37
+ targetDate: string | null
38
+ createdAt: string
39
+ updatedAt: string
40
+ completedAt: string | null
41
+ archivedAt: string | null
42
+ lead: {id: string, displayName: string, email: string} | null
43
+ teams: Array<{id: string, key: string, name: string}>
44
+ members: Array<{id: string, displayName: string, email: string}>
45
+ ```
46
+
47
+ ### `linear project archive`
48
+
49
+ Archive a project
50
+
51
+ ```
52
+ linear project archive [options] <id>
53
+ ```
54
+
55
+ **Output (`--json`)**: a receipt object
56
+
57
+ ```text
58
+ id: string
59
+ name: string
60
+ archived: boolean
61
+ ```
62
+
63
+ ### `linear project create`
64
+
65
+ Create a new project
66
+
67
+ Aliases: `new`
68
+
69
+ ```
70
+ linear project create [options]
71
+ ```
72
+
73
+ | Option | Description |
74
+ | --------------------------- | ---------------------------------------------- |
75
+ | `--name <name>` | project name |
76
+ | `-d, --description <text>` | project description (one-line summary) |
77
+ | `--description-file <path>` | read description from a file ('-' = stdin) |
78
+ | `--content <text>` | project content (markdown body) |
79
+ | `--content-file <path>` | read content from a file ('-' = stdin) |
80
+ | `--teams <key>` | team (repeatable / comma-separated) |
81
+ | `-t, --team <key>` | same as --teams (repeatable / comma-separated) |
82
+ | `--lead <who>` | project lead (me\|email\|name\|id) |
83
+ | `--member <who>` | project member (repeatable / comma-separated) |
84
+ | `--state <name>` | initial status (name, type, or id) |
85
+ | `--start <date>` | planned start date (YYYY-MM-DD) |
86
+ | `--target <date>` | planned target date (YYYY-MM-DD) |
87
+ | `-P, --priority <0-4>` | priority (0 none, 1 urgent … 4 low) |
88
+ | `-l, --label <name>` | project label (repeatable / comma-separated) |
89
+ | `--icon <name>` | Linear icon name, capitalized (e.g. Rocket) |
90
+ | `--color <hex>` | project color (e.g. #EB5757) |
91
+
92
+ **Output (`--json`)**: a receipt object
93
+
94
+ ```text
95
+ id: string
96
+ name: string
97
+ url: string
98
+ ```
99
+
100
+ ### `linear project delete`
101
+
102
+ Delete (trash) a project — `archive` keeps it, read-only
103
+
104
+ Aliases: `rm`
105
+
106
+ ```
107
+ linear project delete [options] <id>
108
+ ```
109
+
110
+ **Output (`--json`)**: a receipt object
111
+
112
+ ```text
113
+ id: string
114
+ name: string
115
+ deleted: boolean
116
+ ```
117
+
118
+ ### `linear project list`
119
+
120
+ List projects with filters (the default team's unless --all-teams)
121
+
122
+ Aliases: `ls`
123
+
124
+ ```
125
+ linear project list [options]
126
+ ```
127
+
128
+ | Option | Description |
129
+ | ---------------- | ----------------------------------------------------- |
130
+ | `--state <name>` | filter by status name or type (e.g. 'In QA', started) |
131
+ | `--all-teams` | every team's projects, ignoring the default team |
132
+
133
+ **Output (`--json`)**: a bare array of objects
134
+
135
+ ```text
136
+ id: string
137
+ name: string
138
+ state: string | null
139
+ progress: number | null
140
+ url: string
141
+ startDate: string | null
142
+ targetDate: string | null
143
+ status: {name: string} | null
144
+ lead: {displayName: string} | null
145
+ ```
146
+
147
+ ### `linear project milestones`
148
+
149
+ List a project's milestones
150
+
151
+ ```
152
+ linear project milestones [options] <id>
153
+ ```
154
+
155
+ **Output (`--json`)**: a bare array of objects
156
+
157
+ ```text
158
+ id: string
159
+ name: string
160
+ targetDate: string | null
161
+ progress: number | null
162
+ ```
163
+
164
+ ### `linear project update`
165
+
166
+ Update a project
167
+
168
+ Aliases: `edit`
169
+
170
+ ```
171
+ linear project update [options] <id>
172
+ ```
173
+
174
+ | Option | Description |
175
+ | --------------------------- | -------------------------------------------------- |
176
+ | `--name <name>` | new name |
177
+ | `-d, --description <text>` | new description (one-line summary) |
178
+ | `--description-file <path>` | read description from a file ('-' = stdin) |
179
+ | `--content <text>` | new content (markdown body) |
180
+ | `--content-file <path>` | read content from a file ('-' = stdin) |
181
+ | `--teams <key>` | set teams (repeatable / comma-separated) |
182
+ | `--lead <who>` | project lead (me\|email\|name\|id) |
183
+ | `--member <who>` | replace the members (repeatable / comma-separated) |
184
+ | `--state <name>` | status (name, type, or id) |
185
+ | `--start <date>` | planned start date (YYYY-MM-DD) |
186
+ | `--target <date>` | planned target date (YYYY-MM-DD) |
187
+ | `-P, --priority <0-4>` | priority (0 none, 1 urgent … 4 low) |
188
+ | `-l, --label <name>` | replace the labels (repeatable / comma-separated) |
189
+ | `--icon <name>` | Linear icon name, capitalized (e.g. Rocket) |
190
+ | `--color <hex>` | project color (e.g. #EB5757) |
191
+
192
+ **Output (`--json`)**: a receipt object
193
+
194
+ ```text
195
+ id: string
196
+ name: string
197
+ url: string
198
+ ```
199
+
200
+ ### `linear project view`
201
+
202
+ Show a project (by name or id)
203
+
204
+ Aliases: `show`
205
+
206
+ ```
207
+ linear project view [options] <id>
208
+ ```
209
+
210
+ **Output (`--json`)**: a bare object
211
+
212
+ ```text
213
+ id: string
214
+ name: string
215
+ description: string | null
216
+ content: string | null
217
+ labels: Array<{id: string, name: string}>
218
+ state: string | null
219
+ status: {id: string, name: string, type: string} | null
220
+ health: string | null
221
+ progress: number | null
222
+ priority: number
223
+ priorityLabel: string
224
+ url: string
225
+ startDate: string | null
226
+ targetDate: string | null
227
+ createdAt: string
228
+ updatedAt: string
229
+ completedAt: string | null
230
+ archivedAt: string | null
231
+ lead: {id: string, displayName: string, email: string} | null
232
+ teams: Array<{id: string, key: string, name: string}>
233
+ members: Array<{id: string, displayName: string, email: string}>
234
+ ```
@@ -0,0 +1,150 @@
1
+ # linear roadmap
2
+
3
+ > Work with roadmaps
4
+
5
+ Group alias: `rm`
6
+
7
+ _Generated from `linear commands --json`. `linear roadmap --help` (or `<subcommand> --help`) is authoritative._
8
+
9
+ Every command also accepts the global flags `-j/--json`, `--no-input`, `-y/--yes`, `-q/--quiet`, `--workspace <slug>`, `--api-key <key>`, `-t/--team <key>`, `-n/--limit <n>`, `--all`, `-f/--fields <a,b,c>`, `--no-ansi` (alias `--no-color`), and `--debug`. Only command-specific options are listed below.
10
+
11
+ ### `linear roadmap`
12
+
13
+ Work with roadmaps
14
+
15
+ Aliases: `rm`
16
+
17
+ ```
18
+ linear roadmap [options]
19
+ ```
20
+
21
+ **Output (`--json`)**: a bare object — runs `roadmap view` by default
22
+
23
+ ```text
24
+ id: string
25
+ name: string
26
+ description: string | null
27
+ color: string | null
28
+ url: string
29
+ slugId: string
30
+ owner: string | null
31
+ creator: string | null
32
+ createdAt: string
33
+ updatedAt: string
34
+ projects: string[]
35
+ ```
36
+
37
+ ### `linear roadmap create`
38
+
39
+ Create a new roadmap
40
+
41
+ Aliases: `new`
42
+
43
+ ```
44
+ linear roadmap create [options]
45
+ ```
46
+
47
+ | Option | Description |
48
+ | --------------------------- | ------------------------------------------ |
49
+ | `--name <name>` | roadmap name |
50
+ | `-d, --description <text>` | roadmap description |
51
+ | `--description-file <path>` | read description from a file ('-' = stdin) |
52
+ | `--owner <who>` | roadmap owner (me\|email\|name\|id) |
53
+ | `--color <hex>` | roadmap color (e.g. #5e6ad2) |
54
+
55
+ **Output (`--json`)**: a receipt object
56
+
57
+ ```text
58
+ id: string
59
+ name: string
60
+ url: string
61
+ ```
62
+
63
+ ### `linear roadmap delete`
64
+
65
+ Delete a roadmap
66
+
67
+ Aliases: `rm`
68
+
69
+ ```
70
+ linear roadmap delete [options] <id>
71
+ ```
72
+
73
+ **Output (`--json`)**: a receipt object
74
+
75
+ ```text
76
+ id: string
77
+ name: string
78
+ deleted: boolean
79
+ ```
80
+
81
+ ### `linear roadmap list`
82
+
83
+ List roadmaps
84
+
85
+ Aliases: `ls`
86
+
87
+ ```
88
+ linear roadmap list [options]
89
+ ```
90
+
91
+ **Output (`--json`)**: a bare array of objects
92
+
93
+ ```text
94
+ id: string
95
+ name: string
96
+ description: string | null
97
+ url: string
98
+ ```
99
+
100
+ ### `linear roadmap update`
101
+
102
+ Update a roadmap
103
+
104
+ Aliases: `edit`
105
+
106
+ ```
107
+ linear roadmap update [options] <id>
108
+ ```
109
+
110
+ | Option | Description |
111
+ | --------------------------- | ------------------------------------------ |
112
+ | `--name <name>` | new name |
113
+ | `-d, --description <text>` | new description |
114
+ | `--description-file <path>` | read description from a file ('-' = stdin) |
115
+ | `--owner <who>` | roadmap owner (me\|email\|name\|id) |
116
+ | `--color <hex>` | roadmap color (e.g. #5e6ad2) |
117
+
118
+ **Output (`--json`)**: a receipt object
119
+
120
+ ```text
121
+ id: string
122
+ name: string
123
+ url: string
124
+ ```
125
+
126
+ ### `linear roadmap view`
127
+
128
+ Show a roadmap (by name or id)
129
+
130
+ Aliases: `show`
131
+
132
+ ```
133
+ linear roadmap view [options] <id>
134
+ ```
135
+
136
+ **Output (`--json`)**: a bare object
137
+
138
+ ```text
139
+ id: string
140
+ name: string
141
+ description: string | null
142
+ color: string | null
143
+ url: string
144
+ slugId: string
145
+ owner: string | null
146
+ creator: string | null
147
+ createdAt: string
148
+ updatedAt: string
149
+ projects: string[]
150
+ ```
@@ -0,0 +1,21 @@
1
+ # linear schema
2
+
3
+ > Print the Linear GraphQL schema as SDL (--json prints raw introspection)
4
+
5
+ _Generated from `linear commands --json`. `linear schema --help` (or `<subcommand> --help`) is authoritative._
6
+
7
+ Every command also accepts the global flags `-j/--json`, `--no-input`, `-y/--yes`, `-q/--quiet`, `--workspace <slug>`, `--api-key <key>`, `-t/--team <key>`, `-n/--limit <n>`, `--all`, `-f/--fields <a,b,c>`, `--no-ansi` (alias `--no-color`), and `--debug`. Only command-specific options are listed below.
8
+
9
+ ### `linear schema`
10
+
11
+ Print the Linear GraphQL schema as SDL (--json prints raw introspection)
12
+
13
+ ```
14
+ linear schema [options]
15
+ ```
16
+
17
+ | Option | Description |
18
+ | --------------------- | --------------------------------- |
19
+ | `-o, --output <file>` | write to a file instead of stdout |
20
+
21
+ **Output (`--json`)**: raw JSON (keys depend on the request) — the GraphQL introspection result ({__schema: …}); with -o <file> it is written there and stdout stays empty
@@ -0,0 +1,61 @@
1
+ # linear state
2
+
3
+ > Inspect workflow states
4
+
5
+ Group alias: `st`
6
+
7
+ _Generated from `linear commands --json`. `linear state --help` (or `<subcommand> --help`) is authoritative._
8
+
9
+ Every command also accepts the global flags `-j/--json`, `--no-input`, `-y/--yes`, `-q/--quiet`, `--workspace <slug>`, `--api-key <key>`, `-t/--team <key>`, `-n/--limit <n>`, `--all`, `-f/--fields <a,b,c>`, `--no-ansi` (alias `--no-color`), and `--debug`. Only command-specific options are listed below.
10
+
11
+ ### `linear state`
12
+
13
+ Inspect workflow states
14
+
15
+ Aliases: `st`
16
+
17
+ ```
18
+ linear state [options]
19
+ ```
20
+
21
+ ### `linear state list`
22
+
23
+ List a team's workflow states (defaults to the configured team)
24
+
25
+ Aliases: `ls`
26
+
27
+ ```
28
+ linear state list [options] [team]
29
+ ```
30
+
31
+ **Output (`--json`)**: a bare array of objects
32
+
33
+ ```text
34
+ id: string
35
+ name: string
36
+ type: string
37
+ position: number
38
+ color: string
39
+ ```
40
+
41
+ ### `linear state view`
42
+
43
+ Show a workflow state (by id, or by name/type within --team / the default team)
44
+
45
+ ```
46
+ linear state view [options] <id>
47
+ ```
48
+
49
+ **Output (`--json`)**: a bare object
50
+
51
+ ```text
52
+ id: string
53
+ name: string
54
+ type: string
55
+ position: number
56
+ color: string
57
+ description: string | null
58
+ team: string | null
59
+ createdAt: string
60
+ updatedAt: string
61
+ ```
@@ -0,0 +1,227 @@
1
+ # linear team
2
+
3
+ > Inspect and manage teams
4
+
5
+ Group alias: `t`
6
+
7
+ _Generated from `linear commands --json`. `linear team --help` (or `<subcommand> --help`) is authoritative._
8
+
9
+ Every command also accepts the global flags `-j/--json`, `--no-input`, `-y/--yes`, `-q/--quiet`, `--workspace <slug>`, `--api-key <key>`, `-t/--team <key>`, `-n/--limit <n>`, `--all`, `-f/--fields <a,b,c>`, `--no-ansi` (alias `--no-color`), and `--debug`. Only command-specific options are listed below.
10
+
11
+ ### `linear team`
12
+
13
+ Inspect and manage teams
14
+
15
+ Aliases: `t`
16
+
17
+ ```
18
+ linear team [options]
19
+ ```
20
+
21
+ ### `linear team create`
22
+
23
+ Create a new team
24
+
25
+ Aliases: `new`
26
+
27
+ ```
28
+ linear team create [options]
29
+ ```
30
+
31
+ | Option | Description |
32
+ | -------------------------- | ------------------------------------------------------- |
33
+ | `--name <name>` | team name |
34
+ | `--key <key>` | team key (e.g. ENG); generated from the name if omitted |
35
+ | `-d, --description <text>` | team description |
36
+ | `--private` | make the team private (members only) |
37
+
38
+ **Output (`--json`)**: a receipt object
39
+
40
+ ```text
41
+ id: string
42
+ key: string
43
+ name: string
44
+ ```
45
+
46
+ ### `linear team cycles`
47
+
48
+ List a team's cycles
49
+
50
+ ```
51
+ linear team cycles [options] [key]
52
+ ```
53
+
54
+ **Output (`--json`)**: a bare array of objects
55
+
56
+ ```text
57
+ id: string
58
+ number: number
59
+ name: string | null
60
+ startsAt: string | null
61
+ endsAt: string | null
62
+ ```
63
+
64
+ ### `linear team delete`
65
+
66
+ Delete a team (admin); its issues go with it unless --move-issues
67
+
68
+ Aliases: `rm`
69
+
70
+ ```
71
+ linear team delete [options] <key>
72
+ ```
73
+
74
+ | Option | Description |
75
+ | ---------------------- | -------------------------------------------- |
76
+ | `--move-issues <team>` | move the team's issues to another team first |
77
+
78
+ **Output (`--json`)**: a receipt object
79
+
80
+ ```text
81
+ id: string
82
+ key: string
83
+ name: string
84
+ deleted: boolean
85
+ movedIssues: number
86
+ movedTo: {id: string, key: string, name: string} | null
87
+ ```
88
+
89
+ ### `linear team id`
90
+
91
+ Print a team's UUID (defaults to the configured team)
92
+
93
+ ```
94
+ linear team id [options] [key]
95
+ ```
96
+
97
+ **Output (`--json`)**: a receipt object
98
+
99
+ ```text
100
+ id: string
101
+ key: string
102
+ name: string
103
+ ```
104
+
105
+ ### `linear team labels`
106
+
107
+ List a team's labels
108
+
109
+ ```
110
+ linear team labels [options] [key]
111
+ ```
112
+
113
+ **Output (`--json`)**: a bare array of objects
114
+
115
+ ```text
116
+ id: string
117
+ name: string
118
+ color: string
119
+ ```
120
+
121
+ ### `linear team list`
122
+
123
+ List all teams
124
+
125
+ Aliases: `ls`
126
+
127
+ ```
128
+ linear team list [options]
129
+ ```
130
+
131
+ **Output (`--json`)**: a bare array of objects
132
+
133
+ ```text
134
+ id: string
135
+ key: string
136
+ name: string
137
+ ```
138
+
139
+ ### `linear team members`
140
+
141
+ List a team's members
142
+
143
+ ```
144
+ linear team members [options] [key]
145
+ ```
146
+
147
+ | Option | Description |
148
+ | -------------------- | ----------------------------------------------- |
149
+ | `--include-disabled` | include deactivated users (excluded by default) |
150
+
151
+ **Output (`--json`)**: a bare array of objects
152
+
153
+ ```text
154
+ id: string
155
+ displayName: string
156
+ name: string
157
+ email: string
158
+ active: boolean
159
+ ```
160
+
161
+ ### `linear team states`
162
+
163
+ List a team's workflow states
164
+
165
+ ```
166
+ linear team states [options] [key]
167
+ ```
168
+
169
+ **Output (`--json`)**: a bare array of objects
170
+
171
+ ```text
172
+ id: string
173
+ name: string
174
+ type: string
175
+ color: string
176
+ position: number
177
+ ```
178
+
179
+ ### `linear team update`
180
+
181
+ Update a team (defaults to the configured team)
182
+
183
+ Aliases: `edit`
184
+
185
+ ```
186
+ linear team update [options] [key]
187
+ ```
188
+
189
+ | Option | Description |
190
+ | -------------------------- | -------------------- |
191
+ | `--name <name>` | new team name |
192
+ | `--key <key>` | new team key |
193
+ | `-d, --description <text>` | new team description |
194
+
195
+ **Output (`--json`)**: a receipt object
196
+
197
+ ```text
198
+ id: string
199
+ key: string
200
+ name: string
201
+ ```
202
+
203
+ ### `linear team view`
204
+
205
+ Show a team (defaults to the configured team)
206
+
207
+ ```
208
+ linear team view [options] [key]
209
+ ```
210
+
211
+ **Output (`--json`)**: a bare object
212
+
213
+ ```text
214
+ id: string
215
+ key: string
216
+ name: string
217
+ description: string | null
218
+ private: boolean
219
+ cyclesEnabled: boolean
220
+ timezone: string | null
221
+ color: string | null
222
+ icon: string | null
223
+ issueCount: number
224
+ memberCount: number
225
+ createdAt: string
226
+ updatedAt: string
227
+ ```