@sanity/runtime-cli 14.11.0 → 14.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +45 -43
- package/dist/actions/blueprints/blueprint.d.ts +49 -16
- package/dist/actions/blueprints/blueprint.js +97 -139
- package/dist/actions/blueprints/resolve.d.ts +51 -0
- package/dist/actions/blueprints/resolve.js +52 -0
- package/dist/actions/blueprints/resources.js +35 -12
- package/dist/actions/functions/dev.d.ts +1 -2
- package/dist/actions/functions/dev.js +2 -2
- package/dist/baseCommands.d.ts +47 -30
- package/dist/baseCommands.js +187 -72
- package/dist/commands/blueprints/add.d.ts +3 -2
- package/dist/commands/blueprints/add.js +3 -2
- package/dist/commands/blueprints/config.d.ts +3 -2
- package/dist/commands/blueprints/config.js +3 -2
- package/dist/commands/blueprints/deploy.d.ts +3 -2
- package/dist/commands/blueprints/deploy.js +4 -3
- package/dist/commands/blueprints/destroy.d.ts +3 -2
- package/dist/commands/blueprints/destroy.js +3 -2
- package/dist/commands/blueprints/doctor.d.ts +0 -1
- package/dist/commands/blueprints/doctor.js +2 -3
- package/dist/commands/blueprints/info.d.ts +4 -2
- package/dist/commands/blueprints/info.js +6 -3
- package/dist/commands/blueprints/init.d.ts +0 -1
- package/dist/commands/blueprints/init.js +1 -2
- package/dist/commands/blueprints/logs.d.ts +3 -2
- package/dist/commands/blueprints/logs.js +4 -3
- package/dist/commands/blueprints/plan.d.ts +3 -2
- package/dist/commands/blueprints/plan.js +5 -3
- package/dist/commands/blueprints/promote.d.ts +3 -2
- package/dist/commands/blueprints/promote.js +3 -2
- package/dist/commands/blueprints/stacks.d.ts +3 -2
- package/dist/commands/blueprints/stacks.js +3 -2
- package/dist/commands/functions/add.d.ts +3 -2
- package/dist/commands/functions/add.js +4 -3
- package/dist/commands/functions/build.d.ts +3 -2
- package/dist/commands/functions/build.js +3 -2
- package/dist/commands/functions/dev.d.ts +3 -2
- package/dist/commands/functions/dev.js +3 -2
- package/dist/commands/functions/env/add.d.ts +3 -2
- package/dist/commands/functions/env/add.js +3 -2
- package/dist/commands/functions/env/list.d.ts +3 -2
- package/dist/commands/functions/env/list.js +3 -2
- package/dist/commands/functions/env/remove.d.ts +3 -2
- package/dist/commands/functions/env/remove.js +3 -2
- package/dist/commands/functions/logs.d.ts +3 -2
- package/dist/commands/functions/logs.js +4 -3
- package/dist/commands/functions/test.d.ts +3 -2
- package/dist/commands/functions/test.js +3 -2
- package/dist/constants.d.ts +15 -2
- package/dist/constants.js +14 -10
- package/dist/cores/blueprints/config.js +9 -4
- package/dist/cores/blueprints/destroy.js +78 -56
- package/dist/cores/blueprints/doctor.js +19 -5
- package/dist/cores/blueprints/init.js +2 -2
- package/dist/cores/functions/add.js +11 -7
- package/dist/cores/functions/dev.js +1 -1
- package/dist/server/app.d.ts +1 -2
- package/dist/server/app.js +16 -8
- package/dist/server/handlers/invoke.d.ts +1 -2
- package/dist/server/handlers/invoke.js +4 -4
- package/dist/server/static/components/rule-panel.js +8 -10
- package/oclif.manifest.json +503 -73
- package/package.json +2 -2
package/oclif.manifest.json
CHANGED
|
@@ -60,6 +60,39 @@
|
|
|
60
60
|
"allowNo": false,
|
|
61
61
|
"type": "boolean"
|
|
62
62
|
},
|
|
63
|
+
"stack": {
|
|
64
|
+
"description": "Stack name or ID to use instead of the locally configured Stack",
|
|
65
|
+
"hidden": true,
|
|
66
|
+
"name": "stack",
|
|
67
|
+
"hasDynamicHelp": false,
|
|
68
|
+
"multiple": false,
|
|
69
|
+
"type": "option"
|
|
70
|
+
},
|
|
71
|
+
"project-id": {
|
|
72
|
+
"aliases": [
|
|
73
|
+
"project",
|
|
74
|
+
"projectId"
|
|
75
|
+
],
|
|
76
|
+
"description": "Sanity project ID used to scope Blueprint and Stack",
|
|
77
|
+
"hidden": true,
|
|
78
|
+
"name": "project-id",
|
|
79
|
+
"hasDynamicHelp": false,
|
|
80
|
+
"multiple": false,
|
|
81
|
+
"type": "option"
|
|
82
|
+
},
|
|
83
|
+
"organization-id": {
|
|
84
|
+
"aliases": [
|
|
85
|
+
"organization",
|
|
86
|
+
"organizationId",
|
|
87
|
+
"org"
|
|
88
|
+
],
|
|
89
|
+
"description": "Sanity organization ID used to scope Blueprint and Stack",
|
|
90
|
+
"hidden": true,
|
|
91
|
+
"name": "organization-id",
|
|
92
|
+
"hasDynamicHelp": false,
|
|
93
|
+
"multiple": false,
|
|
94
|
+
"type": "option"
|
|
95
|
+
},
|
|
63
96
|
"example": {
|
|
64
97
|
"aliases": [
|
|
65
98
|
"recipe"
|
|
@@ -100,12 +133,13 @@
|
|
|
100
133
|
"options": [
|
|
101
134
|
"document-publish",
|
|
102
135
|
"document-create",
|
|
103
|
-
"document-update",
|
|
104
136
|
"document-delete",
|
|
137
|
+
"document-update",
|
|
105
138
|
"media-library-asset-create",
|
|
106
|
-
"media-library-asset-update",
|
|
107
139
|
"media-library-asset-delete",
|
|
108
|
-
"
|
|
140
|
+
"media-library-asset-update",
|
|
141
|
+
"scheduled-function",
|
|
142
|
+
"sync-tag-invalidate"
|
|
109
143
|
],
|
|
110
144
|
"type": "option"
|
|
111
145
|
},
|
|
@@ -185,6 +219,9 @@
|
|
|
185
219
|
"strict": true,
|
|
186
220
|
"summary": "Add a function resource to a Blueprint",
|
|
187
221
|
"enableJsonFlag": true,
|
|
222
|
+
"needs": [
|
|
223
|
+
"blueprint"
|
|
224
|
+
],
|
|
188
225
|
"isESM": true,
|
|
189
226
|
"relativePath": [
|
|
190
227
|
"dist",
|
|
@@ -243,12 +280,19 @@
|
|
|
243
280
|
"allowNo": false,
|
|
244
281
|
"type": "boolean"
|
|
245
282
|
},
|
|
246
|
-
"
|
|
247
|
-
"
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
"
|
|
283
|
+
"stack": {
|
|
284
|
+
"aliases": [
|
|
285
|
+
"stack-id",
|
|
286
|
+
"stackId"
|
|
287
|
+
],
|
|
288
|
+
"dependsOn": [
|
|
289
|
+
"edit"
|
|
290
|
+
],
|
|
291
|
+
"description": "Stack name or ID to set in the configuration. Requires --edit flag",
|
|
292
|
+
"name": "stack",
|
|
293
|
+
"hasDynamicHelp": false,
|
|
294
|
+
"multiple": false,
|
|
295
|
+
"type": "option"
|
|
252
296
|
},
|
|
253
297
|
"project-id": {
|
|
254
298
|
"aliases": [
|
|
@@ -279,19 +323,12 @@
|
|
|
279
323
|
"multiple": false,
|
|
280
324
|
"type": "option"
|
|
281
325
|
},
|
|
282
|
-
"
|
|
283
|
-
"
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
"
|
|
288
|
-
"edit"
|
|
289
|
-
],
|
|
290
|
-
"description": "Stack name or ID to set in the configuration. Requires --edit flag",
|
|
291
|
-
"name": "stack",
|
|
292
|
-
"hasDynamicHelp": false,
|
|
293
|
-
"multiple": false,
|
|
294
|
-
"type": "option"
|
|
326
|
+
"edit": {
|
|
327
|
+
"char": "e",
|
|
328
|
+
"description": "Modify the configuration interactively, or directly when combined with ID flags.",
|
|
329
|
+
"name": "edit",
|
|
330
|
+
"allowNo": false,
|
|
331
|
+
"type": "boolean"
|
|
295
332
|
}
|
|
296
333
|
},
|
|
297
334
|
"hasDynamicHelp": false,
|
|
@@ -303,6 +340,10 @@
|
|
|
303
340
|
"strict": true,
|
|
304
341
|
"summary": "View or edit the local Blueprint configuration",
|
|
305
342
|
"enableJsonFlag": true,
|
|
343
|
+
"needs": [
|
|
344
|
+
"token",
|
|
345
|
+
"blueprint"
|
|
346
|
+
],
|
|
306
347
|
"isESM": true,
|
|
307
348
|
"relativePath": [
|
|
308
349
|
"dist",
|
|
@@ -363,12 +404,36 @@
|
|
|
363
404
|
},
|
|
364
405
|
"stack": {
|
|
365
406
|
"description": "Stack name or ID to use instead of the locally configured Stack",
|
|
366
|
-
"hidden": false,
|
|
367
407
|
"name": "stack",
|
|
368
408
|
"hasDynamicHelp": false,
|
|
369
409
|
"multiple": false,
|
|
370
410
|
"type": "option"
|
|
371
411
|
},
|
|
412
|
+
"project-id": {
|
|
413
|
+
"aliases": [
|
|
414
|
+
"project",
|
|
415
|
+
"projectId"
|
|
416
|
+
],
|
|
417
|
+
"description": "Sanity project ID used to scope Blueprint and Stack",
|
|
418
|
+
"hidden": true,
|
|
419
|
+
"name": "project-id",
|
|
420
|
+
"hasDynamicHelp": false,
|
|
421
|
+
"multiple": false,
|
|
422
|
+
"type": "option"
|
|
423
|
+
},
|
|
424
|
+
"organization-id": {
|
|
425
|
+
"aliases": [
|
|
426
|
+
"organization",
|
|
427
|
+
"organizationId",
|
|
428
|
+
"org"
|
|
429
|
+
],
|
|
430
|
+
"description": "Sanity organization ID used to scope Blueprint and Stack",
|
|
431
|
+
"hidden": true,
|
|
432
|
+
"name": "organization-id",
|
|
433
|
+
"hasDynamicHelp": false,
|
|
434
|
+
"multiple": false,
|
|
435
|
+
"type": "option"
|
|
436
|
+
},
|
|
372
437
|
"message": {
|
|
373
438
|
"char": "m",
|
|
374
439
|
"description": "Message describing the deployment (e.g. reason for change)",
|
|
@@ -418,6 +483,10 @@
|
|
|
418
483
|
"strict": true,
|
|
419
484
|
"summary": "Deploy the local Blueprint to the remote Stack",
|
|
420
485
|
"enableJsonFlag": true,
|
|
486
|
+
"needs": [
|
|
487
|
+
"deployedStack",
|
|
488
|
+
"blueprint"
|
|
489
|
+
],
|
|
421
490
|
"isESM": true,
|
|
422
491
|
"relativePath": [
|
|
423
492
|
"dist",
|
|
@@ -474,14 +543,16 @@
|
|
|
474
543
|
"allowNo": false,
|
|
475
544
|
"type": "boolean"
|
|
476
545
|
},
|
|
477
|
-
"
|
|
546
|
+
"stack": {
|
|
478
547
|
"aliases": [
|
|
479
|
-
"
|
|
548
|
+
"stack-id",
|
|
549
|
+
"stackId"
|
|
480
550
|
],
|
|
481
|
-
"description": "
|
|
482
|
-
"name": "
|
|
483
|
-
"
|
|
484
|
-
"
|
|
551
|
+
"description": "Stack name or ID to destroy (defaults to the locally configured Stack)",
|
|
552
|
+
"name": "stack",
|
|
553
|
+
"hasDynamicHelp": false,
|
|
554
|
+
"multiple": false,
|
|
555
|
+
"type": "option"
|
|
485
556
|
},
|
|
486
557
|
"project-id": {
|
|
487
558
|
"aliases": [
|
|
@@ -520,16 +591,14 @@
|
|
|
520
591
|
"multiple": false,
|
|
521
592
|
"type": "option"
|
|
522
593
|
},
|
|
523
|
-
"
|
|
594
|
+
"force": {
|
|
524
595
|
"aliases": [
|
|
525
|
-
"
|
|
526
|
-
"stackId"
|
|
596
|
+
"f"
|
|
527
597
|
],
|
|
528
|
-
"description": "Stack
|
|
529
|
-
"name": "
|
|
530
|
-
"
|
|
531
|
-
"
|
|
532
|
-
"type": "option"
|
|
598
|
+
"description": "Force Stack destruction (skip confirmation)",
|
|
599
|
+
"name": "force",
|
|
600
|
+
"allowNo": false,
|
|
601
|
+
"type": "boolean"
|
|
533
602
|
},
|
|
534
603
|
"no-wait": {
|
|
535
604
|
"description": "Do not wait for Stack destruction to complete",
|
|
@@ -547,6 +616,10 @@
|
|
|
547
616
|
"strict": true,
|
|
548
617
|
"summary": "Destroy a remote Stack deployment and its resources",
|
|
549
618
|
"enableJsonFlag": true,
|
|
619
|
+
"needs": [
|
|
620
|
+
"token",
|
|
621
|
+
"blueprint"
|
|
622
|
+
],
|
|
550
623
|
"isESM": true,
|
|
551
624
|
"relativePath": [
|
|
552
625
|
"dist",
|
|
@@ -566,7 +639,6 @@
|
|
|
566
639
|
"flags": {
|
|
567
640
|
"json": {
|
|
568
641
|
"description": "Format output as json",
|
|
569
|
-
"hidden": false,
|
|
570
642
|
"name": "json",
|
|
571
643
|
"allowNo": false,
|
|
572
644
|
"type": "boolean"
|
|
@@ -578,7 +650,6 @@
|
|
|
578
650
|
"char": "p",
|
|
579
651
|
"description": "Path to a Blueprint file or directory containing one",
|
|
580
652
|
"env": "SANITY_BLUEPRINT_PATH",
|
|
581
|
-
"hidden": false,
|
|
582
653
|
"name": "path",
|
|
583
654
|
"hasDynamicHelp": false,
|
|
584
655
|
"multiple": false,
|
|
@@ -633,7 +704,8 @@
|
|
|
633
704
|
"description": "Displays the current state and metadata of your remote Stack deployment, including deployed resources, status, and configuration.\n\nUse this command to verify a deployment succeeded, check what resources are live, or confirm which Stack your local Blueprint is connected to.\n\nRun 'blueprints stacks' to see all available Stacks in your project or organization.",
|
|
634
705
|
"examples": [
|
|
635
706
|
"<%= config.bin %> <%= command.id %>",
|
|
636
|
-
"<%= config.bin %> <%= command.id %> --stack <name-or-id>"
|
|
707
|
+
"<%= config.bin %> <%= command.id %> --stack <name-or-id>",
|
|
708
|
+
"<%= config.bin %> <%= command.id %> --project-id <id> --stack <name-or-id>"
|
|
637
709
|
],
|
|
638
710
|
"flags": {
|
|
639
711
|
"json": {
|
|
@@ -679,11 +751,35 @@
|
|
|
679
751
|
"aliases": [
|
|
680
752
|
"id"
|
|
681
753
|
],
|
|
682
|
-
"description": "Stack name or ID
|
|
754
|
+
"description": "Stack name or ID",
|
|
683
755
|
"name": "stack",
|
|
684
756
|
"hasDynamicHelp": false,
|
|
685
757
|
"multiple": false,
|
|
686
758
|
"type": "option"
|
|
759
|
+
},
|
|
760
|
+
"project-id": {
|
|
761
|
+
"aliases": [
|
|
762
|
+
"project",
|
|
763
|
+
"projectId"
|
|
764
|
+
],
|
|
765
|
+
"description": "Sanity project ID used to scope Blueprint and Stack",
|
|
766
|
+
"name": "project-id",
|
|
767
|
+
"hasDynamicHelp": false,
|
|
768
|
+
"multiple": false,
|
|
769
|
+
"type": "option"
|
|
770
|
+
},
|
|
771
|
+
"organization-id": {
|
|
772
|
+
"aliases": [
|
|
773
|
+
"organization",
|
|
774
|
+
"organizationId",
|
|
775
|
+
"org"
|
|
776
|
+
],
|
|
777
|
+
"description": "Sanity organization ID used to scope Blueprint and Stack",
|
|
778
|
+
"hidden": true,
|
|
779
|
+
"name": "organization-id",
|
|
780
|
+
"hasDynamicHelp": false,
|
|
781
|
+
"multiple": false,
|
|
782
|
+
"type": "option"
|
|
687
783
|
}
|
|
688
784
|
},
|
|
689
785
|
"hasDynamicHelp": false,
|
|
@@ -695,6 +791,9 @@
|
|
|
695
791
|
"strict": true,
|
|
696
792
|
"summary": "Display the status and resources of the remote Stack deployment",
|
|
697
793
|
"enableJsonFlag": true,
|
|
794
|
+
"needs": [
|
|
795
|
+
"deployedStack"
|
|
796
|
+
],
|
|
698
797
|
"isESM": true,
|
|
699
798
|
"relativePath": [
|
|
700
799
|
"dist",
|
|
@@ -754,7 +853,7 @@
|
|
|
754
853
|
},
|
|
755
854
|
"verbose": {
|
|
756
855
|
"description": "Verbose output",
|
|
757
|
-
"hidden":
|
|
856
|
+
"hidden": true,
|
|
758
857
|
"name": "verbose",
|
|
759
858
|
"allowNo": false,
|
|
760
859
|
"type": "boolean"
|
|
@@ -913,12 +1012,36 @@
|
|
|
913
1012
|
},
|
|
914
1013
|
"stack": {
|
|
915
1014
|
"description": "Stack name or ID to use instead of the locally configured Stack",
|
|
916
|
-
"hidden": false,
|
|
917
1015
|
"name": "stack",
|
|
918
1016
|
"hasDynamicHelp": false,
|
|
919
1017
|
"multiple": false,
|
|
920
1018
|
"type": "option"
|
|
921
1019
|
},
|
|
1020
|
+
"project-id": {
|
|
1021
|
+
"aliases": [
|
|
1022
|
+
"project",
|
|
1023
|
+
"projectId"
|
|
1024
|
+
],
|
|
1025
|
+
"description": "Sanity project ID used to scope Blueprint and Stack",
|
|
1026
|
+
"hidden": true,
|
|
1027
|
+
"name": "project-id",
|
|
1028
|
+
"hasDynamicHelp": false,
|
|
1029
|
+
"multiple": false,
|
|
1030
|
+
"type": "option"
|
|
1031
|
+
},
|
|
1032
|
+
"organization-id": {
|
|
1033
|
+
"aliases": [
|
|
1034
|
+
"organization",
|
|
1035
|
+
"organizationId",
|
|
1036
|
+
"org"
|
|
1037
|
+
],
|
|
1038
|
+
"description": "Sanity organization ID used to scope Blueprint and Stack",
|
|
1039
|
+
"hidden": true,
|
|
1040
|
+
"name": "organization-id",
|
|
1041
|
+
"hasDynamicHelp": false,
|
|
1042
|
+
"multiple": false,
|
|
1043
|
+
"type": "option"
|
|
1044
|
+
},
|
|
922
1045
|
"watch": {
|
|
923
1046
|
"aliases": [
|
|
924
1047
|
"follow"
|
|
@@ -939,6 +1062,9 @@
|
|
|
939
1062
|
"strict": true,
|
|
940
1063
|
"summary": "Display logs for the current Blueprint's Stack deployment",
|
|
941
1064
|
"enableJsonFlag": true,
|
|
1065
|
+
"needs": [
|
|
1066
|
+
"deployedStack"
|
|
1067
|
+
],
|
|
942
1068
|
"isESM": true,
|
|
943
1069
|
"relativePath": [
|
|
944
1070
|
"dist",
|
|
@@ -996,11 +1122,35 @@
|
|
|
996
1122
|
},
|
|
997
1123
|
"stack": {
|
|
998
1124
|
"description": "Stack name or ID to use instead of the locally configured Stack",
|
|
999
|
-
"hidden": false,
|
|
1000
1125
|
"name": "stack",
|
|
1001
1126
|
"hasDynamicHelp": false,
|
|
1002
1127
|
"multiple": false,
|
|
1003
1128
|
"type": "option"
|
|
1129
|
+
},
|
|
1130
|
+
"project-id": {
|
|
1131
|
+
"aliases": [
|
|
1132
|
+
"project",
|
|
1133
|
+
"projectId"
|
|
1134
|
+
],
|
|
1135
|
+
"description": "Sanity project ID used to scope Blueprint and Stack",
|
|
1136
|
+
"hidden": true,
|
|
1137
|
+
"name": "project-id",
|
|
1138
|
+
"hasDynamicHelp": false,
|
|
1139
|
+
"multiple": false,
|
|
1140
|
+
"type": "option"
|
|
1141
|
+
},
|
|
1142
|
+
"organization-id": {
|
|
1143
|
+
"aliases": [
|
|
1144
|
+
"organization",
|
|
1145
|
+
"organizationId",
|
|
1146
|
+
"org"
|
|
1147
|
+
],
|
|
1148
|
+
"description": "Sanity organization ID used to scope Blueprint and Stack",
|
|
1149
|
+
"hidden": true,
|
|
1150
|
+
"name": "organization-id",
|
|
1151
|
+
"hasDynamicHelp": false,
|
|
1152
|
+
"multiple": false,
|
|
1153
|
+
"type": "option"
|
|
1004
1154
|
}
|
|
1005
1155
|
},
|
|
1006
1156
|
"hasDynamicHelp": false,
|
|
@@ -1012,6 +1162,10 @@
|
|
|
1012
1162
|
"strict": true,
|
|
1013
1163
|
"summary": "Preview changes that will be applied to the remote Stack",
|
|
1014
1164
|
"enableJsonFlag": true,
|
|
1165
|
+
"needs": [
|
|
1166
|
+
"token",
|
|
1167
|
+
"blueprint"
|
|
1168
|
+
],
|
|
1015
1169
|
"isESM": true,
|
|
1016
1170
|
"relativePath": [
|
|
1017
1171
|
"dist",
|
|
@@ -1078,6 +1232,31 @@
|
|
|
1078
1232
|
"multiple": false,
|
|
1079
1233
|
"type": "option"
|
|
1080
1234
|
},
|
|
1235
|
+
"project-id": {
|
|
1236
|
+
"aliases": [
|
|
1237
|
+
"project",
|
|
1238
|
+
"projectId"
|
|
1239
|
+
],
|
|
1240
|
+
"description": "Sanity project ID used to scope Blueprint and Stack",
|
|
1241
|
+
"hidden": true,
|
|
1242
|
+
"name": "project-id",
|
|
1243
|
+
"hasDynamicHelp": false,
|
|
1244
|
+
"multiple": false,
|
|
1245
|
+
"type": "option"
|
|
1246
|
+
},
|
|
1247
|
+
"organization-id": {
|
|
1248
|
+
"aliases": [
|
|
1249
|
+
"organization",
|
|
1250
|
+
"organizationId",
|
|
1251
|
+
"org"
|
|
1252
|
+
],
|
|
1253
|
+
"description": "Sanity organization ID used to scope Blueprint and Stack",
|
|
1254
|
+
"hidden": true,
|
|
1255
|
+
"name": "organization-id",
|
|
1256
|
+
"hasDynamicHelp": false,
|
|
1257
|
+
"multiple": false,
|
|
1258
|
+
"type": "option"
|
|
1259
|
+
},
|
|
1081
1260
|
"force": {
|
|
1082
1261
|
"description": "Skip confirmation prompt",
|
|
1083
1262
|
"name": "force",
|
|
@@ -1095,6 +1274,10 @@
|
|
|
1095
1274
|
"strict": true,
|
|
1096
1275
|
"summary": "Promote a Stack from project scope to organization scope",
|
|
1097
1276
|
"enableJsonFlag": true,
|
|
1277
|
+
"needs": [
|
|
1278
|
+
"deployedStack",
|
|
1279
|
+
"blueprint"
|
|
1280
|
+
],
|
|
1098
1281
|
"isESM": true,
|
|
1099
1282
|
"relativePath": [
|
|
1100
1283
|
"dist",
|
|
@@ -1152,6 +1335,14 @@
|
|
|
1152
1335
|
"allowNo": false,
|
|
1153
1336
|
"type": "boolean"
|
|
1154
1337
|
},
|
|
1338
|
+
"stack": {
|
|
1339
|
+
"description": "Stack name or ID to use instead of the locally configured Stack",
|
|
1340
|
+
"hidden": true,
|
|
1341
|
+
"name": "stack",
|
|
1342
|
+
"hasDynamicHelp": false,
|
|
1343
|
+
"multiple": false,
|
|
1344
|
+
"type": "option"
|
|
1345
|
+
},
|
|
1155
1346
|
"project-id": {
|
|
1156
1347
|
"aliases": [
|
|
1157
1348
|
"project",
|
|
@@ -1191,6 +1382,10 @@
|
|
|
1191
1382
|
"strict": true,
|
|
1192
1383
|
"summary": "List remote Stack deployments for your project or organization",
|
|
1193
1384
|
"enableJsonFlag": true,
|
|
1385
|
+
"needs": [
|
|
1386
|
+
"token",
|
|
1387
|
+
"blueprint"
|
|
1388
|
+
],
|
|
1194
1389
|
"isESM": true,
|
|
1195
1390
|
"relativePath": [
|
|
1196
1391
|
"dist",
|
|
@@ -1202,7 +1397,7 @@
|
|
|
1202
1397
|
"functions:add": {
|
|
1203
1398
|
"aliases": [],
|
|
1204
1399
|
"args": {},
|
|
1205
|
-
"description": "Scaffolds a new Function in the functions/ folder and templates a resource for your Blueprint manifest.\n\nFunctions are serverless handlers triggered by document events (create, update, delete, publish)
|
|
1400
|
+
"description": "Scaffolds a new Function in the functions/ folder and templates a resource for your Blueprint manifest.\n\nFunctions are serverless handlers triggered by document, live content or media-library events (create, update, delete, publish).\n\nAfter adding, use 'functions dev' to test locally, then 'blueprints deploy' to publish.",
|
|
1206
1401
|
"examples": [
|
|
1207
1402
|
"<%= config.bin %> <%= command.id %>",
|
|
1208
1403
|
"<%= config.bin %> <%= command.id %> --helpers",
|
|
@@ -1250,6 +1445,39 @@
|
|
|
1250
1445
|
"allowNo": false,
|
|
1251
1446
|
"type": "boolean"
|
|
1252
1447
|
},
|
|
1448
|
+
"stack": {
|
|
1449
|
+
"description": "Stack name or ID to use instead of the locally configured Stack",
|
|
1450
|
+
"hidden": true,
|
|
1451
|
+
"name": "stack",
|
|
1452
|
+
"hasDynamicHelp": false,
|
|
1453
|
+
"multiple": false,
|
|
1454
|
+
"type": "option"
|
|
1455
|
+
},
|
|
1456
|
+
"project-id": {
|
|
1457
|
+
"aliases": [
|
|
1458
|
+
"project",
|
|
1459
|
+
"projectId"
|
|
1460
|
+
],
|
|
1461
|
+
"description": "Sanity project ID used to scope Blueprint and Stack",
|
|
1462
|
+
"hidden": true,
|
|
1463
|
+
"name": "project-id",
|
|
1464
|
+
"hasDynamicHelp": false,
|
|
1465
|
+
"multiple": false,
|
|
1466
|
+
"type": "option"
|
|
1467
|
+
},
|
|
1468
|
+
"organization-id": {
|
|
1469
|
+
"aliases": [
|
|
1470
|
+
"organization",
|
|
1471
|
+
"organizationId",
|
|
1472
|
+
"org"
|
|
1473
|
+
],
|
|
1474
|
+
"description": "Sanity organization ID used to scope Blueprint and Stack",
|
|
1475
|
+
"hidden": true,
|
|
1476
|
+
"name": "organization-id",
|
|
1477
|
+
"hasDynamicHelp": false,
|
|
1478
|
+
"multiple": false,
|
|
1479
|
+
"type": "option"
|
|
1480
|
+
},
|
|
1253
1481
|
"example": {
|
|
1254
1482
|
"aliases": [
|
|
1255
1483
|
"recipe"
|
|
@@ -1287,12 +1515,13 @@
|
|
|
1287
1515
|
"options": [
|
|
1288
1516
|
"document-publish",
|
|
1289
1517
|
"document-create",
|
|
1290
|
-
"document-update",
|
|
1291
1518
|
"document-delete",
|
|
1519
|
+
"document-update",
|
|
1292
1520
|
"media-library-asset-create",
|
|
1293
|
-
"media-library-asset-update",
|
|
1294
1521
|
"media-library-asset-delete",
|
|
1295
|
-
"
|
|
1522
|
+
"media-library-asset-update",
|
|
1523
|
+
"scheduled-function",
|
|
1524
|
+
"sync-tag-invalidate"
|
|
1296
1525
|
],
|
|
1297
1526
|
"type": "option"
|
|
1298
1527
|
},
|
|
@@ -1362,6 +1591,9 @@
|
|
|
1362
1591
|
"strict": true,
|
|
1363
1592
|
"summary": "Add a Function to your Blueprint",
|
|
1364
1593
|
"enableJsonFlag": true,
|
|
1594
|
+
"needs": [
|
|
1595
|
+
"blueprint"
|
|
1596
|
+
],
|
|
1365
1597
|
"isESM": true,
|
|
1366
1598
|
"relativePath": [
|
|
1367
1599
|
"dist",
|
|
@@ -1419,6 +1651,39 @@
|
|
|
1419
1651
|
"allowNo": false,
|
|
1420
1652
|
"type": "boolean"
|
|
1421
1653
|
},
|
|
1654
|
+
"stack": {
|
|
1655
|
+
"description": "Stack name or ID to use instead of the locally configured Stack",
|
|
1656
|
+
"hidden": true,
|
|
1657
|
+
"name": "stack",
|
|
1658
|
+
"hasDynamicHelp": false,
|
|
1659
|
+
"multiple": false,
|
|
1660
|
+
"type": "option"
|
|
1661
|
+
},
|
|
1662
|
+
"project-id": {
|
|
1663
|
+
"aliases": [
|
|
1664
|
+
"project",
|
|
1665
|
+
"projectId"
|
|
1666
|
+
],
|
|
1667
|
+
"description": "Sanity project ID used to scope Blueprint and Stack",
|
|
1668
|
+
"hidden": true,
|
|
1669
|
+
"name": "project-id",
|
|
1670
|
+
"hasDynamicHelp": false,
|
|
1671
|
+
"multiple": false,
|
|
1672
|
+
"type": "option"
|
|
1673
|
+
},
|
|
1674
|
+
"organization-id": {
|
|
1675
|
+
"aliases": [
|
|
1676
|
+
"organization",
|
|
1677
|
+
"organizationId",
|
|
1678
|
+
"org"
|
|
1679
|
+
],
|
|
1680
|
+
"description": "Sanity organization ID used to scope Blueprint and Stack",
|
|
1681
|
+
"hidden": true,
|
|
1682
|
+
"name": "organization-id",
|
|
1683
|
+
"hasDynamicHelp": false,
|
|
1684
|
+
"multiple": false,
|
|
1685
|
+
"type": "option"
|
|
1686
|
+
},
|
|
1422
1687
|
"fn-installer": {
|
|
1423
1688
|
"aliases": [
|
|
1424
1689
|
"function-installer",
|
|
@@ -1455,6 +1720,9 @@
|
|
|
1455
1720
|
"strict": true,
|
|
1456
1721
|
"summary": "Build Sanity Function(s) to zip archives",
|
|
1457
1722
|
"enableJsonFlag": true,
|
|
1723
|
+
"needs": [
|
|
1724
|
+
"blueprint"
|
|
1725
|
+
],
|
|
1458
1726
|
"isESM": true,
|
|
1459
1727
|
"relativePath": [
|
|
1460
1728
|
"dist",
|
|
@@ -1511,6 +1779,39 @@
|
|
|
1511
1779
|
"allowNo": false,
|
|
1512
1780
|
"type": "boolean"
|
|
1513
1781
|
},
|
|
1782
|
+
"stack": {
|
|
1783
|
+
"description": "Stack name or ID to use instead of the locally configured Stack",
|
|
1784
|
+
"hidden": true,
|
|
1785
|
+
"name": "stack",
|
|
1786
|
+
"hasDynamicHelp": false,
|
|
1787
|
+
"multiple": false,
|
|
1788
|
+
"type": "option"
|
|
1789
|
+
},
|
|
1790
|
+
"project-id": {
|
|
1791
|
+
"aliases": [
|
|
1792
|
+
"project",
|
|
1793
|
+
"projectId"
|
|
1794
|
+
],
|
|
1795
|
+
"description": "Sanity project ID used to scope Blueprint and Stack",
|
|
1796
|
+
"hidden": true,
|
|
1797
|
+
"name": "project-id",
|
|
1798
|
+
"hasDynamicHelp": false,
|
|
1799
|
+
"multiple": false,
|
|
1800
|
+
"type": "option"
|
|
1801
|
+
},
|
|
1802
|
+
"organization-id": {
|
|
1803
|
+
"aliases": [
|
|
1804
|
+
"organization",
|
|
1805
|
+
"organizationId",
|
|
1806
|
+
"org"
|
|
1807
|
+
],
|
|
1808
|
+
"description": "Sanity organization ID used to scope Blueprint and Stack",
|
|
1809
|
+
"hidden": true,
|
|
1810
|
+
"name": "organization-id",
|
|
1811
|
+
"hasDynamicHelp": false,
|
|
1812
|
+
"multiple": false,
|
|
1813
|
+
"type": "option"
|
|
1814
|
+
},
|
|
1514
1815
|
"host": {
|
|
1515
1816
|
"char": "h",
|
|
1516
1817
|
"description": "The local network interface at which to listen. [default: \"localhost\"]",
|
|
@@ -1548,6 +1849,9 @@
|
|
|
1548
1849
|
"strict": true,
|
|
1549
1850
|
"summary": "Start the Sanity Function emulator",
|
|
1550
1851
|
"enableJsonFlag": true,
|
|
1852
|
+
"needs": [
|
|
1853
|
+
"blueprint"
|
|
1854
|
+
],
|
|
1551
1855
|
"isESM": true,
|
|
1552
1856
|
"relativePath": [
|
|
1553
1857
|
"dist",
|
|
@@ -1614,12 +1918,36 @@
|
|
|
1614
1918
|
},
|
|
1615
1919
|
"stack": {
|
|
1616
1920
|
"description": "Stack name or ID to use instead of the locally configured Stack",
|
|
1617
|
-
"hidden": false,
|
|
1618
1921
|
"name": "stack",
|
|
1619
1922
|
"hasDynamicHelp": false,
|
|
1620
1923
|
"multiple": false,
|
|
1621
1924
|
"type": "option"
|
|
1622
1925
|
},
|
|
1926
|
+
"project-id": {
|
|
1927
|
+
"aliases": [
|
|
1928
|
+
"project",
|
|
1929
|
+
"projectId"
|
|
1930
|
+
],
|
|
1931
|
+
"description": "Sanity project ID used to scope Blueprint and Stack",
|
|
1932
|
+
"hidden": true,
|
|
1933
|
+
"name": "project-id",
|
|
1934
|
+
"hasDynamicHelp": false,
|
|
1935
|
+
"multiple": false,
|
|
1936
|
+
"type": "option"
|
|
1937
|
+
},
|
|
1938
|
+
"organization-id": {
|
|
1939
|
+
"aliases": [
|
|
1940
|
+
"organization",
|
|
1941
|
+
"organizationId",
|
|
1942
|
+
"org"
|
|
1943
|
+
],
|
|
1944
|
+
"description": "Sanity organization ID used to scope Blueprint and Stack",
|
|
1945
|
+
"hidden": true,
|
|
1946
|
+
"name": "organization-id",
|
|
1947
|
+
"hasDynamicHelp": false,
|
|
1948
|
+
"multiple": false,
|
|
1949
|
+
"type": "option"
|
|
1950
|
+
},
|
|
1623
1951
|
"limit": {
|
|
1624
1952
|
"char": "l",
|
|
1625
1953
|
"description": "Total number of log entries to retrieve",
|
|
@@ -1681,6 +2009,10 @@
|
|
|
1681
2009
|
"strict": true,
|
|
1682
2010
|
"summary": "Retrieve or delete logs for a Sanity Function",
|
|
1683
2011
|
"enableJsonFlag": true,
|
|
2012
|
+
"needs": [
|
|
2013
|
+
"deployedStack",
|
|
2014
|
+
"blueprint"
|
|
2015
|
+
],
|
|
1684
2016
|
"isESM": true,
|
|
1685
2017
|
"relativePath": [
|
|
1686
2018
|
"dist",
|
|
@@ -1745,6 +2077,37 @@
|
|
|
1745
2077
|
"allowNo": false,
|
|
1746
2078
|
"type": "boolean"
|
|
1747
2079
|
},
|
|
2080
|
+
"stack": {
|
|
2081
|
+
"description": "Stack name or ID to use instead of the locally configured Stack",
|
|
2082
|
+
"hidden": true,
|
|
2083
|
+
"name": "stack",
|
|
2084
|
+
"hasDynamicHelp": false,
|
|
2085
|
+
"multiple": false,
|
|
2086
|
+
"type": "option"
|
|
2087
|
+
},
|
|
2088
|
+
"project-id": {
|
|
2089
|
+
"aliases": [
|
|
2090
|
+
"project",
|
|
2091
|
+
"projectId"
|
|
2092
|
+
],
|
|
2093
|
+
"description": "Sanity project ID used to scope Blueprint and Stack",
|
|
2094
|
+
"name": "project-id",
|
|
2095
|
+
"hasDynamicHelp": false,
|
|
2096
|
+
"multiple": false,
|
|
2097
|
+
"type": "option"
|
|
2098
|
+
},
|
|
2099
|
+
"organization-id": {
|
|
2100
|
+
"aliases": [
|
|
2101
|
+
"organization",
|
|
2102
|
+
"organizationId",
|
|
2103
|
+
"org"
|
|
2104
|
+
],
|
|
2105
|
+
"description": "Sanity organization ID used to scope Blueprint and Stack",
|
|
2106
|
+
"name": "organization-id",
|
|
2107
|
+
"hasDynamicHelp": false,
|
|
2108
|
+
"multiple": false,
|
|
2109
|
+
"type": "option"
|
|
2110
|
+
},
|
|
1748
2111
|
"data": {
|
|
1749
2112
|
"char": "d",
|
|
1750
2113
|
"description": "Data to send to the function",
|
|
@@ -1879,29 +2242,6 @@
|
|
|
1879
2242
|
"multiple": false,
|
|
1880
2243
|
"type": "option"
|
|
1881
2244
|
},
|
|
1882
|
-
"project-id": {
|
|
1883
|
-
"aliases": [
|
|
1884
|
-
"project",
|
|
1885
|
-
"projectId"
|
|
1886
|
-
],
|
|
1887
|
-
"description": "Sanity project ID used to scope Blueprint and Stack",
|
|
1888
|
-
"name": "project-id",
|
|
1889
|
-
"hasDynamicHelp": false,
|
|
1890
|
-
"multiple": false,
|
|
1891
|
-
"type": "option"
|
|
1892
|
-
},
|
|
1893
|
-
"organization-id": {
|
|
1894
|
-
"aliases": [
|
|
1895
|
-
"organization",
|
|
1896
|
-
"organizationId",
|
|
1897
|
-
"org"
|
|
1898
|
-
],
|
|
1899
|
-
"description": "Sanity organization ID used to scope Blueprint and Stack",
|
|
1900
|
-
"name": "organization-id",
|
|
1901
|
-
"hasDynamicHelp": false,
|
|
1902
|
-
"multiple": false,
|
|
1903
|
-
"type": "option"
|
|
1904
|
-
},
|
|
1905
2245
|
"document-id": {
|
|
1906
2246
|
"aliases": [
|
|
1907
2247
|
"doc",
|
|
@@ -1983,6 +2323,9 @@
|
|
|
1983
2323
|
"strict": true,
|
|
1984
2324
|
"summary": "Invoke a local Sanity Function",
|
|
1985
2325
|
"enableJsonFlag": true,
|
|
2326
|
+
"needs": [
|
|
2327
|
+
"blueprint"
|
|
2328
|
+
],
|
|
1986
2329
|
"isESM": true,
|
|
1987
2330
|
"relativePath": [
|
|
1988
2331
|
"dist",
|
|
@@ -2061,6 +2404,31 @@
|
|
|
2061
2404
|
"hasDynamicHelp": false,
|
|
2062
2405
|
"multiple": false,
|
|
2063
2406
|
"type": "option"
|
|
2407
|
+
},
|
|
2408
|
+
"project-id": {
|
|
2409
|
+
"aliases": [
|
|
2410
|
+
"project",
|
|
2411
|
+
"projectId"
|
|
2412
|
+
],
|
|
2413
|
+
"description": "Sanity project ID used to scope Blueprint and Stack",
|
|
2414
|
+
"hidden": true,
|
|
2415
|
+
"name": "project-id",
|
|
2416
|
+
"hasDynamicHelp": false,
|
|
2417
|
+
"multiple": false,
|
|
2418
|
+
"type": "option"
|
|
2419
|
+
},
|
|
2420
|
+
"organization-id": {
|
|
2421
|
+
"aliases": [
|
|
2422
|
+
"organization",
|
|
2423
|
+
"organizationId",
|
|
2424
|
+
"org"
|
|
2425
|
+
],
|
|
2426
|
+
"description": "Sanity organization ID used to scope Blueprint and Stack",
|
|
2427
|
+
"hidden": true,
|
|
2428
|
+
"name": "organization-id",
|
|
2429
|
+
"hasDynamicHelp": false,
|
|
2430
|
+
"multiple": false,
|
|
2431
|
+
"type": "option"
|
|
2064
2432
|
}
|
|
2065
2433
|
},
|
|
2066
2434
|
"hasDynamicHelp": false,
|
|
@@ -2072,6 +2440,10 @@
|
|
|
2072
2440
|
"strict": true,
|
|
2073
2441
|
"summary": "Add or set an environment variable for a deployed function",
|
|
2074
2442
|
"enableJsonFlag": true,
|
|
2443
|
+
"needs": [
|
|
2444
|
+
"deployedStack",
|
|
2445
|
+
"blueprint"
|
|
2446
|
+
],
|
|
2075
2447
|
"isESM": true,
|
|
2076
2448
|
"relativePath": [
|
|
2077
2449
|
"dist",
|
|
@@ -2141,6 +2513,31 @@
|
|
|
2141
2513
|
"hasDynamicHelp": false,
|
|
2142
2514
|
"multiple": false,
|
|
2143
2515
|
"type": "option"
|
|
2516
|
+
},
|
|
2517
|
+
"project-id": {
|
|
2518
|
+
"aliases": [
|
|
2519
|
+
"project",
|
|
2520
|
+
"projectId"
|
|
2521
|
+
],
|
|
2522
|
+
"description": "Sanity project ID used to scope Blueprint and Stack",
|
|
2523
|
+
"hidden": true,
|
|
2524
|
+
"name": "project-id",
|
|
2525
|
+
"hasDynamicHelp": false,
|
|
2526
|
+
"multiple": false,
|
|
2527
|
+
"type": "option"
|
|
2528
|
+
},
|
|
2529
|
+
"organization-id": {
|
|
2530
|
+
"aliases": [
|
|
2531
|
+
"organization",
|
|
2532
|
+
"organizationId",
|
|
2533
|
+
"org"
|
|
2534
|
+
],
|
|
2535
|
+
"description": "Sanity organization ID used to scope Blueprint and Stack",
|
|
2536
|
+
"hidden": true,
|
|
2537
|
+
"name": "organization-id",
|
|
2538
|
+
"hasDynamicHelp": false,
|
|
2539
|
+
"multiple": false,
|
|
2540
|
+
"type": "option"
|
|
2144
2541
|
}
|
|
2145
2542
|
},
|
|
2146
2543
|
"hasDynamicHelp": false,
|
|
@@ -2152,6 +2549,10 @@
|
|
|
2152
2549
|
"strict": true,
|
|
2153
2550
|
"summary": "List environment variables for a deployed function",
|
|
2154
2551
|
"enableJsonFlag": true,
|
|
2552
|
+
"needs": [
|
|
2553
|
+
"deployedStack",
|
|
2554
|
+
"blueprint"
|
|
2555
|
+
],
|
|
2155
2556
|
"isESM": true,
|
|
2156
2557
|
"relativePath": [
|
|
2157
2558
|
"dist",
|
|
@@ -2226,6 +2627,31 @@
|
|
|
2226
2627
|
"hasDynamicHelp": false,
|
|
2227
2628
|
"multiple": false,
|
|
2228
2629
|
"type": "option"
|
|
2630
|
+
},
|
|
2631
|
+
"project-id": {
|
|
2632
|
+
"aliases": [
|
|
2633
|
+
"project",
|
|
2634
|
+
"projectId"
|
|
2635
|
+
],
|
|
2636
|
+
"description": "Sanity project ID used to scope Blueprint and Stack",
|
|
2637
|
+
"hidden": true,
|
|
2638
|
+
"name": "project-id",
|
|
2639
|
+
"hasDynamicHelp": false,
|
|
2640
|
+
"multiple": false,
|
|
2641
|
+
"type": "option"
|
|
2642
|
+
},
|
|
2643
|
+
"organization-id": {
|
|
2644
|
+
"aliases": [
|
|
2645
|
+
"organization",
|
|
2646
|
+
"organizationId",
|
|
2647
|
+
"org"
|
|
2648
|
+
],
|
|
2649
|
+
"description": "Sanity organization ID used to scope Blueprint and Stack",
|
|
2650
|
+
"hidden": true,
|
|
2651
|
+
"name": "organization-id",
|
|
2652
|
+
"hasDynamicHelp": false,
|
|
2653
|
+
"multiple": false,
|
|
2654
|
+
"type": "option"
|
|
2229
2655
|
}
|
|
2230
2656
|
},
|
|
2231
2657
|
"hasDynamicHelp": false,
|
|
@@ -2237,6 +2663,10 @@
|
|
|
2237
2663
|
"strict": true,
|
|
2238
2664
|
"summary": "Remove an environment variable from a deployed function",
|
|
2239
2665
|
"enableJsonFlag": true,
|
|
2666
|
+
"needs": [
|
|
2667
|
+
"deployedStack",
|
|
2668
|
+
"blueprint"
|
|
2669
|
+
],
|
|
2240
2670
|
"isESM": true,
|
|
2241
2671
|
"relativePath": [
|
|
2242
2672
|
"dist",
|
|
@@ -2247,5 +2677,5 @@
|
|
|
2247
2677
|
]
|
|
2248
2678
|
}
|
|
2249
2679
|
},
|
|
2250
|
-
"version": "14.
|
|
2680
|
+
"version": "14.12.1"
|
|
2251
2681
|
}
|