@simplysf/simply-gitlab 0.11.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.
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "env-file": {
21
21
  "char": "e",
22
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.",
22
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
23
23
  "helpGroup": "CONNECTION",
24
24
  "name": "env-file",
25
25
  "summary": "Path to a .env file holding connection settings.",
@@ -28,7 +28,7 @@
28
28
  "type": "option"
29
29
  },
30
30
  "gitlab-url": {
31
- "env": "GITLAB_URL",
31
+ "env": "SIMPLY_GITLAB_URL",
32
32
  "helpGroup": "CONNECTION",
33
33
  "name": "gitlab-url",
34
34
  "summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
@@ -37,7 +37,7 @@
37
37
  "type": "option"
38
38
  },
39
39
  "gitlab-token": {
40
- "env": "GITLAB_TOKEN",
40
+ "env": "SIMPLY_GITLAB_TOKEN",
41
41
  "helpGroup": "CONNECTION",
42
42
  "name": "gitlab-token",
43
43
  "summary": "Personal, project, or group access token.",
@@ -45,6 +45,20 @@
45
45
  "multiple": false,
46
46
  "type": "option"
47
47
  },
48
+ "gitlab-token-kind": {
49
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
50
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
51
+ "helpGroup": "CONNECTION",
52
+ "name": "gitlab-token-kind",
53
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
54
+ "hasDynamicHelp": false,
55
+ "multiple": false,
56
+ "options": [
57
+ "personal",
58
+ "job"
59
+ ],
60
+ "type": "option"
61
+ },
48
62
  "limit": {
49
63
  "name": "limit",
50
64
  "summary": "Maximum number of results to return across all pages.",
@@ -140,7 +154,7 @@
140
154
  },
141
155
  "env-file": {
142
156
  "char": "e",
143
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.",
157
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
144
158
  "helpGroup": "CONNECTION",
145
159
  "name": "env-file",
146
160
  "summary": "Path to a .env file holding connection settings.",
@@ -149,7 +163,7 @@
149
163
  "type": "option"
150
164
  },
151
165
  "gitlab-url": {
152
- "env": "GITLAB_URL",
166
+ "env": "SIMPLY_GITLAB_URL",
153
167
  "helpGroup": "CONNECTION",
154
168
  "name": "gitlab-url",
155
169
  "summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
@@ -158,7 +172,7 @@
158
172
  "type": "option"
159
173
  },
160
174
  "gitlab-token": {
161
- "env": "GITLAB_TOKEN",
175
+ "env": "SIMPLY_GITLAB_TOKEN",
162
176
  "helpGroup": "CONNECTION",
163
177
  "name": "gitlab-token",
164
178
  "summary": "Personal, project, or group access token.",
@@ -166,9 +180,23 @@
166
180
  "multiple": false,
167
181
  "type": "option"
168
182
  },
183
+ "gitlab-token-kind": {
184
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
185
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
186
+ "helpGroup": "CONNECTION",
187
+ "name": "gitlab-token-kind",
188
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
189
+ "hasDynamicHelp": false,
190
+ "multiple": false,
191
+ "options": [
192
+ "personal",
193
+ "job"
194
+ ],
195
+ "type": "option"
196
+ },
169
197
  "project": {
170
198
  "char": "p",
171
- "env": "GITLAB_PROJECT",
199
+ "env": "SIMPLY_GITLAB_PROJECT",
172
200
  "name": "project",
173
201
  "required": true,
174
202
  "summary": "Project id, or its full path such as group/subgroup/project.",
@@ -245,7 +273,7 @@
245
273
  },
246
274
  "env-file": {
247
275
  "char": "e",
248
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.",
276
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
249
277
  "helpGroup": "CONNECTION",
250
278
  "name": "env-file",
251
279
  "summary": "Path to a .env file holding connection settings.",
@@ -254,7 +282,7 @@
254
282
  "type": "option"
255
283
  },
256
284
  "gitlab-url": {
257
- "env": "GITLAB_URL",
285
+ "env": "SIMPLY_GITLAB_URL",
258
286
  "helpGroup": "CONNECTION",
259
287
  "name": "gitlab-url",
260
288
  "summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
@@ -263,7 +291,7 @@
263
291
  "type": "option"
264
292
  },
265
293
  "gitlab-token": {
266
- "env": "GITLAB_TOKEN",
294
+ "env": "SIMPLY_GITLAB_TOKEN",
267
295
  "helpGroup": "CONNECTION",
268
296
  "name": "gitlab-token",
269
297
  "summary": "Personal, project, or group access token.",
@@ -271,9 +299,23 @@
271
299
  "multiple": false,
272
300
  "type": "option"
273
301
  },
302
+ "gitlab-token-kind": {
303
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
304
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
305
+ "helpGroup": "CONNECTION",
306
+ "name": "gitlab-token-kind",
307
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
308
+ "hasDynamicHelp": false,
309
+ "multiple": false,
310
+ "options": [
311
+ "personal",
312
+ "job"
313
+ ],
314
+ "type": "option"
315
+ },
274
316
  "project": {
275
317
  "char": "p",
276
- "env": "GITLAB_PROJECT",
318
+ "env": "SIMPLY_GITLAB_PROJECT",
277
319
  "name": "project",
278
320
  "required": true,
279
321
  "summary": "Project id, or its full path such as group/subgroup/project.",
@@ -325,6 +367,230 @@
325
367
  "list:branch:gitlab"
326
368
  ]
327
369
  },
370
+ "gitlab:branch:view": {
371
+ "aliases": [],
372
+ "args": {},
373
+ "description": "Looks the branch up by its exact name, unlike branch list --search, which matches any part of a name. A branch that does not exist fails with status 404. So does a project the token cannot see, so a 404 alone does not prove the branch is missing.",
374
+ "examples": [
375
+ "<%= config.bin %> <%= command.id %> --project group/project --branch main",
376
+ "<%= config.bin %> <%= command.id %> --project group/project --branch release/1.2 --json"
377
+ ],
378
+ "flags": {
379
+ "json": {
380
+ "description": "Format output as json.",
381
+ "helpGroup": "GLOBAL",
382
+ "name": "json",
383
+ "allowNo": false,
384
+ "type": "boolean"
385
+ },
386
+ "env-file": {
387
+ "char": "e",
388
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
389
+ "helpGroup": "CONNECTION",
390
+ "name": "env-file",
391
+ "summary": "Path to a .env file holding connection settings.",
392
+ "hasDynamicHelp": false,
393
+ "multiple": false,
394
+ "type": "option"
395
+ },
396
+ "gitlab-url": {
397
+ "env": "SIMPLY_GITLAB_URL",
398
+ "helpGroup": "CONNECTION",
399
+ "name": "gitlab-url",
400
+ "summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
401
+ "hasDynamicHelp": false,
402
+ "multiple": false,
403
+ "type": "option"
404
+ },
405
+ "gitlab-token": {
406
+ "env": "SIMPLY_GITLAB_TOKEN",
407
+ "helpGroup": "CONNECTION",
408
+ "name": "gitlab-token",
409
+ "summary": "Personal, project, or group access token.",
410
+ "hasDynamicHelp": false,
411
+ "multiple": false,
412
+ "type": "option"
413
+ },
414
+ "gitlab-token-kind": {
415
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
416
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
417
+ "helpGroup": "CONNECTION",
418
+ "name": "gitlab-token-kind",
419
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
420
+ "hasDynamicHelp": false,
421
+ "multiple": false,
422
+ "options": [
423
+ "personal",
424
+ "job"
425
+ ],
426
+ "type": "option"
427
+ },
428
+ "project": {
429
+ "char": "p",
430
+ "env": "SIMPLY_GITLAB_PROJECT",
431
+ "name": "project",
432
+ "required": true,
433
+ "summary": "Project id, or its full path such as group/subgroup/project.",
434
+ "hasDynamicHelp": false,
435
+ "multiple": false,
436
+ "type": "option"
437
+ },
438
+ "branch": {
439
+ "name": "branch",
440
+ "required": true,
441
+ "summary": "Exact branch name.",
442
+ "hasDynamicHelp": false,
443
+ "multiple": false,
444
+ "type": "option"
445
+ }
446
+ },
447
+ "hasDynamicHelp": false,
448
+ "hiddenAliases": [],
449
+ "id": "gitlab:branch:view",
450
+ "pluginAlias": "@simplysf/simply-gitlab",
451
+ "pluginName": "@simplysf/simply-gitlab",
452
+ "pluginType": "core",
453
+ "strict": true,
454
+ "summary": "Show one branch.",
455
+ "enableJsonFlag": true,
456
+ "isWrite": false,
457
+ "isESM": true,
458
+ "relativePath": [
459
+ "lib",
460
+ "commands",
461
+ "gitlab",
462
+ "branch",
463
+ "view.js"
464
+ ],
465
+ "aliasPermutations": [],
466
+ "permutations": [
467
+ "gitlab:branch:view",
468
+ "branch:gitlab:view",
469
+ "branch:view:gitlab",
470
+ "gitlab:view:branch",
471
+ "view:gitlab:branch",
472
+ "view:branch:gitlab"
473
+ ]
474
+ },
475
+ "gitlab:commit:compare": {
476
+ "aliases": [],
477
+ "args": {},
478
+ "description": "Lists the commits on --to that are not on --from, and counts the files they change. By default the comparison starts where the two refs diverge, which answers \"what would merging --to bring in\". --straight compares the two refs directly instead.\n\nGitLab limits how much one comparison returns and says so in the payload rather than failing; this command says so too. Use --json for the diffs themselves.",
479
+ "examples": [
480
+ "<%= config.bin %> <%= command.id %> --project group/project --from v1.2.0 --to main",
481
+ "<%= config.bin %> <%= command.id %> --project group/project --from main --to feature --straight --json"
482
+ ],
483
+ "flags": {
484
+ "json": {
485
+ "description": "Format output as json.",
486
+ "helpGroup": "GLOBAL",
487
+ "name": "json",
488
+ "allowNo": false,
489
+ "type": "boolean"
490
+ },
491
+ "env-file": {
492
+ "char": "e",
493
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
494
+ "helpGroup": "CONNECTION",
495
+ "name": "env-file",
496
+ "summary": "Path to a .env file holding connection settings.",
497
+ "hasDynamicHelp": false,
498
+ "multiple": false,
499
+ "type": "option"
500
+ },
501
+ "gitlab-url": {
502
+ "env": "SIMPLY_GITLAB_URL",
503
+ "helpGroup": "CONNECTION",
504
+ "name": "gitlab-url",
505
+ "summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
506
+ "hasDynamicHelp": false,
507
+ "multiple": false,
508
+ "type": "option"
509
+ },
510
+ "gitlab-token": {
511
+ "env": "SIMPLY_GITLAB_TOKEN",
512
+ "helpGroup": "CONNECTION",
513
+ "name": "gitlab-token",
514
+ "summary": "Personal, project, or group access token.",
515
+ "hasDynamicHelp": false,
516
+ "multiple": false,
517
+ "type": "option"
518
+ },
519
+ "gitlab-token-kind": {
520
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
521
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
522
+ "helpGroup": "CONNECTION",
523
+ "name": "gitlab-token-kind",
524
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
525
+ "hasDynamicHelp": false,
526
+ "multiple": false,
527
+ "options": [
528
+ "personal",
529
+ "job"
530
+ ],
531
+ "type": "option"
532
+ },
533
+ "project": {
534
+ "char": "p",
535
+ "env": "SIMPLY_GITLAB_PROJECT",
536
+ "name": "project",
537
+ "required": true,
538
+ "summary": "Project id, or its full path such as group/subgroup/project.",
539
+ "hasDynamicHelp": false,
540
+ "multiple": false,
541
+ "type": "option"
542
+ },
543
+ "from": {
544
+ "name": "from",
545
+ "required": true,
546
+ "summary": "Branch, tag, or SHA to compare from.",
547
+ "hasDynamicHelp": false,
548
+ "multiple": false,
549
+ "type": "option"
550
+ },
551
+ "to": {
552
+ "name": "to",
553
+ "required": true,
554
+ "summary": "Branch, tag, or SHA to compare to.",
555
+ "hasDynamicHelp": false,
556
+ "multiple": false,
557
+ "type": "option"
558
+ },
559
+ "straight": {
560
+ "name": "straight",
561
+ "summary": "Compare the two refs directly rather than from where they diverge.",
562
+ "allowNo": false,
563
+ "type": "boolean"
564
+ }
565
+ },
566
+ "hasDynamicHelp": false,
567
+ "hiddenAliases": [],
568
+ "id": "gitlab:commit:compare",
569
+ "pluginAlias": "@simplysf/simply-gitlab",
570
+ "pluginName": "@simplysf/simply-gitlab",
571
+ "pluginType": "core",
572
+ "strict": true,
573
+ "summary": "Compare two branches, tags, or commits.",
574
+ "enableJsonFlag": true,
575
+ "isWrite": false,
576
+ "isESM": true,
577
+ "relativePath": [
578
+ "lib",
579
+ "commands",
580
+ "gitlab",
581
+ "commit",
582
+ "compare.js"
583
+ ],
584
+ "aliasPermutations": [],
585
+ "permutations": [
586
+ "gitlab:commit:compare",
587
+ "commit:gitlab:compare",
588
+ "commit:compare:gitlab",
589
+ "gitlab:compare:commit",
590
+ "compare:gitlab:commit",
591
+ "compare:commit:gitlab"
592
+ ]
593
+ },
328
594
  "gitlab:commit:create": {
329
595
  "aliases": [],
330
596
  "args": {},
@@ -343,7 +609,7 @@
343
609
  },
344
610
  "env-file": {
345
611
  "char": "e",
346
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.",
612
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
347
613
  "helpGroup": "CONNECTION",
348
614
  "name": "env-file",
349
615
  "summary": "Path to a .env file holding connection settings.",
@@ -352,7 +618,7 @@
352
618
  "type": "option"
353
619
  },
354
620
  "gitlab-url": {
355
- "env": "GITLAB_URL",
621
+ "env": "SIMPLY_GITLAB_URL",
356
622
  "helpGroup": "CONNECTION",
357
623
  "name": "gitlab-url",
358
624
  "summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
@@ -361,7 +627,7 @@
361
627
  "type": "option"
362
628
  },
363
629
  "gitlab-token": {
364
- "env": "GITLAB_TOKEN",
630
+ "env": "SIMPLY_GITLAB_TOKEN",
365
631
  "helpGroup": "CONNECTION",
366
632
  "name": "gitlab-token",
367
633
  "summary": "Personal, project, or group access token.",
@@ -369,9 +635,23 @@
369
635
  "multiple": false,
370
636
  "type": "option"
371
637
  },
638
+ "gitlab-token-kind": {
639
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
640
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
641
+ "helpGroup": "CONNECTION",
642
+ "name": "gitlab-token-kind",
643
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
644
+ "hasDynamicHelp": false,
645
+ "multiple": false,
646
+ "options": [
647
+ "personal",
648
+ "job"
649
+ ],
650
+ "type": "option"
651
+ },
372
652
  "project": {
373
653
  "char": "p",
374
- "env": "GITLAB_PROJECT",
654
+ "env": "SIMPLY_GITLAB_PROJECT",
375
655
  "name": "project",
376
656
  "required": true,
377
657
  "summary": "Project id, or its full path such as group/subgroup/project.",
@@ -504,7 +784,7 @@
504
784
  },
505
785
  "env-file": {
506
786
  "char": "e",
507
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.",
787
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
508
788
  "helpGroup": "CONNECTION",
509
789
  "name": "env-file",
510
790
  "summary": "Path to a .env file holding connection settings.",
@@ -513,7 +793,7 @@
513
793
  "type": "option"
514
794
  },
515
795
  "gitlab-url": {
516
- "env": "GITLAB_URL",
796
+ "env": "SIMPLY_GITLAB_URL",
517
797
  "helpGroup": "CONNECTION",
518
798
  "name": "gitlab-url",
519
799
  "summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
@@ -522,7 +802,7 @@
522
802
  "type": "option"
523
803
  },
524
804
  "gitlab-token": {
525
- "env": "GITLAB_TOKEN",
805
+ "env": "SIMPLY_GITLAB_TOKEN",
526
806
  "helpGroup": "CONNECTION",
527
807
  "name": "gitlab-token",
528
808
  "summary": "Personal, project, or group access token.",
@@ -530,9 +810,23 @@
530
810
  "multiple": false,
531
811
  "type": "option"
532
812
  },
813
+ "gitlab-token-kind": {
814
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
815
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
816
+ "helpGroup": "CONNECTION",
817
+ "name": "gitlab-token-kind",
818
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
819
+ "hasDynamicHelp": false,
820
+ "multiple": false,
821
+ "options": [
822
+ "personal",
823
+ "job"
824
+ ],
825
+ "type": "option"
826
+ },
533
827
  "project": {
534
828
  "char": "p",
535
- "env": "GITLAB_PROJECT",
829
+ "env": "SIMPLY_GITLAB_PROJECT",
536
830
  "name": "project",
537
831
  "required": true,
538
832
  "summary": "Project id, or its full path such as group/subgroup/project.",
@@ -602,7 +896,7 @@
602
896
  },
603
897
  "env-file": {
604
898
  "char": "e",
605
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.",
899
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
606
900
  "helpGroup": "CONNECTION",
607
901
  "name": "env-file",
608
902
  "summary": "Path to a .env file holding connection settings.",
@@ -611,7 +905,7 @@
611
905
  "type": "option"
612
906
  },
613
907
  "gitlab-url": {
614
- "env": "GITLAB_URL",
908
+ "env": "SIMPLY_GITLAB_URL",
615
909
  "helpGroup": "CONNECTION",
616
910
  "name": "gitlab-url",
617
911
  "summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
@@ -620,7 +914,7 @@
620
914
  "type": "option"
621
915
  },
622
916
  "gitlab-token": {
623
- "env": "GITLAB_TOKEN",
917
+ "env": "SIMPLY_GITLAB_TOKEN",
624
918
  "helpGroup": "CONNECTION",
625
919
  "name": "gitlab-token",
626
920
  "summary": "Personal, project, or group access token.",
@@ -628,9 +922,23 @@
628
922
  "multiple": false,
629
923
  "type": "option"
630
924
  },
925
+ "gitlab-token-kind": {
926
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
927
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
928
+ "helpGroup": "CONNECTION",
929
+ "name": "gitlab-token-kind",
930
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
931
+ "hasDynamicHelp": false,
932
+ "multiple": false,
933
+ "options": [
934
+ "personal",
935
+ "job"
936
+ ],
937
+ "type": "option"
938
+ },
631
939
  "project": {
632
940
  "char": "p",
633
- "env": "GITLAB_PROJECT",
941
+ "env": "SIMPLY_GITLAB_PROJECT",
634
942
  "name": "project",
635
943
  "required": true,
636
944
  "summary": "Project id, or its full path such as group/subgroup/project.",
@@ -734,7 +1042,7 @@
734
1042
  },
735
1043
  "env-file": {
736
1044
  "char": "e",
737
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.",
1045
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
738
1046
  "helpGroup": "CONNECTION",
739
1047
  "name": "env-file",
740
1048
  "summary": "Path to a .env file holding connection settings.",
@@ -743,7 +1051,7 @@
743
1051
  "type": "option"
744
1052
  },
745
1053
  "gitlab-url": {
746
- "env": "GITLAB_URL",
1054
+ "env": "SIMPLY_GITLAB_URL",
747
1055
  "helpGroup": "CONNECTION",
748
1056
  "name": "gitlab-url",
749
1057
  "summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
@@ -752,7 +1060,7 @@
752
1060
  "type": "option"
753
1061
  },
754
1062
  "gitlab-token": {
755
- "env": "GITLAB_TOKEN",
1063
+ "env": "SIMPLY_GITLAB_TOKEN",
756
1064
  "helpGroup": "CONNECTION",
757
1065
  "name": "gitlab-token",
758
1066
  "summary": "Personal, project, or group access token.",
@@ -760,9 +1068,23 @@
760
1068
  "multiple": false,
761
1069
  "type": "option"
762
1070
  },
1071
+ "gitlab-token-kind": {
1072
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
1073
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
1074
+ "helpGroup": "CONNECTION",
1075
+ "name": "gitlab-token-kind",
1076
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
1077
+ "hasDynamicHelp": false,
1078
+ "multiple": false,
1079
+ "options": [
1080
+ "personal",
1081
+ "job"
1082
+ ],
1083
+ "type": "option"
1084
+ },
763
1085
  "project": {
764
1086
  "char": "p",
765
- "env": "GITLAB_PROJECT",
1087
+ "env": "SIMPLY_GITLAB_PROJECT",
766
1088
  "name": "project",
767
1089
  "required": true,
768
1090
  "summary": "Project id, or its full path such as group/subgroup/project.",
@@ -826,7 +1148,7 @@
826
1148
  },
827
1149
  "env-file": {
828
1150
  "char": "e",
829
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.",
1151
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
830
1152
  "helpGroup": "CONNECTION",
831
1153
  "name": "env-file",
832
1154
  "summary": "Path to a .env file holding connection settings.",
@@ -835,7 +1157,7 @@
835
1157
  "type": "option"
836
1158
  },
837
1159
  "gitlab-url": {
838
- "env": "GITLAB_URL",
1160
+ "env": "SIMPLY_GITLAB_URL",
839
1161
  "helpGroup": "CONNECTION",
840
1162
  "name": "gitlab-url",
841
1163
  "summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
@@ -844,7 +1166,7 @@
844
1166
  "type": "option"
845
1167
  },
846
1168
  "gitlab-token": {
847
- "env": "GITLAB_TOKEN",
1169
+ "env": "SIMPLY_GITLAB_TOKEN",
848
1170
  "helpGroup": "CONNECTION",
849
1171
  "name": "gitlab-token",
850
1172
  "summary": "Personal, project, or group access token.",
@@ -852,6 +1174,20 @@
852
1174
  "multiple": false,
853
1175
  "type": "option"
854
1176
  },
1177
+ "gitlab-token-kind": {
1178
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
1179
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
1180
+ "helpGroup": "CONNECTION",
1181
+ "name": "gitlab-token-kind",
1182
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
1183
+ "hasDynamicHelp": false,
1184
+ "multiple": false,
1185
+ "options": [
1186
+ "personal",
1187
+ "job"
1188
+ ],
1189
+ "type": "option"
1190
+ },
855
1191
  "config": {
856
1192
  "char": "c",
857
1193
  "name": "config",
@@ -937,7 +1273,7 @@
937
1273
  },
938
1274
  "env-file": {
939
1275
  "char": "e",
940
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.",
1276
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
941
1277
  "helpGroup": "CONNECTION",
942
1278
  "name": "env-file",
943
1279
  "summary": "Path to a .env file holding connection settings.",
@@ -946,7 +1282,7 @@
946
1282
  "type": "option"
947
1283
  },
948
1284
  "gitlab-url": {
949
- "env": "GITLAB_URL",
1285
+ "env": "SIMPLY_GITLAB_URL",
950
1286
  "helpGroup": "CONNECTION",
951
1287
  "name": "gitlab-url",
952
1288
  "summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
@@ -955,7 +1291,7 @@
955
1291
  "type": "option"
956
1292
  },
957
1293
  "gitlab-token": {
958
- "env": "GITLAB_TOKEN",
1294
+ "env": "SIMPLY_GITLAB_TOKEN",
959
1295
  "helpGroup": "CONNECTION",
960
1296
  "name": "gitlab-token",
961
1297
  "summary": "Personal, project, or group access token.",
@@ -963,9 +1299,23 @@
963
1299
  "multiple": false,
964
1300
  "type": "option"
965
1301
  },
1302
+ "gitlab-token-kind": {
1303
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
1304
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
1305
+ "helpGroup": "CONNECTION",
1306
+ "name": "gitlab-token-kind",
1307
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
1308
+ "hasDynamicHelp": false,
1309
+ "multiple": false,
1310
+ "options": [
1311
+ "personal",
1312
+ "job"
1313
+ ],
1314
+ "type": "option"
1315
+ },
966
1316
  "project": {
967
1317
  "char": "p",
968
- "env": "GITLAB_PROJECT",
1318
+ "env": "SIMPLY_GITLAB_PROJECT",
969
1319
  "name": "project",
970
1320
  "required": true,
971
1321
  "summary": "Project id, or its full path such as group/subgroup/project.",
@@ -1040,7 +1390,7 @@
1040
1390
  },
1041
1391
  "env-file": {
1042
1392
  "char": "e",
1043
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.",
1393
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
1044
1394
  "helpGroup": "CONNECTION",
1045
1395
  "name": "env-file",
1046
1396
  "summary": "Path to a .env file holding connection settings.",
@@ -1049,7 +1399,7 @@
1049
1399
  "type": "option"
1050
1400
  },
1051
1401
  "gitlab-url": {
1052
- "env": "GITLAB_URL",
1402
+ "env": "SIMPLY_GITLAB_URL",
1053
1403
  "helpGroup": "CONNECTION",
1054
1404
  "name": "gitlab-url",
1055
1405
  "summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
@@ -1058,7 +1408,7 @@
1058
1408
  "type": "option"
1059
1409
  },
1060
1410
  "gitlab-token": {
1061
- "env": "GITLAB_TOKEN",
1411
+ "env": "SIMPLY_GITLAB_TOKEN",
1062
1412
  "helpGroup": "CONNECTION",
1063
1413
  "name": "gitlab-token",
1064
1414
  "summary": "Personal, project, or group access token.",
@@ -1066,6 +1416,20 @@
1066
1416
  "multiple": false,
1067
1417
  "type": "option"
1068
1418
  },
1419
+ "gitlab-token-kind": {
1420
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
1421
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
1422
+ "helpGroup": "CONNECTION",
1423
+ "name": "gitlab-token-kind",
1424
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
1425
+ "hasDynamicHelp": false,
1426
+ "multiple": false,
1427
+ "options": [
1428
+ "personal",
1429
+ "job"
1430
+ ],
1431
+ "type": "option"
1432
+ },
1069
1433
  "config": {
1070
1434
  "char": "c",
1071
1435
  "name": "config",
@@ -1151,7 +1515,7 @@
1151
1515
  },
1152
1516
  "env-file": {
1153
1517
  "char": "e",
1154
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.",
1518
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
1155
1519
  "helpGroup": "CONNECTION",
1156
1520
  "name": "env-file",
1157
1521
  "summary": "Path to a .env file holding connection settings.",
@@ -1160,7 +1524,7 @@
1160
1524
  "type": "option"
1161
1525
  },
1162
1526
  "gitlab-url": {
1163
- "env": "GITLAB_URL",
1527
+ "env": "SIMPLY_GITLAB_URL",
1164
1528
  "helpGroup": "CONNECTION",
1165
1529
  "name": "gitlab-url",
1166
1530
  "summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
@@ -1169,7 +1533,7 @@
1169
1533
  "type": "option"
1170
1534
  },
1171
1535
  "gitlab-token": {
1172
- "env": "GITLAB_TOKEN",
1536
+ "env": "SIMPLY_GITLAB_TOKEN",
1173
1537
  "helpGroup": "CONNECTION",
1174
1538
  "name": "gitlab-token",
1175
1539
  "summary": "Personal, project, or group access token.",
@@ -1177,9 +1541,23 @@
1177
1541
  "multiple": false,
1178
1542
  "type": "option"
1179
1543
  },
1544
+ "gitlab-token-kind": {
1545
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
1546
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
1547
+ "helpGroup": "CONNECTION",
1548
+ "name": "gitlab-token-kind",
1549
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
1550
+ "hasDynamicHelp": false,
1551
+ "multiple": false,
1552
+ "options": [
1553
+ "personal",
1554
+ "job"
1555
+ ],
1556
+ "type": "option"
1557
+ },
1180
1558
  "project": {
1181
1559
  "char": "p",
1182
- "env": "GITLAB_PROJECT",
1560
+ "env": "SIMPLY_GITLAB_PROJECT",
1183
1561
  "name": "project",
1184
1562
  "required": true,
1185
1563
  "summary": "Project id, or its full path such as group/subgroup/project.",
@@ -1302,7 +1680,7 @@
1302
1680
  },
1303
1681
  "env-file": {
1304
1682
  "char": "e",
1305
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.",
1683
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
1306
1684
  "helpGroup": "CONNECTION",
1307
1685
  "name": "env-file",
1308
1686
  "summary": "Path to a .env file holding connection settings.",
@@ -1311,7 +1689,7 @@
1311
1689
  "type": "option"
1312
1690
  },
1313
1691
  "gitlab-url": {
1314
- "env": "GITLAB_URL",
1692
+ "env": "SIMPLY_GITLAB_URL",
1315
1693
  "helpGroup": "CONNECTION",
1316
1694
  "name": "gitlab-url",
1317
1695
  "summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
@@ -1320,7 +1698,7 @@
1320
1698
  "type": "option"
1321
1699
  },
1322
1700
  "gitlab-token": {
1323
- "env": "GITLAB_TOKEN",
1701
+ "env": "SIMPLY_GITLAB_TOKEN",
1324
1702
  "helpGroup": "CONNECTION",
1325
1703
  "name": "gitlab-token",
1326
1704
  "summary": "Personal, project, or group access token.",
@@ -1328,9 +1706,23 @@
1328
1706
  "multiple": false,
1329
1707
  "type": "option"
1330
1708
  },
1709
+ "gitlab-token-kind": {
1710
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
1711
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
1712
+ "helpGroup": "CONNECTION",
1713
+ "name": "gitlab-token-kind",
1714
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
1715
+ "hasDynamicHelp": false,
1716
+ "multiple": false,
1717
+ "options": [
1718
+ "personal",
1719
+ "job"
1720
+ ],
1721
+ "type": "option"
1722
+ },
1331
1723
  "project": {
1332
1724
  "char": "p",
1333
- "env": "GITLAB_PROJECT",
1725
+ "env": "SIMPLY_GITLAB_PROJECT",
1334
1726
  "name": "project",
1335
1727
  "required": true,
1336
1728
  "summary": "Project id, or its full path such as group/subgroup/project.",
@@ -1460,7 +1852,7 @@
1460
1852
  },
1461
1853
  "env-file": {
1462
1854
  "char": "e",
1463
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.",
1855
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
1464
1856
  "helpGroup": "CONNECTION",
1465
1857
  "name": "env-file",
1466
1858
  "summary": "Path to a .env file holding connection settings.",
@@ -1469,7 +1861,7 @@
1469
1861
  "type": "option"
1470
1862
  },
1471
1863
  "gitlab-url": {
1472
- "env": "GITLAB_URL",
1864
+ "env": "SIMPLY_GITLAB_URL",
1473
1865
  "helpGroup": "CONNECTION",
1474
1866
  "name": "gitlab-url",
1475
1867
  "summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
@@ -1478,7 +1870,7 @@
1478
1870
  "type": "option"
1479
1871
  },
1480
1872
  "gitlab-token": {
1481
- "env": "GITLAB_TOKEN",
1873
+ "env": "SIMPLY_GITLAB_TOKEN",
1482
1874
  "helpGroup": "CONNECTION",
1483
1875
  "name": "gitlab-token",
1484
1876
  "summary": "Personal, project, or group access token.",
@@ -1486,12 +1878,26 @@
1486
1878
  "multiple": false,
1487
1879
  "type": "option"
1488
1880
  },
1489
- "project": {
1490
- "char": "p",
1491
- "env": "GITLAB_PROJECT",
1492
- "name": "project",
1493
- "required": true,
1494
- "summary": "Project id, or its full path such as group/subgroup/project.",
1881
+ "gitlab-token-kind": {
1882
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
1883
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
1884
+ "helpGroup": "CONNECTION",
1885
+ "name": "gitlab-token-kind",
1886
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
1887
+ "hasDynamicHelp": false,
1888
+ "multiple": false,
1889
+ "options": [
1890
+ "personal",
1891
+ "job"
1892
+ ],
1893
+ "type": "option"
1894
+ },
1895
+ "project": {
1896
+ "char": "p",
1897
+ "env": "SIMPLY_GITLAB_PROJECT",
1898
+ "name": "project",
1899
+ "required": true,
1900
+ "summary": "Project id, or its full path such as group/subgroup/project.",
1495
1901
  "hasDynamicHelp": false,
1496
1902
  "multiple": false,
1497
1903
  "type": "option"
@@ -1547,13 +1953,16 @@
1547
1953
  "view:file:gitlab"
1548
1954
  ]
1549
1955
  },
1550
- "gitlab:mr:create": {
1956
+ "gitlab:project:create": {
1551
1957
  "aliases": [],
1552
1958
  "args": {},
1553
- "description": "Both branches must already exist on the project. --draft prefixes the title with \"Draft: \", which is how GitLab itself marks a draft; there is no separate field for it.\n\nAssignees and reviewers are numeric user ids, not usernames — GitLab accepts only ids here. --body or --body-file supplies raw JSON for anything the flags do not cover, such as approval rules. Use --dry-run to see exactly what would be sent.",
1959
+ "description": "Creates the project in --namespace, or in the namespace of the token owner when none is given. Give it --name or --path; GitLab derives whichever one is missing.\n\n--template names one of the built-in templates GitLab ships, such as express or rails. To create from a custom template instead, add --custom-template for one the instance administrator registered, --template-group for one in a group, or use --template-project to name the template project itself by id or path — which GitLab prefers, because a name can be ambiguous. Add --template-group to --template-project when the template belongs to a group rather than the instance. Custom templates need a Premium or Ultimate instance.\n\nA template is applied asynchronously: this command returns as soon as the project record exists, with an import status of \"scheduled\", and the files arrive a few seconds later. Check \"project view\" until its import_status reads \"finished\" before writing to the repository. --dry-run prints the exact request body; a namespace or template given as a path is still looked up, so the printed ids are the ones that would be sent.",
1554
1960
  "examples": [
1555
- "<%= config.bin %> <%= command.id %> --project group/project --source-branch feature --target-branch main --title \"feat: the thing\"",
1556
- "<%= config.bin %> <%= command.id %> --project group/project --source-branch feature --target-branch main --title wip --draft --squash"
1961
+ "<%= config.bin %> <%= command.id %> --name new-service --namespace platform/apps",
1962
+ "<%= config.bin %> <%= command.id %> --name new-service --namespace platform/apps --template express --visibility internal",
1963
+ "<%= config.bin %> <%= command.id %> --name new-service --namespace platform/apps --template service-skeleton --template-group platform/templates",
1964
+ "<%= config.bin %> <%= command.id %> --path new-service --template-project platform/templates/service-skeleton --dry-run",
1965
+ "<%= config.bin %> <%= command.id %> --name new-service --template-project platform/templates/service-skeleton --template-group platform/templates"
1557
1966
  ],
1558
1967
  "flags": {
1559
1968
  "json": {
@@ -1565,7 +1974,7 @@
1565
1974
  },
1566
1975
  "env-file": {
1567
1976
  "char": "e",
1568
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.",
1977
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
1569
1978
  "helpGroup": "CONNECTION",
1570
1979
  "name": "env-file",
1571
1980
  "summary": "Path to a .env file holding connection settings.",
@@ -1574,7 +1983,7 @@
1574
1983
  "type": "option"
1575
1984
  },
1576
1985
  "gitlab-url": {
1577
- "env": "GITLAB_URL",
1986
+ "env": "SIMPLY_GITLAB_URL",
1578
1987
  "helpGroup": "CONNECTION",
1579
1988
  "name": "gitlab-url",
1580
1989
  "summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
@@ -1583,7 +1992,7 @@
1583
1992
  "type": "option"
1584
1993
  },
1585
1994
  "gitlab-token": {
1586
- "env": "GITLAB_TOKEN",
1995
+ "env": "SIMPLY_GITLAB_TOKEN",
1587
1996
  "helpGroup": "CONNECTION",
1588
1997
  "name": "gitlab-token",
1589
1998
  "summary": "Personal, project, or group access token.",
@@ -1591,14 +2000,18 @@
1591
2000
  "multiple": false,
1592
2001
  "type": "option"
1593
2002
  },
1594
- "project": {
1595
- "char": "p",
1596
- "env": "GITLAB_PROJECT",
1597
- "name": "project",
1598
- "required": true,
1599
- "summary": "Project id, or its full path such as group/subgroup/project.",
2003
+ "gitlab-token-kind": {
2004
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
2005
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
2006
+ "helpGroup": "CONNECTION",
2007
+ "name": "gitlab-token-kind",
2008
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
1600
2009
  "hasDynamicHelp": false,
1601
2010
  "multiple": false,
2011
+ "options": [
2012
+ "personal",
2013
+ "job"
2014
+ ],
1602
2015
  "type": "option"
1603
2016
  },
1604
2017
  "dry-run": {
@@ -1607,76 +2020,90 @@
1607
2020
  "allowNo": false,
1608
2021
  "type": "boolean"
1609
2022
  },
1610
- "source-branch": {
1611
- "name": "source-branch",
1612
- "summary": "Branch holding the changes.",
2023
+ "name": {
2024
+ "name": "name",
2025
+ "summary": "Project name. The path is derived from it when --path is not given.",
1613
2026
  "hasDynamicHelp": false,
1614
2027
  "multiple": false,
1615
2028
  "type": "option"
1616
2029
  },
1617
- "target-branch": {
1618
- "name": "target-branch",
1619
- "summary": "Branch the changes are proposed for.",
2030
+ "path": {
2031
+ "name": "path",
2032
+ "summary": "Repository path, the URL slug. The name is derived from it when --name is not given.",
1620
2033
  "hasDynamicHelp": false,
1621
2034
  "multiple": false,
1622
2035
  "type": "option"
1623
2036
  },
1624
- "title": {
1625
- "name": "title",
1626
- "summary": "Merge request title.",
2037
+ "namespace": {
2038
+ "description": "Defaults to the namespace of the token owner.",
2039
+ "name": "namespace",
2040
+ "summary": "Group or user namespace to create the project in, by id or full path.",
1627
2041
  "hasDynamicHelp": false,
1628
2042
  "multiple": false,
1629
2043
  "type": "option"
1630
2044
  },
1631
2045
  "description": {
1632
2046
  "name": "description",
1633
- "summary": "Merge request description, as Markdown.",
2047
+ "summary": "Project description.",
1634
2048
  "hasDynamicHelp": false,
1635
2049
  "multiple": false,
1636
2050
  "type": "option"
1637
2051
  },
1638
- "draft": {
1639
- "name": "draft",
1640
- "summary": "Open it as a draft.",
1641
- "allowNo": false,
1642
- "type": "boolean"
2052
+ "visibility": {
2053
+ "name": "visibility",
2054
+ "summary": "Who can see the project.",
2055
+ "hasDynamicHelp": false,
2056
+ "multiple": false,
2057
+ "options": [
2058
+ "private",
2059
+ "internal",
2060
+ "public"
2061
+ ],
2062
+ "type": "option"
1643
2063
  },
1644
- "squash": {
1645
- "name": "squash",
1646
- "summary": "Squash the commits when it merges.",
1647
- "allowNo": false,
1648
- "type": "boolean"
2064
+ "default-branch": {
2065
+ "name": "default-branch",
2066
+ "summary": "Name of the default branch.",
2067
+ "hasDynamicHelp": false,
2068
+ "multiple": false,
2069
+ "type": "option"
1649
2070
  },
1650
- "remove-source-branch": {
1651
- "name": "remove-source-branch",
1652
- "summary": "Delete the source branch on merge.",
2071
+ "initialize-with-readme": {
2072
+ "name": "initialize-with-readme",
2073
+ "summary": "Create a first commit holding a README, so the repository is not empty.",
1653
2074
  "allowNo": false,
1654
2075
  "type": "boolean"
1655
2076
  },
1656
- "assignee-id": {
1657
- "name": "assignee-id",
1658
- "summary": "User id to assign. Repeatable.",
2077
+ "topics": {
2078
+ "name": "topics",
2079
+ "summary": "Comma-separated topics to label the project with.",
1659
2080
  "hasDynamicHelp": false,
1660
- "multiple": true,
2081
+ "multiple": false,
1661
2082
  "type": "option"
1662
2083
  },
1663
- "reviewer-id": {
1664
- "name": "reviewer-id",
1665
- "summary": "User id to request review from. Repeatable.",
2084
+ "template": {
2085
+ "name": "template",
2086
+ "summary": "Template to create from: a built-in name, or with --custom-template or --template-group a custom one.",
1666
2087
  "hasDynamicHelp": false,
1667
- "multiple": true,
2088
+ "multiple": false,
1668
2089
  "type": "option"
1669
2090
  },
1670
- "labels": {
1671
- "name": "labels",
1672
- "summary": "Comma-separated labels to apply.",
2091
+ "custom-template": {
2092
+ "name": "custom-template",
2093
+ "summary": "Look --template up among the instance's custom project templates rather than the built-in ones.",
2094
+ "allowNo": false,
2095
+ "type": "boolean"
2096
+ },
2097
+ "template-group": {
2098
+ "name": "template-group",
2099
+ "summary": "Group whose custom project templates --template or --template-project names, by id or full path.",
1673
2100
  "hasDynamicHelp": false,
1674
2101
  "multiple": false,
1675
2102
  "type": "option"
1676
2103
  },
1677
- "milestone-id": {
1678
- "name": "milestone-id",
1679
- "summary": "Milestone id to attach.",
2104
+ "template-project": {
2105
+ "name": "template-project",
2106
+ "summary": "Custom template project to create from, by id or full path. Cannot be combined with --template.",
1680
2107
  "hasDynamicHelp": false,
1681
2108
  "multiple": false,
1682
2109
  "type": "option"
@@ -1701,12 +2128,12 @@
1701
2128
  },
1702
2129
  "hasDynamicHelp": false,
1703
2130
  "hiddenAliases": [],
1704
- "id": "gitlab:mr:create",
2131
+ "id": "gitlab:project:create",
1705
2132
  "pluginAlias": "@simplysf/simply-gitlab",
1706
2133
  "pluginName": "@simplysf/simply-gitlab",
1707
2134
  "pluginType": "core",
1708
2135
  "strict": true,
1709
- "summary": "Open a merge request.",
2136
+ "summary": "Create a project, blank or from a template.",
1710
2137
  "enableJsonFlag": true,
1711
2138
  "isWrite": true,
1712
2139
  "isESM": true,
@@ -1714,27 +2141,27 @@
1714
2141
  "lib",
1715
2142
  "commands",
1716
2143
  "gitlab",
1717
- "mr",
2144
+ "project",
1718
2145
  "create.js"
1719
2146
  ],
1720
2147
  "aliasPermutations": [],
1721
2148
  "permutations": [
1722
- "gitlab:mr:create",
1723
- "mr:gitlab:create",
1724
- "mr:create:gitlab",
1725
- "gitlab:create:mr",
1726
- "create:gitlab:mr",
1727
- "create:mr:gitlab"
2149
+ "gitlab:project:create",
2150
+ "project:gitlab:create",
2151
+ "project:create:gitlab",
2152
+ "gitlab:create:project",
2153
+ "create:gitlab:project",
2154
+ "create:project:gitlab"
1728
2155
  ]
1729
2156
  },
1730
- "gitlab:mr:list": {
2157
+ "gitlab:project:list": {
1731
2158
  "aliases": [],
1732
2159
  "args": {},
1733
- "description": "Defaults to open merge requests, which is what a list is nearly always for; pass --state all to include closed and merged ones. The IID column is the number to pass to the other mr commands — it is per-project, and is not the \"id\" field in the JSON payload.",
2160
+ "description": "Without --search this lists every project the token can reach, newest activity first, which on a large instance is not a useful answer — narrow it with --search or --membership. Use --simple for a much smaller payload when you only need ids and paths.",
1734
2161
  "examples": [
1735
- "<%= config.bin %> <%= command.id %> --project group/project",
1736
- "<%= config.bin %> <%= command.id %> --project group/project --state merged --target-branch main --limit 10",
1737
- "<%= config.bin %> <%= command.id %> --project group/project --author-username someone --json"
2162
+ "<%= config.bin %> <%= command.id %> --membership",
2163
+ "<%= config.bin %> <%= command.id %> --search platform --limit 10",
2164
+ "<%= config.bin %> <%= command.id %> --search platform --simple --json"
1738
2165
  ],
1739
2166
  "flags": {
1740
2167
  "json": {
@@ -1746,7 +2173,7 @@
1746
2173
  },
1747
2174
  "env-file": {
1748
2175
  "char": "e",
1749
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.",
2176
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
1750
2177
  "helpGroup": "CONNECTION",
1751
2178
  "name": "env-file",
1752
2179
  "summary": "Path to a .env file holding connection settings.",
@@ -1755,7 +2182,7 @@
1755
2182
  "type": "option"
1756
2183
  },
1757
2184
  "gitlab-url": {
1758
- "env": "GITLAB_URL",
2185
+ "env": "SIMPLY_GITLAB_URL",
1759
2186
  "helpGroup": "CONNECTION",
1760
2187
  "name": "gitlab-url",
1761
2188
  "summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
@@ -1764,7 +2191,7 @@
1764
2191
  "type": "option"
1765
2192
  },
1766
2193
  "gitlab-token": {
1767
- "env": "GITLAB_TOKEN",
2194
+ "env": "SIMPLY_GITLAB_TOKEN",
1768
2195
  "helpGroup": "CONNECTION",
1769
2196
  "name": "gitlab-token",
1770
2197
  "summary": "Personal, project, or group access token.",
@@ -1772,90 +2199,62 @@
1772
2199
  "multiple": false,
1773
2200
  "type": "option"
1774
2201
  },
1775
- "project": {
1776
- "char": "p",
1777
- "env": "GITLAB_PROJECT",
1778
- "name": "project",
1779
- "required": true,
1780
- "summary": "Project id, or its full path such as group/subgroup/project.",
2202
+ "gitlab-token-kind": {
2203
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
2204
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
2205
+ "helpGroup": "CONNECTION",
2206
+ "name": "gitlab-token-kind",
2207
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
1781
2208
  "hasDynamicHelp": false,
1782
2209
  "multiple": false,
2210
+ "options": [
2211
+ "personal",
2212
+ "job"
2213
+ ],
1783
2214
  "type": "option"
1784
2215
  },
1785
2216
  "limit": {
1786
2217
  "name": "limit",
1787
- "summary": "Maximum number of merge requests to return across all pages.",
2218
+ "summary": "Maximum number of projects to return across all pages.",
1788
2219
  "default": 20,
1789
2220
  "hasDynamicHelp": false,
1790
2221
  "multiple": false,
1791
2222
  "type": "option"
1792
2223
  },
1793
- "state": {
1794
- "name": "state",
1795
- "summary": "Merge request state to return.",
1796
- "default": "opened",
1797
- "hasDynamicHelp": false,
1798
- "multiple": false,
1799
- "options": [
1800
- "opened",
1801
- "closed",
1802
- "locked",
1803
- "merged",
1804
- "all"
1805
- ],
1806
- "type": "option"
1807
- },
1808
- "source-branch": {
1809
- "name": "source-branch",
1810
- "summary": "Only merge requests from this source branch.",
1811
- "hasDynamicHelp": false,
1812
- "multiple": false,
1813
- "type": "option"
1814
- },
1815
- "target-branch": {
1816
- "name": "target-branch",
1817
- "summary": "Only merge requests into this target branch.",
1818
- "hasDynamicHelp": false,
1819
- "multiple": false,
1820
- "type": "option"
1821
- },
1822
- "author-username": {
1823
- "name": "author-username",
1824
- "summary": "Only merge requests opened by this username.",
2224
+ "search": {
2225
+ "name": "search",
2226
+ "summary": "Match against the project name and path.",
1825
2227
  "hasDynamicHelp": false,
1826
2228
  "multiple": false,
1827
2229
  "type": "option"
1828
2230
  },
1829
- "reviewer-username": {
1830
- "name": "reviewer-username",
1831
- "summary": "Only merge requests this username is reviewing.",
1832
- "hasDynamicHelp": false,
1833
- "multiple": false,
1834
- "type": "option"
2231
+ "membership": {
2232
+ "name": "membership",
2233
+ "summary": "Only projects you are a member of.",
2234
+ "allowNo": false,
2235
+ "type": "boolean"
1835
2236
  },
1836
- "labels": {
1837
- "name": "labels",
1838
- "summary": "Comma-separated labels every result must carry.",
1839
- "hasDynamicHelp": false,
1840
- "multiple": false,
1841
- "type": "option"
2237
+ "owned": {
2238
+ "name": "owned",
2239
+ "summary": "Only projects you own.",
2240
+ "allowNo": false,
2241
+ "type": "boolean"
1842
2242
  },
1843
- "search": {
1844
- "name": "search",
1845
- "summary": "Match against the title and description.",
1846
- "hasDynamicHelp": false,
1847
- "multiple": false,
1848
- "type": "option"
2243
+ "simple": {
2244
+ "name": "simple",
2245
+ "summary": "Return only the core fields, for a much smaller payload.",
2246
+ "allowNo": false,
2247
+ "type": "boolean"
1849
2248
  }
1850
2249
  },
1851
2250
  "hasDynamicHelp": false,
1852
2251
  "hiddenAliases": [],
1853
- "id": "gitlab:mr:list",
2252
+ "id": "gitlab:project:list",
1854
2253
  "pluginAlias": "@simplysf/simply-gitlab",
1855
2254
  "pluginName": "@simplysf/simply-gitlab",
1856
2255
  "pluginType": "core",
1857
2256
  "strict": true,
1858
- "summary": "List merge requests for a project.",
2257
+ "summary": "List projects you can see.",
1859
2258
  "enableJsonFlag": true,
1860
2259
  "isWrite": false,
1861
2260
  "isESM": true,
@@ -1863,28 +2262,26 @@
1863
2262
  "lib",
1864
2263
  "commands",
1865
2264
  "gitlab",
1866
- "mr",
2265
+ "project",
1867
2266
  "list.js"
1868
2267
  ],
1869
2268
  "aliasPermutations": [],
1870
2269
  "permutations": [
1871
- "gitlab:mr:list",
1872
- "mr:gitlab:list",
1873
- "mr:list:gitlab",
1874
- "gitlab:list:mr",
1875
- "list:gitlab:mr",
1876
- "list:mr:gitlab"
2270
+ "gitlab:project:list",
2271
+ "project:gitlab:list",
2272
+ "project:list:gitlab",
2273
+ "gitlab:list:project",
2274
+ "list:gitlab:project",
2275
+ "list:project:gitlab"
1877
2276
  ]
1878
2277
  },
1879
- "gitlab:mr:merge": {
2278
+ "gitlab:project:view": {
1880
2279
  "aliases": [],
1881
2280
  "args": {},
1882
- "description": "Merging cannot be undone by any other command, so this one refuses to send anything without --confirm. Without it, it prints the request it would send and exits 1.\n\nPass --sha with the head you reviewed (the \"Head\" line of mr view): GitLab then refuses if anything was pushed since. --auto-merge merges once checks pass, and on a project with merge trains it joins the train. --skip-merge-train uses GitLab's experimental \"merge immediately without restarting the merge train\", which merges changes the train has not tested against the merge requests queued ahead of it; it requires --sha.\n\nWhen GitLab refuses with a bare 405, the merge request is read back and the reason is named.",
2281
+ "description": "Accepts either the numeric id or the full path. Use --json for the complete, unmodified API payload, which carries far more than the summary below — permissions, statistics, and every feature toggle on the project.",
1883
2282
  "examples": [
1884
- "<%= config.bin %> <%= command.id %> --project group/project --mr 42 --sha <head-sha> --confirm",
1885
- "<%= config.bin %> <%= command.id %> --project group/project --mr 42 --auto-merge --confirm",
1886
- "<%= config.bin %> <%= command.id %> --project group/project --mr 42 --skip-merge-train --sha <head-sha> --confirm",
1887
- "<%= config.bin %> <%= command.id %> --project group/project --mr 42 --squash --dry-run"
2283
+ "<%= config.bin %> <%= command.id %> --project group/project",
2284
+ "<%= config.bin %> <%= command.id %> --project 1234 --json"
1888
2285
  ],
1889
2286
  "flags": {
1890
2287
  "json": {
@@ -1896,7 +2293,7 @@
1896
2293
  },
1897
2294
  "env-file": {
1898
2295
  "char": "e",
1899
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.",
2296
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
1900
2297
  "helpGroup": "CONNECTION",
1901
2298
  "name": "env-file",
1902
2299
  "summary": "Path to a .env file holding connection settings.",
@@ -1905,7 +2302,7 @@
1905
2302
  "type": "option"
1906
2303
  },
1907
2304
  "gitlab-url": {
1908
- "env": "GITLAB_URL",
2305
+ "env": "SIMPLY_GITLAB_URL",
1909
2306
  "helpGroup": "CONNECTION",
1910
2307
  "name": "gitlab-url",
1911
2308
  "summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
@@ -1914,7 +2311,7 @@
1914
2311
  "type": "option"
1915
2312
  },
1916
2313
  "gitlab-token": {
1917
- "env": "GITLAB_TOKEN",
2314
+ "env": "SIMPLY_GITLAB_TOKEN",
1918
2315
  "helpGroup": "CONNECTION",
1919
2316
  "name": "gitlab-token",
1920
2317
  "summary": "Personal, project, or group access token.",
@@ -1922,124 +2319,66 @@
1922
2319
  "multiple": false,
1923
2320
  "type": "option"
1924
2321
  },
1925
- "project": {
1926
- "char": "p",
1927
- "env": "GITLAB_PROJECT",
1928
- "name": "project",
1929
- "required": true,
1930
- "summary": "Project id, or its full path such as group/subgroup/project.",
1931
- "hasDynamicHelp": false,
1932
- "multiple": false,
1933
- "type": "option"
1934
- },
1935
- "dry-run": {
1936
- "name": "dry-run",
1937
- "summary": "Print the request that would be sent and exit without sending it.",
1938
- "allowNo": false,
1939
- "type": "boolean"
1940
- },
1941
- "mr": {
1942
- "name": "mr",
1943
- "required": true,
1944
- "summary": "Merge request iid.",
1945
- "hasDynamicHelp": false,
1946
- "multiple": false,
1947
- "type": "option"
1948
- },
1949
- "sha": {
1950
- "name": "sha",
1951
- "summary": "Full sha of the source branch head you reviewed. Recommended; required with --skip-merge-train.",
2322
+ "gitlab-token-kind": {
2323
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
2324
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
2325
+ "helpGroup": "CONNECTION",
2326
+ "name": "gitlab-token-kind",
2327
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
1952
2328
  "hasDynamicHelp": false,
1953
2329
  "multiple": false,
1954
- "type": "option"
1955
- },
1956
- "auto-merge": {
1957
- "exclusive": [
1958
- "skip-merge-train"
1959
- ],
1960
- "name": "auto-merge",
1961
- "summary": "Merge when checks pass. On a project with merge trains, this joins the train.",
1962
- "allowNo": false,
1963
- "type": "boolean"
1964
- },
1965
- "skip-merge-train": {
1966
- "exclusive": [
1967
- "auto-merge"
2330
+ "options": [
2331
+ "personal",
2332
+ "job"
1968
2333
  ],
1969
- "name": "skip-merge-train",
1970
- "summary": "Merge now without restarting the merge train. Experimental in GitLab.",
1971
- "allowNo": false,
1972
- "type": "boolean"
1973
- },
1974
- "squash": {
1975
- "name": "squash",
1976
- "summary": "Squash the commits into one.",
1977
- "allowNo": true,
1978
- "type": "boolean"
1979
- },
1980
- "remove-source-branch": {
1981
- "name": "remove-source-branch",
1982
- "summary": "Delete the source branch after merging.",
1983
- "allowNo": true,
1984
- "type": "boolean"
1985
- },
1986
- "merge-commit-message": {
1987
- "name": "merge-commit-message",
1988
- "summary": "Custom merge commit message.",
1989
- "hasDynamicHelp": false,
1990
- "multiple": false,
1991
2334
  "type": "option"
1992
2335
  },
1993
- "squash-commit-message": {
1994
- "name": "squash-commit-message",
1995
- "summary": "Custom squash commit message.",
2336
+ "project": {
2337
+ "char": "p",
2338
+ "env": "SIMPLY_GITLAB_PROJECT",
2339
+ "name": "project",
2340
+ "required": true,
2341
+ "summary": "Project id, or its full path such as group/subgroup/project.",
1996
2342
  "hasDynamicHelp": false,
1997
2343
  "multiple": false,
1998
2344
  "type": "option"
1999
- },
2000
- "confirm": {
2001
- "name": "confirm",
2002
- "summary": "Send the merge. Without it, nothing is sent.",
2003
- "allowNo": false,
2004
- "type": "boolean"
2005
2345
  }
2006
2346
  },
2007
2347
  "hasDynamicHelp": false,
2008
2348
  "hiddenAliases": [],
2009
- "id": "gitlab:mr:merge",
2349
+ "id": "gitlab:project:view",
2010
2350
  "pluginAlias": "@simplysf/simply-gitlab",
2011
2351
  "pluginName": "@simplysf/simply-gitlab",
2012
2352
  "pluginType": "core",
2013
2353
  "strict": true,
2014
- "summary": "Merge a merge request, or add it to the merge train.",
2354
+ "summary": "Show one project.",
2015
2355
  "enableJsonFlag": true,
2016
- "isWrite": true,
2356
+ "isWrite": false,
2017
2357
  "isESM": true,
2018
2358
  "relativePath": [
2019
2359
  "lib",
2020
2360
  "commands",
2021
2361
  "gitlab",
2022
- "mr",
2023
- "merge.js"
2362
+ "project",
2363
+ "view.js"
2024
2364
  ],
2025
2365
  "aliasPermutations": [],
2026
2366
  "permutations": [
2027
- "gitlab:mr:merge",
2028
- "mr:gitlab:merge",
2029
- "mr:merge:gitlab",
2030
- "gitlab:merge:mr",
2031
- "merge:gitlab:mr",
2032
- "merge:mr:gitlab"
2367
+ "gitlab:project:view",
2368
+ "project:gitlab:view",
2369
+ "project:view:gitlab",
2370
+ "gitlab:view:project",
2371
+ "view:gitlab:project",
2372
+ "view:project:gitlab"
2033
2373
  ]
2034
2374
  },
2035
- "gitlab:mr:update": {
2375
+ "gitlab:release:create": {
2036
2376
  "aliases": [],
2037
2377
  "args": {},
2038
- "description": "Only the attributes you name are changed, with one exception worth knowing: --labels replaces the whole label set rather than adding to it.\n\nNaming nothing to change is refused rather than sent, because GitLab answers an empty update with a cheerful 200 and an unchanged merge request. --state close and --state reopen do what the buttons of those names do; neither merges anything.",
2378
+ "description": "Attaches a release to --tag. When the tag does not exist yet, pass --ref and GitLab creates the tag there first. When the tag exists, --ref is ignored, so this never moves a tag. A tag carries at most one release, and a second create for it is refused with status 409.\n\n--body or --body-file supplies raw JSON for anything the flags do not cover, such as asset links. Use --dry-run to see exactly what would be sent.",
2039
2379
  "examples": [
2040
- "<%= config.bin %> <%= command.id %> --project group/project --mr 42 --title \"feat: renamed\"",
2041
- "<%= config.bin %> <%= command.id %> --project group/project --mr 42 --state close",
2042
- "<%= config.bin %> <%= command.id %> --project group/project --mr 42 --labels backend,urgent --dry-run"
2380
+ "<%= config.bin %> <%= command.id %> --project group/project --tag v1.2.0 --name 1.2.0 --description \"Bug fixes.\"",
2381
+ "<%= config.bin %> <%= command.id %> --project group/project --tag v1.3.0 --ref main --dry-run"
2043
2382
  ],
2044
2383
  "flags": {
2045
2384
  "json": {
@@ -2051,7 +2390,7 @@
2051
2390
  },
2052
2391
  "env-file": {
2053
2392
  "char": "e",
2054
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.",
2393
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
2055
2394
  "helpGroup": "CONNECTION",
2056
2395
  "name": "env-file",
2057
2396
  "summary": "Path to a .env file holding connection settings.",
@@ -2060,7 +2399,7 @@
2060
2399
  "type": "option"
2061
2400
  },
2062
2401
  "gitlab-url": {
2063
- "env": "GITLAB_URL",
2402
+ "env": "SIMPLY_GITLAB_URL",
2064
2403
  "helpGroup": "CONNECTION",
2065
2404
  "name": "gitlab-url",
2066
2405
  "summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
@@ -2069,7 +2408,7 @@
2069
2408
  "type": "option"
2070
2409
  },
2071
2410
  "gitlab-token": {
2072
- "env": "GITLAB_TOKEN",
2411
+ "env": "SIMPLY_GITLAB_TOKEN",
2073
2412
  "helpGroup": "CONNECTION",
2074
2413
  "name": "gitlab-token",
2075
2414
  "summary": "Personal, project, or group access token.",
@@ -2077,9 +2416,23 @@
2077
2416
  "multiple": false,
2078
2417
  "type": "option"
2079
2418
  },
2419
+ "gitlab-token-kind": {
2420
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
2421
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
2422
+ "helpGroup": "CONNECTION",
2423
+ "name": "gitlab-token-kind",
2424
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
2425
+ "hasDynamicHelp": false,
2426
+ "multiple": false,
2427
+ "options": [
2428
+ "personal",
2429
+ "job"
2430
+ ],
2431
+ "type": "option"
2432
+ },
2080
2433
  "project": {
2081
2434
  "char": "p",
2082
- "env": "GITLAB_PROJECT",
2435
+ "env": "SIMPLY_GITLAB_PROJECT",
2083
2436
  "name": "project",
2084
2437
  "required": true,
2085
2438
  "summary": "Project id, or its full path such as group/subgroup/project.",
@@ -2093,82 +2446,44 @@
2093
2446
  "allowNo": false,
2094
2447
  "type": "boolean"
2095
2448
  },
2096
- "mr": {
2097
- "name": "mr",
2098
- "required": true,
2099
- "summary": "Merge request iid.",
2449
+ "tag": {
2450
+ "name": "tag",
2451
+ "summary": "Tag to attach the release to.",
2100
2452
  "hasDynamicHelp": false,
2101
2453
  "multiple": false,
2102
2454
  "type": "option"
2103
2455
  },
2104
- "title": {
2105
- "name": "title",
2106
- "summary": "New title.",
2456
+ "name": {
2457
+ "name": "name",
2458
+ "summary": "Release title. GitLab uses the tag name when it is omitted.",
2107
2459
  "hasDynamicHelp": false,
2108
2460
  "multiple": false,
2109
2461
  "type": "option"
2110
2462
  },
2111
2463
  "description": {
2112
2464
  "name": "description",
2113
- "summary": "New description, as Markdown.",
2114
- "hasDynamicHelp": false,
2115
- "multiple": false,
2116
- "type": "option"
2117
- },
2118
- "target-branch": {
2119
- "name": "target-branch",
2120
- "summary": "New target branch.",
2465
+ "summary": "Release notes, as Markdown.",
2121
2466
  "hasDynamicHelp": false,
2122
2467
  "multiple": false,
2123
2468
  "type": "option"
2124
2469
  },
2125
- "state": {
2126
- "name": "state",
2127
- "summary": "Close or reopen the merge request.",
2470
+ "ref": {
2471
+ "name": "ref",
2472
+ "summary": "Branch, tag, or SHA to create the tag from, when it does not exist yet.",
2128
2473
  "hasDynamicHelp": false,
2129
2474
  "multiple": false,
2130
- "options": [
2131
- "close",
2132
- "reopen"
2133
- ],
2134
- "type": "option"
2135
- },
2136
- "squash": {
2137
- "name": "squash",
2138
- "summary": "Squash the commits when it merges.",
2139
- "allowNo": true,
2140
- "type": "boolean"
2141
- },
2142
- "remove-source-branch": {
2143
- "name": "remove-source-branch",
2144
- "summary": "Delete the source branch on merge.",
2145
- "allowNo": true,
2146
- "type": "boolean"
2147
- },
2148
- "assignee-id": {
2149
- "name": "assignee-id",
2150
- "summary": "User id to assign, replacing the set. Repeatable.",
2151
- "hasDynamicHelp": false,
2152
- "multiple": true,
2153
2475
  "type": "option"
2154
2476
  },
2155
- "reviewer-id": {
2156
- "name": "reviewer-id",
2157
- "summary": "User id to review, replacing the set. Repeatable.",
2477
+ "milestone": {
2478
+ "name": "milestone",
2479
+ "summary": "Milestone title to associate. Repeatable.",
2158
2480
  "hasDynamicHelp": false,
2159
2481
  "multiple": true,
2160
2482
  "type": "option"
2161
2483
  },
2162
- "labels": {
2163
- "name": "labels",
2164
- "summary": "Comma-separated labels, replacing the existing set.",
2165
- "hasDynamicHelp": false,
2166
- "multiple": false,
2167
- "type": "option"
2168
- },
2169
- "milestone-id": {
2170
- "name": "milestone-id",
2171
- "summary": "Milestone id to attach.",
2484
+ "released-at": {
2485
+ "name": "released-at",
2486
+ "summary": "Release date, as ISO 8601. Defaults to now.",
2172
2487
  "hasDynamicHelp": false,
2173
2488
  "multiple": false,
2174
2489
  "type": "option"
@@ -2193,12 +2508,12 @@
2193
2508
  },
2194
2509
  "hasDynamicHelp": false,
2195
2510
  "hiddenAliases": [],
2196
- "id": "gitlab:mr:update",
2511
+ "id": "gitlab:release:create",
2197
2512
  "pluginAlias": "@simplysf/simply-gitlab",
2198
2513
  "pluginName": "@simplysf/simply-gitlab",
2199
2514
  "pluginType": "core",
2200
2515
  "strict": true,
2201
- "summary": "Change an existing merge request.",
2516
+ "summary": "Create a release.",
2202
2517
  "enableJsonFlag": true,
2203
2518
  "isWrite": true,
2204
2519
  "isESM": true,
@@ -2206,26 +2521,26 @@
2206
2521
  "lib",
2207
2522
  "commands",
2208
2523
  "gitlab",
2209
- "mr",
2210
- "update.js"
2524
+ "release",
2525
+ "create.js"
2211
2526
  ],
2212
2527
  "aliasPermutations": [],
2213
2528
  "permutations": [
2214
- "gitlab:mr:update",
2215
- "mr:gitlab:update",
2216
- "mr:update:gitlab",
2217
- "gitlab:update:mr",
2218
- "update:gitlab:mr",
2219
- "update:mr:gitlab"
2529
+ "gitlab:release:create",
2530
+ "release:gitlab:create",
2531
+ "release:create:gitlab",
2532
+ "gitlab:create:release",
2533
+ "create:gitlab:release",
2534
+ "create:release:gitlab"
2220
2535
  ]
2221
2536
  },
2222
- "gitlab:mr:view": {
2537
+ "gitlab:release:list": {
2223
2538
  "aliases": [],
2224
2539
  "args": {},
2225
- "description": "Takes the project-scoped iid — the number in the merge request URL — not the instance-wide id. Use --json for the full payload, which carries the pipeline status, approvals, and diff refs the summary below leaves out.",
2540
+ "description": "Releases are tags with notes and assets attached, so a project can have many tags and no releases at all. Use --json for the release notes, asset links, and the commit each release points at.",
2226
2541
  "examples": [
2227
- "<%= config.bin %> <%= command.id %> --project group/project --mr 42",
2228
- "<%= config.bin %> <%= command.id %> --project group/project --mr 42 --json"
2542
+ "<%= config.bin %> <%= command.id %> --project group/project",
2543
+ "<%= config.bin %> <%= command.id %> --project group/project --limit 5 --json"
2229
2544
  ],
2230
2545
  "flags": {
2231
2546
  "json": {
@@ -2237,7 +2552,7 @@
2237
2552
  },
2238
2553
  "env-file": {
2239
2554
  "char": "e",
2240
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.",
2555
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
2241
2556
  "helpGroup": "CONNECTION",
2242
2557
  "name": "env-file",
2243
2558
  "summary": "Path to a .env file holding connection settings.",
@@ -2246,7 +2561,7 @@
2246
2561
  "type": "option"
2247
2562
  },
2248
2563
  "gitlab-url": {
2249
- "env": "GITLAB_URL",
2564
+ "env": "SIMPLY_GITLAB_URL",
2250
2565
  "helpGroup": "CONNECTION",
2251
2566
  "name": "gitlab-url",
2252
2567
  "summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
@@ -2255,7 +2570,7 @@
2255
2570
  "type": "option"
2256
2571
  },
2257
2572
  "gitlab-token": {
2258
- "env": "GITLAB_TOKEN",
2573
+ "env": "SIMPLY_GITLAB_TOKEN",
2259
2574
  "helpGroup": "CONNECTION",
2260
2575
  "name": "gitlab-token",
2261
2576
  "summary": "Personal, project, or group access token.",
@@ -2263,9 +2578,23 @@
2263
2578
  "multiple": false,
2264
2579
  "type": "option"
2265
2580
  },
2581
+ "gitlab-token-kind": {
2582
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
2583
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
2584
+ "helpGroup": "CONNECTION",
2585
+ "name": "gitlab-token-kind",
2586
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
2587
+ "hasDynamicHelp": false,
2588
+ "multiple": false,
2589
+ "options": [
2590
+ "personal",
2591
+ "job"
2592
+ ],
2593
+ "type": "option"
2594
+ },
2266
2595
  "project": {
2267
2596
  "char": "p",
2268
- "env": "GITLAB_PROJECT",
2597
+ "env": "SIMPLY_GITLAB_PROJECT",
2269
2598
  "name": "project",
2270
2599
  "required": true,
2271
2600
  "summary": "Project id, or its full path such as group/subgroup/project.",
@@ -2273,10 +2602,10 @@
2273
2602
  "multiple": false,
2274
2603
  "type": "option"
2275
2604
  },
2276
- "mr": {
2277
- "name": "mr",
2278
- "required": true,
2279
- "summary": "Merge request iid.",
2605
+ "limit": {
2606
+ "name": "limit",
2607
+ "summary": "Maximum number of releases to return across all pages.",
2608
+ "default": 20,
2280
2609
  "hasDynamicHelp": false,
2281
2610
  "multiple": false,
2282
2611
  "type": "option"
@@ -2284,12 +2613,12 @@
2284
2613
  },
2285
2614
  "hasDynamicHelp": false,
2286
2615
  "hiddenAliases": [],
2287
- "id": "gitlab:mr:view",
2616
+ "id": "gitlab:release:list",
2288
2617
  "pluginAlias": "@simplysf/simply-gitlab",
2289
2618
  "pluginName": "@simplysf/simply-gitlab",
2290
2619
  "pluginType": "core",
2291
2620
  "strict": true,
2292
- "summary": "Show one merge request.",
2621
+ "summary": "List releases for a project.",
2293
2622
  "enableJsonFlag": true,
2294
2623
  "isWrite": false,
2295
2624
  "isESM": true,
@@ -2297,29 +2626,26 @@
2297
2626
  "lib",
2298
2627
  "commands",
2299
2628
  "gitlab",
2300
- "mr",
2301
- "view.js"
2629
+ "release",
2630
+ "list.js"
2302
2631
  ],
2303
2632
  "aliasPermutations": [],
2304
2633
  "permutations": [
2305
- "gitlab:mr:view",
2306
- "mr:gitlab:view",
2307
- "mr:view:gitlab",
2308
- "gitlab:view:mr",
2309
- "view:gitlab:mr",
2310
- "view:mr:gitlab"
2634
+ "gitlab:release:list",
2635
+ "release:gitlab:list",
2636
+ "release:list:gitlab",
2637
+ "gitlab:list:release",
2638
+ "list:gitlab:release",
2639
+ "list:release:gitlab"
2311
2640
  ]
2312
2641
  },
2313
- "gitlab:project:create": {
2642
+ "gitlab:release:view": {
2314
2643
  "aliases": [],
2315
2644
  "args": {},
2316
- "description": "Creates the project in --namespace, or in the namespace of the token owner when none is given. Give it --name or --path; GitLab derives whichever one is missing.\n\n--template names one of the built-in templates GitLab ships, such as express or rails. To create from a custom template instead, add --custom-template for one the instance administrator registered, --template-group for one in a group, or use --template-project to name the template project itself by id or path — which GitLab prefers, because a name can be ambiguous. Add --template-group to --template-project when the template belongs to a group rather than the instance. Custom templates need a Premium or Ultimate instance.\n\nA template is applied asynchronously: this command returns as soon as the project record exists, with an import status of \"scheduled\", and the files arrive a few seconds later. Check \"project view\" until its import_status reads \"finished\" before writing to the repository. --dry-run prints the exact request body; a namespace or template given as a path is still looked up, so the printed ids are the ones that would be sent.",
2645
+ "description": "Looks the release up by its tag. A tag that has no release fails with status 404, as does a project the token cannot see. Use --json for asset links and milestones.",
2317
2646
  "examples": [
2318
- "<%= config.bin %> <%= command.id %> --name new-service --namespace platform/apps",
2319
- "<%= config.bin %> <%= command.id %> --name new-service --namespace platform/apps --template express --visibility internal",
2320
- "<%= config.bin %> <%= command.id %> --name new-service --namespace platform/apps --template service-skeleton --template-group platform/templates",
2321
- "<%= config.bin %> <%= command.id %> --path new-service --template-project platform/templates/service-skeleton --dry-run",
2322
- "<%= config.bin %> <%= command.id %> --name new-service --template-project platform/templates/service-skeleton --template-group platform/templates"
2647
+ "<%= config.bin %> <%= command.id %> --project group/project --tag v1.2.0",
2648
+ "<%= config.bin %> <%= command.id %> --project group/project --tag v1.2.0 --json"
2323
2649
  ],
2324
2650
  "flags": {
2325
2651
  "json": {
@@ -2331,7 +2657,7 @@
2331
2657
  },
2332
2658
  "env-file": {
2333
2659
  "char": "e",
2334
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.",
2660
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
2335
2661
  "helpGroup": "CONNECTION",
2336
2662
  "name": "env-file",
2337
2663
  "summary": "Path to a .env file holding connection settings.",
@@ -2340,7 +2666,7 @@
2340
2666
  "type": "option"
2341
2667
  },
2342
2668
  "gitlab-url": {
2343
- "env": "GITLAB_URL",
2669
+ "env": "SIMPLY_GITLAB_URL",
2344
2670
  "helpGroup": "CONNECTION",
2345
2671
  "name": "gitlab-url",
2346
2672
  "summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
@@ -2349,7 +2675,7 @@
2349
2675
  "type": "option"
2350
2676
  },
2351
2677
  "gitlab-token": {
2352
- "env": "GITLAB_TOKEN",
2678
+ "env": "SIMPLY_GITLAB_TOKEN",
2353
2679
  "helpGroup": "CONNECTION",
2354
2680
  "name": "gitlab-token",
2355
2681
  "summary": "Personal, project, or group access token.",
@@ -2357,96 +2683,211 @@
2357
2683
  "multiple": false,
2358
2684
  "type": "option"
2359
2685
  },
2360
- "dry-run": {
2361
- "name": "dry-run",
2362
- "summary": "Print the request that would be sent and exit without sending it.",
2363
- "allowNo": false,
2364
- "type": "boolean"
2365
- },
2366
- "name": {
2367
- "name": "name",
2368
- "summary": "Project name. The path is derived from it when --path is not given.",
2686
+ "gitlab-token-kind": {
2687
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
2688
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
2689
+ "helpGroup": "CONNECTION",
2690
+ "name": "gitlab-token-kind",
2691
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
2369
2692
  "hasDynamicHelp": false,
2370
2693
  "multiple": false,
2694
+ "options": [
2695
+ "personal",
2696
+ "job"
2697
+ ],
2371
2698
  "type": "option"
2372
2699
  },
2373
- "path": {
2374
- "name": "path",
2375
- "summary": "Repository path, the URL slug. The name is derived from it when --name is not given.",
2700
+ "project": {
2701
+ "char": "p",
2702
+ "env": "SIMPLY_GITLAB_PROJECT",
2703
+ "name": "project",
2704
+ "required": true,
2705
+ "summary": "Project id, or its full path such as group/subgroup/project.",
2376
2706
  "hasDynamicHelp": false,
2377
2707
  "multiple": false,
2378
2708
  "type": "option"
2379
2709
  },
2380
- "namespace": {
2381
- "description": "Defaults to the namespace of the token owner.",
2382
- "name": "namespace",
2383
- "summary": "Group or user namespace to create the project in, by id or full path.",
2710
+ "tag": {
2711
+ "name": "tag",
2712
+ "required": true,
2713
+ "summary": "Tag the release is attached to.",
2384
2714
  "hasDynamicHelp": false,
2385
2715
  "multiple": false,
2386
2716
  "type": "option"
2387
- },
2388
- "description": {
2389
- "name": "description",
2390
- "summary": "Project description.",
2717
+ }
2718
+ },
2719
+ "hasDynamicHelp": false,
2720
+ "hiddenAliases": [],
2721
+ "id": "gitlab:release:view",
2722
+ "pluginAlias": "@simplysf/simply-gitlab",
2723
+ "pluginName": "@simplysf/simply-gitlab",
2724
+ "pluginType": "core",
2725
+ "strict": true,
2726
+ "summary": "Show one release.",
2727
+ "enableJsonFlag": true,
2728
+ "isWrite": false,
2729
+ "isESM": true,
2730
+ "relativePath": [
2731
+ "lib",
2732
+ "commands",
2733
+ "gitlab",
2734
+ "release",
2735
+ "view.js"
2736
+ ],
2737
+ "aliasPermutations": [],
2738
+ "permutations": [
2739
+ "gitlab:release:view",
2740
+ "release:gitlab:view",
2741
+ "release:view:gitlab",
2742
+ "gitlab:view:release",
2743
+ "view:gitlab:release",
2744
+ "view:release:gitlab"
2745
+ ]
2746
+ },
2747
+ "gitlab:mr:create": {
2748
+ "aliases": [],
2749
+ "args": {},
2750
+ "description": "Both branches must already exist on the project. --draft prefixes the title with \"Draft: \", which is how GitLab itself marks a draft; there is no separate field for it.\n\nAssignees and reviewers are numeric user ids, not usernames — GitLab accepts only ids here. --body or --body-file supplies raw JSON for anything the flags do not cover, such as approval rules. Use --dry-run to see exactly what would be sent.",
2751
+ "examples": [
2752
+ "<%= config.bin %> <%= command.id %> --project group/project --source-branch feature --target-branch main --title \"feat: the thing\"",
2753
+ "<%= config.bin %> <%= command.id %> --project group/project --source-branch feature --target-branch main --title wip --draft --squash"
2754
+ ],
2755
+ "flags": {
2756
+ "json": {
2757
+ "description": "Format output as json.",
2758
+ "helpGroup": "GLOBAL",
2759
+ "name": "json",
2760
+ "allowNo": false,
2761
+ "type": "boolean"
2762
+ },
2763
+ "env-file": {
2764
+ "char": "e",
2765
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
2766
+ "helpGroup": "CONNECTION",
2767
+ "name": "env-file",
2768
+ "summary": "Path to a .env file holding connection settings.",
2391
2769
  "hasDynamicHelp": false,
2392
2770
  "multiple": false,
2393
2771
  "type": "option"
2394
2772
  },
2395
- "visibility": {
2396
- "name": "visibility",
2397
- "summary": "Who can see the project.",
2773
+ "gitlab-url": {
2774
+ "env": "SIMPLY_GITLAB_URL",
2775
+ "helpGroup": "CONNECTION",
2776
+ "name": "gitlab-url",
2777
+ "summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
2778
+ "hasDynamicHelp": false,
2779
+ "multiple": false,
2780
+ "type": "option"
2781
+ },
2782
+ "gitlab-token": {
2783
+ "env": "SIMPLY_GITLAB_TOKEN",
2784
+ "helpGroup": "CONNECTION",
2785
+ "name": "gitlab-token",
2786
+ "summary": "Personal, project, or group access token.",
2787
+ "hasDynamicHelp": false,
2788
+ "multiple": false,
2789
+ "type": "option"
2790
+ },
2791
+ "gitlab-token-kind": {
2792
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
2793
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
2794
+ "helpGroup": "CONNECTION",
2795
+ "name": "gitlab-token-kind",
2796
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
2398
2797
  "hasDynamicHelp": false,
2399
2798
  "multiple": false,
2400
2799
  "options": [
2401
- "private",
2402
- "internal",
2403
- "public"
2800
+ "personal",
2801
+ "job"
2404
2802
  ],
2405
2803
  "type": "option"
2406
2804
  },
2407
- "default-branch": {
2408
- "name": "default-branch",
2409
- "summary": "Name of the default branch.",
2805
+ "project": {
2806
+ "char": "p",
2807
+ "env": "SIMPLY_GITLAB_PROJECT",
2808
+ "name": "project",
2809
+ "required": true,
2810
+ "summary": "Project id, or its full path such as group/subgroup/project.",
2410
2811
  "hasDynamicHelp": false,
2411
2812
  "multiple": false,
2412
2813
  "type": "option"
2413
2814
  },
2414
- "initialize-with-readme": {
2415
- "name": "initialize-with-readme",
2416
- "summary": "Create a first commit holding a README, so the repository is not empty.",
2815
+ "dry-run": {
2816
+ "name": "dry-run",
2817
+ "summary": "Print the request that would be sent and exit without sending it.",
2417
2818
  "allowNo": false,
2418
2819
  "type": "boolean"
2419
2820
  },
2420
- "topics": {
2421
- "name": "topics",
2422
- "summary": "Comma-separated topics to label the project with.",
2821
+ "source-branch": {
2822
+ "name": "source-branch",
2823
+ "summary": "Branch holding the changes.",
2423
2824
  "hasDynamicHelp": false,
2424
2825
  "multiple": false,
2425
2826
  "type": "option"
2426
2827
  },
2427
- "template": {
2428
- "name": "template",
2429
- "summary": "Template to create from: a built-in name, or with --custom-template or --template-group a custom one.",
2828
+ "target-branch": {
2829
+ "name": "target-branch",
2830
+ "summary": "Branch the changes are proposed for.",
2430
2831
  "hasDynamicHelp": false,
2431
2832
  "multiple": false,
2432
2833
  "type": "option"
2433
2834
  },
2434
- "custom-template": {
2435
- "name": "custom-template",
2436
- "summary": "Look --template up among the instance's custom project templates rather than the built-in ones.",
2835
+ "title": {
2836
+ "name": "title",
2837
+ "summary": "Merge request title.",
2838
+ "hasDynamicHelp": false,
2839
+ "multiple": false,
2840
+ "type": "option"
2841
+ },
2842
+ "description": {
2843
+ "name": "description",
2844
+ "summary": "Merge request description, as Markdown.",
2845
+ "hasDynamicHelp": false,
2846
+ "multiple": false,
2847
+ "type": "option"
2848
+ },
2849
+ "draft": {
2850
+ "name": "draft",
2851
+ "summary": "Open it as a draft.",
2437
2852
  "allowNo": false,
2438
2853
  "type": "boolean"
2439
2854
  },
2440
- "template-group": {
2441
- "name": "template-group",
2442
- "summary": "Group whose custom project templates --template or --template-project names, by id or full path.",
2855
+ "squash": {
2856
+ "name": "squash",
2857
+ "summary": "Squash the commits when it merges.",
2858
+ "allowNo": false,
2859
+ "type": "boolean"
2860
+ },
2861
+ "remove-source-branch": {
2862
+ "name": "remove-source-branch",
2863
+ "summary": "Delete the source branch on merge.",
2864
+ "allowNo": false,
2865
+ "type": "boolean"
2866
+ },
2867
+ "assignee-id": {
2868
+ "name": "assignee-id",
2869
+ "summary": "User id to assign. Repeatable.",
2870
+ "hasDynamicHelp": false,
2871
+ "multiple": true,
2872
+ "type": "option"
2873
+ },
2874
+ "reviewer-id": {
2875
+ "name": "reviewer-id",
2876
+ "summary": "User id to request review from. Repeatable.",
2877
+ "hasDynamicHelp": false,
2878
+ "multiple": true,
2879
+ "type": "option"
2880
+ },
2881
+ "labels": {
2882
+ "name": "labels",
2883
+ "summary": "Comma-separated labels to apply.",
2443
2884
  "hasDynamicHelp": false,
2444
2885
  "multiple": false,
2445
2886
  "type": "option"
2446
2887
  },
2447
- "template-project": {
2448
- "name": "template-project",
2449
- "summary": "Custom template project to create from, by id or full path. Cannot be combined with --template.",
2888
+ "milestone-id": {
2889
+ "name": "milestone-id",
2890
+ "summary": "Milestone id to attach.",
2450
2891
  "hasDynamicHelp": false,
2451
2892
  "multiple": false,
2452
2893
  "type": "option"
@@ -2471,12 +2912,12 @@
2471
2912
  },
2472
2913
  "hasDynamicHelp": false,
2473
2914
  "hiddenAliases": [],
2474
- "id": "gitlab:project:create",
2915
+ "id": "gitlab:mr:create",
2475
2916
  "pluginAlias": "@simplysf/simply-gitlab",
2476
2917
  "pluginName": "@simplysf/simply-gitlab",
2477
2918
  "pluginType": "core",
2478
2919
  "strict": true,
2479
- "summary": "Create a project, blank or from a template.",
2920
+ "summary": "Open a merge request.",
2480
2921
  "enableJsonFlag": true,
2481
2922
  "isWrite": true,
2482
2923
  "isESM": true,
@@ -2484,27 +2925,191 @@
2484
2925
  "lib",
2485
2926
  "commands",
2486
2927
  "gitlab",
2487
- "project",
2928
+ "mr",
2488
2929
  "create.js"
2489
2930
  ],
2490
2931
  "aliasPermutations": [],
2491
2932
  "permutations": [
2492
- "gitlab:project:create",
2493
- "project:gitlab:create",
2494
- "project:create:gitlab",
2495
- "gitlab:create:project",
2496
- "create:gitlab:project",
2497
- "create:project:gitlab"
2933
+ "gitlab:mr:create",
2934
+ "mr:gitlab:create",
2935
+ "mr:create:gitlab",
2936
+ "gitlab:create:mr",
2937
+ "create:gitlab:mr",
2938
+ "create:mr:gitlab"
2498
2939
  ]
2499
2940
  },
2500
- "gitlab:project:list": {
2941
+ "gitlab:mr:list": {
2501
2942
  "aliases": [],
2502
2943
  "args": {},
2503
- "description": "Without --search this lists every project the token can reach, newest activity first, which on a large instance is not a useful answer — narrow it with --search or --membership. Use --simple for a much smaller payload when you only need ids and paths.",
2944
+ "description": "Defaults to open merge requests, which is what a list is nearly always for; pass --state all to include closed and merged ones. The IID column is the number to pass to the other mr commands — it is per-project, and is not the \"id\" field in the JSON payload.",
2504
2945
  "examples": [
2505
- "<%= config.bin %> <%= command.id %> --membership",
2506
- "<%= config.bin %> <%= command.id %> --search platform --limit 10",
2507
- "<%= config.bin %> <%= command.id %> --search platform --simple --json"
2946
+ "<%= config.bin %> <%= command.id %> --project group/project",
2947
+ "<%= config.bin %> <%= command.id %> --project group/project --state merged --target-branch main --limit 10",
2948
+ "<%= config.bin %> <%= command.id %> --project group/project --author-username someone --json"
2949
+ ],
2950
+ "flags": {
2951
+ "json": {
2952
+ "description": "Format output as json.",
2953
+ "helpGroup": "GLOBAL",
2954
+ "name": "json",
2955
+ "allowNo": false,
2956
+ "type": "boolean"
2957
+ },
2958
+ "env-file": {
2959
+ "char": "e",
2960
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
2961
+ "helpGroup": "CONNECTION",
2962
+ "name": "env-file",
2963
+ "summary": "Path to a .env file holding connection settings.",
2964
+ "hasDynamicHelp": false,
2965
+ "multiple": false,
2966
+ "type": "option"
2967
+ },
2968
+ "gitlab-url": {
2969
+ "env": "SIMPLY_GITLAB_URL",
2970
+ "helpGroup": "CONNECTION",
2971
+ "name": "gitlab-url",
2972
+ "summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
2973
+ "hasDynamicHelp": false,
2974
+ "multiple": false,
2975
+ "type": "option"
2976
+ },
2977
+ "gitlab-token": {
2978
+ "env": "SIMPLY_GITLAB_TOKEN",
2979
+ "helpGroup": "CONNECTION",
2980
+ "name": "gitlab-token",
2981
+ "summary": "Personal, project, or group access token.",
2982
+ "hasDynamicHelp": false,
2983
+ "multiple": false,
2984
+ "type": "option"
2985
+ },
2986
+ "gitlab-token-kind": {
2987
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
2988
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
2989
+ "helpGroup": "CONNECTION",
2990
+ "name": "gitlab-token-kind",
2991
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
2992
+ "hasDynamicHelp": false,
2993
+ "multiple": false,
2994
+ "options": [
2995
+ "personal",
2996
+ "job"
2997
+ ],
2998
+ "type": "option"
2999
+ },
3000
+ "project": {
3001
+ "char": "p",
3002
+ "env": "SIMPLY_GITLAB_PROJECT",
3003
+ "name": "project",
3004
+ "required": true,
3005
+ "summary": "Project id, or its full path such as group/subgroup/project.",
3006
+ "hasDynamicHelp": false,
3007
+ "multiple": false,
3008
+ "type": "option"
3009
+ },
3010
+ "limit": {
3011
+ "name": "limit",
3012
+ "summary": "Maximum number of merge requests to return across all pages.",
3013
+ "default": 20,
3014
+ "hasDynamicHelp": false,
3015
+ "multiple": false,
3016
+ "type": "option"
3017
+ },
3018
+ "state": {
3019
+ "name": "state",
3020
+ "summary": "Merge request state to return.",
3021
+ "default": "opened",
3022
+ "hasDynamicHelp": false,
3023
+ "multiple": false,
3024
+ "options": [
3025
+ "opened",
3026
+ "closed",
3027
+ "locked",
3028
+ "merged",
3029
+ "all"
3030
+ ],
3031
+ "type": "option"
3032
+ },
3033
+ "source-branch": {
3034
+ "name": "source-branch",
3035
+ "summary": "Only merge requests from this source branch.",
3036
+ "hasDynamicHelp": false,
3037
+ "multiple": false,
3038
+ "type": "option"
3039
+ },
3040
+ "target-branch": {
3041
+ "name": "target-branch",
3042
+ "summary": "Only merge requests into this target branch.",
3043
+ "hasDynamicHelp": false,
3044
+ "multiple": false,
3045
+ "type": "option"
3046
+ },
3047
+ "author-username": {
3048
+ "name": "author-username",
3049
+ "summary": "Only merge requests opened by this username.",
3050
+ "hasDynamicHelp": false,
3051
+ "multiple": false,
3052
+ "type": "option"
3053
+ },
3054
+ "reviewer-username": {
3055
+ "name": "reviewer-username",
3056
+ "summary": "Only merge requests this username is reviewing.",
3057
+ "hasDynamicHelp": false,
3058
+ "multiple": false,
3059
+ "type": "option"
3060
+ },
3061
+ "labels": {
3062
+ "name": "labels",
3063
+ "summary": "Comma-separated labels every result must carry.",
3064
+ "hasDynamicHelp": false,
3065
+ "multiple": false,
3066
+ "type": "option"
3067
+ },
3068
+ "search": {
3069
+ "name": "search",
3070
+ "summary": "Match against the title and description.",
3071
+ "hasDynamicHelp": false,
3072
+ "multiple": false,
3073
+ "type": "option"
3074
+ }
3075
+ },
3076
+ "hasDynamicHelp": false,
3077
+ "hiddenAliases": [],
3078
+ "id": "gitlab:mr:list",
3079
+ "pluginAlias": "@simplysf/simply-gitlab",
3080
+ "pluginName": "@simplysf/simply-gitlab",
3081
+ "pluginType": "core",
3082
+ "strict": true,
3083
+ "summary": "List merge requests for a project.",
3084
+ "enableJsonFlag": true,
3085
+ "isWrite": false,
3086
+ "isESM": true,
3087
+ "relativePath": [
3088
+ "lib",
3089
+ "commands",
3090
+ "gitlab",
3091
+ "mr",
3092
+ "list.js"
3093
+ ],
3094
+ "aliasPermutations": [],
3095
+ "permutations": [
3096
+ "gitlab:mr:list",
3097
+ "mr:gitlab:list",
3098
+ "mr:list:gitlab",
3099
+ "gitlab:list:mr",
3100
+ "list:gitlab:mr",
3101
+ "list:mr:gitlab"
3102
+ ]
3103
+ },
3104
+ "gitlab:mr:merge": {
3105
+ "aliases": [],
3106
+ "args": {},
3107
+ "description": "Merging cannot be undone by any other command, so this one refuses to send anything without --confirm. Without it, it prints the request it would send and exits 1.\n\nPass --sha with the head you reviewed (the \"Head\" line of mr view): GitLab then refuses if anything was pushed since. --auto-merge merges once checks pass, and on a project with merge trains it joins the train. --skip-merge-train uses GitLab's experimental \"merge immediately without restarting the merge train\", which merges changes the train has not tested against the merge requests queued ahead of it; it requires --sha.\n\nWhen GitLab refuses with a bare 405, the merge request is read back and the reason is named.",
3108
+ "examples": [
3109
+ "<%= config.bin %> <%= command.id %> --project group/project --mr 42 --sha <head-sha> --confirm",
3110
+ "<%= config.bin %> <%= command.id %> --project group/project --mr 42 --auto-merge --confirm",
3111
+ "<%= config.bin %> <%= command.id %> --project group/project --mr 42 --skip-merge-train --sha <head-sha> --confirm",
3112
+ "<%= config.bin %> <%= command.id %> --project group/project --mr 42 --squash --dry-run"
2508
3113
  ],
2509
3114
  "flags": {
2510
3115
  "json": {
@@ -2516,7 +3121,7 @@
2516
3121
  },
2517
3122
  "env-file": {
2518
3123
  "char": "e",
2519
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.",
3124
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
2520
3125
  "helpGroup": "CONNECTION",
2521
3126
  "name": "env-file",
2522
3127
  "summary": "Path to a .env file holding connection settings.",
@@ -2525,7 +3130,7 @@
2525
3130
  "type": "option"
2526
3131
  },
2527
3132
  "gitlab-url": {
2528
- "env": "GITLAB_URL",
3133
+ "env": "SIMPLY_GITLAB_URL",
2529
3134
  "helpGroup": "CONNECTION",
2530
3135
  "name": "gitlab-url",
2531
3136
  "summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
@@ -2534,7 +3139,7 @@
2534
3139
  "type": "option"
2535
3140
  },
2536
3141
  "gitlab-token": {
2537
- "env": "GITLAB_TOKEN",
3142
+ "env": "SIMPLY_GITLAB_TOKEN",
2538
3143
  "helpGroup": "CONNECTION",
2539
3144
  "name": "gitlab-token",
2540
3145
  "summary": "Personal, project, or group access token.",
@@ -2542,75 +3147,138 @@
2542
3147
  "multiple": false,
2543
3148
  "type": "option"
2544
3149
  },
2545
- "limit": {
2546
- "name": "limit",
2547
- "summary": "Maximum number of projects to return across all pages.",
2548
- "default": 20,
3150
+ "gitlab-token-kind": {
3151
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
3152
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
3153
+ "helpGroup": "CONNECTION",
3154
+ "name": "gitlab-token-kind",
3155
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
3156
+ "hasDynamicHelp": false,
3157
+ "multiple": false,
3158
+ "options": [
3159
+ "personal",
3160
+ "job"
3161
+ ],
3162
+ "type": "option"
3163
+ },
3164
+ "project": {
3165
+ "char": "p",
3166
+ "env": "SIMPLY_GITLAB_PROJECT",
3167
+ "name": "project",
3168
+ "required": true,
3169
+ "summary": "Project id, or its full path such as group/subgroup/project.",
3170
+ "hasDynamicHelp": false,
3171
+ "multiple": false,
3172
+ "type": "option"
3173
+ },
3174
+ "dry-run": {
3175
+ "name": "dry-run",
3176
+ "summary": "Print the request that would be sent and exit without sending it.",
3177
+ "allowNo": false,
3178
+ "type": "boolean"
3179
+ },
3180
+ "mr": {
3181
+ "name": "mr",
3182
+ "required": true,
3183
+ "summary": "Merge request iid.",
3184
+ "hasDynamicHelp": false,
3185
+ "multiple": false,
3186
+ "type": "option"
3187
+ },
3188
+ "sha": {
3189
+ "name": "sha",
3190
+ "summary": "Full sha of the source branch head you reviewed. Recommended; required with --skip-merge-train.",
3191
+ "hasDynamicHelp": false,
3192
+ "multiple": false,
3193
+ "type": "option"
3194
+ },
3195
+ "auto-merge": {
3196
+ "exclusive": [
3197
+ "skip-merge-train"
3198
+ ],
3199
+ "name": "auto-merge",
3200
+ "summary": "Merge when checks pass. On a project with merge trains, this joins the train.",
3201
+ "allowNo": false,
3202
+ "type": "boolean"
3203
+ },
3204
+ "skip-merge-train": {
3205
+ "exclusive": [
3206
+ "auto-merge"
3207
+ ],
3208
+ "name": "skip-merge-train",
3209
+ "summary": "Merge now without restarting the merge train. Experimental in GitLab.",
3210
+ "allowNo": false,
3211
+ "type": "boolean"
3212
+ },
3213
+ "squash": {
3214
+ "name": "squash",
3215
+ "summary": "Squash the commits into one.",
3216
+ "allowNo": true,
3217
+ "type": "boolean"
3218
+ },
3219
+ "remove-source-branch": {
3220
+ "name": "remove-source-branch",
3221
+ "summary": "Delete the source branch after merging.",
3222
+ "allowNo": true,
3223
+ "type": "boolean"
3224
+ },
3225
+ "merge-commit-message": {
3226
+ "name": "merge-commit-message",
3227
+ "summary": "Custom merge commit message.",
2549
3228
  "hasDynamicHelp": false,
2550
3229
  "multiple": false,
2551
3230
  "type": "option"
2552
3231
  },
2553
- "search": {
2554
- "name": "search",
2555
- "summary": "Match against the project name and path.",
3232
+ "squash-commit-message": {
3233
+ "name": "squash-commit-message",
3234
+ "summary": "Custom squash commit message.",
2556
3235
  "hasDynamicHelp": false,
2557
3236
  "multiple": false,
2558
3237
  "type": "option"
2559
3238
  },
2560
- "membership": {
2561
- "name": "membership",
2562
- "summary": "Only projects you are a member of.",
2563
- "allowNo": false,
2564
- "type": "boolean"
2565
- },
2566
- "owned": {
2567
- "name": "owned",
2568
- "summary": "Only projects you own.",
2569
- "allowNo": false,
2570
- "type": "boolean"
2571
- },
2572
- "simple": {
2573
- "name": "simple",
2574
- "summary": "Return only the core fields, for a much smaller payload.",
3239
+ "confirm": {
3240
+ "name": "confirm",
3241
+ "summary": "Send the merge. Without it, nothing is sent.",
2575
3242
  "allowNo": false,
2576
3243
  "type": "boolean"
2577
3244
  }
2578
3245
  },
2579
3246
  "hasDynamicHelp": false,
2580
3247
  "hiddenAliases": [],
2581
- "id": "gitlab:project:list",
3248
+ "id": "gitlab:mr:merge",
2582
3249
  "pluginAlias": "@simplysf/simply-gitlab",
2583
3250
  "pluginName": "@simplysf/simply-gitlab",
2584
3251
  "pluginType": "core",
2585
3252
  "strict": true,
2586
- "summary": "List projects you can see.",
3253
+ "summary": "Merge a merge request, or add it to the merge train.",
2587
3254
  "enableJsonFlag": true,
2588
- "isWrite": false,
3255
+ "isWrite": true,
2589
3256
  "isESM": true,
2590
3257
  "relativePath": [
2591
3258
  "lib",
2592
3259
  "commands",
2593
3260
  "gitlab",
2594
- "project",
2595
- "list.js"
3261
+ "mr",
3262
+ "merge.js"
2596
3263
  ],
2597
3264
  "aliasPermutations": [],
2598
3265
  "permutations": [
2599
- "gitlab:project:list",
2600
- "project:gitlab:list",
2601
- "project:list:gitlab",
2602
- "gitlab:list:project",
2603
- "list:gitlab:project",
2604
- "list:project:gitlab"
3266
+ "gitlab:mr:merge",
3267
+ "mr:gitlab:merge",
3268
+ "mr:merge:gitlab",
3269
+ "gitlab:merge:mr",
3270
+ "merge:gitlab:mr",
3271
+ "merge:mr:gitlab"
2605
3272
  ]
2606
3273
  },
2607
- "gitlab:project:view": {
3274
+ "gitlab:mr:update": {
2608
3275
  "aliases": [],
2609
3276
  "args": {},
2610
- "description": "Accepts either the numeric id or the full path. Use --json for the complete, unmodified API payload, which carries far more than the summary below — permissions, statistics, and every feature toggle on the project.",
3277
+ "description": "Only the attributes you name are changed, with one exception worth knowing: --labels replaces the whole label set rather than adding to it.\n\nNaming nothing to change is refused rather than sent, because GitLab answers an empty update with a cheerful 200 and an unchanged merge request. --state close and --state reopen do what the buttons of those names do; neither merges anything.",
2611
3278
  "examples": [
2612
- "<%= config.bin %> <%= command.id %> --project group/project",
2613
- "<%= config.bin %> <%= command.id %> --project 1234 --json"
3279
+ "<%= config.bin %> <%= command.id %> --project group/project --mr 42 --title \"feat: renamed\"",
3280
+ "<%= config.bin %> <%= command.id %> --project group/project --mr 42 --state close",
3281
+ "<%= config.bin %> <%= command.id %> --project group/project --mr 42 --labels backend,urgent --dry-run"
2614
3282
  ],
2615
3283
  "flags": {
2616
3284
  "json": {
@@ -2622,7 +3290,7 @@
2622
3290
  },
2623
3291
  "env-file": {
2624
3292
  "char": "e",
2625
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.",
3293
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
2626
3294
  "helpGroup": "CONNECTION",
2627
3295
  "name": "env-file",
2628
3296
  "summary": "Path to a .env file holding connection settings.",
@@ -2631,7 +3299,7 @@
2631
3299
  "type": "option"
2632
3300
  },
2633
3301
  "gitlab-url": {
2634
- "env": "GITLAB_URL",
3302
+ "env": "SIMPLY_GITLAB_URL",
2635
3303
  "helpGroup": "CONNECTION",
2636
3304
  "name": "gitlab-url",
2637
3305
  "summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
@@ -2640,7 +3308,7 @@
2640
3308
  "type": "option"
2641
3309
  },
2642
3310
  "gitlab-token": {
2643
- "env": "GITLAB_TOKEN",
3311
+ "env": "SIMPLY_GITLAB_TOKEN",
2644
3312
  "helpGroup": "CONNECTION",
2645
3313
  "name": "gitlab-token",
2646
3314
  "summary": "Personal, project, or group access token.",
@@ -2648,52 +3316,170 @@
2648
3316
  "multiple": false,
2649
3317
  "type": "option"
2650
3318
  },
3319
+ "gitlab-token-kind": {
3320
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
3321
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
3322
+ "helpGroup": "CONNECTION",
3323
+ "name": "gitlab-token-kind",
3324
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
3325
+ "hasDynamicHelp": false,
3326
+ "multiple": false,
3327
+ "options": [
3328
+ "personal",
3329
+ "job"
3330
+ ],
3331
+ "type": "option"
3332
+ },
2651
3333
  "project": {
2652
3334
  "char": "p",
2653
- "env": "GITLAB_PROJECT",
3335
+ "env": "SIMPLY_GITLAB_PROJECT",
2654
3336
  "name": "project",
2655
3337
  "required": true,
2656
3338
  "summary": "Project id, or its full path such as group/subgroup/project.",
2657
3339
  "hasDynamicHelp": false,
2658
3340
  "multiple": false,
2659
3341
  "type": "option"
3342
+ },
3343
+ "dry-run": {
3344
+ "name": "dry-run",
3345
+ "summary": "Print the request that would be sent and exit without sending it.",
3346
+ "allowNo": false,
3347
+ "type": "boolean"
3348
+ },
3349
+ "mr": {
3350
+ "name": "mr",
3351
+ "required": true,
3352
+ "summary": "Merge request iid.",
3353
+ "hasDynamicHelp": false,
3354
+ "multiple": false,
3355
+ "type": "option"
3356
+ },
3357
+ "title": {
3358
+ "name": "title",
3359
+ "summary": "New title.",
3360
+ "hasDynamicHelp": false,
3361
+ "multiple": false,
3362
+ "type": "option"
3363
+ },
3364
+ "description": {
3365
+ "name": "description",
3366
+ "summary": "New description, as Markdown.",
3367
+ "hasDynamicHelp": false,
3368
+ "multiple": false,
3369
+ "type": "option"
3370
+ },
3371
+ "target-branch": {
3372
+ "name": "target-branch",
3373
+ "summary": "New target branch.",
3374
+ "hasDynamicHelp": false,
3375
+ "multiple": false,
3376
+ "type": "option"
3377
+ },
3378
+ "state": {
3379
+ "name": "state",
3380
+ "summary": "Close or reopen the merge request.",
3381
+ "hasDynamicHelp": false,
3382
+ "multiple": false,
3383
+ "options": [
3384
+ "close",
3385
+ "reopen"
3386
+ ],
3387
+ "type": "option"
3388
+ },
3389
+ "squash": {
3390
+ "name": "squash",
3391
+ "summary": "Squash the commits when it merges.",
3392
+ "allowNo": true,
3393
+ "type": "boolean"
3394
+ },
3395
+ "remove-source-branch": {
3396
+ "name": "remove-source-branch",
3397
+ "summary": "Delete the source branch on merge.",
3398
+ "allowNo": true,
3399
+ "type": "boolean"
3400
+ },
3401
+ "assignee-id": {
3402
+ "name": "assignee-id",
3403
+ "summary": "User id to assign, replacing the set. Repeatable.",
3404
+ "hasDynamicHelp": false,
3405
+ "multiple": true,
3406
+ "type": "option"
3407
+ },
3408
+ "reviewer-id": {
3409
+ "name": "reviewer-id",
3410
+ "summary": "User id to review, replacing the set. Repeatable.",
3411
+ "hasDynamicHelp": false,
3412
+ "multiple": true,
3413
+ "type": "option"
3414
+ },
3415
+ "labels": {
3416
+ "name": "labels",
3417
+ "summary": "Comma-separated labels, replacing the existing set.",
3418
+ "hasDynamicHelp": false,
3419
+ "multiple": false,
3420
+ "type": "option"
3421
+ },
3422
+ "milestone-id": {
3423
+ "name": "milestone-id",
3424
+ "summary": "Milestone id to attach.",
3425
+ "hasDynamicHelp": false,
3426
+ "multiple": false,
3427
+ "type": "option"
3428
+ },
3429
+ "body": {
3430
+ "exclusive": [
3431
+ "body-file"
3432
+ ],
3433
+ "name": "body",
3434
+ "summary": "Raw JSON request body.",
3435
+ "hasDynamicHelp": false,
3436
+ "multiple": false,
3437
+ "type": "option"
3438
+ },
3439
+ "body-file": {
3440
+ "name": "body-file",
3441
+ "summary": "Path to a file holding the raw JSON request body.",
3442
+ "hasDynamicHelp": false,
3443
+ "multiple": false,
3444
+ "type": "option"
2660
3445
  }
2661
3446
  },
2662
3447
  "hasDynamicHelp": false,
2663
3448
  "hiddenAliases": [],
2664
- "id": "gitlab:project:view",
3449
+ "id": "gitlab:mr:update",
2665
3450
  "pluginAlias": "@simplysf/simply-gitlab",
2666
3451
  "pluginName": "@simplysf/simply-gitlab",
2667
3452
  "pluginType": "core",
2668
3453
  "strict": true,
2669
- "summary": "Show one project.",
3454
+ "summary": "Change an existing merge request.",
2670
3455
  "enableJsonFlag": true,
2671
- "isWrite": false,
3456
+ "isWrite": true,
2672
3457
  "isESM": true,
2673
3458
  "relativePath": [
2674
3459
  "lib",
2675
3460
  "commands",
2676
3461
  "gitlab",
2677
- "project",
2678
- "view.js"
3462
+ "mr",
3463
+ "update.js"
2679
3464
  ],
2680
3465
  "aliasPermutations": [],
2681
3466
  "permutations": [
2682
- "gitlab:project:view",
2683
- "project:gitlab:view",
2684
- "project:view:gitlab",
2685
- "gitlab:view:project",
2686
- "view:gitlab:project",
2687
- "view:project:gitlab"
3467
+ "gitlab:mr:update",
3468
+ "mr:gitlab:update",
3469
+ "mr:update:gitlab",
3470
+ "gitlab:update:mr",
3471
+ "update:gitlab:mr",
3472
+ "update:mr:gitlab"
2688
3473
  ]
2689
3474
  },
2690
- "gitlab:release:list": {
3475
+ "gitlab:mr:view": {
2691
3476
  "aliases": [],
2692
3477
  "args": {},
2693
- "description": "Releases are tags with notes and assets attached, so a project can have many tags and no releases at all. Use --json for the release notes, asset links, and the commit each release points at.",
3478
+ "description": "Takes the project-scoped iid — the number in the merge request URL — not the instance-wide id. Use --json for the full payload, which carries the pipeline status, approvals, and diff refs the summary below leaves out.\n\nRight after a push, GitLab can report a merge status it has not finished working out. --recheck asks it to work the status out again before answering.",
2694
3479
  "examples": [
2695
- "<%= config.bin %> <%= command.id %> --project group/project",
2696
- "<%= config.bin %> <%= command.id %> --project group/project --limit 5 --json"
3480
+ "<%= config.bin %> <%= command.id %> --project group/project --mr 42",
3481
+ "<%= config.bin %> <%= command.id %> --project group/project --mr 42 --json",
3482
+ "<%= config.bin %> <%= command.id %> --project group/project --mr 42 --recheck"
2697
3483
  ],
2698
3484
  "flags": {
2699
3485
  "json": {
@@ -2705,7 +3491,7 @@
2705
3491
  },
2706
3492
  "env-file": {
2707
3493
  "char": "e",
2708
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.",
3494
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
2709
3495
  "helpGroup": "CONNECTION",
2710
3496
  "name": "env-file",
2711
3497
  "summary": "Path to a .env file holding connection settings.",
@@ -2714,7 +3500,7 @@
2714
3500
  "type": "option"
2715
3501
  },
2716
3502
  "gitlab-url": {
2717
- "env": "GITLAB_URL",
3503
+ "env": "SIMPLY_GITLAB_URL",
2718
3504
  "helpGroup": "CONNECTION",
2719
3505
  "name": "gitlab-url",
2720
3506
  "summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
@@ -2723,7 +3509,7 @@
2723
3509
  "type": "option"
2724
3510
  },
2725
3511
  "gitlab-token": {
2726
- "env": "GITLAB_TOKEN",
3512
+ "env": "SIMPLY_GITLAB_TOKEN",
2727
3513
  "helpGroup": "CONNECTION",
2728
3514
  "name": "gitlab-token",
2729
3515
  "summary": "Personal, project, or group access token.",
@@ -2731,9 +3517,23 @@
2731
3517
  "multiple": false,
2732
3518
  "type": "option"
2733
3519
  },
3520
+ "gitlab-token-kind": {
3521
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
3522
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
3523
+ "helpGroup": "CONNECTION",
3524
+ "name": "gitlab-token-kind",
3525
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
3526
+ "hasDynamicHelp": false,
3527
+ "multiple": false,
3528
+ "options": [
3529
+ "personal",
3530
+ "job"
3531
+ ],
3532
+ "type": "option"
3533
+ },
2734
3534
  "project": {
2735
3535
  "char": "p",
2736
- "env": "GITLAB_PROJECT",
3536
+ "env": "SIMPLY_GITLAB_PROJECT",
2737
3537
  "name": "project",
2738
3538
  "required": true,
2739
3539
  "summary": "Project id, or its full path such as group/subgroup/project.",
@@ -2741,23 +3541,29 @@
2741
3541
  "multiple": false,
2742
3542
  "type": "option"
2743
3543
  },
2744
- "limit": {
2745
- "name": "limit",
2746
- "summary": "Maximum number of releases to return across all pages.",
2747
- "default": 20,
3544
+ "mr": {
3545
+ "name": "mr",
3546
+ "required": true,
3547
+ "summary": "Merge request iid.",
2748
3548
  "hasDynamicHelp": false,
2749
3549
  "multiple": false,
2750
3550
  "type": "option"
3551
+ },
3552
+ "recheck": {
3553
+ "name": "recheck",
3554
+ "summary": "Ask GitLab to recheck the merge status first.",
3555
+ "allowNo": false,
3556
+ "type": "boolean"
2751
3557
  }
2752
3558
  },
2753
3559
  "hasDynamicHelp": false,
2754
3560
  "hiddenAliases": [],
2755
- "id": "gitlab:release:list",
3561
+ "id": "gitlab:mr:view",
2756
3562
  "pluginAlias": "@simplysf/simply-gitlab",
2757
3563
  "pluginName": "@simplysf/simply-gitlab",
2758
3564
  "pluginType": "core",
2759
3565
  "strict": true,
2760
- "summary": "List releases for a project.",
3566
+ "summary": "Show one merge request.",
2761
3567
  "enableJsonFlag": true,
2762
3568
  "isWrite": false,
2763
3569
  "isESM": true,
@@ -2765,17 +3571,17 @@
2765
3571
  "lib",
2766
3572
  "commands",
2767
3573
  "gitlab",
2768
- "release",
2769
- "list.js"
3574
+ "mr",
3575
+ "view.js"
2770
3576
  ],
2771
3577
  "aliasPermutations": [],
2772
3578
  "permutations": [
2773
- "gitlab:release:list",
2774
- "release:gitlab:list",
2775
- "release:list:gitlab",
2776
- "gitlab:list:release",
2777
- "list:gitlab:release",
2778
- "list:release:gitlab"
3579
+ "gitlab:mr:view",
3580
+ "mr:gitlab:view",
3581
+ "mr:view:gitlab",
3582
+ "gitlab:view:mr",
3583
+ "view:gitlab:mr",
3584
+ "view:mr:gitlab"
2779
3585
  ]
2780
3586
  },
2781
3587
  "gitlab:tag:list": {
@@ -2796,7 +3602,7 @@
2796
3602
  },
2797
3603
  "env-file": {
2798
3604
  "char": "e",
2799
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.",
3605
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
2800
3606
  "helpGroup": "CONNECTION",
2801
3607
  "name": "env-file",
2802
3608
  "summary": "Path to a .env file holding connection settings.",
@@ -2805,7 +3611,7 @@
2805
3611
  "type": "option"
2806
3612
  },
2807
3613
  "gitlab-url": {
2808
- "env": "GITLAB_URL",
3614
+ "env": "SIMPLY_GITLAB_URL",
2809
3615
  "helpGroup": "CONNECTION",
2810
3616
  "name": "gitlab-url",
2811
3617
  "summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
@@ -2814,7 +3620,7 @@
2814
3620
  "type": "option"
2815
3621
  },
2816
3622
  "gitlab-token": {
2817
- "env": "GITLAB_TOKEN",
3623
+ "env": "SIMPLY_GITLAB_TOKEN",
2818
3624
  "helpGroup": "CONNECTION",
2819
3625
  "name": "gitlab-token",
2820
3626
  "summary": "Personal, project, or group access token.",
@@ -2822,9 +3628,23 @@
2822
3628
  "multiple": false,
2823
3629
  "type": "option"
2824
3630
  },
3631
+ "gitlab-token-kind": {
3632
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
3633
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
3634
+ "helpGroup": "CONNECTION",
3635
+ "name": "gitlab-token-kind",
3636
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
3637
+ "hasDynamicHelp": false,
3638
+ "multiple": false,
3639
+ "options": [
3640
+ "personal",
3641
+ "job"
3642
+ ],
3643
+ "type": "option"
3644
+ },
2825
3645
  "project": {
2826
3646
  "char": "p",
2827
- "env": "GITLAB_PROJECT",
3647
+ "env": "SIMPLY_GITLAB_PROJECT",
2828
3648
  "name": "project",
2829
3649
  "required": true,
2830
3650
  "summary": "Project id, or its full path such as group/subgroup/project.",
@@ -2917,7 +3737,7 @@
2917
3737
  },
2918
3738
  "env-file": {
2919
3739
  "char": "e",
2920
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.",
3740
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
2921
3741
  "helpGroup": "CONNECTION",
2922
3742
  "name": "env-file",
2923
3743
  "summary": "Path to a .env file holding connection settings.",
@@ -2926,7 +3746,7 @@
2926
3746
  "type": "option"
2927
3747
  },
2928
3748
  "gitlab-url": {
2929
- "env": "GITLAB_URL",
3749
+ "env": "SIMPLY_GITLAB_URL",
2930
3750
  "helpGroup": "CONNECTION",
2931
3751
  "name": "gitlab-url",
2932
3752
  "summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
@@ -2935,7 +3755,7 @@
2935
3755
  "type": "option"
2936
3756
  },
2937
3757
  "gitlab-token": {
2938
- "env": "GITLAB_TOKEN",
3758
+ "env": "SIMPLY_GITLAB_TOKEN",
2939
3759
  "helpGroup": "CONNECTION",
2940
3760
  "name": "gitlab-token",
2941
3761
  "summary": "Personal, project, or group access token.",
@@ -2943,9 +3763,23 @@
2943
3763
  "multiple": false,
2944
3764
  "type": "option"
2945
3765
  },
3766
+ "gitlab-token-kind": {
3767
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
3768
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
3769
+ "helpGroup": "CONNECTION",
3770
+ "name": "gitlab-token-kind",
3771
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
3772
+ "hasDynamicHelp": false,
3773
+ "multiple": false,
3774
+ "options": [
3775
+ "personal",
3776
+ "job"
3777
+ ],
3778
+ "type": "option"
3779
+ },
2946
3780
  "project": {
2947
3781
  "char": "p",
2948
- "env": "GITLAB_PROJECT",
3782
+ "env": "SIMPLY_GITLAB_PROJECT",
2949
3783
  "name": "project",
2950
3784
  "required": true,
2951
3785
  "summary": "Project id, or its full path such as group/subgroup/project.",
@@ -3034,6 +3868,137 @@
3034
3868
  "list:environment:ci:gitlab"
3035
3869
  ]
3036
3870
  },
3871
+ "gitlab:ci:variable:list": {
3872
+ "aliases": [],
3873
+ "args": {},
3874
+ "description": "Variable values are hidden by default, including under --json. GitLab returns every value in clear text on this endpoint — the \"masked\" attribute only hides a value in job logs, not from the API — and those values are deploy keys and production credentials.\n\nPass --reveal to print them. Doing so puts live secrets on stdout, into your shell history if you redirect it, and into the context of anything reading this output, so it is a deliberate step rather than the default.",
3875
+ "examples": [
3876
+ "<%= config.bin %> <%= command.id %> --project group/project",
3877
+ "<%= config.bin %> <%= command.id %> --project group/project --reveal"
3878
+ ],
3879
+ "flags": {
3880
+ "json": {
3881
+ "description": "Format output as json.",
3882
+ "helpGroup": "GLOBAL",
3883
+ "name": "json",
3884
+ "allowNo": false,
3885
+ "type": "boolean"
3886
+ },
3887
+ "env-file": {
3888
+ "char": "e",
3889
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
3890
+ "helpGroup": "CONNECTION",
3891
+ "name": "env-file",
3892
+ "summary": "Path to a .env file holding connection settings.",
3893
+ "hasDynamicHelp": false,
3894
+ "multiple": false,
3895
+ "type": "option"
3896
+ },
3897
+ "gitlab-url": {
3898
+ "env": "SIMPLY_GITLAB_URL",
3899
+ "helpGroup": "CONNECTION",
3900
+ "name": "gitlab-url",
3901
+ "summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
3902
+ "hasDynamicHelp": false,
3903
+ "multiple": false,
3904
+ "type": "option"
3905
+ },
3906
+ "gitlab-token": {
3907
+ "env": "SIMPLY_GITLAB_TOKEN",
3908
+ "helpGroup": "CONNECTION",
3909
+ "name": "gitlab-token",
3910
+ "summary": "Personal, project, or group access token.",
3911
+ "hasDynamicHelp": false,
3912
+ "multiple": false,
3913
+ "type": "option"
3914
+ },
3915
+ "gitlab-token-kind": {
3916
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
3917
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
3918
+ "helpGroup": "CONNECTION",
3919
+ "name": "gitlab-token-kind",
3920
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
3921
+ "hasDynamicHelp": false,
3922
+ "multiple": false,
3923
+ "options": [
3924
+ "personal",
3925
+ "job"
3926
+ ],
3927
+ "type": "option"
3928
+ },
3929
+ "project": {
3930
+ "char": "p",
3931
+ "env": "SIMPLY_GITLAB_PROJECT",
3932
+ "name": "project",
3933
+ "required": true,
3934
+ "summary": "Project id, or its full path such as group/subgroup/project.",
3935
+ "hasDynamicHelp": false,
3936
+ "multiple": false,
3937
+ "type": "option"
3938
+ },
3939
+ "limit": {
3940
+ "name": "limit",
3941
+ "summary": "Maximum number of variables to return across all pages.",
3942
+ "default": 50,
3943
+ "hasDynamicHelp": false,
3944
+ "multiple": false,
3945
+ "type": "option"
3946
+ },
3947
+ "reveal": {
3948
+ "description": "Off by default. Every value on this endpoint is a live secret, so revealing them is worth a moment of thought about where this output is going.",
3949
+ "name": "reveal",
3950
+ "summary": "Print the variable values in clear text.",
3951
+ "allowNo": false,
3952
+ "type": "boolean"
3953
+ }
3954
+ },
3955
+ "hasDynamicHelp": false,
3956
+ "hiddenAliases": [],
3957
+ "id": "gitlab:ci:variable:list",
3958
+ "pluginAlias": "@simplysf/simply-gitlab",
3959
+ "pluginName": "@simplysf/simply-gitlab",
3960
+ "pluginType": "core",
3961
+ "strict": true,
3962
+ "summary": "List a project CI/CD variables.",
3963
+ "enableJsonFlag": true,
3964
+ "isWrite": false,
3965
+ "isESM": true,
3966
+ "relativePath": [
3967
+ "lib",
3968
+ "commands",
3969
+ "gitlab",
3970
+ "ci",
3971
+ "variable",
3972
+ "list.js"
3973
+ ],
3974
+ "aliasPermutations": [],
3975
+ "permutations": [
3976
+ "gitlab:ci:variable:list",
3977
+ "ci:gitlab:variable:list",
3978
+ "ci:variable:gitlab:list",
3979
+ "ci:variable:list:gitlab",
3980
+ "gitlab:variable:ci:list",
3981
+ "variable:gitlab:ci:list",
3982
+ "variable:ci:gitlab:list",
3983
+ "variable:ci:list:gitlab",
3984
+ "gitlab:variable:list:ci",
3985
+ "variable:gitlab:list:ci",
3986
+ "variable:list:gitlab:ci",
3987
+ "variable:list:ci:gitlab",
3988
+ "gitlab:ci:list:variable",
3989
+ "ci:gitlab:list:variable",
3990
+ "ci:list:gitlab:variable",
3991
+ "ci:list:variable:gitlab",
3992
+ "gitlab:list:ci:variable",
3993
+ "list:gitlab:ci:variable",
3994
+ "list:ci:gitlab:variable",
3995
+ "list:ci:variable:gitlab",
3996
+ "gitlab:list:variable:ci",
3997
+ "list:gitlab:variable:ci",
3998
+ "list:variable:gitlab:ci",
3999
+ "list:variable:ci:gitlab"
4000
+ ]
4001
+ },
3037
4002
  "gitlab:ci:job:list": {
3038
4003
  "aliases": [],
3039
4004
  "args": {},
@@ -3052,7 +4017,7 @@
3052
4017
  },
3053
4018
  "env-file": {
3054
4019
  "char": "e",
3055
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.",
4020
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
3056
4021
  "helpGroup": "CONNECTION",
3057
4022
  "name": "env-file",
3058
4023
  "summary": "Path to a .env file holding connection settings.",
@@ -3061,7 +4026,7 @@
3061
4026
  "type": "option"
3062
4027
  },
3063
4028
  "gitlab-url": {
3064
- "env": "GITLAB_URL",
4029
+ "env": "SIMPLY_GITLAB_URL",
3065
4030
  "helpGroup": "CONNECTION",
3066
4031
  "name": "gitlab-url",
3067
4032
  "summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
@@ -3070,7 +4035,7 @@
3070
4035
  "type": "option"
3071
4036
  },
3072
4037
  "gitlab-token": {
3073
- "env": "GITLAB_TOKEN",
4038
+ "env": "SIMPLY_GITLAB_TOKEN",
3074
4039
  "helpGroup": "CONNECTION",
3075
4040
  "name": "gitlab-token",
3076
4041
  "summary": "Personal, project, or group access token.",
@@ -3078,9 +4043,23 @@
3078
4043
  "multiple": false,
3079
4044
  "type": "option"
3080
4045
  },
4046
+ "gitlab-token-kind": {
4047
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
4048
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
4049
+ "helpGroup": "CONNECTION",
4050
+ "name": "gitlab-token-kind",
4051
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
4052
+ "hasDynamicHelp": false,
4053
+ "multiple": false,
4054
+ "options": [
4055
+ "personal",
4056
+ "job"
4057
+ ],
4058
+ "type": "option"
4059
+ },
3081
4060
  "project": {
3082
4061
  "char": "p",
3083
- "env": "GITLAB_PROJECT",
4062
+ "env": "SIMPLY_GITLAB_PROJECT",
3084
4063
  "name": "project",
3085
4064
  "required": true,
3086
4065
  "summary": "Project id, or its full path such as group/subgroup/project.",
@@ -3180,7 +4159,7 @@
3180
4159
  },
3181
4160
  "env-file": {
3182
4161
  "char": "e",
3183
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.",
4162
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
3184
4163
  "helpGroup": "CONNECTION",
3185
4164
  "name": "env-file",
3186
4165
  "summary": "Path to a .env file holding connection settings.",
@@ -3189,7 +4168,7 @@
3189
4168
  "type": "option"
3190
4169
  },
3191
4170
  "gitlab-url": {
3192
- "env": "GITLAB_URL",
4171
+ "env": "SIMPLY_GITLAB_URL",
3193
4172
  "helpGroup": "CONNECTION",
3194
4173
  "name": "gitlab-url",
3195
4174
  "summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
@@ -3198,7 +4177,7 @@
3198
4177
  "type": "option"
3199
4178
  },
3200
4179
  "gitlab-token": {
3201
- "env": "GITLAB_TOKEN",
4180
+ "env": "SIMPLY_GITLAB_TOKEN",
3202
4181
  "helpGroup": "CONNECTION",
3203
4182
  "name": "gitlab-token",
3204
4183
  "summary": "Personal, project, or group access token.",
@@ -3206,9 +4185,23 @@
3206
4185
  "multiple": false,
3207
4186
  "type": "option"
3208
4187
  },
4188
+ "gitlab-token-kind": {
4189
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
4190
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
4191
+ "helpGroup": "CONNECTION",
4192
+ "name": "gitlab-token-kind",
4193
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
4194
+ "hasDynamicHelp": false,
4195
+ "multiple": false,
4196
+ "options": [
4197
+ "personal",
4198
+ "job"
4199
+ ],
4200
+ "type": "option"
4201
+ },
3209
4202
  "project": {
3210
4203
  "char": "p",
3211
- "env": "GITLAB_PROJECT",
4204
+ "env": "SIMPLY_GITLAB_PROJECT",
3212
4205
  "name": "project",
3213
4206
  "required": true,
3214
4207
  "summary": "Project id, or its full path such as group/subgroup/project.",
@@ -3280,123 +4273,6 @@
3280
4273
  "log:job:ci:gitlab"
3281
4274
  ]
3282
4275
  },
3283
- "gitlab:ci:variable:list": {
3284
- "aliases": [],
3285
- "args": {},
3286
- "description": "Variable values are hidden by default, including under --json. GitLab returns every value in clear text on this endpoint — the \"masked\" attribute only hides a value in job logs, not from the API — and those values are deploy keys and production credentials.\n\nPass --reveal to print them. Doing so puts live secrets on stdout, into your shell history if you redirect it, and into the context of anything reading this output, so it is a deliberate step rather than the default.",
3287
- "examples": [
3288
- "<%= config.bin %> <%= command.id %> --project group/project",
3289
- "<%= config.bin %> <%= command.id %> --project group/project --reveal"
3290
- ],
3291
- "flags": {
3292
- "json": {
3293
- "description": "Format output as json.",
3294
- "helpGroup": "GLOBAL",
3295
- "name": "json",
3296
- "allowNo": false,
3297
- "type": "boolean"
3298
- },
3299
- "env-file": {
3300
- "char": "e",
3301
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.",
3302
- "helpGroup": "CONNECTION",
3303
- "name": "env-file",
3304
- "summary": "Path to a .env file holding connection settings.",
3305
- "hasDynamicHelp": false,
3306
- "multiple": false,
3307
- "type": "option"
3308
- },
3309
- "gitlab-url": {
3310
- "env": "GITLAB_URL",
3311
- "helpGroup": "CONNECTION",
3312
- "name": "gitlab-url",
3313
- "summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
3314
- "hasDynamicHelp": false,
3315
- "multiple": false,
3316
- "type": "option"
3317
- },
3318
- "gitlab-token": {
3319
- "env": "GITLAB_TOKEN",
3320
- "helpGroup": "CONNECTION",
3321
- "name": "gitlab-token",
3322
- "summary": "Personal, project, or group access token.",
3323
- "hasDynamicHelp": false,
3324
- "multiple": false,
3325
- "type": "option"
3326
- },
3327
- "project": {
3328
- "char": "p",
3329
- "env": "GITLAB_PROJECT",
3330
- "name": "project",
3331
- "required": true,
3332
- "summary": "Project id, or its full path such as group/subgroup/project.",
3333
- "hasDynamicHelp": false,
3334
- "multiple": false,
3335
- "type": "option"
3336
- },
3337
- "limit": {
3338
- "name": "limit",
3339
- "summary": "Maximum number of variables to return across all pages.",
3340
- "default": 50,
3341
- "hasDynamicHelp": false,
3342
- "multiple": false,
3343
- "type": "option"
3344
- },
3345
- "reveal": {
3346
- "description": "Off by default. Every value on this endpoint is a live secret, so revealing them is worth a moment of thought about where this output is going.",
3347
- "name": "reveal",
3348
- "summary": "Print the variable values in clear text.",
3349
- "allowNo": false,
3350
- "type": "boolean"
3351
- }
3352
- },
3353
- "hasDynamicHelp": false,
3354
- "hiddenAliases": [],
3355
- "id": "gitlab:ci:variable:list",
3356
- "pluginAlias": "@simplysf/simply-gitlab",
3357
- "pluginName": "@simplysf/simply-gitlab",
3358
- "pluginType": "core",
3359
- "strict": true,
3360
- "summary": "List a project CI/CD variables.",
3361
- "enableJsonFlag": true,
3362
- "isWrite": false,
3363
- "isESM": true,
3364
- "relativePath": [
3365
- "lib",
3366
- "commands",
3367
- "gitlab",
3368
- "ci",
3369
- "variable",
3370
- "list.js"
3371
- ],
3372
- "aliasPermutations": [],
3373
- "permutations": [
3374
- "gitlab:ci:variable:list",
3375
- "ci:gitlab:variable:list",
3376
- "ci:variable:gitlab:list",
3377
- "ci:variable:list:gitlab",
3378
- "gitlab:variable:ci:list",
3379
- "variable:gitlab:ci:list",
3380
- "variable:ci:gitlab:list",
3381
- "variable:ci:list:gitlab",
3382
- "gitlab:variable:list:ci",
3383
- "variable:gitlab:list:ci",
3384
- "variable:list:gitlab:ci",
3385
- "variable:list:ci:gitlab",
3386
- "gitlab:ci:list:variable",
3387
- "ci:gitlab:list:variable",
3388
- "ci:list:gitlab:variable",
3389
- "ci:list:variable:gitlab",
3390
- "gitlab:list:ci:variable",
3391
- "list:gitlab:ci:variable",
3392
- "list:ci:gitlab:variable",
3393
- "list:ci:variable:gitlab",
3394
- "gitlab:list:variable:ci",
3395
- "list:gitlab:variable:ci",
3396
- "list:variable:gitlab:ci",
3397
- "list:variable:ci:gitlab"
3398
- ]
3399
- },
3400
4276
  "gitlab:mr:comment:list": {
3401
4277
  "aliases": [],
3402
4278
  "args": {},
@@ -3416,7 +4292,7 @@
3416
4292
  },
3417
4293
  "env-file": {
3418
4294
  "char": "e",
3419
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.",
4295
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
3420
4296
  "helpGroup": "CONNECTION",
3421
4297
  "name": "env-file",
3422
4298
  "summary": "Path to a .env file holding connection settings.",
@@ -3425,7 +4301,7 @@
3425
4301
  "type": "option"
3426
4302
  },
3427
4303
  "gitlab-url": {
3428
- "env": "GITLAB_URL",
4304
+ "env": "SIMPLY_GITLAB_URL",
3429
4305
  "helpGroup": "CONNECTION",
3430
4306
  "name": "gitlab-url",
3431
4307
  "summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
@@ -3434,7 +4310,7 @@
3434
4310
  "type": "option"
3435
4311
  },
3436
4312
  "gitlab-token": {
3437
- "env": "GITLAB_TOKEN",
4313
+ "env": "SIMPLY_GITLAB_TOKEN",
3438
4314
  "helpGroup": "CONNECTION",
3439
4315
  "name": "gitlab-token",
3440
4316
  "summary": "Personal, project, or group access token.",
@@ -3442,9 +4318,23 @@
3442
4318
  "multiple": false,
3443
4319
  "type": "option"
3444
4320
  },
4321
+ "gitlab-token-kind": {
4322
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
4323
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
4324
+ "helpGroup": "CONNECTION",
4325
+ "name": "gitlab-token-kind",
4326
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
4327
+ "hasDynamicHelp": false,
4328
+ "multiple": false,
4329
+ "options": [
4330
+ "personal",
4331
+ "job"
4332
+ ],
4333
+ "type": "option"
4334
+ },
3445
4335
  "project": {
3446
4336
  "char": "p",
3447
- "env": "GITLAB_PROJECT",
4337
+ "env": "SIMPLY_GITLAB_PROJECT",
3448
4338
  "name": "project",
3449
4339
  "required": true,
3450
4340
  "summary": "Project id, or its full path such as group/subgroup/project.",
@@ -3547,5 +4437,5 @@
3547
4437
  ]
3548
4438
  }
3549
4439
  },
3550
- "version": "0.11.0"
4440
+ "version": "0.13.0"
3551
4441
  }