@sanity/workflow-cli 0.12.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/README.md +77 -48
  3. package/dist/commands/{abort.d.ts → editorial-workflows/abort.d.ts} +4 -2
  4. package/dist/commands/{abort.js → editorial-workflows/abort.js} +8 -7
  5. package/dist/commands/{definition → editorial-workflows/definition}/delete.d.ts +4 -2
  6. package/dist/commands/{definition → editorial-workflows/definition}/delete.js +7 -6
  7. package/dist/commands/{definition → editorial-workflows/definition}/diff.d.ts +3 -1
  8. package/dist/commands/{definition → editorial-workflows/definition}/diff.js +8 -7
  9. package/dist/commands/{definition → editorial-workflows/definition}/list.d.ts +2 -1
  10. package/dist/commands/{definition → editorial-workflows/definition}/list.js +21 -21
  11. package/dist/commands/{definition → editorial-workflows/definition}/show.d.ts +3 -2
  12. package/dist/commands/{definition → editorial-workflows/definition}/show.js +7 -6
  13. package/dist/commands/{deploy.d.ts → editorial-workflows/deploy.d.ts} +4 -2
  14. package/dist/commands/{deploy.js → editorial-workflows/deploy.js} +26 -19
  15. package/dist/commands/{diagnose.d.ts → editorial-workflows/diagnose.d.ts} +3 -1
  16. package/dist/commands/{diagnose.js → editorial-workflows/diagnose.js} +8 -7
  17. package/dist/commands/{fire-action.d.ts → editorial-workflows/fire-action.d.ts} +4 -2
  18. package/dist/commands/{fire-action.js → editorial-workflows/fire-action.js} +9 -8
  19. package/dist/commands/{list.d.ts → editorial-workflows/list.d.ts} +2 -1
  20. package/dist/commands/{list.js → editorial-workflows/list.js} +24 -24
  21. package/dist/commands/editorial-workflows/nuke.d.ts +13 -0
  22. package/dist/commands/{nuke.js → editorial-workflows/nuke.js} +22 -17
  23. package/dist/commands/{reset-activity.d.ts → editorial-workflows/reset-activity.d.ts} +2 -1
  24. package/dist/commands/{reset-activity.js → editorial-workflows/reset-activity.js} +2 -1
  25. package/dist/commands/{set-stage.d.ts → editorial-workflows/set-stage.d.ts} +5 -3
  26. package/dist/commands/{set-stage.js → editorial-workflows/set-stage.js} +7 -6
  27. package/dist/commands/{show.d.ts → editorial-workflows/show.d.ts} +2 -1
  28. package/dist/commands/{show.js → editorial-workflows/show.js} +40 -26
  29. package/dist/commands/{start.d.ts → editorial-workflows/start.d.ts} +4 -2
  30. package/dist/commands/{start.js → editorial-workflows/start.js} +10 -9
  31. package/dist/commands/{tail.d.ts → editorial-workflows/tail.d.ts} +2 -1
  32. package/dist/commands/{tail.js → editorial-workflows/tail.js} +6 -5
  33. package/dist/hooks/finally/telemetry.js +2 -2
  34. package/dist/hooks/prerun/telemetry.d.ts +4 -3
  35. package/dist/lib/base-command.d.ts +4 -6
  36. package/dist/lib/base-command.js +6 -0
  37. package/dist/lib/context.d.ts +24 -9
  38. package/dist/lib/context.js +15 -6
  39. package/dist/lib/flags.d.ts +27 -4
  40. package/dist/lib/flags.js +17 -1
  41. package/dist/lib/nuke.d.ts +15 -1
  42. package/dist/lib/nuke.js +22 -1
  43. package/dist/lib/prompt.d.ts +3 -2
  44. package/dist/lib/select-deployment.d.ts +43 -16
  45. package/dist/lib/select-deployment.js +66 -15
  46. package/dist/lib/share-definitions.d.ts +23 -28
  47. package/dist/lib/share-definitions.js +26 -38
  48. package/dist/lib/telemetry-setup.d.ts +2 -2
  49. package/dist/lib/telemetry.d.ts +18 -10
  50. package/dist/lib/telemetry.js +5 -2
  51. package/dist/lib/ui.d.ts +12 -0
  52. package/dist/lib/ui.js +9 -0
  53. package/oclif.manifest.json +223 -66
  54. package/package.json +11 -9
  55. package/dist/commands/nuke.d.ts +0 -11
@@ -1,7 +1,9 @@
1
1
  {
2
2
  "commands": {
3
- "abort": {
4
- "aliases": [],
3
+ "editorial-workflows:abort": {
4
+ "aliases": [
5
+ "abort"
6
+ ],
5
7
  "args": {
6
8
  "instanceId": {
7
9
  "description": "Workflow instance id.",
@@ -9,14 +11,27 @@
9
11
  "required": true
10
12
  }
11
13
  },
12
- "description": "Abort an in-flight workflow instance — a hard stop: pending effects are cancelled, stage guards lifted, and the instance is marked terminal where it stands.",
14
+ "description": "Abort an in-flight workflow instance — a hard stop: pending effects are cancelled, stage guards removed, and the instance is marked terminal where it stands.",
13
15
  "examples": [
14
16
  "<%= config.bin %> abort wf-instance.abc123",
15
17
  "<%= config.bin %> abort wf-instance.abc123 --reason 'superseded by relaunch'"
16
18
  ],
17
19
  "flags": {
20
+ "deployment": {
21
+ "description": "Deployment name — read the instance from the resource that deployment targets; the tag partition still comes from the loaded instance.",
22
+ "exclusive": [
23
+ "tag"
24
+ ],
25
+ "name": "deployment",
26
+ "hasDynamicHelp": false,
27
+ "multiple": false,
28
+ "type": "option"
29
+ },
18
30
  "tag": {
19
- "description": "Workflow environment tag (e.g. prod, test) — the deployment to target for writes; an optional filter for reads.",
31
+ "description": "Workflow environment tag (e.g. prod, test) — an optional query filter, and the resource disambiguator when the config spans several.",
32
+ "exclusive": [
33
+ "deployment"
34
+ ],
20
35
  "name": "tag",
21
36
  "hasDynamicHelp": false,
22
37
  "multiple": false,
@@ -32,7 +47,7 @@
32
47
  },
33
48
  "hasDynamicHelp": false,
34
49
  "hiddenAliases": [],
35
- "id": "abort",
50
+ "id": "editorial-workflows:abort",
36
51
  "pluginAlias": "@sanity/workflow-cli",
37
52
  "pluginName": "@sanity/workflow-cli",
38
53
  "pluginType": "core",
@@ -41,14 +56,18 @@
41
56
  "relativePath": [
42
57
  "dist",
43
58
  "commands",
59
+ "editorial-workflows",
44
60
  "abort.js"
45
61
  ]
46
62
  },
47
- "deploy": {
48
- "aliases": [],
63
+ "editorial-workflows:deploy": {
64
+ "aliases": [
65
+ "deploy"
66
+ ],
49
67
  "args": {},
50
68
  "description": "Validate, diff, and deploy workflow definitions to the resource bound by the selected deployment.",
51
69
  "examples": [
70
+ "<%= config.bin %> deploy --deployment review-prod",
52
71
  "<%= config.bin %> deploy --tag prod",
53
72
  "<%= config.bin %> deploy --all-tags",
54
73
  "<%= config.bin %> deploy --check",
@@ -56,17 +75,31 @@
56
75
  "<%= config.bin %> deploy --only productLaunch"
57
76
  ],
58
77
  "flags": {
78
+ "deployment": {
79
+ "description": "Deployment name — the unique identity of one deployment in the config.",
80
+ "exclusive": [
81
+ "tag"
82
+ ],
83
+ "name": "deployment",
84
+ "hasDynamicHelp": false,
85
+ "multiple": false,
86
+ "type": "option"
87
+ },
59
88
  "tag": {
60
- "description": "Workflow environment tag (e.g. prod, test) — the deployment to target for writes; an optional filter for reads.",
89
+ "description": "Workflow environment tag (e.g. prod, test) — deploys every deployment carrying the tag (a tag is an environment group).",
90
+ "exclusive": [
91
+ "deployment"
92
+ ],
61
93
  "name": "tag",
62
94
  "hasDynamicHelp": false,
63
95
  "multiple": false,
64
96
  "type": "option"
65
97
  },
66
98
  "all-tags": {
67
- "description": "Deploy every deployment in the config, not just one tag.",
99
+ "description": "Deploy every deployment in the config, not just a selection.",
68
100
  "exclusive": [
69
- "tag"
101
+ "tag",
102
+ "deployment"
70
103
  ],
71
104
  "name": "all-tags",
72
105
  "allowNo": false,
@@ -92,7 +125,7 @@
92
125
  "type": "option"
93
126
  },
94
127
  "share-defs": {
95
- "description": "Share the definition documents newly created by this deploy with Sanity — the full document, verbatim (structure, names, filters, effect configuration, seeded values), plus its deployment coordinates (project and dataset, or resource id); never content documents, instances, or your Sanity auth token. Opt-out: an interactive terminal is asked once (the answer is remembered), while unattended runs (CI / non-TTY / DO_NOT_TRACK) share nothing unless --share-defs is passed. Use --no-share-defs to opt out. An explicit --share-defs also sends telemetry for this deploy regardless of CI / DO_NOT_TRACK.",
128
+ "description": "Share the definition documents newly created by this deploy with Sanity — the full document, verbatim (structure, names, filters, effect configuration, seeded values), plus its deployment coordinates (project and dataset, or resource id); never content documents, instances, or your Sanity auth token. Sharing is the default in every environment, including CI / non-TTY / DO_NOT_TRACK. Use --no-share-defs to opt out.",
96
129
  "name": "share-defs",
97
130
  "allowNo": true,
98
131
  "type": "boolean"
@@ -100,7 +133,7 @@
100
133
  },
101
134
  "hasDynamicHelp": false,
102
135
  "hiddenAliases": [],
103
- "id": "deploy",
136
+ "id": "editorial-workflows:deploy",
104
137
  "pluginAlias": "@sanity/workflow-cli",
105
138
  "pluginName": "@sanity/workflow-cli",
106
139
  "pluginType": "core",
@@ -109,11 +142,14 @@
109
142
  "relativePath": [
110
143
  "dist",
111
144
  "commands",
145
+ "editorial-workflows",
112
146
  "deploy.js"
113
147
  ]
114
148
  },
115
- "diagnose": {
116
- "aliases": [],
149
+ "editorial-workflows:diagnose": {
150
+ "aliases": [
151
+ "diagnose"
152
+ ],
117
153
  "args": {
118
154
  "instanceId": {
119
155
  "description": "Workflow instance id.",
@@ -128,8 +164,21 @@
128
164
  "<%= config.bin %> diagnose wf-instance.abc123 --json"
129
165
  ],
130
166
  "flags": {
167
+ "deployment": {
168
+ "description": "Deployment name — read the instance from the resource that deployment targets; the tag partition still comes from the loaded instance.",
169
+ "exclusive": [
170
+ "tag"
171
+ ],
172
+ "name": "deployment",
173
+ "hasDynamicHelp": false,
174
+ "multiple": false,
175
+ "type": "option"
176
+ },
131
177
  "tag": {
132
- "description": "Workflow environment tag (e.g. prod, test) — the deployment to target for writes; an optional filter for reads.",
178
+ "description": "Workflow environment tag (e.g. prod, test) — an optional query filter, and the resource disambiguator when the config spans several.",
179
+ "exclusive": [
180
+ "deployment"
181
+ ],
133
182
  "name": "tag",
134
183
  "hasDynamicHelp": false,
135
184
  "multiple": false,
@@ -144,7 +193,7 @@
144
193
  },
145
194
  "hasDynamicHelp": false,
146
195
  "hiddenAliases": [],
147
- "id": "diagnose",
196
+ "id": "editorial-workflows:diagnose",
148
197
  "pluginAlias": "@sanity/workflow-cli",
149
198
  "pluginName": "@sanity/workflow-cli",
150
199
  "pluginType": "core",
@@ -153,11 +202,14 @@
153
202
  "relativePath": [
154
203
  "dist",
155
204
  "commands",
205
+ "editorial-workflows",
156
206
  "diagnose.js"
157
207
  ]
158
208
  },
159
- "fire-action": {
160
- "aliases": [],
209
+ "editorial-workflows:fire-action": {
210
+ "aliases": [
211
+ "fire-action"
212
+ ],
161
213
  "args": {
162
214
  "instanceId": {
163
215
  "description": "Workflow instance id.",
@@ -172,8 +224,21 @@
172
224
  "<%= config.bin %> fire-action wf-instance.abc123 --activity publish --action publish --param note=shipping"
173
225
  ],
174
226
  "flags": {
227
+ "deployment": {
228
+ "description": "Deployment name — read the instance from the resource that deployment targets; the tag partition still comes from the loaded instance.",
229
+ "exclusive": [
230
+ "tag"
231
+ ],
232
+ "name": "deployment",
233
+ "hasDynamicHelp": false,
234
+ "multiple": false,
235
+ "type": "option"
236
+ },
175
237
  "tag": {
176
- "description": "Workflow environment tag (e.g. prod, test) — the deployment to target for writes; an optional filter for reads.",
238
+ "description": "Workflow environment tag (e.g. prod, test) — an optional query filter, and the resource disambiguator when the config spans several.",
239
+ "exclusive": [
240
+ "deployment"
241
+ ],
177
242
  "name": "tag",
178
243
  "hasDynamicHelp": false,
179
244
  "multiple": false,
@@ -210,7 +275,7 @@
210
275
  },
211
276
  "hasDynamicHelp": false,
212
277
  "hiddenAliases": [],
213
- "id": "fire-action",
278
+ "id": "editorial-workflows:fire-action",
214
279
  "pluginAlias": "@sanity/workflow-cli",
215
280
  "pluginName": "@sanity/workflow-cli",
216
281
  "pluginType": "core",
@@ -219,11 +284,14 @@
219
284
  "relativePath": [
220
285
  "dist",
221
286
  "commands",
287
+ "editorial-workflows",
222
288
  "fire-action.js"
223
289
  ]
224
290
  },
225
- "list": {
226
- "aliases": [],
291
+ "editorial-workflows:list": {
292
+ "aliases": [
293
+ "list"
294
+ ],
227
295
  "args": {},
228
296
  "description": "List workflow instances in the configured dataset (in-flight by default).",
229
297
  "examples": [
@@ -235,7 +303,7 @@
235
303
  ],
236
304
  "flags": {
237
305
  "tag": {
238
- "description": "Workflow environment tag (e.g. prod, test) — the deployment to target for writes; an optional filter for reads.",
306
+ "description": "Workflow environment tag (e.g. prod, test) — an optional query filter, and the resource disambiguator when the config spans several.",
239
307
  "name": "tag",
240
308
  "hasDynamicHelp": false,
241
309
  "multiple": false,
@@ -278,7 +346,7 @@
278
346
  },
279
347
  "hasDynamicHelp": false,
280
348
  "hiddenAliases": [],
281
- "id": "list",
349
+ "id": "editorial-workflows:list",
282
350
  "pluginAlias": "@sanity/workflow-cli",
283
351
  "pluginName": "@sanity/workflow-cli",
284
352
  "pluginType": "core",
@@ -287,22 +355,31 @@
287
355
  "relativePath": [
288
356
  "dist",
289
357
  "commands",
358
+ "editorial-workflows",
290
359
  "list.js"
291
360
  ]
292
361
  },
293
- "nuke": {
294
- "aliases": [],
362
+ "editorial-workflows:nuke": {
363
+ "aliases": [
364
+ "nuke"
365
+ ],
295
366
  "args": {},
296
367
  "description": "The reset for a dataset holding engine documents the versioned upgrade framework cannot yet migrate: deletes the tag's instances, definitions, and guards (across every alias-bound resource). Content documents are never touched. Prints a dry-run plan, then requires you to type back every involved dataset (--force skips the prompt; the plan still prints).",
297
368
  "examples": [
298
- "<%= config.bin %> nuke --tag plugin-dev",
369
+ "<%= config.bin %> nuke --deployment plugin-dev",
299
370
  "<%= config.bin %> nuke --tag plugin-dev --force"
300
371
  ],
301
372
  "flags": {
373
+ "deployment": {
374
+ "description": "The deployment name to reset.",
375
+ "name": "deployment",
376
+ "hasDynamicHelp": false,
377
+ "multiple": false,
378
+ "type": "option"
379
+ },
302
380
  "tag": {
303
- "description": "The deployment tag to reset. Required — a destructive reset never guesses the environment.",
381
+ "description": "The deployment tag to reset (while it names exactly one deployment).",
304
382
  "name": "tag",
305
- "required": true,
306
383
  "hasDynamicHelp": false,
307
384
  "multiple": false,
308
385
  "type": "option"
@@ -316,7 +393,7 @@
316
393
  },
317
394
  "hasDynamicHelp": false,
318
395
  "hiddenAliases": [],
319
- "id": "nuke",
396
+ "id": "editorial-workflows:nuke",
320
397
  "pluginAlias": "@sanity/workflow-cli",
321
398
  "pluginName": "@sanity/workflow-cli",
322
399
  "pluginType": "core",
@@ -326,10 +403,11 @@
326
403
  "relativePath": [
327
404
  "dist",
328
405
  "commands",
406
+ "editorial-workflows",
329
407
  "nuke.js"
330
408
  ]
331
409
  },
332
- "reset-activity": {
410
+ "editorial-workflows:reset-activity": {
333
411
  "aliases": [],
334
412
  "args": {
335
413
  "instanceId": {
@@ -347,8 +425,10 @@
347
425
  "flags": {},
348
426
  "hasDynamicHelp": false,
349
427
  "hidden": true,
350
- "hiddenAliases": [],
351
- "id": "reset-activity",
428
+ "hiddenAliases": [
429
+ "reset-activity"
430
+ ],
431
+ "id": "editorial-workflows:reset-activity",
352
432
  "pluginAlias": "@sanity/workflow-cli",
353
433
  "pluginName": "@sanity/workflow-cli",
354
434
  "pluginType": "core",
@@ -357,11 +437,14 @@
357
437
  "relativePath": [
358
438
  "dist",
359
439
  "commands",
440
+ "editorial-workflows",
360
441
  "reset-activity.js"
361
442
  ]
362
443
  },
363
- "set-stage": {
364
- "aliases": [],
444
+ "editorial-workflows:set-stage": {
445
+ "aliases": [
446
+ "set-stage"
447
+ ],
365
448
  "args": {
366
449
  "instanceId": {
367
450
  "description": "Workflow instance id to move.",
@@ -375,8 +458,21 @@
375
458
  "<%= config.bin %> set-stage wf-instance.abc123 --to ready --reason 'unblock for demo'"
376
459
  ],
377
460
  "flags": {
461
+ "deployment": {
462
+ "description": "Deployment name — read the instance from the resource that deployment targets; the tag partition still comes from the loaded instance.",
463
+ "exclusive": [
464
+ "tag"
465
+ ],
466
+ "name": "deployment",
467
+ "hasDynamicHelp": false,
468
+ "multiple": false,
469
+ "type": "option"
470
+ },
378
471
  "tag": {
379
- "description": "Workflow environment tag (e.g. prod, test) — the deployment to target for writes; an optional filter for reads.",
472
+ "description": "Workflow environment tag (e.g. prod, test) — an optional query filter, and the resource disambiguator when the config spans several.",
473
+ "exclusive": [
474
+ "deployment"
475
+ ],
380
476
  "name": "tag",
381
477
  "hasDynamicHelp": false,
382
478
  "multiple": false,
@@ -400,7 +496,7 @@
400
496
  },
401
497
  "hasDynamicHelp": false,
402
498
  "hiddenAliases": [],
403
- "id": "set-stage",
499
+ "id": "editorial-workflows:set-stage",
404
500
  "pluginAlias": "@sanity/workflow-cli",
405
501
  "pluginName": "@sanity/workflow-cli",
406
502
  "pluginType": "core",
@@ -409,11 +505,14 @@
409
505
  "relativePath": [
410
506
  "dist",
411
507
  "commands",
508
+ "editorial-workflows",
412
509
  "set-stage.js"
413
510
  ]
414
511
  },
415
- "show": {
416
- "aliases": [],
512
+ "editorial-workflows:show": {
513
+ "aliases": [
514
+ "show"
515
+ ],
417
516
  "args": {
418
517
  "instanceId": {
419
518
  "description": "Workflow instance document id.",
@@ -428,7 +527,7 @@
428
527
  ],
429
528
  "flags": {
430
529
  "tag": {
431
- "description": "Workflow environment tag (e.g. prod, test) — the deployment to target for writes; an optional filter for reads.",
530
+ "description": "Workflow environment tag (e.g. prod, test) — an optional query filter, and the resource disambiguator when the config spans several.",
432
531
  "name": "tag",
433
532
  "hasDynamicHelp": false,
434
533
  "multiple": false,
@@ -448,7 +547,7 @@
448
547
  },
449
548
  "hasDynamicHelp": false,
450
549
  "hiddenAliases": [],
451
- "id": "show",
550
+ "id": "editorial-workflows:show",
452
551
  "pluginAlias": "@sanity/workflow-cli",
453
552
  "pluginName": "@sanity/workflow-cli",
454
553
  "pluginType": "core",
@@ -457,11 +556,14 @@
457
556
  "relativePath": [
458
557
  "dist",
459
558
  "commands",
559
+ "editorial-workflows",
460
560
  "show.js"
461
561
  ]
462
562
  },
463
- "start": {
464
- "aliases": [],
563
+ "editorial-workflows:start": {
564
+ "aliases": [
565
+ "start"
566
+ ],
465
567
  "args": {
466
568
  "name": {
467
569
  "description": "Workflow definition name.",
@@ -477,8 +579,21 @@
477
579
  "<%= config.bin %> start productLaunch --instance-id prod.wf-instance.a1b2c3d4e5f6"
478
580
  ],
479
581
  "flags": {
582
+ "deployment": {
583
+ "description": "Deployment name — the unique identity of one deployment in the config.",
584
+ "exclusive": [
585
+ "tag"
586
+ ],
587
+ "name": "deployment",
588
+ "hasDynamicHelp": false,
589
+ "multiple": false,
590
+ "type": "option"
591
+ },
480
592
  "tag": {
481
- "description": "Workflow environment tag (e.g. prod, test) — the deployment to target for writes; an optional filter for reads.",
593
+ "description": "Workflow environment tag (e.g. prod, test) — selects the deployment to act on while the tag names exactly one; pass --deployment when it spans several.",
594
+ "exclusive": [
595
+ "deployment"
596
+ ],
482
597
  "name": "tag",
483
598
  "hasDynamicHelp": false,
484
599
  "multiple": false,
@@ -515,7 +630,7 @@
515
630
  },
516
631
  "hasDynamicHelp": false,
517
632
  "hiddenAliases": [],
518
- "id": "start",
633
+ "id": "editorial-workflows:start",
519
634
  "pluginAlias": "@sanity/workflow-cli",
520
635
  "pluginName": "@sanity/workflow-cli",
521
636
  "pluginType": "core",
@@ -524,11 +639,14 @@
524
639
  "relativePath": [
525
640
  "dist",
526
641
  "commands",
642
+ "editorial-workflows",
527
643
  "start.js"
528
644
  ]
529
645
  },
530
- "tail": {
531
- "aliases": [],
646
+ "editorial-workflows:tail": {
647
+ "aliases": [
648
+ "tail"
649
+ ],
532
650
  "args": {
533
651
  "instanceId": {
534
652
  "description": "Workflow instance id to tail.",
@@ -542,7 +660,7 @@
542
660
  ],
543
661
  "flags": {
544
662
  "tag": {
545
- "description": "Workflow environment tag (e.g. prod, test) — the deployment to target for writes; an optional filter for reads.",
663
+ "description": "Workflow environment tag (e.g. prod, test) — an optional query filter, and the resource disambiguator when the config spans several.",
546
664
  "name": "tag",
547
665
  "hasDynamicHelp": false,
548
666
  "multiple": false,
@@ -551,7 +669,7 @@
551
669
  },
552
670
  "hasDynamicHelp": false,
553
671
  "hiddenAliases": [],
554
- "id": "tail",
672
+ "id": "editorial-workflows:tail",
555
673
  "pluginAlias": "@sanity/workflow-cli",
556
674
  "pluginName": "@sanity/workflow-cli",
557
675
  "pluginType": "core",
@@ -560,11 +678,14 @@
560
678
  "relativePath": [
561
679
  "dist",
562
680
  "commands",
681
+ "editorial-workflows",
563
682
  "tail.js"
564
683
  ]
565
684
  },
566
- "definition:delete": {
567
- "aliases": [],
685
+ "editorial-workflows:definition:delete": {
686
+ "aliases": [
687
+ "definition:delete"
688
+ ],
568
689
  "args": {
569
690
  "name": {
570
691
  "description": "Workflow definition name.",
@@ -579,8 +700,21 @@
579
700
  "<%= config.bin %> definition delete my-workflow --cascade --reason 'workflow retired'"
580
701
  ],
581
702
  "flags": {
703
+ "deployment": {
704
+ "description": "Deployment name — the unique identity of one deployment in the config.",
705
+ "exclusive": [
706
+ "tag"
707
+ ],
708
+ "name": "deployment",
709
+ "hasDynamicHelp": false,
710
+ "multiple": false,
711
+ "type": "option"
712
+ },
582
713
  "tag": {
583
- "description": "Workflow environment tag (e.g. prod, test) — the deployment to target for writes; an optional filter for reads.",
714
+ "description": "Workflow environment tag (e.g. prod, test) — selects the deployment to act on while the tag names exactly one; pass --deployment when it spans several.",
715
+ "exclusive": [
716
+ "deployment"
717
+ ],
584
718
  "name": "tag",
585
719
  "hasDynamicHelp": false,
586
720
  "multiple": false,
@@ -609,7 +743,7 @@
609
743
  },
610
744
  "hasDynamicHelp": false,
611
745
  "hiddenAliases": [],
612
- "id": "definition:delete",
746
+ "id": "editorial-workflows:definition:delete",
613
747
  "pluginAlias": "@sanity/workflow-cli",
614
748
  "pluginName": "@sanity/workflow-cli",
615
749
  "pluginType": "core",
@@ -618,12 +752,15 @@
618
752
  "relativePath": [
619
753
  "dist",
620
754
  "commands",
755
+ "editorial-workflows",
621
756
  "definition",
622
757
  "delete.js"
623
758
  ]
624
759
  },
625
- "definition:diff": {
626
- "aliases": [],
760
+ "editorial-workflows:definition:diff": {
761
+ "aliases": [
762
+ "definition:diff"
763
+ ],
627
764
  "args": {
628
765
  "name": {
629
766
  "description": "Workflow definition name.",
@@ -637,8 +774,21 @@
637
774
  "<%= config.bin %> definition diff productLaunch --version 2"
638
775
  ],
639
776
  "flags": {
777
+ "deployment": {
778
+ "description": "Deployment name — the unique identity of one deployment in the config.",
779
+ "exclusive": [
780
+ "tag"
781
+ ],
782
+ "name": "deployment",
783
+ "hasDynamicHelp": false,
784
+ "multiple": false,
785
+ "type": "option"
786
+ },
640
787
  "tag": {
641
- "description": "Workflow environment tag (e.g. prod, test) — the deployment to target for writes; an optional filter for reads.",
788
+ "description": "Workflow environment tag (e.g. prod, test) — selects the deployment to act on while the tag names exactly one; pass --deployment when it spans several.",
789
+ "exclusive": [
790
+ "deployment"
791
+ ],
642
792
  "name": "tag",
643
793
  "hasDynamicHelp": false,
644
794
  "multiple": false,
@@ -654,7 +804,7 @@
654
804
  },
655
805
  "hasDynamicHelp": false,
656
806
  "hiddenAliases": [],
657
- "id": "definition:diff",
807
+ "id": "editorial-workflows:definition:diff",
658
808
  "pluginAlias": "@sanity/workflow-cli",
659
809
  "pluginName": "@sanity/workflow-cli",
660
810
  "pluginType": "core",
@@ -663,12 +813,15 @@
663
813
  "relativePath": [
664
814
  "dist",
665
815
  "commands",
816
+ "editorial-workflows",
666
817
  "definition",
667
818
  "diff.js"
668
819
  ]
669
820
  },
670
- "definition:list": {
671
- "aliases": [],
821
+ "editorial-workflows:definition:list": {
822
+ "aliases": [
823
+ "definition:list"
824
+ ],
672
825
  "args": {},
673
826
  "description": "List deployed workflow definitions.",
674
827
  "examples": [
@@ -677,7 +830,7 @@
677
830
  ],
678
831
  "flags": {
679
832
  "tag": {
680
- "description": "Workflow environment tag (e.g. prod, test) — the deployment to target for writes; an optional filter for reads.",
833
+ "description": "Workflow environment tag (e.g. prod, test) — an optional query filter, and the resource disambiguator when the config spans several.",
681
834
  "name": "tag",
682
835
  "hasDynamicHelp": false,
683
836
  "multiple": false,
@@ -701,7 +854,7 @@
701
854
  },
702
855
  "hasDynamicHelp": false,
703
856
  "hiddenAliases": [],
704
- "id": "definition:list",
857
+ "id": "editorial-workflows:definition:list",
705
858
  "pluginAlias": "@sanity/workflow-cli",
706
859
  "pluginName": "@sanity/workflow-cli",
707
860
  "pluginType": "core",
@@ -710,12 +863,15 @@
710
863
  "relativePath": [
711
864
  "dist",
712
865
  "commands",
866
+ "editorial-workflows",
713
867
  "definition",
714
868
  "list.js"
715
869
  ]
716
870
  },
717
- "definition:show": {
718
- "aliases": [],
871
+ "editorial-workflows:definition:show": {
872
+ "aliases": [
873
+ "definition:show"
874
+ ],
719
875
  "args": {
720
876
  "name": {
721
877
  "description": "Workflow definition name.",
@@ -726,7 +882,7 @@
726
882
  "description": "Show a deployed workflow definition.",
727
883
  "flags": {
728
884
  "tag": {
729
- "description": "Workflow environment tag (e.g. prod, test) — the deployment to target for writes; an optional filter for reads.",
885
+ "description": "Workflow environment tag (e.g. prod, test) — an optional query filter, and the resource disambiguator when the config spans several.",
730
886
  "name": "tag",
731
887
  "hasDynamicHelp": false,
732
888
  "multiple": false,
@@ -742,7 +898,7 @@
742
898
  },
743
899
  "hasDynamicHelp": false,
744
900
  "hiddenAliases": [],
745
- "id": "definition:show",
901
+ "id": "editorial-workflows:definition:show",
746
902
  "pluginAlias": "@sanity/workflow-cli",
747
903
  "pluginName": "@sanity/workflow-cli",
748
904
  "pluginType": "core",
@@ -751,10 +907,11 @@
751
907
  "relativePath": [
752
908
  "dist",
753
909
  "commands",
910
+ "editorial-workflows",
754
911
  "definition",
755
912
  "show.js"
756
913
  ]
757
914
  }
758
915
  },
759
- "version": "0.12.0"
916
+ "version": "0.14.0"
760
917
  }