@simplysf/simply-gitlab 0.12.0 → 0.13.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.
package/README.md CHANGED
@@ -89,8 +89,9 @@ wrong one does not fail: it addresses a different merge request in a different p
89
89
 
90
90
  ## Write safety
91
91
 
92
- Six commands change data: `branch create`, `file create`, `file update`, `commit create`,
93
- `mr create`, and `mr update`. Nothing here deletes anything.
92
+ Nine commands change data: `project create`, `branch create`, `file create`, `file update`,
93
+ `commit create`, `mr create`, `mr update`, `mr merge`, and `release create`. Nothing here deletes
94
+ anything.
94
95
 
95
96
  **`--dry-run`** is on every one of them. It prints the exact request body that would be sent and
96
97
  sends nothing, which is the cheapest way to check a command before running it for real.
@@ -132,10 +133,12 @@ exitCode, status?, body?}}` — and nothing to stdout. Exit codes are identical
132
133
 
133
134
  - [`simply gitlab branch create`](#simply-gitlab-branch-create)
134
135
  - [`simply gitlab branch list`](#simply-gitlab-branch-list)
136
+ - [`simply gitlab branch view`](#simply-gitlab-branch-view)
135
137
  - [`simply gitlab ci environment list`](#simply-gitlab-ci-environment-list)
136
138
  - [`simply gitlab ci job list`](#simply-gitlab-ci-job-list)
137
139
  - [`simply gitlab ci job log`](#simply-gitlab-ci-job-log)
138
140
  - [`simply gitlab ci variable list`](#simply-gitlab-ci-variable-list)
141
+ - [`simply gitlab commit compare`](#simply-gitlab-commit-compare)
139
142
  - [`simply gitlab commit create`](#simply-gitlab-commit-create)
140
143
  - [`simply gitlab commit diff`](#simply-gitlab-commit-diff)
141
144
  - [`simply gitlab commit list`](#simply-gitlab-commit-list)
@@ -155,7 +158,9 @@ exitCode, status?, body?}}` — and nothing to stdout. Exit codes are identical
155
158
  - [`simply gitlab project create`](#simply-gitlab-project-create)
156
159
  - [`simply gitlab project list`](#simply-gitlab-project-list)
157
160
  - [`simply gitlab project view`](#simply-gitlab-project-view)
161
+ - [`simply gitlab release create`](#simply-gitlab-release-create)
158
162
  - [`simply gitlab release list`](#simply-gitlab-release-list)
163
+ - [`simply gitlab release view`](#simply-gitlab-release-view)
159
164
  - [`simply gitlab search`](#simply-gitlab-search)
160
165
  - [`simply gitlab tag list`](#simply-gitlab-tag-list)
161
166
 
@@ -166,7 +171,7 @@ Create a branch.
166
171
  ```
167
172
  USAGE
168
173
  $ simply gitlab branch create -p <value> --branch <value> --ref <value> [--json] [-e <value>] [--gitlab-url <value>]
169
- [--gitlab-token <value>] [--dry-run]
174
+ [--gitlab-token <value>] [--gitlab-token-kind personal|job] [--dry-run]
170
175
 
171
176
  FLAGS
172
177
  -p, --project=<value> (required) [env: SIMPLY_GITLAB_PROJECT] Project id, or its full path such as
@@ -176,9 +181,13 @@ FLAGS
176
181
  --ref=<value> (required) Branch, tag, or commit SHA to branch from.
177
182
 
178
183
  CONNECTION FLAGS
179
- -e, --env-file=<value> Path to a .env file holding connection settings.
180
- --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
181
- --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to https://gitlab.com.
184
+ -e, --env-file=<value> Path to a .env file holding connection settings.
185
+ --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
186
+ --gitlab-token-kind=<option> [env: SIMPLY_GITLAB_TOKEN_KIND] What kind of token --gitlab-token is. Defaults to
187
+ personal.
188
+ <options: personal|job>
189
+ --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to
190
+ https://gitlab.com.
182
191
 
183
192
  GLOBAL FLAGS
184
193
  --json Format output as json.
@@ -199,11 +208,17 @@ FLAG DESCRIPTIONS
199
208
 
200
209
  Loaded before anything else. Variables already present in the environment win, so the file never overrides an
201
210
  explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN,
202
- SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path
203
- that cannot be read is an error.
211
+ SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of
212
+ all but the token kind) are read from it. A path that cannot be read is an error.
213
+
214
+ --gitlab-token-kind=personal|job What kind of token --gitlab-token is. Defaults to personal.
215
+
216
+ Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other
217
+ token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job
218
+ token settings.
204
219
  ```
205
220
 
206
- _See code: [lib/commands/gitlab/branch/create.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.11.0/packages/simply-gitlab/lib/commands/gitlab/branch/create.js)_
221
+ _See code: [lib/commands/gitlab/branch/create.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.12.0/packages/simply-gitlab/lib/commands/gitlab/branch/create.js)_
207
222
 
208
223
  ## `simply gitlab branch list`
209
224
 
@@ -211,8 +226,8 @@ List repository branches.
211
226
 
212
227
  ```
213
228
  USAGE
214
- $ simply gitlab branch list -p <value> [--json] [-e <value>] [--gitlab-url <value>] [--gitlab-token <value>] [--limit
215
- <value>] [--search <value>]
229
+ $ simply gitlab branch list -p <value> [--json] [-e <value>] [--gitlab-url <value>] [--gitlab-token <value>]
230
+ [--gitlab-token-kind personal|job] [--limit <value>] [--search <value>]
216
231
 
217
232
  FLAGS
218
233
  -p, --project=<value> (required) [env: SIMPLY_GITLAB_PROJECT] Project id, or its full path such as
@@ -221,9 +236,13 @@ FLAGS
221
236
  --search=<value> Return only branches whose name contains this term.
222
237
 
223
238
  CONNECTION FLAGS
224
- -e, --env-file=<value> Path to a .env file holding connection settings.
225
- --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
226
- --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to https://gitlab.com.
239
+ -e, --env-file=<value> Path to a .env file holding connection settings.
240
+ --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
241
+ --gitlab-token-kind=<option> [env: SIMPLY_GITLAB_TOKEN_KIND] What kind of token --gitlab-token is. Defaults to
242
+ personal.
243
+ <options: personal|job>
244
+ --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to
245
+ https://gitlab.com.
227
246
 
228
247
  GLOBAL FLAGS
229
248
  --json Format output as json.
@@ -245,11 +264,72 @@ FLAG DESCRIPTIONS
245
264
 
246
265
  Loaded before anything else. Variables already present in the environment win, so the file never overrides an
247
266
  explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN,
248
- SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path
249
- that cannot be read is an error.
267
+ SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of
268
+ all but the token kind) are read from it. A path that cannot be read is an error.
269
+
270
+ --gitlab-token-kind=personal|job What kind of token --gitlab-token is. Defaults to personal.
271
+
272
+ Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other
273
+ token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job
274
+ token settings.
275
+ ```
276
+
277
+ _See code: [lib/commands/gitlab/branch/list.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.12.0/packages/simply-gitlab/lib/commands/gitlab/branch/list.js)_
278
+
279
+ ## `simply gitlab branch view`
280
+
281
+ Show one branch.
282
+
250
283
  ```
284
+ USAGE
285
+ $ simply gitlab branch view -p <value> --branch <value> [--json] [-e <value>] [--gitlab-url <value>] [--gitlab-token
286
+ <value>] [--gitlab-token-kind personal|job]
287
+
288
+ FLAGS
289
+ -p, --project=<value> (required) [env: SIMPLY_GITLAB_PROJECT] Project id, or its full path such as
290
+ group/subgroup/project.
291
+ --branch=<value> (required) Exact branch name.
292
+
293
+ CONNECTION FLAGS
294
+ -e, --env-file=<value> Path to a .env file holding connection settings.
295
+ --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
296
+ --gitlab-token-kind=<option> [env: SIMPLY_GITLAB_TOKEN_KIND] What kind of token --gitlab-token is. Defaults to
297
+ personal.
298
+ <options: personal|job>
299
+ --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to
300
+ https://gitlab.com.
301
+
302
+ GLOBAL FLAGS
303
+ --json Format output as json.
304
+
305
+ DESCRIPTION
306
+ Show one branch.
307
+
308
+ Looks the branch up by its exact name, unlike branch list --search, which matches any part of a name. A branch that
309
+ does not exist fails with status 404. So does a project the token cannot see, so a 404 alone does not prove the branch
310
+ is missing.
311
+
312
+ EXAMPLES
313
+ $ simply gitlab branch view --project group/project --branch main
251
314
 
252
- _See code: [lib/commands/gitlab/branch/list.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.11.0/packages/simply-gitlab/lib/commands/gitlab/branch/list.js)_
315
+ $ simply gitlab branch view --project group/project --branch release/1.2 --json
316
+
317
+ FLAG DESCRIPTIONS
318
+ -e, --env-file=<value> Path to a .env file holding connection settings.
319
+
320
+ Loaded before anything else. Variables already present in the environment win, so the file never overrides an
321
+ explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN,
322
+ SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of
323
+ all but the token kind) are read from it. A path that cannot be read is an error.
324
+
325
+ --gitlab-token-kind=personal|job What kind of token --gitlab-token is. Defaults to personal.
326
+
327
+ Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other
328
+ token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job
329
+ token settings.
330
+ ```
331
+
332
+ _See code: [lib/commands/gitlab/branch/view.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.12.0/packages/simply-gitlab/lib/commands/gitlab/branch/view.js)_
253
333
 
254
334
  ## `simply gitlab ci environment list`
255
335
 
@@ -257,8 +337,8 @@ List a project deployment environments.
257
337
 
258
338
  ```
259
339
  USAGE
260
- $ simply gitlab ci environment list -p <value> [--json] [-e <value>] [--gitlab-url <value>] [--gitlab-token <value>] [--limit
261
- <value>] [--name <value>] [--search <value>] [--state available|stopped]
340
+ $ simply gitlab ci environment list -p <value> [--json] [-e <value>] [--gitlab-url <value>] [--gitlab-token <value>]
341
+ [--gitlab-token-kind personal|job] [--limit <value>] [--name <value>] [--search <value>] [--state available|stopped]
262
342
 
263
343
  FLAGS
264
344
  -p, --project=<value> (required) [env: SIMPLY_GITLAB_PROJECT] Project id, or its full path such as
@@ -270,9 +350,13 @@ FLAGS
270
350
  <options: available|stopped>
271
351
 
272
352
  CONNECTION FLAGS
273
- -e, --env-file=<value> Path to a .env file holding connection settings.
274
- --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
275
- --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to https://gitlab.com.
353
+ -e, --env-file=<value> Path to a .env file holding connection settings.
354
+ --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
355
+ --gitlab-token-kind=<option> [env: SIMPLY_GITLAB_TOKEN_KIND] What kind of token --gitlab-token is. Defaults to
356
+ personal.
357
+ <options: personal|job>
358
+ --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to
359
+ https://gitlab.com.
276
360
 
277
361
  GLOBAL FLAGS
278
362
  --json Format output as json.
@@ -294,11 +378,17 @@ FLAG DESCRIPTIONS
294
378
 
295
379
  Loaded before anything else. Variables already present in the environment win, so the file never overrides an
296
380
  explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN,
297
- SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path
298
- that cannot be read is an error.
381
+ SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of
382
+ all but the token kind) are read from it. A path that cannot be read is an error.
383
+
384
+ --gitlab-token-kind=personal|job What kind of token --gitlab-token is. Defaults to personal.
385
+
386
+ Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other
387
+ token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job
388
+ token settings.
299
389
  ```
300
390
 
301
- _See code: [lib/commands/gitlab/ci/environment/list.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.11.0/packages/simply-gitlab/lib/commands/gitlab/ci/environment/list.js)_
391
+ _See code: [lib/commands/gitlab/ci/environment/list.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.12.0/packages/simply-gitlab/lib/commands/gitlab/ci/environment/list.js)_
302
392
 
303
393
  ## `simply gitlab ci job list`
304
394
 
@@ -306,8 +396,9 @@ List CI jobs for a project.
306
396
 
307
397
  ```
308
398
  USAGE
309
- $ simply gitlab ci job list -p <value> [--json] [-e <value>] [--gitlab-url <value>] [--gitlab-token <value>] [--limit
310
- <value>] [--scope created|pending|running|failed|success|canceled|skipped|waiting_for_resource|manual...]
399
+ $ simply gitlab ci job list -p <value> [--json] [-e <value>] [--gitlab-url <value>] [--gitlab-token <value>]
400
+ [--gitlab-token-kind personal|job] [--limit <value>] [--scope
401
+ created|pending|running|failed|success|canceled|skipped|waiting_for_resource|manual...]
311
402
 
312
403
  FLAGS
313
404
  -p, --project=<value> (required) [env: SIMPLY_GITLAB_PROJECT] Project id, or its full path such as
@@ -318,9 +409,13 @@ FLAGS
318
409
  created|pending|running|failed|success|canceled|skipped|waiting_for_resource|manual>
319
410
 
320
411
  CONNECTION FLAGS
321
- -e, --env-file=<value> Path to a .env file holding connection settings.
322
- --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
323
- --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to https://gitlab.com.
412
+ -e, --env-file=<value> Path to a .env file holding connection settings.
413
+ --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
414
+ --gitlab-token-kind=<option> [env: SIMPLY_GITLAB_TOKEN_KIND] What kind of token --gitlab-token is. Defaults to
415
+ personal.
416
+ <options: personal|job>
417
+ --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to
418
+ https://gitlab.com.
324
419
 
325
420
  GLOBAL FLAGS
326
421
  --json Format output as json.
@@ -341,11 +436,17 @@ FLAG DESCRIPTIONS
341
436
 
342
437
  Loaded before anything else. Variables already present in the environment win, so the file never overrides an
343
438
  explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN,
344
- SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path
345
- that cannot be read is an error.
439
+ SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of
440
+ all but the token kind) are read from it. A path that cannot be read is an error.
441
+
442
+ --gitlab-token-kind=personal|job What kind of token --gitlab-token is. Defaults to personal.
443
+
444
+ Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other
445
+ token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job
446
+ token settings.
346
447
  ```
347
448
 
348
- _See code: [lib/commands/gitlab/ci/job/list.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.11.0/packages/simply-gitlab/lib/commands/gitlab/ci/job/list.js)_
449
+ _See code: [lib/commands/gitlab/ci/job/list.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.12.0/packages/simply-gitlab/lib/commands/gitlab/ci/job/list.js)_
349
450
 
350
451
  ## `simply gitlab ci job log`
351
452
 
@@ -354,7 +455,7 @@ Print a job log.
354
455
  ```
355
456
  USAGE
356
457
  $ simply gitlab ci job log -p <value> --job <value> [--json] [-e <value>] [--gitlab-url <value>] [--gitlab-token
357
- <value>] [--tail <value>]
458
+ <value>] [--gitlab-token-kind personal|job] [--tail <value>]
358
459
 
359
460
  FLAGS
360
461
  -p, --project=<value> (required) [env: SIMPLY_GITLAB_PROJECT] Project id, or its full path such as
@@ -363,9 +464,13 @@ FLAGS
363
464
  --tail=<value> [default: 200] Print only the last N lines. 0 prints the whole trace.
364
465
 
365
466
  CONNECTION FLAGS
366
- -e, --env-file=<value> Path to a .env file holding connection settings.
367
- --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
368
- --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to https://gitlab.com.
467
+ -e, --env-file=<value> Path to a .env file holding connection settings.
468
+ --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
469
+ --gitlab-token-kind=<option> [env: SIMPLY_GITLAB_TOKEN_KIND] What kind of token --gitlab-token is. Defaults to
470
+ personal.
471
+ <options: personal|job>
472
+ --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to
473
+ https://gitlab.com.
369
474
 
370
475
  GLOBAL FLAGS
371
476
  --json Format output as json.
@@ -389,11 +494,17 @@ FLAG DESCRIPTIONS
389
494
 
390
495
  Loaded before anything else. Variables already present in the environment win, so the file never overrides an
391
496
  explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN,
392
- SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path
393
- that cannot be read is an error.
497
+ SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of
498
+ all but the token kind) are read from it. A path that cannot be read is an error.
499
+
500
+ --gitlab-token-kind=personal|job What kind of token --gitlab-token is. Defaults to personal.
501
+
502
+ Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other
503
+ token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job
504
+ token settings.
394
505
  ```
395
506
 
396
- _See code: [lib/commands/gitlab/ci/job/log.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.11.0/packages/simply-gitlab/lib/commands/gitlab/ci/job/log.js)_
507
+ _See code: [lib/commands/gitlab/ci/job/log.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.12.0/packages/simply-gitlab/lib/commands/gitlab/ci/job/log.js)_
397
508
 
398
509
  ## `simply gitlab ci variable list`
399
510
 
@@ -401,8 +512,8 @@ List a project CI/CD variables.
401
512
 
402
513
  ```
403
514
  USAGE
404
- $ simply gitlab ci variable list -p <value> [--json] [-e <value>] [--gitlab-url <value>] [--gitlab-token <value>] [--limit
405
- <value>] [--reveal]
515
+ $ simply gitlab ci variable list -p <value> [--json] [-e <value>] [--gitlab-url <value>] [--gitlab-token <value>]
516
+ [--gitlab-token-kind personal|job] [--limit <value>] [--reveal]
406
517
 
407
518
  FLAGS
408
519
  -p, --project=<value> (required) [env: SIMPLY_GITLAB_PROJECT] Project id, or its full path such as
@@ -411,9 +522,13 @@ FLAGS
411
522
  --reveal Print the variable values in clear text.
412
523
 
413
524
  CONNECTION FLAGS
414
- -e, --env-file=<value> Path to a .env file holding connection settings.
415
- --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
416
- --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to https://gitlab.com.
525
+ -e, --env-file=<value> Path to a .env file holding connection settings.
526
+ --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
527
+ --gitlab-token-kind=<option> [env: SIMPLY_GITLAB_TOKEN_KIND] What kind of token --gitlab-token is. Defaults to
528
+ personal.
529
+ <options: personal|job>
530
+ --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to
531
+ https://gitlab.com.
417
532
 
418
533
  GLOBAL FLAGS
419
534
  --json Format output as json.
@@ -438,8 +553,14 @@ FLAG DESCRIPTIONS
438
553
 
439
554
  Loaded before anything else. Variables already present in the environment win, so the file never overrides an
440
555
  explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN,
441
- SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path
442
- that cannot be read is an error.
556
+ SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of
557
+ all but the token kind) are read from it. A path that cannot be read is an error.
558
+
559
+ --gitlab-token-kind=personal|job What kind of token --gitlab-token is. Defaults to personal.
560
+
561
+ Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other
562
+ token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job
563
+ token settings.
443
564
 
444
565
  --reveal Print the variable values in clear text.
445
566
 
@@ -447,7 +568,67 @@ FLAG DESCRIPTIONS
447
568
  where this output is going.
448
569
  ```
449
570
 
450
- _See code: [lib/commands/gitlab/ci/variable/list.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.11.0/packages/simply-gitlab/lib/commands/gitlab/ci/variable/list.js)_
571
+ _See code: [lib/commands/gitlab/ci/variable/list.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.12.0/packages/simply-gitlab/lib/commands/gitlab/ci/variable/list.js)_
572
+
573
+ ## `simply gitlab commit compare`
574
+
575
+ Compare two branches, tags, or commits.
576
+
577
+ ```
578
+ USAGE
579
+ $ simply gitlab commit compare -p <value> --from <value> --to <value> [--json] [-e <value>] [--gitlab-url <value>]
580
+ [--gitlab-token <value>] [--gitlab-token-kind personal|job] [--straight]
581
+
582
+ FLAGS
583
+ -p, --project=<value> (required) [env: SIMPLY_GITLAB_PROJECT] Project id, or its full path such as
584
+ group/subgroup/project.
585
+ --from=<value> (required) Branch, tag, or SHA to compare from.
586
+ --straight Compare the two refs directly rather than from where they diverge.
587
+ --to=<value> (required) Branch, tag, or SHA to compare to.
588
+
589
+ CONNECTION FLAGS
590
+ -e, --env-file=<value> Path to a .env file holding connection settings.
591
+ --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
592
+ --gitlab-token-kind=<option> [env: SIMPLY_GITLAB_TOKEN_KIND] What kind of token --gitlab-token is. Defaults to
593
+ personal.
594
+ <options: personal|job>
595
+ --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to
596
+ https://gitlab.com.
597
+
598
+ GLOBAL FLAGS
599
+ --json Format output as json.
600
+
601
+ DESCRIPTION
602
+ Compare two branches, tags, or commits.
603
+
604
+ Lists the commits on --to that are not on --from, and counts the files they change. By default the comparison starts
605
+ where the two refs diverge, which answers "what would merging --to bring in". --straight compares the two refs
606
+ directly instead.
607
+
608
+ GitLab limits how much one comparison returns and says so in the payload rather than failing; this command says so
609
+ too. Use --json for the diffs themselves.
610
+
611
+ EXAMPLES
612
+ $ simply gitlab commit compare --project group/project --from v1.2.0 --to main
613
+
614
+ $ simply gitlab commit compare --project group/project --from main --to feature --straight --json
615
+
616
+ FLAG DESCRIPTIONS
617
+ -e, --env-file=<value> Path to a .env file holding connection settings.
618
+
619
+ Loaded before anything else. Variables already present in the environment win, so the file never overrides an
620
+ explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN,
621
+ SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of
622
+ all but the token kind) are read from it. A path that cannot be read is an error.
623
+
624
+ --gitlab-token-kind=personal|job What kind of token --gitlab-token is. Defaults to personal.
625
+
626
+ Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other
627
+ token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job
628
+ token settings.
629
+ ```
630
+
631
+ _See code: [lib/commands/gitlab/commit/compare.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.12.0/packages/simply-gitlab/lib/commands/gitlab/commit/compare.js)_
451
632
 
452
633
  ## `simply gitlab commit create`
453
634
 
@@ -456,8 +637,9 @@ Commit several file changes at once.
456
637
  ```
457
638
  USAGE
458
639
  $ simply gitlab commit create -p <value> [--json] [-e <value>] [--gitlab-url <value>] [--gitlab-token <value>]
459
- [--dry-run] [--branch <value>] [--message <value>] [--actions <value>] [--start-branch <value>] [--start-sha
460
- <value>] [--author-email <value>] [--author-name <value>] [--force] [--body <value> | --body-file <value>]
640
+ [--gitlab-token-kind personal|job] [--dry-run] [--branch <value>] [--message <value>] [--actions <value>]
641
+ [--start-branch <value>] [--start-sha <value>] [--author-email <value>] [--author-name <value>] [--force] [--body
642
+ <value> | --body-file <value>]
461
643
 
462
644
  FLAGS
463
645
  -p, --project=<value> (required) [env: SIMPLY_GITLAB_PROJECT] Project id, or its full path such as
@@ -475,9 +657,13 @@ FLAGS
475
657
  --start-sha=<value> Commit SHA to start the new commit from.
476
658
 
477
659
  CONNECTION FLAGS
478
- -e, --env-file=<value> Path to a .env file holding connection settings.
479
- --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
480
- --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to https://gitlab.com.
660
+ -e, --env-file=<value> Path to a .env file holding connection settings.
661
+ --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
662
+ --gitlab-token-kind=<option> [env: SIMPLY_GITLAB_TOKEN_KIND] What kind of token --gitlab-token is. Defaults to
663
+ personal.
664
+ <options: personal|job>
665
+ --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to
666
+ https://gitlab.com.
481
667
 
482
668
  GLOBAL FLAGS
483
669
  --json Format output as json.
@@ -505,11 +691,17 @@ FLAG DESCRIPTIONS
505
691
 
506
692
  Loaded before anything else. Variables already present in the environment win, so the file never overrides an
507
693
  explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN,
508
- SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path
509
- that cannot be read is an error.
694
+ SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of
695
+ all but the token kind) are read from it. A path that cannot be read is an error.
696
+
697
+ --gitlab-token-kind=personal|job What kind of token --gitlab-token is. Defaults to personal.
698
+
699
+ Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other
700
+ token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job
701
+ token settings.
510
702
  ```
511
703
 
512
- _See code: [lib/commands/gitlab/commit/create.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.11.0/packages/simply-gitlab/lib/commands/gitlab/commit/create.js)_
704
+ _See code: [lib/commands/gitlab/commit/create.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.12.0/packages/simply-gitlab/lib/commands/gitlab/commit/create.js)_
513
705
 
514
706
  ## `simply gitlab commit diff`
515
707
 
@@ -518,7 +710,7 @@ Show the changes a commit made.
518
710
  ```
519
711
  USAGE
520
712
  $ simply gitlab commit diff -p <value> --sha <value> [--json] [-e <value>] [--gitlab-url <value>] [--gitlab-token
521
- <value>] [--stat]
713
+ <value>] [--gitlab-token-kind personal|job] [--stat]
522
714
 
523
715
  FLAGS
524
716
  -p, --project=<value> (required) [env: SIMPLY_GITLAB_PROJECT] Project id, or its full path such as
@@ -527,9 +719,13 @@ FLAGS
527
719
  --stat List the changed files without printing the hunks.
528
720
 
529
721
  CONNECTION FLAGS
530
- -e, --env-file=<value> Path to a .env file holding connection settings.
531
- --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
532
- --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to https://gitlab.com.
722
+ -e, --env-file=<value> Path to a .env file holding connection settings.
723
+ --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
724
+ --gitlab-token-kind=<option> [env: SIMPLY_GITLAB_TOKEN_KIND] What kind of token --gitlab-token is. Defaults to
725
+ personal.
726
+ <options: personal|job>
727
+ --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to
728
+ https://gitlab.com.
533
729
 
534
730
  GLOBAL FLAGS
535
731
  --json Format output as json.
@@ -550,11 +746,17 @@ FLAG DESCRIPTIONS
550
746
 
551
747
  Loaded before anything else. Variables already present in the environment win, so the file never overrides an
552
748
  explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN,
553
- SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path
554
- that cannot be read is an error.
749
+ SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of
750
+ all but the token kind) are read from it. A path that cannot be read is an error.
751
+
752
+ --gitlab-token-kind=personal|job What kind of token --gitlab-token is. Defaults to personal.
753
+
754
+ Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other
755
+ token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job
756
+ token settings.
555
757
  ```
556
758
 
557
- _See code: [lib/commands/gitlab/commit/diff.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.11.0/packages/simply-gitlab/lib/commands/gitlab/commit/diff.js)_
759
+ _See code: [lib/commands/gitlab/commit/diff.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.12.0/packages/simply-gitlab/lib/commands/gitlab/commit/diff.js)_
558
760
 
559
761
  ## `simply gitlab commit list`
560
762
 
@@ -562,8 +764,9 @@ List repository commits.
562
764
 
563
765
  ```
564
766
  USAGE
565
- $ simply gitlab commit list -p <value> [--json] [-e <value>] [--gitlab-url <value>] [--gitlab-token <value>] [--limit
566
- <value>] [--ref <value>] [--path <value>] [--since <value>] [--until <value>] [--author <value>] [--stats]
767
+ $ simply gitlab commit list -p <value> [--json] [-e <value>] [--gitlab-url <value>] [--gitlab-token <value>]
768
+ [--gitlab-token-kind personal|job] [--limit <value>] [--ref <value>] [--path <value>] [--since <value>] [--until
769
+ <value>] [--author <value>] [--stats]
567
770
 
568
771
  FLAGS
569
772
  -p, --project=<value> (required) [env: SIMPLY_GITLAB_PROJECT] Project id, or its full path such as
@@ -577,9 +780,13 @@ FLAGS
577
780
  --until=<value> Only commits on or before this ISO 8601 timestamp.
578
781
 
579
782
  CONNECTION FLAGS
580
- -e, --env-file=<value> Path to a .env file holding connection settings.
581
- --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
582
- --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to https://gitlab.com.
783
+ -e, --env-file=<value> Path to a .env file holding connection settings.
784
+ --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
785
+ --gitlab-token-kind=<option> [env: SIMPLY_GITLAB_TOKEN_KIND] What kind of token --gitlab-token is. Defaults to
786
+ personal.
787
+ <options: personal|job>
788
+ --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to
789
+ https://gitlab.com.
583
790
 
584
791
  GLOBAL FLAGS
585
792
  --json Format output as json.
@@ -604,11 +811,17 @@ FLAG DESCRIPTIONS
604
811
 
605
812
  Loaded before anything else. Variables already present in the environment win, so the file never overrides an
606
813
  explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN,
607
- SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path
608
- that cannot be read is an error.
814
+ SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of
815
+ all but the token kind) are read from it. A path that cannot be read is an error.
816
+
817
+ --gitlab-token-kind=personal|job What kind of token --gitlab-token is. Defaults to personal.
818
+
819
+ Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other
820
+ token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job
821
+ token settings.
609
822
  ```
610
823
 
611
- _See code: [lib/commands/gitlab/commit/list.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.11.0/packages/simply-gitlab/lib/commands/gitlab/commit/list.js)_
824
+ _See code: [lib/commands/gitlab/commit/list.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.12.0/packages/simply-gitlab/lib/commands/gitlab/commit/list.js)_
612
825
 
613
826
  ## `simply gitlab commit view`
614
827
 
@@ -617,7 +830,7 @@ Show one commit.
617
830
  ```
618
831
  USAGE
619
832
  $ simply gitlab commit view -p <value> --sha <value> [--json] [-e <value>] [--gitlab-url <value>] [--gitlab-token
620
- <value>]
833
+ <value>] [--gitlab-token-kind personal|job]
621
834
 
622
835
  FLAGS
623
836
  -p, --project=<value> (required) [env: SIMPLY_GITLAB_PROJECT] Project id, or its full path such as
@@ -625,9 +838,13 @@ FLAGS
625
838
  --sha=<value> (required) Commit SHA, or the name of a branch or tag.
626
839
 
627
840
  CONNECTION FLAGS
628
- -e, --env-file=<value> Path to a .env file holding connection settings.
629
- --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
630
- --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to https://gitlab.com.
841
+ -e, --env-file=<value> Path to a .env file holding connection settings.
842
+ --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
843
+ --gitlab-token-kind=<option> [env: SIMPLY_GITLAB_TOKEN_KIND] What kind of token --gitlab-token is. Defaults to
844
+ personal.
845
+ <options: personal|job>
846
+ --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to
847
+ https://gitlab.com.
631
848
 
632
849
  GLOBAL FLAGS
633
850
  --json Format output as json.
@@ -648,11 +865,17 @@ FLAG DESCRIPTIONS
648
865
 
649
866
  Loaded before anything else. Variables already present in the environment win, so the file never overrides an
650
867
  explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN,
651
- SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path
652
- that cannot be read is an error.
868
+ SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of
869
+ all but the token kind) are read from it. A path that cannot be read is an error.
870
+
871
+ --gitlab-token-kind=personal|job What kind of token --gitlab-token is. Defaults to personal.
872
+
873
+ Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other
874
+ token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job
875
+ token settings.
653
876
  ```
654
877
 
655
- _See code: [lib/commands/gitlab/commit/view.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.11.0/packages/simply-gitlab/lib/commands/gitlab/commit/view.js)_
878
+ _See code: [lib/commands/gitlab/commit/view.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.12.0/packages/simply-gitlab/lib/commands/gitlab/commit/view.js)_
656
879
 
657
880
  ## `simply gitlab config apply`
658
881
 
@@ -660,8 +883,8 @@ Bring projects onto a baseline config.
660
883
 
661
884
  ```
662
885
  USAGE
663
- $ simply gitlab config apply -c <value> [--json] [-e <value>] [--gitlab-url <value>] [--gitlab-token <value>] [--target
664
- <value>...] [--concurrency <value>] [--fail-fast] [--dry-run]
886
+ $ simply gitlab config apply -c <value> [--json] [-e <value>] [--gitlab-url <value>] [--gitlab-token <value>]
887
+ [--gitlab-token-kind personal|job] [--target <value>...] [--concurrency <value>] [--fail-fast] [--dry-run]
665
888
 
666
889
  FLAGS
667
890
  -c, --config=<value> (required) Path to the baseline configuration file.
@@ -671,9 +894,13 @@ FLAGS
671
894
  --target=<value>... Limit the run to this project path. Repeatable.
672
895
 
673
896
  CONNECTION FLAGS
674
- -e, --env-file=<value> Path to a .env file holding connection settings.
675
- --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
676
- --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to https://gitlab.com.
897
+ -e, --env-file=<value> Path to a .env file holding connection settings.
898
+ --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
899
+ --gitlab-token-kind=<option> [env: SIMPLY_GITLAB_TOKEN_KIND] What kind of token --gitlab-token is. Defaults to
900
+ personal.
901
+ <options: personal|job>
902
+ --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to
903
+ https://gitlab.com.
677
904
 
678
905
  GLOBAL FLAGS
679
906
  --json Format output as json.
@@ -707,21 +934,27 @@ FLAG DESCRIPTIONS
707
934
 
708
935
  Loaded before anything else. Variables already present in the environment win, so the file never overrides an
709
936
  explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN,
710
- SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path
711
- that cannot be read is an error.
937
+ SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of
938
+ all but the token kind) are read from it. A path that cannot be read is an error.
712
939
 
713
940
  --concurrency=<value> How many targets to work on at once.
714
941
 
715
942
  Small by default. The client already retries a rate-limited request with a capped Retry-After, so raising this
716
943
  trades a shared instance responsiveness for very little wall-clock time.
717
944
 
945
+ --gitlab-token-kind=personal|job What kind of token --gitlab-token is. Defaults to personal.
946
+
947
+ Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other
948
+ token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job
949
+ token settings.
950
+
718
951
  --target=<value>... Limit the run to this project path. Repeatable.
719
952
 
720
953
  Narrows a run without editing the config, for the loop of fixing one project and checking it again. Naming a project
721
954
  the config does not target is an error rather than a silent no-op.
722
955
  ```
723
956
 
724
- _See code: [lib/commands/gitlab/config/apply.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.11.0/packages/simply-gitlab/lib/commands/gitlab/config/apply.js)_
957
+ _See code: [lib/commands/gitlab/config/apply.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.12.0/packages/simply-gitlab/lib/commands/gitlab/config/apply.js)_
725
958
 
726
959
  ## `simply gitlab config export`
727
960
 
@@ -730,7 +963,8 @@ Write a baseline config describing an existing project.
730
963
  ```
731
964
  USAGE
732
965
  $ simply gitlab config export -p <value> [--json] [-e <value>] [--gitlab-url <value>] [--gitlab-token <value>]
733
- [--section settings|protectedBranches|protectedTags|approvals|approvalRules|pushRules|badges|variables...]
966
+ [--gitlab-token-kind personal|job] [--section
967
+ settings|protectedBranches|protectedTags|approvals|approvalRules|pushRules|badges|variables...]
734
968
 
735
969
  FLAGS
736
970
  -p, --project=<value> (required) [env: SIMPLY_GITLAB_PROJECT] Project id, or its full path such as
@@ -740,9 +974,13 @@ FLAGS
740
974
  |variables>
741
975
 
742
976
  CONNECTION FLAGS
743
- -e, --env-file=<value> Path to a .env file holding connection settings.
744
- --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
745
- --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to https://gitlab.com.
977
+ -e, --env-file=<value> Path to a .env file holding connection settings.
978
+ --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
979
+ --gitlab-token-kind=<option> [env: SIMPLY_GITLAB_TOKEN_KIND] What kind of token --gitlab-token is. Defaults to
980
+ personal.
981
+ <options: personal|job>
982
+ --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to
983
+ https://gitlab.com.
746
984
 
747
985
  GLOBAL FLAGS
748
986
  --json Format output as json.
@@ -770,11 +1008,17 @@ FLAG DESCRIPTIONS
770
1008
 
771
1009
  Loaded before anything else. Variables already present in the environment win, so the file never overrides an
772
1010
  explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN,
773
- SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path
774
- that cannot be read is an error.
1011
+ SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of
1012
+ all but the token kind) are read from it. A path that cannot be read is an error.
1013
+
1014
+ --gitlab-token-kind=personal|job What kind of token --gitlab-token is. Defaults to personal.
1015
+
1016
+ Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other
1017
+ token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job
1018
+ token settings.
775
1019
  ```
776
1020
 
777
- _See code: [lib/commands/gitlab/config/export.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.11.0/packages/simply-gitlab/lib/commands/gitlab/config/export.js)_
1021
+ _See code: [lib/commands/gitlab/config/export.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.12.0/packages/simply-gitlab/lib/commands/gitlab/config/export.js)_
778
1022
 
779
1023
  ## `simply gitlab config plan`
780
1024
 
@@ -782,8 +1026,8 @@ Report how projects differ from a baseline config.
782
1026
 
783
1027
  ```
784
1028
  USAGE
785
- $ simply gitlab config plan -c <value> [--json] [-e <value>] [--gitlab-url <value>] [--gitlab-token <value>] [--target
786
- <value>...] [--concurrency <value>] [--fail-fast] [--fail-on-drift]
1029
+ $ simply gitlab config plan -c <value> [--json] [-e <value>] [--gitlab-url <value>] [--gitlab-token <value>]
1030
+ [--gitlab-token-kind personal|job] [--target <value>...] [--concurrency <value>] [--fail-fast] [--fail-on-drift]
787
1031
 
788
1032
  FLAGS
789
1033
  -c, --config=<value> (required) Path to the baseline configuration file.
@@ -793,9 +1037,13 @@ FLAGS
793
1037
  --target=<value>... Limit the run to this project path. Repeatable.
794
1038
 
795
1039
  CONNECTION FLAGS
796
- -e, --env-file=<value> Path to a .env file holding connection settings.
797
- --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
798
- --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to https://gitlab.com.
1040
+ -e, --env-file=<value> Path to a .env file holding connection settings.
1041
+ --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
1042
+ --gitlab-token-kind=<option> [env: SIMPLY_GITLAB_TOKEN_KIND] What kind of token --gitlab-token is. Defaults to
1043
+ personal.
1044
+ <options: personal|job>
1045
+ --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to
1046
+ https://gitlab.com.
799
1047
 
800
1048
  GLOBAL FLAGS
801
1049
  --json Format output as json.
@@ -830,21 +1078,27 @@ FLAG DESCRIPTIONS
830
1078
 
831
1079
  Loaded before anything else. Variables already present in the environment win, so the file never overrides an
832
1080
  explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN,
833
- SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path
834
- that cannot be read is an error.
1081
+ SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of
1082
+ all but the token kind) are read from it. A path that cannot be read is an error.
835
1083
 
836
1084
  --concurrency=<value> How many targets to work on at once.
837
1085
 
838
1086
  Small by default. The client already retries a rate-limited request with a capped Retry-After, so raising this
839
1087
  trades a shared instance responsiveness for very little wall-clock time.
840
1088
 
1089
+ --gitlab-token-kind=personal|job What kind of token --gitlab-token is. Defaults to personal.
1090
+
1091
+ Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other
1092
+ token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job
1093
+ token settings.
1094
+
841
1095
  --target=<value>... Limit the run to this project path. Repeatable.
842
1096
 
843
1097
  Narrows a run without editing the config, for the loop of fixing one project and checking it again. Naming a project
844
1098
  the config does not target is an error rather than a silent no-op.
845
1099
  ```
846
1100
 
847
- _See code: [lib/commands/gitlab/config/plan.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.11.0/packages/simply-gitlab/lib/commands/gitlab/config/plan.js)_
1101
+ _See code: [lib/commands/gitlab/config/plan.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.12.0/packages/simply-gitlab/lib/commands/gitlab/config/plan.js)_
848
1102
 
849
1103
  ## `simply gitlab file create`
850
1104
 
@@ -853,8 +1107,8 @@ Create a file in a repository.
853
1107
  ```
854
1108
  USAGE
855
1109
  $ simply gitlab file create -p <value> --path <value> --branch <value> --message <value> [--json] [-e <value>]
856
- [--gitlab-url <value>] [--gitlab-token <value>] [--dry-run] [--content <value> | --content-file <value>]
857
- [--start-branch <value>] [--author-email <value>] [--author-name <value>]
1110
+ [--gitlab-url <value>] [--gitlab-token <value>] [--gitlab-token-kind personal|job] [--dry-run] [--content <value> |
1111
+ --content-file <value>] [--start-branch <value>] [--author-email <value>] [--author-name <value>]
858
1112
 
859
1113
  FLAGS
860
1114
  -p, --project=<value> (required) [env: SIMPLY_GITLAB_PROJECT] Project id, or its full path such as
@@ -870,9 +1124,13 @@ FLAGS
870
1124
  --start-branch=<value> Branch to create --branch from, if it does not exist.
871
1125
 
872
1126
  CONNECTION FLAGS
873
- -e, --env-file=<value> Path to a .env file holding connection settings.
874
- --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
875
- --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to https://gitlab.com.
1127
+ -e, --env-file=<value> Path to a .env file holding connection settings.
1128
+ --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
1129
+ --gitlab-token-kind=<option> [env: SIMPLY_GITLAB_TOKEN_KIND] What kind of token --gitlab-token is. Defaults to
1130
+ personal.
1131
+ <options: personal|job>
1132
+ --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to
1133
+ https://gitlab.com.
876
1134
 
877
1135
  GLOBAL FLAGS
878
1136
  --json Format output as json.
@@ -894,11 +1152,17 @@ FLAG DESCRIPTIONS
894
1152
 
895
1153
  Loaded before anything else. Variables already present in the environment win, so the file never overrides an
896
1154
  explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN,
897
- SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path
898
- that cannot be read is an error.
1155
+ SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of
1156
+ all but the token kind) are read from it. A path that cannot be read is an error.
1157
+
1158
+ --gitlab-token-kind=personal|job What kind of token --gitlab-token is. Defaults to personal.
1159
+
1160
+ Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other
1161
+ token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job
1162
+ token settings.
899
1163
  ```
900
1164
 
901
- _See code: [lib/commands/gitlab/file/create.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.11.0/packages/simply-gitlab/lib/commands/gitlab/file/create.js)_
1165
+ _See code: [lib/commands/gitlab/file/create.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.12.0/packages/simply-gitlab/lib/commands/gitlab/file/create.js)_
902
1166
 
903
1167
  ## `simply gitlab file update`
904
1168
 
@@ -907,8 +1171,9 @@ Replace a file in a repository.
907
1171
  ```
908
1172
  USAGE
909
1173
  $ simply gitlab file update -p <value> --path <value> --branch <value> --message <value> [--json] [-e <value>]
910
- [--gitlab-url <value>] [--gitlab-token <value>] [--dry-run] [--content <value> | --content-file <value>]
911
- [--start-branch <value>] [--last-commit-id <value>] [--author-email <value>] [--author-name <value>]
1174
+ [--gitlab-url <value>] [--gitlab-token <value>] [--gitlab-token-kind personal|job] [--dry-run] [--content <value> |
1175
+ --content-file <value>] [--start-branch <value>] [--last-commit-id <value>] [--author-email <value>] [--author-name
1176
+ <value>]
912
1177
 
913
1178
  FLAGS
914
1179
  -p, --project=<value> (required) [env: SIMPLY_GITLAB_PROJECT] Project id, or its full path such as
@@ -925,9 +1190,13 @@ FLAGS
925
1190
  --start-branch=<value> Branch to create --branch from, if it does not exist.
926
1191
 
927
1192
  CONNECTION FLAGS
928
- -e, --env-file=<value> Path to a .env file holding connection settings.
929
- --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
930
- --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to https://gitlab.com.
1193
+ -e, --env-file=<value> Path to a .env file holding connection settings.
1194
+ --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
1195
+ --gitlab-token-kind=<option> [env: SIMPLY_GITLAB_TOKEN_KIND] What kind of token --gitlab-token is. Defaults to
1196
+ personal.
1197
+ <options: personal|job>
1198
+ --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to
1199
+ https://gitlab.com.
931
1200
 
932
1201
  GLOBAL FLAGS
933
1202
  --json Format output as json.
@@ -949,11 +1218,17 @@ FLAG DESCRIPTIONS
949
1218
 
950
1219
  Loaded before anything else. Variables already present in the environment win, so the file never overrides an
951
1220
  explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN,
952
- SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path
953
- that cannot be read is an error.
1221
+ SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of
1222
+ all but the token kind) are read from it. A path that cannot be read is an error.
1223
+
1224
+ --gitlab-token-kind=personal|job What kind of token --gitlab-token is. Defaults to personal.
1225
+
1226
+ Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other
1227
+ token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job
1228
+ token settings.
954
1229
  ```
955
1230
 
956
- _See code: [lib/commands/gitlab/file/update.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.11.0/packages/simply-gitlab/lib/commands/gitlab/file/update.js)_
1231
+ _See code: [lib/commands/gitlab/file/update.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.12.0/packages/simply-gitlab/lib/commands/gitlab/file/update.js)_
957
1232
 
958
1233
  ## `simply gitlab file view`
959
1234
 
@@ -962,7 +1237,7 @@ Print a file from a repository.
962
1237
  ```
963
1238
  USAGE
964
1239
  $ simply gitlab file view -p <value> --path <value> --ref <value> [--json] [-e <value>] [--gitlab-url <value>]
965
- [--gitlab-token <value>] [--raw]
1240
+ [--gitlab-token <value>] [--gitlab-token-kind personal|job] [--raw]
966
1241
 
967
1242
  FLAGS
968
1243
  -p, --project=<value> (required) [env: SIMPLY_GITLAB_PROJECT] Project id, or its full path such as
@@ -972,9 +1247,13 @@ FLAGS
972
1247
  --ref=<value> (required) Branch, tag, or commit SHA to read from.
973
1248
 
974
1249
  CONNECTION FLAGS
975
- -e, --env-file=<value> Path to a .env file holding connection settings.
976
- --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
977
- --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to https://gitlab.com.
1250
+ -e, --env-file=<value> Path to a .env file holding connection settings.
1251
+ --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
1252
+ --gitlab-token-kind=<option> [env: SIMPLY_GITLAB_TOKEN_KIND] What kind of token --gitlab-token is. Defaults to
1253
+ personal.
1254
+ <options: personal|job>
1255
+ --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to
1256
+ https://gitlab.com.
978
1257
 
979
1258
  GLOBAL FLAGS
980
1259
  --json Format output as json.
@@ -998,11 +1277,17 @@ FLAG DESCRIPTIONS
998
1277
 
999
1278
  Loaded before anything else. Variables already present in the environment win, so the file never overrides an
1000
1279
  explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN,
1001
- SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path
1002
- that cannot be read is an error.
1280
+ SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of
1281
+ all but the token kind) are read from it. A path that cannot be read is an error.
1282
+
1283
+ --gitlab-token-kind=personal|job What kind of token --gitlab-token is. Defaults to personal.
1284
+
1285
+ Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other
1286
+ token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job
1287
+ token settings.
1003
1288
  ```
1004
1289
 
1005
- _See code: [lib/commands/gitlab/file/view.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.11.0/packages/simply-gitlab/lib/commands/gitlab/file/view.js)_
1290
+ _See code: [lib/commands/gitlab/file/view.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.12.0/packages/simply-gitlab/lib/commands/gitlab/file/view.js)_
1006
1291
 
1007
1292
  ## `simply gitlab mr comment list`
1008
1293
 
@@ -1011,7 +1296,7 @@ List the comments on a merge request.
1011
1296
  ```
1012
1297
  USAGE
1013
1298
  $ simply gitlab mr comment list -p <value> --mr <value> [--json] [-e <value>] [--gitlab-url <value>] [--gitlab-token
1014
- <value>] [--limit <value>] [--sort asc|desc] [--include-system | --code-only]
1299
+ <value>] [--gitlab-token-kind personal|job] [--limit <value>] [--sort asc|desc] [--include-system | --code-only]
1015
1300
 
1016
1301
  FLAGS
1017
1302
  -p, --project=<value> (required) [env: SIMPLY_GITLAB_PROJECT] Project id, or its full path such as
@@ -1024,9 +1309,13 @@ FLAGS
1024
1309
  <options: asc|desc>
1025
1310
 
1026
1311
  CONNECTION FLAGS
1027
- -e, --env-file=<value> Path to a .env file holding connection settings.
1028
- --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
1029
- --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to https://gitlab.com.
1312
+ -e, --env-file=<value> Path to a .env file holding connection settings.
1313
+ --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
1314
+ --gitlab-token-kind=<option> [env: SIMPLY_GITLAB_TOKEN_KIND] What kind of token --gitlab-token is. Defaults to
1315
+ personal.
1316
+ <options: personal|job>
1317
+ --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to
1318
+ https://gitlab.com.
1030
1319
 
1031
1320
  GLOBAL FLAGS
1032
1321
  --json Format output as json.
@@ -1054,11 +1343,17 @@ FLAG DESCRIPTIONS
1054
1343
 
1055
1344
  Loaded before anything else. Variables already present in the environment win, so the file never overrides an
1056
1345
  explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN,
1057
- SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path
1058
- that cannot be read is an error.
1346
+ SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of
1347
+ all but the token kind) are read from it. A path that cannot be read is an error.
1348
+
1349
+ --gitlab-token-kind=personal|job What kind of token --gitlab-token is. Defaults to personal.
1350
+
1351
+ Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other
1352
+ token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job
1353
+ token settings.
1059
1354
  ```
1060
1355
 
1061
- _See code: [lib/commands/gitlab/mr/comment/list.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.11.0/packages/simply-gitlab/lib/commands/gitlab/mr/comment/list.js)_
1356
+ _See code: [lib/commands/gitlab/mr/comment/list.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.12.0/packages/simply-gitlab/lib/commands/gitlab/mr/comment/list.js)_
1062
1357
 
1063
1358
  ## `simply gitlab mr create`
1064
1359
 
@@ -1067,9 +1362,9 @@ Open a merge request.
1067
1362
  ```
1068
1363
  USAGE
1069
1364
  $ simply gitlab mr create -p <value> [--json] [-e <value>] [--gitlab-url <value>] [--gitlab-token <value>]
1070
- [--dry-run] [--source-branch <value>] [--target-branch <value>] [--title <value>] [--description <value>] [--draft]
1071
- [--squash] [--remove-source-branch] [--assignee-id <value>...] [--reviewer-id <value>...] [--labels <value>]
1072
- [--milestone-id <value>] [--body <value> | --body-file <value>]
1365
+ [--gitlab-token-kind personal|job] [--dry-run] [--source-branch <value>] [--target-branch <value>] [--title <value>]
1366
+ [--description <value>] [--draft] [--squash] [--remove-source-branch] [--assignee-id <value>...] [--reviewer-id
1367
+ <value>...] [--labels <value>] [--milestone-id <value>] [--body <value> | --body-file <value>]
1073
1368
 
1074
1369
  FLAGS
1075
1370
  -p, --project=<value> (required) [env: SIMPLY_GITLAB_PROJECT] Project id, or its full path such as
@@ -1090,9 +1385,13 @@ FLAGS
1090
1385
  --title=<value> Merge request title.
1091
1386
 
1092
1387
  CONNECTION FLAGS
1093
- -e, --env-file=<value> Path to a .env file holding connection settings.
1094
- --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
1095
- --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to https://gitlab.com.
1388
+ -e, --env-file=<value> Path to a .env file holding connection settings.
1389
+ --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
1390
+ --gitlab-token-kind=<option> [env: SIMPLY_GITLAB_TOKEN_KIND] What kind of token --gitlab-token is. Defaults to
1391
+ personal.
1392
+ <options: personal|job>
1393
+ --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to
1394
+ https://gitlab.com.
1096
1395
 
1097
1396
  GLOBAL FLAGS
1098
1397
  --json Format output as json.
@@ -1117,11 +1416,17 @@ FLAG DESCRIPTIONS
1117
1416
 
1118
1417
  Loaded before anything else. Variables already present in the environment win, so the file never overrides an
1119
1418
  explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN,
1120
- SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path
1121
- that cannot be read is an error.
1419
+ SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of
1420
+ all but the token kind) are read from it. A path that cannot be read is an error.
1421
+
1422
+ --gitlab-token-kind=personal|job What kind of token --gitlab-token is. Defaults to personal.
1423
+
1424
+ Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other
1425
+ token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job
1426
+ token settings.
1122
1427
  ```
1123
1428
 
1124
- _See code: [lib/commands/gitlab/mr/create.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.11.0/packages/simply-gitlab/lib/commands/gitlab/mr/create.js)_
1429
+ _See code: [lib/commands/gitlab/mr/create.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.12.0/packages/simply-gitlab/lib/commands/gitlab/mr/create.js)_
1125
1430
 
1126
1431
  ## `simply gitlab mr list`
1127
1432
 
@@ -1129,9 +1434,10 @@ List merge requests for a project.
1129
1434
 
1130
1435
  ```
1131
1436
  USAGE
1132
- $ simply gitlab mr list -p <value> [--json] [-e <value>] [--gitlab-url <value>] [--gitlab-token <value>] [--limit
1133
- <value>] [--state opened|closed|locked|merged|all] [--source-branch <value>] [--target-branch <value>]
1134
- [--author-username <value>] [--reviewer-username <value>] [--labels <value>] [--search <value>]
1437
+ $ simply gitlab mr list -p <value> [--json] [-e <value>] [--gitlab-url <value>] [--gitlab-token <value>]
1438
+ [--gitlab-token-kind personal|job] [--limit <value>] [--state opened|closed|locked|merged|all] [--source-branch
1439
+ <value>] [--target-branch <value>] [--author-username <value>] [--reviewer-username <value>] [--labels <value>]
1440
+ [--search <value>]
1135
1441
 
1136
1442
  FLAGS
1137
1443
  -p, --project=<value> (required) [env: SIMPLY_GITLAB_PROJECT] Project id, or its full path such as
@@ -1147,9 +1453,13 @@ FLAGS
1147
1453
  --target-branch=<value> Only merge requests into this target branch.
1148
1454
 
1149
1455
  CONNECTION FLAGS
1150
- -e, --env-file=<value> Path to a .env file holding connection settings.
1151
- --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
1152
- --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to https://gitlab.com.
1456
+ -e, --env-file=<value> Path to a .env file holding connection settings.
1457
+ --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
1458
+ --gitlab-token-kind=<option> [env: SIMPLY_GITLAB_TOKEN_KIND] What kind of token --gitlab-token is. Defaults to
1459
+ personal.
1460
+ <options: personal|job>
1461
+ --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to
1462
+ https://gitlab.com.
1153
1463
 
1154
1464
  GLOBAL FLAGS
1155
1465
  --json Format output as json.
@@ -1173,11 +1483,17 @@ FLAG DESCRIPTIONS
1173
1483
 
1174
1484
  Loaded before anything else. Variables already present in the environment win, so the file never overrides an
1175
1485
  explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN,
1176
- SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path
1177
- that cannot be read is an error.
1486
+ SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of
1487
+ all but the token kind) are read from it. A path that cannot be read is an error.
1488
+
1489
+ --gitlab-token-kind=personal|job What kind of token --gitlab-token is. Defaults to personal.
1490
+
1491
+ Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other
1492
+ token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job
1493
+ token settings.
1178
1494
  ```
1179
1495
 
1180
- _See code: [lib/commands/gitlab/mr/list.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.11.0/packages/simply-gitlab/lib/commands/gitlab/mr/list.js)_
1496
+ _See code: [lib/commands/gitlab/mr/list.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.12.0/packages/simply-gitlab/lib/commands/gitlab/mr/list.js)_
1181
1497
 
1182
1498
  ## `simply gitlab mr merge`
1183
1499
 
@@ -1186,8 +1502,8 @@ Merge a merge request, or add it to the merge train.
1186
1502
  ```
1187
1503
  USAGE
1188
1504
  $ simply gitlab mr merge -p <value> --mr <value> [--json] [-e <value>] [--gitlab-url <value>] [--gitlab-token
1189
- <value>] [--dry-run] [--sha <value>] [--auto-merge | --skip-merge-train] [--squash] [--remove-source-branch]
1190
- [--merge-commit-message <value>] [--squash-commit-message <value>] [--confirm]
1505
+ <value>] [--gitlab-token-kind personal|job] [--dry-run] [--sha <value>] [--auto-merge | --skip-merge-train]
1506
+ [--squash] [--remove-source-branch] [--merge-commit-message <value>] [--squash-commit-message <value>] [--confirm]
1191
1507
 
1192
1508
  FLAGS
1193
1509
  -p, --project=<value> (required) [env: SIMPLY_GITLAB_PROJECT] Project id, or its full path such as
@@ -1205,9 +1521,13 @@ FLAGS
1205
1521
  --squash-commit-message=<value> Custom squash commit message.
1206
1522
 
1207
1523
  CONNECTION FLAGS
1208
- -e, --env-file=<value> Path to a .env file holding connection settings.
1209
- --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
1210
- --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to https://gitlab.com.
1524
+ -e, --env-file=<value> Path to a .env file holding connection settings.
1525
+ --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
1526
+ --gitlab-token-kind=<option> [env: SIMPLY_GITLAB_TOKEN_KIND] What kind of token --gitlab-token is. Defaults to
1527
+ personal.
1528
+ <options: personal|job>
1529
+ --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to
1530
+ https://gitlab.com.
1211
1531
 
1212
1532
  GLOBAL FLAGS
1213
1533
  --json Format output as json.
@@ -1239,11 +1559,17 @@ FLAG DESCRIPTIONS
1239
1559
 
1240
1560
  Loaded before anything else. Variables already present in the environment win, so the file never overrides an
1241
1561
  explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN,
1242
- SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path
1243
- that cannot be read is an error.
1562
+ SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of
1563
+ all but the token kind) are read from it. A path that cannot be read is an error.
1564
+
1565
+ --gitlab-token-kind=personal|job What kind of token --gitlab-token is. Defaults to personal.
1566
+
1567
+ Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other
1568
+ token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job
1569
+ token settings.
1244
1570
  ```
1245
1571
 
1246
- _See code: [lib/commands/gitlab/mr/merge.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.11.0/packages/simply-gitlab/lib/commands/gitlab/mr/merge.js)_
1572
+ _See code: [lib/commands/gitlab/mr/merge.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.12.0/packages/simply-gitlab/lib/commands/gitlab/mr/merge.js)_
1247
1573
 
1248
1574
  ## `simply gitlab mr update`
1249
1575
 
@@ -1252,9 +1578,9 @@ Change an existing merge request.
1252
1578
  ```
1253
1579
  USAGE
1254
1580
  $ simply gitlab mr update -p <value> --mr <value> [--json] [-e <value>] [--gitlab-url <value>] [--gitlab-token
1255
- <value>] [--dry-run] [--title <value>] [--description <value>] [--target-branch <value>] [--state close|reopen]
1256
- [--squash] [--remove-source-branch] [--assignee-id <value>...] [--reviewer-id <value>...] [--labels <value>]
1257
- [--milestone-id <value>] [--body <value> | --body-file <value>]
1581
+ <value>] [--gitlab-token-kind personal|job] [--dry-run] [--title <value>] [--description <value>] [--target-branch
1582
+ <value>] [--state close|reopen] [--squash] [--remove-source-branch] [--assignee-id <value>...] [--reviewer-id
1583
+ <value>...] [--labels <value>] [--milestone-id <value>] [--body <value> | --body-file <value>]
1258
1584
 
1259
1585
  FLAGS
1260
1586
  -p, --project=<value> (required) [env: SIMPLY_GITLAB_PROJECT] Project id, or its full path such as
@@ -1276,9 +1602,13 @@ FLAGS
1276
1602
  --title=<value> New title.
1277
1603
 
1278
1604
  CONNECTION FLAGS
1279
- -e, --env-file=<value> Path to a .env file holding connection settings.
1280
- --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
1281
- --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to https://gitlab.com.
1605
+ -e, --env-file=<value> Path to a .env file holding connection settings.
1606
+ --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
1607
+ --gitlab-token-kind=<option> [env: SIMPLY_GITLAB_TOKEN_KIND] What kind of token --gitlab-token is. Defaults to
1608
+ personal.
1609
+ <options: personal|job>
1610
+ --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to
1611
+ https://gitlab.com.
1282
1612
 
1283
1613
  GLOBAL FLAGS
1284
1614
  --json Format output as json.
@@ -1305,11 +1635,17 @@ FLAG DESCRIPTIONS
1305
1635
 
1306
1636
  Loaded before anything else. Variables already present in the environment win, so the file never overrides an
1307
1637
  explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN,
1308
- SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path
1309
- that cannot be read is an error.
1638
+ SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of
1639
+ all but the token kind) are read from it. A path that cannot be read is an error.
1640
+
1641
+ --gitlab-token-kind=personal|job What kind of token --gitlab-token is. Defaults to personal.
1642
+
1643
+ Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other
1644
+ token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job
1645
+ token settings.
1310
1646
  ```
1311
1647
 
1312
- _See code: [lib/commands/gitlab/mr/update.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.11.0/packages/simply-gitlab/lib/commands/gitlab/mr/update.js)_
1648
+ _See code: [lib/commands/gitlab/mr/update.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.12.0/packages/simply-gitlab/lib/commands/gitlab/mr/update.js)_
1313
1649
 
1314
1650
  ## `simply gitlab mr view`
1315
1651
 
@@ -1318,17 +1654,22 @@ Show one merge request.
1318
1654
  ```
1319
1655
  USAGE
1320
1656
  $ simply gitlab mr view -p <value> --mr <value> [--json] [-e <value>] [--gitlab-url <value>] [--gitlab-token
1321
- <value>]
1657
+ <value>] [--gitlab-token-kind personal|job] [--recheck]
1322
1658
 
1323
1659
  FLAGS
1324
1660
  -p, --project=<value> (required) [env: SIMPLY_GITLAB_PROJECT] Project id, or its full path such as
1325
1661
  group/subgroup/project.
1326
1662
  --mr=<value> (required) Merge request iid.
1663
+ --recheck Ask GitLab to recheck the merge status first.
1327
1664
 
1328
1665
  CONNECTION FLAGS
1329
- -e, --env-file=<value> Path to a .env file holding connection settings.
1330
- --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
1331
- --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to https://gitlab.com.
1666
+ -e, --env-file=<value> Path to a .env file holding connection settings.
1667
+ --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
1668
+ --gitlab-token-kind=<option> [env: SIMPLY_GITLAB_TOKEN_KIND] What kind of token --gitlab-token is. Defaults to
1669
+ personal.
1670
+ <options: personal|job>
1671
+ --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to
1672
+ https://gitlab.com.
1332
1673
 
1333
1674
  GLOBAL FLAGS
1334
1675
  --json Format output as json.
@@ -1339,21 +1680,32 @@ DESCRIPTION
1339
1680
  Takes the project-scoped iid — the number in the merge request URL — not the instance-wide id. Use --json for the full
1340
1681
  payload, which carries the pipeline status, approvals, and diff refs the summary below leaves out.
1341
1682
 
1683
+ Right after a push, GitLab can report a merge status it has not finished working out. --recheck asks it to work the
1684
+ status out again before answering.
1685
+
1342
1686
  EXAMPLES
1343
1687
  $ simply gitlab mr view --project group/project --mr 42
1344
1688
 
1345
1689
  $ simply gitlab mr view --project group/project --mr 42 --json
1346
1690
 
1691
+ $ simply gitlab mr view --project group/project --mr 42 --recheck
1692
+
1347
1693
  FLAG DESCRIPTIONS
1348
1694
  -e, --env-file=<value> Path to a .env file holding connection settings.
1349
1695
 
1350
1696
  Loaded before anything else. Variables already present in the environment win, so the file never overrides an
1351
1697
  explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN,
1352
- SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path
1353
- that cannot be read is an error.
1698
+ SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of
1699
+ all but the token kind) are read from it. A path that cannot be read is an error.
1700
+
1701
+ --gitlab-token-kind=personal|job What kind of token --gitlab-token is. Defaults to personal.
1702
+
1703
+ Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other
1704
+ token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job
1705
+ token settings.
1354
1706
  ```
1355
1707
 
1356
- _See code: [lib/commands/gitlab/mr/view.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.11.0/packages/simply-gitlab/lib/commands/gitlab/mr/view.js)_
1708
+ _See code: [lib/commands/gitlab/mr/view.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.12.0/packages/simply-gitlab/lib/commands/gitlab/mr/view.js)_
1357
1709
 
1358
1710
  ## `simply gitlab project create`
1359
1711
 
@@ -1361,10 +1713,11 @@ Create a project, blank or from a template.
1361
1713
 
1362
1714
  ```
1363
1715
  USAGE
1364
- $ simply gitlab project create [--json] [-e <value>] [--gitlab-url <value>] [--gitlab-token <value>] [--dry-run] [--name
1365
- <value>] [--path <value>] [--namespace <value>] [--description <value>] [--visibility private|internal|public]
1366
- [--default-branch <value>] [--initialize-with-readme] [--topics <value>] [--template <value>] [--custom-template]
1367
- [--template-group <value>] [--template-project <value>] [--body <value> | --body-file <value>]
1716
+ $ simply gitlab project create [--json] [-e <value>] [--gitlab-url <value>] [--gitlab-token <value>] [--gitlab-token-kind
1717
+ personal|job] [--dry-run] [--name <value>] [--path <value>] [--namespace <value>] [--description <value>]
1718
+ [--visibility private|internal|public] [--default-branch <value>] [--initialize-with-readme] [--topics <value>]
1719
+ [--template <value>] [--custom-template] [--template-group <value>] [--template-project <value>] [--body <value> |
1720
+ --body-file <value>]
1368
1721
 
1369
1722
  FLAGS
1370
1723
  --body=<value> Raw JSON request body.
@@ -1389,9 +1742,13 @@ FLAGS
1389
1742
  <options: private|internal|public>
1390
1743
 
1391
1744
  CONNECTION FLAGS
1392
- -e, --env-file=<value> Path to a .env file holding connection settings.
1393
- --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
1394
- --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to https://gitlab.com.
1745
+ -e, --env-file=<value> Path to a .env file holding connection settings.
1746
+ --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
1747
+ --gitlab-token-kind=<option> [env: SIMPLY_GITLAB_TOKEN_KIND] What kind of token --gitlab-token is. Defaults to
1748
+ personal.
1749
+ <options: personal|job>
1750
+ --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to
1751
+ https://gitlab.com.
1395
1752
 
1396
1753
  GLOBAL FLAGS
1397
1754
  --json Format output as json.
@@ -1429,15 +1786,21 @@ FLAG DESCRIPTIONS
1429
1786
 
1430
1787
  Loaded before anything else. Variables already present in the environment win, so the file never overrides an
1431
1788
  explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN,
1432
- SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path
1433
- that cannot be read is an error.
1789
+ SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of
1790
+ all but the token kind) are read from it. A path that cannot be read is an error.
1791
+
1792
+ --gitlab-token-kind=personal|job What kind of token --gitlab-token is. Defaults to personal.
1793
+
1794
+ Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other
1795
+ token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job
1796
+ token settings.
1434
1797
 
1435
1798
  --namespace=<value> Group or user namespace to create the project in, by id or full path.
1436
1799
 
1437
1800
  Defaults to the namespace of the token owner.
1438
1801
  ```
1439
1802
 
1440
- _See code: [lib/commands/gitlab/project/create.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.11.0/packages/simply-gitlab/lib/commands/gitlab/project/create.js)_
1803
+ _See code: [lib/commands/gitlab/project/create.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.12.0/packages/simply-gitlab/lib/commands/gitlab/project/create.js)_
1441
1804
 
1442
1805
  ## `simply gitlab project list`
1443
1806
 
@@ -1445,8 +1808,8 @@ List projects you can see.
1445
1808
 
1446
1809
  ```
1447
1810
  USAGE
1448
- $ simply gitlab project list [--json] [-e <value>] [--gitlab-url <value>] [--gitlab-token <value>] [--limit <value>]
1449
- [--search <value>] [--membership] [--owned] [--simple]
1811
+ $ simply gitlab project list [--json] [-e <value>] [--gitlab-url <value>] [--gitlab-token <value>] [--gitlab-token-kind
1812
+ personal|job] [--limit <value>] [--search <value>] [--membership] [--owned] [--simple]
1450
1813
 
1451
1814
  FLAGS
1452
1815
  --limit=<value> [default: 20] Maximum number of projects to return across all pages.
@@ -1456,9 +1819,13 @@ FLAGS
1456
1819
  --simple Return only the core fields, for a much smaller payload.
1457
1820
 
1458
1821
  CONNECTION FLAGS
1459
- -e, --env-file=<value> Path to a .env file holding connection settings.
1460
- --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
1461
- --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to https://gitlab.com.
1822
+ -e, --env-file=<value> Path to a .env file holding connection settings.
1823
+ --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
1824
+ --gitlab-token-kind=<option> [env: SIMPLY_GITLAB_TOKEN_KIND] What kind of token --gitlab-token is. Defaults to
1825
+ personal.
1826
+ <options: personal|job>
1827
+ --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to
1828
+ https://gitlab.com.
1462
1829
 
1463
1830
  GLOBAL FLAGS
1464
1831
  --json Format output as json.
@@ -1482,11 +1849,17 @@ FLAG DESCRIPTIONS
1482
1849
 
1483
1850
  Loaded before anything else. Variables already present in the environment win, so the file never overrides an
1484
1851
  explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN,
1485
- SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path
1486
- that cannot be read is an error.
1852
+ SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of
1853
+ all but the token kind) are read from it. A path that cannot be read is an error.
1854
+
1855
+ --gitlab-token-kind=personal|job What kind of token --gitlab-token is. Defaults to personal.
1856
+
1857
+ Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other
1858
+ token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job
1859
+ token settings.
1487
1860
  ```
1488
1861
 
1489
- _See code: [lib/commands/gitlab/project/list.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.11.0/packages/simply-gitlab/lib/commands/gitlab/project/list.js)_
1862
+ _See code: [lib/commands/gitlab/project/list.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.12.0/packages/simply-gitlab/lib/commands/gitlab/project/list.js)_
1490
1863
 
1491
1864
  ## `simply gitlab project view`
1492
1865
 
@@ -1495,15 +1868,20 @@ Show one project.
1495
1868
  ```
1496
1869
  USAGE
1497
1870
  $ simply gitlab project view -p <value> [--json] [-e <value>] [--gitlab-url <value>] [--gitlab-token <value>]
1871
+ [--gitlab-token-kind personal|job]
1498
1872
 
1499
1873
  FLAGS
1500
1874
  -p, --project=<value> (required) [env: SIMPLY_GITLAB_PROJECT] Project id, or its full path such as
1501
1875
  group/subgroup/project.
1502
1876
 
1503
1877
  CONNECTION FLAGS
1504
- -e, --env-file=<value> Path to a .env file holding connection settings.
1505
- --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
1506
- --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to https://gitlab.com.
1878
+ -e, --env-file=<value> Path to a .env file holding connection settings.
1879
+ --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
1880
+ --gitlab-token-kind=<option> [env: SIMPLY_GITLAB_TOKEN_KIND] What kind of token --gitlab-token is. Defaults to
1881
+ personal.
1882
+ <options: personal|job>
1883
+ --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to
1884
+ https://gitlab.com.
1507
1885
 
1508
1886
  GLOBAL FLAGS
1509
1887
  --json Format output as json.
@@ -1524,11 +1902,84 @@ FLAG DESCRIPTIONS
1524
1902
 
1525
1903
  Loaded before anything else. Variables already present in the environment win, so the file never overrides an
1526
1904
  explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN,
1527
- SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path
1528
- that cannot be read is an error.
1905
+ SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of
1906
+ all but the token kind) are read from it. A path that cannot be read is an error.
1907
+
1908
+ --gitlab-token-kind=personal|job What kind of token --gitlab-token is. Defaults to personal.
1909
+
1910
+ Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other
1911
+ token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job
1912
+ token settings.
1913
+ ```
1914
+
1915
+ _See code: [lib/commands/gitlab/project/view.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.12.0/packages/simply-gitlab/lib/commands/gitlab/project/view.js)_
1916
+
1917
+ ## `simply gitlab release create`
1918
+
1919
+ Create a release.
1920
+
1921
+ ```
1922
+ USAGE
1923
+ $ simply gitlab release create -p <value> [--json] [-e <value>] [--gitlab-url <value>] [--gitlab-token <value>]
1924
+ [--gitlab-token-kind personal|job] [--dry-run] [--tag <value>] [--name <value>] [--description <value>] [--ref
1925
+ <value>] [--milestone <value>...] [--released-at <value>] [--body <value> | --body-file <value>]
1926
+
1927
+ FLAGS
1928
+ -p, --project=<value> (required) [env: SIMPLY_GITLAB_PROJECT] Project id, or its full path such as
1929
+ group/subgroup/project.
1930
+ --body=<value> Raw JSON request body.
1931
+ --body-file=<value> Path to a file holding the raw JSON request body.
1932
+ --description=<value> Release notes, as Markdown.
1933
+ --dry-run Print the request that would be sent and exit without sending it.
1934
+ --milestone=<value>... Milestone title to associate. Repeatable.
1935
+ --name=<value> Release title. GitLab uses the tag name when it is omitted.
1936
+ --ref=<value> Branch, tag, or SHA to create the tag from, when it does not exist yet.
1937
+ --released-at=<value> Release date, as ISO 8601. Defaults to now.
1938
+ --tag=<value> Tag to attach the release to.
1939
+
1940
+ CONNECTION FLAGS
1941
+ -e, --env-file=<value> Path to a .env file holding connection settings.
1942
+ --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
1943
+ --gitlab-token-kind=<option> [env: SIMPLY_GITLAB_TOKEN_KIND] What kind of token --gitlab-token is. Defaults to
1944
+ personal.
1945
+ <options: personal|job>
1946
+ --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to
1947
+ https://gitlab.com.
1948
+
1949
+ GLOBAL FLAGS
1950
+ --json Format output as json.
1951
+
1952
+ DESCRIPTION
1953
+ Create a release.
1954
+
1955
+ Attaches a release to --tag. When the tag does not exist yet, pass --ref and GitLab creates the tag there first. When
1956
+ the tag exists, --ref is ignored, so this never moves a tag. A tag carries at most one release, and a second create
1957
+ for it is refused with status 409.
1958
+
1959
+ --body or --body-file supplies raw JSON for anything the flags do not cover, such as asset links. Use --dry-run to see
1960
+ exactly what would be sent.
1961
+
1962
+ EXAMPLES
1963
+ $ simply gitlab release create --project group/project --tag v1.2.0 --name 1.2.0 --description "Bug fixes."
1964
+
1965
+ $ simply gitlab release create --project group/project --tag v1.3.0 --ref main --dry-run
1966
+
1967
+ FLAG DESCRIPTIONS
1968
+ -e, --env-file=<value> Path to a .env file holding connection settings.
1969
+
1970
+ Loaded before anything else. Variables already present in the environment win, so the file never overrides an
1971
+ explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN,
1972
+ SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of
1973
+ all but the token kind) are read from it. A path that cannot be read is an error.
1974
+
1975
+ --gitlab-token-kind=personal|job What kind of token --gitlab-token is. Defaults to personal.
1976
+
1977
+ Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other
1978
+ token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job
1979
+ token settings.
1529
1980
  ```
1530
1981
 
1531
- _See code: [lib/commands/gitlab/project/view.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.11.0/packages/simply-gitlab/lib/commands/gitlab/project/view.js)_
1982
+ _See code: [lib/commands/gitlab/release/create.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.12.0/packages/simply-gitlab/lib/commands/gitlab/release/create.js)_
1532
1983
 
1533
1984
  ## `simply gitlab release list`
1534
1985
 
@@ -1536,8 +1987,8 @@ List releases for a project.
1536
1987
 
1537
1988
  ```
1538
1989
  USAGE
1539
- $ simply gitlab release list -p <value> [--json] [-e <value>] [--gitlab-url <value>] [--gitlab-token <value>] [--limit
1540
- <value>]
1990
+ $ simply gitlab release list -p <value> [--json] [-e <value>] [--gitlab-url <value>] [--gitlab-token <value>]
1991
+ [--gitlab-token-kind personal|job] [--limit <value>]
1541
1992
 
1542
1993
  FLAGS
1543
1994
  -p, --project=<value> (required) [env: SIMPLY_GITLAB_PROJECT] Project id, or its full path such as
@@ -1545,9 +1996,13 @@ FLAGS
1545
1996
  --limit=<value> [default: 20] Maximum number of releases to return across all pages.
1546
1997
 
1547
1998
  CONNECTION FLAGS
1548
- -e, --env-file=<value> Path to a .env file holding connection settings.
1549
- --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
1550
- --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to https://gitlab.com.
1999
+ -e, --env-file=<value> Path to a .env file holding connection settings.
2000
+ --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
2001
+ --gitlab-token-kind=<option> [env: SIMPLY_GITLAB_TOKEN_KIND] What kind of token --gitlab-token is. Defaults to
2002
+ personal.
2003
+ <options: personal|job>
2004
+ --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to
2005
+ https://gitlab.com.
1551
2006
 
1552
2007
  GLOBAL FLAGS
1553
2008
  --json Format output as json.
@@ -1568,11 +2023,71 @@ FLAG DESCRIPTIONS
1568
2023
 
1569
2024
  Loaded before anything else. Variables already present in the environment win, so the file never overrides an
1570
2025
  explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN,
1571
- SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path
1572
- that cannot be read is an error.
2026
+ SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of
2027
+ all but the token kind) are read from it. A path that cannot be read is an error.
2028
+
2029
+ --gitlab-token-kind=personal|job What kind of token --gitlab-token is. Defaults to personal.
2030
+
2031
+ Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other
2032
+ token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job
2033
+ token settings.
1573
2034
  ```
1574
2035
 
1575
- _See code: [lib/commands/gitlab/release/list.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.11.0/packages/simply-gitlab/lib/commands/gitlab/release/list.js)_
2036
+ _See code: [lib/commands/gitlab/release/list.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.12.0/packages/simply-gitlab/lib/commands/gitlab/release/list.js)_
2037
+
2038
+ ## `simply gitlab release view`
2039
+
2040
+ Show one release.
2041
+
2042
+ ```
2043
+ USAGE
2044
+ $ simply gitlab release view -p <value> --tag <value> [--json] [-e <value>] [--gitlab-url <value>] [--gitlab-token
2045
+ <value>] [--gitlab-token-kind personal|job]
2046
+
2047
+ FLAGS
2048
+ -p, --project=<value> (required) [env: SIMPLY_GITLAB_PROJECT] Project id, or its full path such as
2049
+ group/subgroup/project.
2050
+ --tag=<value> (required) Tag the release is attached to.
2051
+
2052
+ CONNECTION FLAGS
2053
+ -e, --env-file=<value> Path to a .env file holding connection settings.
2054
+ --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
2055
+ --gitlab-token-kind=<option> [env: SIMPLY_GITLAB_TOKEN_KIND] What kind of token --gitlab-token is. Defaults to
2056
+ personal.
2057
+ <options: personal|job>
2058
+ --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to
2059
+ https://gitlab.com.
2060
+
2061
+ GLOBAL FLAGS
2062
+ --json Format output as json.
2063
+
2064
+ DESCRIPTION
2065
+ Show one release.
2066
+
2067
+ Looks the release up by its tag. A tag that has no release fails with status 404, as does a project the token cannot
2068
+ see. Use --json for asset links and milestones.
2069
+
2070
+ EXAMPLES
2071
+ $ simply gitlab release view --project group/project --tag v1.2.0
2072
+
2073
+ $ simply gitlab release view --project group/project --tag v1.2.0 --json
2074
+
2075
+ FLAG DESCRIPTIONS
2076
+ -e, --env-file=<value> Path to a .env file holding connection settings.
2077
+
2078
+ Loaded before anything else. Variables already present in the environment win, so the file never overrides an
2079
+ explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN,
2080
+ SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of
2081
+ all but the token kind) are read from it. A path that cannot be read is an error.
2082
+
2083
+ --gitlab-token-kind=personal|job What kind of token --gitlab-token is. Defaults to personal.
2084
+
2085
+ Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other
2086
+ token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job
2087
+ token settings.
2088
+ ```
2089
+
2090
+ _See code: [lib/commands/gitlab/release/view.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.12.0/packages/simply-gitlab/lib/commands/gitlab/release/view.js)_
1576
2091
 
1577
2092
  ## `simply gitlab search`
1578
2093
 
@@ -1582,8 +2097,8 @@ Search GitLab.
1582
2097
  USAGE
1583
2098
  $ simply gitlab search --scope
1584
2099
  projects|issues|merge_requests|milestones|wiki_blobs|commits|blobs|notes|users|snippet_titles --query <value>
1585
- [--json] [-e <value>] [--gitlab-url <value>] [--gitlab-token <value>] [--limit <value>] [--project <value> | --group
1586
- <value>]
2100
+ [--json] [-e <value>] [--gitlab-url <value>] [--gitlab-token <value>] [--gitlab-token-kind personal|job] [--limit
2101
+ <value>] [--project <value> | --group <value>]
1587
2102
 
1588
2103
  FLAGS
1589
2104
  --group=<value> Search within this group id or path.
@@ -1595,9 +2110,13 @@ FLAGS
1595
2110
  projects|issues|merge_requests|milestones|wiki_blobs|commits|blobs|notes|users|snippet_titles>
1596
2111
 
1597
2112
  CONNECTION FLAGS
1598
- -e, --env-file=<value> Path to a .env file holding connection settings.
1599
- --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
1600
- --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to https://gitlab.com.
2113
+ -e, --env-file=<value> Path to a .env file holding connection settings.
2114
+ --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
2115
+ --gitlab-token-kind=<option> [env: SIMPLY_GITLAB_TOKEN_KIND] What kind of token --gitlab-token is. Defaults to
2116
+ personal.
2117
+ <options: personal|job>
2118
+ --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to
2119
+ https://gitlab.com.
1601
2120
 
1602
2121
  GLOBAL FLAGS
1603
2122
  --json Format output as json.
@@ -1625,11 +2144,17 @@ FLAG DESCRIPTIONS
1625
2144
 
1626
2145
  Loaded before anything else. Variables already present in the environment win, so the file never overrides an
1627
2146
  explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN,
1628
- SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path
1629
- that cannot be read is an error.
2147
+ SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of
2148
+ all but the token kind) are read from it. A path that cannot be read is an error.
2149
+
2150
+ --gitlab-token-kind=personal|job What kind of token --gitlab-token is. Defaults to personal.
2151
+
2152
+ Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other
2153
+ token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job
2154
+ token settings.
1630
2155
  ```
1631
2156
 
1632
- _See code: [lib/commands/gitlab/search.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.11.0/packages/simply-gitlab/lib/commands/gitlab/search.js)_
2157
+ _See code: [lib/commands/gitlab/search.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.12.0/packages/simply-gitlab/lib/commands/gitlab/search.js)_
1633
2158
 
1634
2159
  ## `simply gitlab tag list`
1635
2160
 
@@ -1637,8 +2162,9 @@ List repository tags.
1637
2162
 
1638
2163
  ```
1639
2164
  USAGE
1640
- $ simply gitlab tag list -p <value> [--json] [-e <value>] [--gitlab-url <value>] [--gitlab-token <value>] [--limit
1641
- <value>] [--search <value>] [--order-by name|updated|version] [--sort asc|desc]
2165
+ $ simply gitlab tag list -p <value> [--json] [-e <value>] [--gitlab-url <value>] [--gitlab-token <value>]
2166
+ [--gitlab-token-kind personal|job] [--limit <value>] [--search <value>] [--order-by name|updated|version] [--sort
2167
+ asc|desc]
1642
2168
 
1643
2169
  FLAGS
1644
2170
  -p, --project=<value> (required) [env: SIMPLY_GITLAB_PROJECT] Project id, or its full path such as
@@ -1651,9 +2177,13 @@ FLAGS
1651
2177
  <options: asc|desc>
1652
2178
 
1653
2179
  CONNECTION FLAGS
1654
- -e, --env-file=<value> Path to a .env file holding connection settings.
1655
- --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
1656
- --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to https://gitlab.com.
2180
+ -e, --env-file=<value> Path to a .env file holding connection settings.
2181
+ --gitlab-token=<value> [env: SIMPLY_GITLAB_TOKEN] Personal, project, or group access token.
2182
+ --gitlab-token-kind=<option> [env: SIMPLY_GITLAB_TOKEN_KIND] What kind of token --gitlab-token is. Defaults to
2183
+ personal.
2184
+ <options: personal|job>
2185
+ --gitlab-url=<value> [env: SIMPLY_GITLAB_URL] Base URL of the GitLab instance. Defaults to
2186
+ https://gitlab.com.
1657
2187
 
1658
2188
  GLOBAL FLAGS
1659
2189
  --json Format output as json.
@@ -1675,11 +2205,17 @@ FLAG DESCRIPTIONS
1675
2205
 
1676
2206
  Loaded before anything else. Variables already present in the environment win, so the file never overrides an
1677
2207
  explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN,
1678
- SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path
1679
- that cannot be read is an error.
2208
+ SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of
2209
+ all but the token kind) are read from it. A path that cannot be read is an error.
2210
+
2211
+ --gitlab-token-kind=personal|job What kind of token --gitlab-token is. Defaults to personal.
2212
+
2213
+ Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other
2214
+ token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job
2215
+ token settings.
1680
2216
  ```
1681
2217
 
1682
- _See code: [lib/commands/gitlab/tag/list.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.11.0/packages/simply-gitlab/lib/commands/gitlab/tag/list.js)_
2218
+ _See code: [lib/commands/gitlab/tag/list.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.12.0/packages/simply-gitlab/lib/commands/gitlab/tag/list.js)_
1683
2219
  <!-- commandsstop -->
1684
2220
 
1685
2221
  ## License