@sanity/runtime-cli 17.3.0 → 17.3.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 +21 -21
- package/dist/server/static/vendor/vendor.bundle.js +10 -14
- package/dist/utils/display/resources-formatting.js +1 -1
- package/oclif.manifest.json +893 -893
- package/package.json +12 -12
package/oclif.manifest.json
CHANGED
|
@@ -1,15 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"commands": {
|
|
3
|
-
"
|
|
3
|
+
"blueprints:add": {
|
|
4
4
|
"aliases": [],
|
|
5
|
-
"args": {
|
|
6
|
-
|
|
5
|
+
"args": {
|
|
6
|
+
"type": {
|
|
7
|
+
"description": "Type of resource to add (only \"function\" is supported)",
|
|
8
|
+
"name": "type",
|
|
9
|
+
"options": [
|
|
10
|
+
"function"
|
|
11
|
+
],
|
|
12
|
+
"required": true
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"deprecationOptions": {
|
|
16
|
+
"to": "functions add"
|
|
17
|
+
},
|
|
18
|
+
"description": "This command is deprecated. Use \"functions add\" instead.\n\nEquivalent usage:\n $ <%= config.bin %> functions add\n $ <%= config.bin %> functions add --name my-function --type document-create",
|
|
7
19
|
"examples": [
|
|
8
|
-
"<%= config.bin %> <%= command.id %>",
|
|
9
|
-
"<%= config.bin %> <%= command.id %> --helpers",
|
|
10
|
-
"<%= config.bin %> <%= command.id %> --name my-function",
|
|
11
|
-
"<%= config.bin %> <%= command.id %> --name my-function --type document-create",
|
|
12
|
-
"<%= config.bin %> <%= command.id %> --name my-function --type document-create --type document-update --lang js"
|
|
20
|
+
"<%= config.bin %> <%= command.id %> function",
|
|
21
|
+
"<%= config.bin %> <%= command.id %> function --helpers",
|
|
22
|
+
"<%= config.bin %> <%= command.id %> function --name my-function",
|
|
23
|
+
"<%= config.bin %> <%= command.id %> function --name my-function --fn-type document-create",
|
|
24
|
+
"<%= config.bin %> <%= command.id %> function --name my-function --fn-type document-create --fn-type document-update --lang js"
|
|
13
25
|
],
|
|
14
26
|
"flags": {
|
|
15
27
|
"json": {
|
|
@@ -95,7 +107,7 @@
|
|
|
95
107
|
"aliases": [
|
|
96
108
|
"recipe"
|
|
97
109
|
],
|
|
98
|
-
"description": "Example to use for the
|
|
110
|
+
"description": "Example to use for the function resource. Discover examples at https://www.sanity.io/exchange/type=recipes/by=sanity",
|
|
99
111
|
"exclusive": [
|
|
100
112
|
"name",
|
|
101
113
|
"fn-type",
|
|
@@ -111,18 +123,21 @@
|
|
|
111
123
|
},
|
|
112
124
|
"name": {
|
|
113
125
|
"char": "n",
|
|
114
|
-
"description": "Name of the
|
|
126
|
+
"description": "Name of the resource to add",
|
|
115
127
|
"name": "name",
|
|
116
128
|
"hasDynamicHelp": false,
|
|
117
129
|
"multiple": false,
|
|
118
130
|
"type": "option"
|
|
119
131
|
},
|
|
120
|
-
"type": {
|
|
132
|
+
"fn-type": {
|
|
133
|
+
"aliases": [
|
|
134
|
+
"function-type"
|
|
135
|
+
],
|
|
121
136
|
"dependsOn": [
|
|
122
137
|
"name"
|
|
123
138
|
],
|
|
124
139
|
"description": "Document change event(s) that should trigger the function; you can specify multiple events by specifying this flag multiple times",
|
|
125
|
-
"name": "type",
|
|
140
|
+
"name": "fn-type",
|
|
126
141
|
"hasDynamicHelp": false,
|
|
127
142
|
"multiple": true,
|
|
128
143
|
"options": [
|
|
@@ -140,9 +155,11 @@
|
|
|
140
155
|
},
|
|
141
156
|
"language": {
|
|
142
157
|
"aliases": [
|
|
158
|
+
"function-language",
|
|
159
|
+
"fn-language",
|
|
143
160
|
"lang"
|
|
144
161
|
],
|
|
145
|
-
"description": "Language of the new
|
|
162
|
+
"description": "Language of the new function",
|
|
146
163
|
"name": "language",
|
|
147
164
|
"default": "ts",
|
|
148
165
|
"hasDynamicHelp": false,
|
|
@@ -165,15 +182,23 @@
|
|
|
165
182
|
"allowNo": false,
|
|
166
183
|
"type": "boolean"
|
|
167
184
|
},
|
|
168
|
-
"helpers": {
|
|
169
|
-
"
|
|
170
|
-
|
|
185
|
+
"fn-helpers": {
|
|
186
|
+
"aliases": [
|
|
187
|
+
"function-helpers",
|
|
188
|
+
"helpers"
|
|
189
|
+
],
|
|
190
|
+
"description": "Add helpers to the new function",
|
|
191
|
+
"name": "fn-helpers",
|
|
171
192
|
"allowNo": true,
|
|
172
193
|
"type": "boolean"
|
|
173
194
|
},
|
|
174
|
-
"installer": {
|
|
175
|
-
"
|
|
176
|
-
|
|
195
|
+
"fn-installer": {
|
|
196
|
+
"aliases": [
|
|
197
|
+
"function-installer",
|
|
198
|
+
"installer"
|
|
199
|
+
],
|
|
200
|
+
"description": "Which package manager to use when installing the @sanity/functions helpers",
|
|
201
|
+
"name": "fn-installer",
|
|
177
202
|
"hasDynamicHelp": false,
|
|
178
203
|
"multiple": false,
|
|
179
204
|
"options": [
|
|
@@ -197,12 +222,13 @@
|
|
|
197
222
|
},
|
|
198
223
|
"hasDynamicHelp": false,
|
|
199
224
|
"hiddenAliases": [],
|
|
200
|
-
"id": "
|
|
225
|
+
"id": "blueprints:add",
|
|
201
226
|
"pluginAlias": "@sanity/runtime-cli",
|
|
202
227
|
"pluginName": "@sanity/runtime-cli",
|
|
203
228
|
"pluginType": "core",
|
|
229
|
+
"state": "deprecated",
|
|
204
230
|
"strict": true,
|
|
205
|
-
"summary": "
|
|
231
|
+
"summary": "[deprecated] Use \"functions add\" instead",
|
|
206
232
|
"enableJsonFlag": true,
|
|
207
233
|
"needs": [
|
|
208
234
|
"blueprint"
|
|
@@ -211,19 +237,20 @@
|
|
|
211
237
|
"relativePath": [
|
|
212
238
|
"dist",
|
|
213
239
|
"commands",
|
|
214
|
-
"
|
|
240
|
+
"blueprints",
|
|
215
241
|
"add.js"
|
|
216
242
|
]
|
|
217
243
|
},
|
|
218
|
-
"
|
|
244
|
+
"blueprints:config": {
|
|
219
245
|
"aliases": [],
|
|
220
|
-
"args": {
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
246
|
+
"args": {},
|
|
247
|
+
"description": "Manages the local Blueprint configuration, which links your Blueprint to a Sanity project and Stack.\n\nWithout flags, displays the current configuration. Use --edit to interactively modify settings, or combine --edit with ID flags to update values directly (useful for scripting and automation).\n\nIf you need to switch your Blueprint to a different Stack, use --edit --stack.",
|
|
248
|
+
"examples": [
|
|
249
|
+
"<%= config.bin %> <%= command.id %>",
|
|
250
|
+
"<%= config.bin %> <%= command.id %> --edit",
|
|
251
|
+
"<%= config.bin %> <%= command.id %> --edit --project-id <projectId>",
|
|
252
|
+
"<%= config.bin %> <%= command.id %> --edit --project-id <projectId> --stack <name-or-id>"
|
|
253
|
+
],
|
|
227
254
|
"flags": {
|
|
228
255
|
"json": {
|
|
229
256
|
"description": "Format output as json",
|
|
@@ -266,8 +293,14 @@
|
|
|
266
293
|
"type": "boolean"
|
|
267
294
|
},
|
|
268
295
|
"stack": {
|
|
269
|
-
"
|
|
270
|
-
|
|
296
|
+
"aliases": [
|
|
297
|
+
"stack-id",
|
|
298
|
+
"stackId"
|
|
299
|
+
],
|
|
300
|
+
"dependsOn": [
|
|
301
|
+
"edit"
|
|
302
|
+
],
|
|
303
|
+
"description": "Stack name or ID to set in the configuration. Requires --edit flag",
|
|
271
304
|
"name": "stack",
|
|
272
305
|
"hasDynamicHelp": false,
|
|
273
306
|
"multiple": false,
|
|
@@ -278,11 +311,13 @@
|
|
|
278
311
|
"project",
|
|
279
312
|
"projectId"
|
|
280
313
|
],
|
|
314
|
+
"dependsOn": [
|
|
315
|
+
"edit"
|
|
316
|
+
],
|
|
281
317
|
"description": "Sanity project ID used to scope Blueprint and Stack",
|
|
282
318
|
"exclusive": [
|
|
283
319
|
"organization-id"
|
|
284
320
|
],
|
|
285
|
-
"hidden": true,
|
|
286
321
|
"name": "project-id",
|
|
287
322
|
"hasDynamicHelp": false,
|
|
288
323
|
"multiple": false,
|
|
@@ -294,70 +329,59 @@
|
|
|
294
329
|
"organizationId",
|
|
295
330
|
"org"
|
|
296
331
|
],
|
|
332
|
+
"dependsOn": [
|
|
333
|
+
"edit"
|
|
334
|
+
],
|
|
297
335
|
"description": "Sanity organization ID used to scope Blueprint and Stack",
|
|
298
336
|
"exclusive": [
|
|
299
337
|
"project-id"
|
|
300
338
|
],
|
|
301
|
-
"hidden": true,
|
|
302
339
|
"name": "organization-id",
|
|
303
340
|
"hasDynamicHelp": false,
|
|
304
341
|
"multiple": false,
|
|
305
342
|
"type": "option"
|
|
306
343
|
},
|
|
307
|
-
"
|
|
308
|
-
"
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
"
|
|
313
|
-
"hidden": true,
|
|
314
|
-
"name": "fn-installer",
|
|
315
|
-
"hasDynamicHelp": false,
|
|
316
|
-
"multiple": false,
|
|
317
|
-
"options": [
|
|
318
|
-
"npm",
|
|
319
|
-
"pnpm",
|
|
320
|
-
"yarn"
|
|
321
|
-
],
|
|
322
|
-
"type": "option"
|
|
323
|
-
},
|
|
324
|
-
"out-dir": {
|
|
325
|
-
"char": "o",
|
|
326
|
-
"description": "Output directory for zip files",
|
|
327
|
-
"name": "out-dir",
|
|
328
|
-
"hasDynamicHelp": false,
|
|
329
|
-
"multiple": false,
|
|
330
|
-
"type": "option"
|
|
344
|
+
"edit": {
|
|
345
|
+
"char": "e",
|
|
346
|
+
"description": "Modify the configuration interactively, or directly when combined with ID flags.",
|
|
347
|
+
"name": "edit",
|
|
348
|
+
"allowNo": false,
|
|
349
|
+
"type": "boolean"
|
|
331
350
|
}
|
|
332
351
|
},
|
|
333
352
|
"hasDynamicHelp": false,
|
|
334
|
-
"hidden": true,
|
|
335
353
|
"hiddenAliases": [],
|
|
336
|
-
"id": "
|
|
354
|
+
"id": "blueprints:config",
|
|
337
355
|
"pluginAlias": "@sanity/runtime-cli",
|
|
338
356
|
"pluginName": "@sanity/runtime-cli",
|
|
339
357
|
"pluginType": "core",
|
|
340
358
|
"strict": true,
|
|
341
|
-
"summary": "
|
|
359
|
+
"summary": "View or edit the local Blueprint configuration",
|
|
342
360
|
"enableJsonFlag": true,
|
|
343
361
|
"needs": [
|
|
362
|
+
"token",
|
|
344
363
|
"blueprint"
|
|
345
364
|
],
|
|
346
365
|
"isESM": true,
|
|
347
366
|
"relativePath": [
|
|
348
367
|
"dist",
|
|
349
368
|
"commands",
|
|
350
|
-
"
|
|
351
|
-
"
|
|
369
|
+
"blueprints",
|
|
370
|
+
"config.js"
|
|
352
371
|
]
|
|
353
372
|
},
|
|
354
|
-
"
|
|
373
|
+
"blueprints:deploy": {
|
|
355
374
|
"aliases": [],
|
|
356
375
|
"args": {},
|
|
357
|
-
"description": "
|
|
376
|
+
"description": "Applies your local Blueprint to the remote Stack, creating, updating, or removing resources as needed. This is the primary command for applying infrastructure changes.\n\nBefore deploying, run 'blueprints plan' to preview changes. After deployment, use 'blueprints info' to verify Stack status or 'blueprints logs' to monitor activity.\n\nUse --no-wait to queue the deployment and return immediately without waiting for completion.\n\nUse --fn-installer to force which package manager to use when deploying functions.\n\nSet SANITY_ASSET_TIMEOUT (seconds) to override the 60-second timeout for processing resource assets.\n\nExit codes: 0 deployed, 2 deployment failed, 75 deployment accepted but completion could not be confirmed (rerun 'blueprints info' to check).",
|
|
358
377
|
"examples": [
|
|
359
|
-
"<%= config.bin %> <%= command.id %>
|
|
360
|
-
"<%= config.bin %> <%= command.id %> --
|
|
378
|
+
"<%= config.bin %> <%= command.id %>",
|
|
379
|
+
"<%= config.bin %> <%= command.id %> --message \"Enable staging dataset\"",
|
|
380
|
+
"<%= config.bin %> <%= command.id %> --no-wait",
|
|
381
|
+
"<%= config.bin %> <%= command.id %> --fn-installer npm",
|
|
382
|
+
"<%= config.bin %> <%= command.id %> --stack <name-or-id>",
|
|
383
|
+
"<%= config.bin %> <%= command.id %> --organization-id <orgId> --stack <name-or-id>",
|
|
384
|
+
"<%= config.bin %> <%= command.id %> --new-stack-name <new-name>"
|
|
361
385
|
],
|
|
362
386
|
"flags": {
|
|
363
387
|
"json": {
|
|
@@ -402,7 +426,6 @@
|
|
|
402
426
|
},
|
|
403
427
|
"stack": {
|
|
404
428
|
"description": "Stack name or ID to use instead of the locally configured Stack",
|
|
405
|
-
"hidden": true,
|
|
406
429
|
"name": "stack",
|
|
407
430
|
"hasDynamicHelp": false,
|
|
408
431
|
"multiple": false,
|
|
@@ -417,7 +440,6 @@
|
|
|
417
440
|
"exclusive": [
|
|
418
441
|
"organization-id"
|
|
419
442
|
],
|
|
420
|
-
"hidden": true,
|
|
421
443
|
"name": "project-id",
|
|
422
444
|
"hasDynamicHelp": false,
|
|
423
445
|
"multiple": false,
|
|
@@ -433,35 +455,45 @@
|
|
|
433
455
|
"exclusive": [
|
|
434
456
|
"project-id"
|
|
435
457
|
],
|
|
436
|
-
"hidden": true,
|
|
437
458
|
"name": "organization-id",
|
|
438
459
|
"hasDynamicHelp": false,
|
|
439
460
|
"multiple": false,
|
|
440
461
|
"type": "option"
|
|
441
462
|
},
|
|
442
|
-
"
|
|
443
|
-
"char": "
|
|
444
|
-
"description": "
|
|
445
|
-
"name": "
|
|
446
|
-
"required": false,
|
|
463
|
+
"message": {
|
|
464
|
+
"char": "m",
|
|
465
|
+
"description": "Message describing the deployment (e.g. reason for change)",
|
|
466
|
+
"name": "message",
|
|
447
467
|
"hasDynamicHelp": false,
|
|
448
468
|
"multiple": false,
|
|
449
469
|
"type": "option"
|
|
450
470
|
},
|
|
451
|
-
"
|
|
452
|
-
"
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
471
|
+
"fn-installer": {
|
|
472
|
+
"aliases": [
|
|
473
|
+
"function-installer",
|
|
474
|
+
"installer"
|
|
475
|
+
],
|
|
476
|
+
"description": "Which package manager to use when installing Function dependencies",
|
|
477
|
+
"hidden": true,
|
|
478
|
+
"name": "fn-installer",
|
|
456
479
|
"hasDynamicHelp": false,
|
|
457
480
|
"multiple": false,
|
|
481
|
+
"options": [
|
|
482
|
+
"npm",
|
|
483
|
+
"pnpm",
|
|
484
|
+
"yarn"
|
|
485
|
+
],
|
|
458
486
|
"type": "option"
|
|
459
487
|
},
|
|
460
|
-
"
|
|
461
|
-
"
|
|
462
|
-
"
|
|
463
|
-
"
|
|
464
|
-
"
|
|
488
|
+
"no-wait": {
|
|
489
|
+
"description": "Do not wait for Stack deployment to complete",
|
|
490
|
+
"name": "no-wait",
|
|
491
|
+
"allowNo": false,
|
|
492
|
+
"type": "boolean"
|
|
493
|
+
},
|
|
494
|
+
"new-stack-name": {
|
|
495
|
+
"description": "Set a new name for the Stack",
|
|
496
|
+
"name": "new-stack-name",
|
|
465
497
|
"hasDynamicHelp": false,
|
|
466
498
|
"multiple": false,
|
|
467
499
|
"type": "option"
|
|
@@ -469,39 +501,32 @@
|
|
|
469
501
|
},
|
|
470
502
|
"hasDynamicHelp": false,
|
|
471
503
|
"hiddenAliases": [],
|
|
472
|
-
"id": "
|
|
504
|
+
"id": "blueprints:deploy",
|
|
473
505
|
"pluginAlias": "@sanity/runtime-cli",
|
|
474
506
|
"pluginName": "@sanity/runtime-cli",
|
|
475
507
|
"pluginType": "core",
|
|
476
508
|
"strict": true,
|
|
477
|
-
"summary": "
|
|
509
|
+
"summary": "Deploy the local Blueprint to the remote Stack",
|
|
478
510
|
"enableJsonFlag": true,
|
|
479
511
|
"needs": [
|
|
512
|
+
"deployedStack",
|
|
480
513
|
"blueprint"
|
|
481
514
|
],
|
|
482
515
|
"isESM": true,
|
|
483
516
|
"relativePath": [
|
|
484
517
|
"dist",
|
|
485
518
|
"commands",
|
|
486
|
-
"
|
|
487
|
-
"
|
|
519
|
+
"blueprints",
|
|
520
|
+
"deploy.js"
|
|
488
521
|
]
|
|
489
522
|
},
|
|
490
|
-
"
|
|
523
|
+
"blueprints:destroy": {
|
|
491
524
|
"aliases": [],
|
|
492
|
-
"args": {
|
|
493
|
-
|
|
494
|
-
"description": "The name of the Sanity Function",
|
|
495
|
-
"name": "name",
|
|
496
|
-
"required": false
|
|
497
|
-
}
|
|
498
|
-
},
|
|
499
|
-
"description": "Fetches execution logs from a deployed function, useful for debugging production issues or monitoring activity.\n\nUse --watch (-w) to stream logs in real-time. Use --delete to clear all logs for a function (requires confirmation unless --force is specified).",
|
|
525
|
+
"args": {},
|
|
526
|
+
"description": "Permanently removes the remote Stack and all its provisioned resources. Your Blueprint manifest and resource files remain intact; \"stackId\" is unset in your local config.\n\nThis is a destructive operation. You will be prompted to confirm unless --force is specified.\n\nUse this to clean up test environments or decommission a Stack you no longer need.\n\nExit codes: 0 destroyed, 2 destruction failed, 75 destruction accepted but completion could not be confirmed (rerun 'blueprints info' to check).",
|
|
500
527
|
"examples": [
|
|
501
|
-
"<%= config.bin %> <%= command.id %>
|
|
502
|
-
"<%= config.bin %> <%= command.id %> <name> --
|
|
503
|
-
"<%= config.bin %> <%= command.id %> <name> --limit 100",
|
|
504
|
-
"<%= config.bin %> <%= command.id %> <name> --delete"
|
|
528
|
+
"<%= config.bin %> <%= command.id %>",
|
|
529
|
+
"<%= config.bin %> <%= command.id %> --stack <name-or-id> --project-id <projectId> --force --no-wait"
|
|
505
530
|
],
|
|
506
531
|
"flags": {
|
|
507
532
|
"json": {
|
|
@@ -545,7 +570,11 @@
|
|
|
545
570
|
"type": "boolean"
|
|
546
571
|
},
|
|
547
572
|
"stack": {
|
|
548
|
-
"
|
|
573
|
+
"aliases": [
|
|
574
|
+
"stack-id",
|
|
575
|
+
"stackId"
|
|
576
|
+
],
|
|
577
|
+
"description": "Stack name or ID to destroy (defaults to the locally configured Stack)",
|
|
549
578
|
"name": "stack",
|
|
550
579
|
"hasDynamicHelp": false,
|
|
551
580
|
"multiple": false,
|
|
@@ -556,11 +585,14 @@
|
|
|
556
585
|
"project",
|
|
557
586
|
"projectId"
|
|
558
587
|
],
|
|
588
|
+
"dependsOn": [
|
|
589
|
+
"stack",
|
|
590
|
+
"force"
|
|
591
|
+
],
|
|
559
592
|
"description": "Sanity project ID used to scope Blueprint and Stack",
|
|
560
593
|
"exclusive": [
|
|
561
594
|
"organization-id"
|
|
562
595
|
],
|
|
563
|
-
"hidden": true,
|
|
564
596
|
"name": "project-id",
|
|
565
597
|
"hasDynamicHelp": false,
|
|
566
598
|
"multiple": false,
|
|
@@ -572,104 +604,62 @@
|
|
|
572
604
|
"organizationId",
|
|
573
605
|
"org"
|
|
574
606
|
],
|
|
607
|
+
"dependsOn": [
|
|
608
|
+
"stack",
|
|
609
|
+
"force"
|
|
610
|
+
],
|
|
575
611
|
"description": "Sanity organization ID used to scope Blueprint and Stack",
|
|
576
612
|
"exclusive": [
|
|
577
613
|
"project-id"
|
|
578
614
|
],
|
|
579
|
-
"hidden": true,
|
|
580
615
|
"name": "organization-id",
|
|
581
616
|
"hasDynamicHelp": false,
|
|
582
617
|
"multiple": false,
|
|
583
618
|
"type": "option"
|
|
584
619
|
},
|
|
585
|
-
"limit": {
|
|
586
|
-
"char": "l",
|
|
587
|
-
"description": "Total number of log entries to retrieve",
|
|
588
|
-
"name": "limit",
|
|
589
|
-
"required": false,
|
|
590
|
-
"default": 50,
|
|
591
|
-
"hasDynamicHelp": false,
|
|
592
|
-
"multiple": false,
|
|
593
|
-
"type": "option"
|
|
594
|
-
},
|
|
595
|
-
"utc": {
|
|
596
|
-
"char": "u",
|
|
597
|
-
"description": "Show dates in UTC time zone",
|
|
598
|
-
"name": "utc",
|
|
599
|
-
"required": false,
|
|
600
|
-
"allowNo": false,
|
|
601
|
-
"type": "boolean"
|
|
602
|
-
},
|
|
603
|
-
"delete": {
|
|
604
|
-
"char": "d",
|
|
605
|
-
"description": "Delete all logs for the function",
|
|
606
|
-
"exclusive": [
|
|
607
|
-
"limit",
|
|
608
|
-
"json"
|
|
609
|
-
],
|
|
610
|
-
"name": "delete",
|
|
611
|
-
"required": false,
|
|
612
|
-
"allowNo": false,
|
|
613
|
-
"type": "boolean"
|
|
614
|
-
},
|
|
615
620
|
"force": {
|
|
616
|
-
"
|
|
617
|
-
|
|
618
|
-
"delete"
|
|
621
|
+
"aliases": [
|
|
622
|
+
"f"
|
|
619
623
|
],
|
|
620
|
-
"description": "
|
|
624
|
+
"description": "Force Stack destruction (skip confirmation)",
|
|
621
625
|
"name": "force",
|
|
622
|
-
"required": false,
|
|
623
626
|
"allowNo": false,
|
|
624
627
|
"type": "boolean"
|
|
625
628
|
},
|
|
626
|
-
"
|
|
627
|
-
"
|
|
628
|
-
|
|
629
|
-
],
|
|
630
|
-
"char": "w",
|
|
631
|
-
"description": "Watch for new logs (streaming mode)",
|
|
632
|
-
"name": "watch",
|
|
629
|
+
"no-wait": {
|
|
630
|
+
"description": "Do not wait for Stack destruction to complete",
|
|
631
|
+
"name": "no-wait",
|
|
633
632
|
"allowNo": false,
|
|
634
633
|
"type": "boolean"
|
|
635
634
|
}
|
|
636
635
|
},
|
|
637
636
|
"hasDynamicHelp": false,
|
|
638
637
|
"hiddenAliases": [],
|
|
639
|
-
"id": "
|
|
638
|
+
"id": "blueprints:destroy",
|
|
640
639
|
"pluginAlias": "@sanity/runtime-cli",
|
|
641
640
|
"pluginName": "@sanity/runtime-cli",
|
|
642
641
|
"pluginType": "core",
|
|
643
642
|
"strict": true,
|
|
644
|
-
"summary": "
|
|
643
|
+
"summary": "Destroy a remote Stack deployment and its resources",
|
|
645
644
|
"enableJsonFlag": true,
|
|
646
645
|
"needs": [
|
|
647
|
-
"
|
|
648
|
-
"blueprint"
|
|
646
|
+
"scope"
|
|
649
647
|
],
|
|
650
648
|
"isESM": true,
|
|
651
649
|
"relativePath": [
|
|
652
650
|
"dist",
|
|
653
651
|
"commands",
|
|
654
|
-
"
|
|
655
|
-
"
|
|
652
|
+
"blueprints",
|
|
653
|
+
"destroy.js"
|
|
656
654
|
]
|
|
657
655
|
},
|
|
658
|
-
"
|
|
656
|
+
"blueprints:doctor": {
|
|
659
657
|
"aliases": [],
|
|
660
|
-
"args": {
|
|
661
|
-
|
|
662
|
-
"description": "The name of the Sanity Function",
|
|
663
|
-
"name": "name",
|
|
664
|
-
"required": false
|
|
665
|
-
}
|
|
666
|
-
},
|
|
667
|
-
"description": "Executes a function locally with the provided payload, simulating how it would run when deployed. Use this to test your function logic before deploying.\n\nProvide test data via --data (inline JSON), --file (JSON file), or --document-id (fetch from Sanity). For update events, use the before/after flag pairs to simulate document changes.",
|
|
658
|
+
"args": {},
|
|
659
|
+
"description": "Analyzes your local Blueprint and remote Stack configuration for common issues, such as missing authentication, invalid project references, or misconfigured resources.\n\nRun this command when encountering errors with other Blueprint commands. Use --fix to interactively resolve detected issues.\n\nSupports --json for programmatic consumption of diagnostic results.",
|
|
668
660
|
"examples": [
|
|
669
|
-
"<%= config.bin %> <%= command.id %>
|
|
670
|
-
"<%= config.bin %> <%= command.id %>
|
|
671
|
-
"<%= config.bin %> <%= command.id %> <name> --data '{ \"id\": 1 }' --timeout 60",
|
|
672
|
-
"<%= config.bin %> <%= command.id %> <name> --event update --data-before '{ \"title\": \"before\" }' --data-after '{ \"title\": \"after\" }'"
|
|
661
|
+
"<%= config.bin %> <%= command.id %>",
|
|
662
|
+
"<%= config.bin %> <%= command.id %> --fix"
|
|
673
663
|
],
|
|
674
664
|
"flags": {
|
|
675
665
|
"json": {
|
|
@@ -685,7 +675,6 @@
|
|
|
685
675
|
"char": "p",
|
|
686
676
|
"description": "Path to a Blueprint file or directory containing one",
|
|
687
677
|
"env": "SANITY_BLUEPRINT_PATH",
|
|
688
|
-
"hidden": true,
|
|
689
678
|
"name": "path",
|
|
690
679
|
"hasDynamicHelp": false,
|
|
691
680
|
"multiple": false,
|
|
@@ -712,291 +701,39 @@
|
|
|
712
701
|
"allowNo": false,
|
|
713
702
|
"type": "boolean"
|
|
714
703
|
},
|
|
715
|
-
"
|
|
716
|
-
"description": "
|
|
717
|
-
"
|
|
718
|
-
"name": "stack",
|
|
719
|
-
"hasDynamicHelp": false,
|
|
720
|
-
"multiple": false,
|
|
721
|
-
"type": "option"
|
|
722
|
-
},
|
|
723
|
-
"project-id": {
|
|
724
|
-
"aliases": [
|
|
725
|
-
"project",
|
|
726
|
-
"projectId"
|
|
727
|
-
],
|
|
728
|
-
"description": "Sanity project ID used to scope Blueprint and Stack",
|
|
729
|
-
"exclusive": [
|
|
730
|
-
"organization-id"
|
|
731
|
-
],
|
|
732
|
-
"name": "project-id",
|
|
733
|
-
"hasDynamicHelp": false,
|
|
734
|
-
"multiple": false,
|
|
735
|
-
"type": "option"
|
|
736
|
-
},
|
|
737
|
-
"organization-id": {
|
|
738
|
-
"aliases": [
|
|
739
|
-
"organization",
|
|
740
|
-
"organizationId",
|
|
741
|
-
"org"
|
|
742
|
-
],
|
|
743
|
-
"description": "Sanity organization ID used to scope Blueprint and Stack",
|
|
744
|
-
"exclusive": [
|
|
745
|
-
"project-id"
|
|
746
|
-
],
|
|
747
|
-
"name": "organization-id",
|
|
748
|
-
"hasDynamicHelp": false,
|
|
749
|
-
"multiple": false,
|
|
750
|
-
"type": "option"
|
|
751
|
-
},
|
|
752
|
-
"data": {
|
|
753
|
-
"char": "d",
|
|
754
|
-
"description": "Data to send to the function",
|
|
755
|
-
"exclusive": [
|
|
756
|
-
"file",
|
|
757
|
-
"document-id"
|
|
758
|
-
],
|
|
759
|
-
"name": "data",
|
|
760
|
-
"required": false,
|
|
761
|
-
"hasDynamicHelp": false,
|
|
762
|
-
"multiple": false,
|
|
763
|
-
"type": "option"
|
|
764
|
-
},
|
|
765
|
-
"data-before": {
|
|
766
|
-
"description": "Original document",
|
|
767
|
-
"exclusive": [
|
|
768
|
-
"data",
|
|
769
|
-
"file",
|
|
770
|
-
"document-id",
|
|
771
|
-
"file-before",
|
|
772
|
-
"file-after",
|
|
773
|
-
"document-id-before",
|
|
774
|
-
"document-id-after"
|
|
775
|
-
],
|
|
776
|
-
"name": "data-before",
|
|
777
|
-
"required": false,
|
|
778
|
-
"hasDynamicHelp": false,
|
|
779
|
-
"multiple": false,
|
|
780
|
-
"type": "option"
|
|
781
|
-
},
|
|
782
|
-
"data-after": {
|
|
783
|
-
"description": "Current document",
|
|
784
|
-
"exclusive": [
|
|
785
|
-
"data",
|
|
786
|
-
"file",
|
|
787
|
-
"document-id",
|
|
788
|
-
"file-before",
|
|
789
|
-
"file-after",
|
|
790
|
-
"document-id-before",
|
|
791
|
-
"document-id-after"
|
|
792
|
-
],
|
|
793
|
-
"name": "data-after",
|
|
794
|
-
"required": false,
|
|
795
|
-
"hasDynamicHelp": false,
|
|
796
|
-
"multiple": false,
|
|
797
|
-
"type": "option"
|
|
798
|
-
},
|
|
799
|
-
"event": {
|
|
800
|
-
"char": "e",
|
|
801
|
-
"description": "Type of event (create, update, delete)",
|
|
802
|
-
"name": "event",
|
|
803
|
-
"required": false,
|
|
804
|
-
"hasDynamicHelp": false,
|
|
805
|
-
"multiple": false,
|
|
806
|
-
"options": [
|
|
807
|
-
"create",
|
|
808
|
-
"update",
|
|
809
|
-
"delete"
|
|
810
|
-
],
|
|
811
|
-
"type": "option"
|
|
812
|
-
},
|
|
813
|
-
"file": {
|
|
814
|
-
"char": "f",
|
|
815
|
-
"description": "Read data from file and send to the function",
|
|
816
|
-
"exclusive": [
|
|
817
|
-
"data",
|
|
818
|
-
"document-id"
|
|
819
|
-
],
|
|
820
|
-
"name": "file",
|
|
821
|
-
"required": false,
|
|
822
|
-
"hasDynamicHelp": false,
|
|
823
|
-
"multiple": false,
|
|
824
|
-
"type": "option"
|
|
825
|
-
},
|
|
826
|
-
"file-before": {
|
|
827
|
-
"description": "Original document",
|
|
828
|
-
"exclusive": [
|
|
829
|
-
"data",
|
|
830
|
-
"file",
|
|
831
|
-
"document-id",
|
|
832
|
-
"data-before",
|
|
833
|
-
"data-after",
|
|
834
|
-
"document-id-before",
|
|
835
|
-
"document-id-after"
|
|
836
|
-
],
|
|
837
|
-
"name": "file-before",
|
|
838
|
-
"required": false,
|
|
839
|
-
"hasDynamicHelp": false,
|
|
840
|
-
"multiple": false,
|
|
841
|
-
"type": "option"
|
|
842
|
-
},
|
|
843
|
-
"file-after": {
|
|
844
|
-
"description": "Current document",
|
|
845
|
-
"exclusive": [
|
|
846
|
-
"data",
|
|
847
|
-
"file",
|
|
848
|
-
"document-id",
|
|
849
|
-
"data-before",
|
|
850
|
-
"data-after",
|
|
851
|
-
"document-id-before",
|
|
852
|
-
"document-id-after"
|
|
853
|
-
],
|
|
854
|
-
"name": "file-after",
|
|
855
|
-
"required": false,
|
|
856
|
-
"hasDynamicHelp": false,
|
|
857
|
-
"multiple": false,
|
|
858
|
-
"type": "option"
|
|
859
|
-
},
|
|
860
|
-
"timeout": {
|
|
861
|
-
"char": "t",
|
|
862
|
-
"description": "Execution timeout value in seconds",
|
|
863
|
-
"name": "timeout",
|
|
864
|
-
"required": false,
|
|
865
|
-
"hasDynamicHelp": false,
|
|
866
|
-
"multiple": false,
|
|
867
|
-
"type": "option"
|
|
868
|
-
},
|
|
869
|
-
"api": {
|
|
870
|
-
"char": "a",
|
|
871
|
-
"description": "Sanity API Version to use",
|
|
872
|
-
"name": "api",
|
|
873
|
-
"required": false,
|
|
874
|
-
"hasDynamicHelp": false,
|
|
875
|
-
"multiple": false,
|
|
876
|
-
"type": "option"
|
|
877
|
-
},
|
|
878
|
-
"dataset": {
|
|
879
|
-
"description": "The Sanity dataset to use",
|
|
880
|
-
"name": "dataset",
|
|
881
|
-
"required": false,
|
|
882
|
-
"hasDynamicHelp": false,
|
|
883
|
-
"multiple": false,
|
|
884
|
-
"type": "option"
|
|
885
|
-
},
|
|
886
|
-
"document-id": {
|
|
887
|
-
"aliases": [
|
|
888
|
-
"doc",
|
|
889
|
-
"documentId"
|
|
890
|
-
],
|
|
891
|
-
"description": "Document to fetch and send to function",
|
|
892
|
-
"exclusive": [
|
|
893
|
-
"data",
|
|
894
|
-
"file"
|
|
895
|
-
],
|
|
896
|
-
"name": "document-id",
|
|
897
|
-
"required": false,
|
|
898
|
-
"hasDynamicHelp": false,
|
|
899
|
-
"multiple": false,
|
|
900
|
-
"type": "option"
|
|
901
|
-
},
|
|
902
|
-
"document-id-before": {
|
|
903
|
-
"description": "Original document",
|
|
904
|
-
"exclusive": [
|
|
905
|
-
"data",
|
|
906
|
-
"file",
|
|
907
|
-
"document-id",
|
|
908
|
-
"data-before",
|
|
909
|
-
"data-after",
|
|
910
|
-
"file-before",
|
|
911
|
-
"file-after"
|
|
912
|
-
],
|
|
913
|
-
"name": "document-id-before",
|
|
914
|
-
"required": false,
|
|
915
|
-
"hasDynamicHelp": false,
|
|
916
|
-
"multiple": false,
|
|
917
|
-
"type": "option"
|
|
918
|
-
},
|
|
919
|
-
"document-id-after": {
|
|
920
|
-
"description": "Current document",
|
|
921
|
-
"exclusive": [
|
|
922
|
-
"data",
|
|
923
|
-
"file",
|
|
924
|
-
"document-id",
|
|
925
|
-
"data-before",
|
|
926
|
-
"data-after",
|
|
927
|
-
"file-before",
|
|
928
|
-
"file-after"
|
|
929
|
-
],
|
|
930
|
-
"name": "document-id-after",
|
|
931
|
-
"required": false,
|
|
932
|
-
"hasDynamicHelp": false,
|
|
933
|
-
"multiple": false,
|
|
934
|
-
"type": "option"
|
|
935
|
-
},
|
|
936
|
-
"with-user-token": {
|
|
937
|
-
"description": "Prime access token from CLI config",
|
|
938
|
-
"name": "with-user-token",
|
|
704
|
+
"fix": {
|
|
705
|
+
"description": "Interactively fix configuration issues",
|
|
706
|
+
"name": "fix",
|
|
939
707
|
"allowNo": false,
|
|
940
708
|
"type": "boolean"
|
|
941
|
-
},
|
|
942
|
-
"media-library-id": {
|
|
943
|
-
"aliases": [
|
|
944
|
-
"media"
|
|
945
|
-
],
|
|
946
|
-
"description": "Sanity Media Library ID to use",
|
|
947
|
-
"exclusive": [
|
|
948
|
-
"project-id",
|
|
949
|
-
"dataset"
|
|
950
|
-
],
|
|
951
|
-
"name": "media-library-id",
|
|
952
|
-
"required": false,
|
|
953
|
-
"hasDynamicHelp": false,
|
|
954
|
-
"multiple": false,
|
|
955
|
-
"type": "option"
|
|
956
709
|
}
|
|
957
710
|
},
|
|
958
711
|
"hasDynamicHelp": false,
|
|
959
712
|
"hiddenAliases": [],
|
|
960
|
-
"id": "
|
|
713
|
+
"id": "blueprints:doctor",
|
|
961
714
|
"pluginAlias": "@sanity/runtime-cli",
|
|
962
715
|
"pluginName": "@sanity/runtime-cli",
|
|
963
716
|
"pluginType": "core",
|
|
964
717
|
"strict": true,
|
|
965
|
-
"summary": "
|
|
718
|
+
"summary": "Diagnose potential issues with local Blueprint and remote Stack configuration",
|
|
966
719
|
"enableJsonFlag": true,
|
|
967
|
-
"needs": [
|
|
968
|
-
"blueprint"
|
|
969
|
-
],
|
|
970
720
|
"isESM": true,
|
|
971
721
|
"relativePath": [
|
|
972
722
|
"dist",
|
|
973
723
|
"commands",
|
|
974
|
-
"
|
|
975
|
-
"
|
|
724
|
+
"blueprints",
|
|
725
|
+
"doctor.js"
|
|
976
726
|
]
|
|
977
727
|
},
|
|
978
|
-
"blueprints:
|
|
728
|
+
"blueprints:info": {
|
|
979
729
|
"aliases": [],
|
|
980
|
-
"args": {
|
|
981
|
-
|
|
982
|
-
"description": "Type of resource to add (only \"function\" is supported)",
|
|
983
|
-
"name": "type",
|
|
984
|
-
"options": [
|
|
985
|
-
"function"
|
|
986
|
-
],
|
|
987
|
-
"required": true
|
|
988
|
-
}
|
|
989
|
-
},
|
|
990
|
-
"deprecationOptions": {
|
|
991
|
-
"to": "functions add"
|
|
992
|
-
},
|
|
993
|
-
"description": "This command is deprecated. Use \"functions add\" instead.\n\nEquivalent usage:\n $ <%= config.bin %> functions add\n $ <%= config.bin %> functions add --name my-function --type document-create",
|
|
730
|
+
"args": {},
|
|
731
|
+
"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.",
|
|
994
732
|
"examples": [
|
|
995
|
-
"<%= config.bin %> <%= command.id %>
|
|
996
|
-
"<%= config.bin %> <%= command.id %>
|
|
997
|
-
"<%= config.bin %> <%= command.id %>
|
|
998
|
-
"<%= config.bin %> <%= command.id %>
|
|
999
|
-
"<%= config.bin %> <%= command.id %> function --name my-function --fn-type document-create --fn-type document-update --lang js"
|
|
733
|
+
"<%= config.bin %> <%= command.id %>",
|
|
734
|
+
"<%= config.bin %> <%= command.id %> --stack <name-or-id>",
|
|
735
|
+
"<%= config.bin %> <%= command.id %> --project-id <id> --stack <name-or-id>",
|
|
736
|
+
"<%= config.bin %> <%= command.id %> --organization-id <orgId> --stack <name-or-id>"
|
|
1000
737
|
],
|
|
1001
738
|
"flags": {
|
|
1002
739
|
"json": {
|
|
@@ -1040,8 +777,10 @@
|
|
|
1040
777
|
"type": "boolean"
|
|
1041
778
|
},
|
|
1042
779
|
"stack": {
|
|
1043
|
-
"
|
|
1044
|
-
|
|
780
|
+
"aliases": [
|
|
781
|
+
"id"
|
|
782
|
+
],
|
|
783
|
+
"description": "Stack name or ID",
|
|
1045
784
|
"name": "stack",
|
|
1046
785
|
"hasDynamicHelp": false,
|
|
1047
786
|
"multiple": false,
|
|
@@ -1056,7 +795,6 @@
|
|
|
1056
795
|
"exclusive": [
|
|
1057
796
|
"organization-id"
|
|
1058
797
|
],
|
|
1059
|
-
"hidden": true,
|
|
1060
798
|
"name": "project-id",
|
|
1061
799
|
"hasDynamicHelp": false,
|
|
1062
800
|
"multiple": false,
|
|
@@ -1072,159 +810,52 @@
|
|
|
1072
810
|
"exclusive": [
|
|
1073
811
|
"project-id"
|
|
1074
812
|
],
|
|
1075
|
-
"hidden": true,
|
|
1076
813
|
"name": "organization-id",
|
|
1077
814
|
"hasDynamicHelp": false,
|
|
1078
815
|
"multiple": false,
|
|
1079
816
|
"type": "option"
|
|
1080
|
-
},
|
|
1081
|
-
"example": {
|
|
1082
|
-
"aliases": [
|
|
1083
|
-
"recipe"
|
|
1084
|
-
],
|
|
1085
|
-
"description": "Example to use for the function resource. Discover examples at https://www.sanity.io/exchange/type=recipes/by=sanity",
|
|
1086
|
-
"exclusive": [
|
|
1087
|
-
"name",
|
|
1088
|
-
"fn-type",
|
|
1089
|
-
"language",
|
|
1090
|
-
"javascript",
|
|
1091
|
-
"fn-helpers",
|
|
1092
|
-
"fn-installer"
|
|
1093
|
-
],
|
|
1094
|
-
"name": "example",
|
|
1095
|
-
"hasDynamicHelp": false,
|
|
1096
|
-
"multiple": false,
|
|
1097
|
-
"type": "option"
|
|
1098
|
-
},
|
|
1099
|
-
"name": {
|
|
1100
|
-
"char": "n",
|
|
1101
|
-
"description": "Name of the resource to add",
|
|
1102
|
-
"name": "name",
|
|
1103
|
-
"hasDynamicHelp": false,
|
|
1104
|
-
"multiple": false,
|
|
1105
|
-
"type": "option"
|
|
1106
|
-
},
|
|
1107
|
-
"fn-type": {
|
|
1108
|
-
"aliases": [
|
|
1109
|
-
"function-type"
|
|
1110
|
-
],
|
|
1111
|
-
"dependsOn": [
|
|
1112
|
-
"name"
|
|
1113
|
-
],
|
|
1114
|
-
"description": "Document change event(s) that should trigger the function; you can specify multiple events by specifying this flag multiple times",
|
|
1115
|
-
"name": "fn-type",
|
|
1116
|
-
"hasDynamicHelp": false,
|
|
1117
|
-
"multiple": true,
|
|
1118
|
-
"options": [
|
|
1119
|
-
"document-publish",
|
|
1120
|
-
"document-create",
|
|
1121
|
-
"document-delete",
|
|
1122
|
-
"document-update",
|
|
1123
|
-
"media-library-asset-create",
|
|
1124
|
-
"media-library-asset-delete",
|
|
1125
|
-
"media-library-asset-update",
|
|
1126
|
-
"scheduled-function",
|
|
1127
|
-
"sync-tag-invalidate"
|
|
1128
|
-
],
|
|
1129
|
-
"type": "option"
|
|
1130
|
-
},
|
|
1131
|
-
"language": {
|
|
1132
|
-
"aliases": [
|
|
1133
|
-
"function-language",
|
|
1134
|
-
"fn-language",
|
|
1135
|
-
"lang"
|
|
1136
|
-
],
|
|
1137
|
-
"description": "Language of the new function",
|
|
1138
|
-
"name": "language",
|
|
1139
|
-
"default": "ts",
|
|
1140
|
-
"hasDynamicHelp": false,
|
|
1141
|
-
"multiple": false,
|
|
1142
|
-
"options": [
|
|
1143
|
-
"ts",
|
|
1144
|
-
"js"
|
|
1145
|
-
],
|
|
1146
|
-
"type": "option"
|
|
1147
|
-
},
|
|
1148
|
-
"javascript": {
|
|
1149
|
-
"aliases": [
|
|
1150
|
-
"js"
|
|
1151
|
-
],
|
|
1152
|
-
"description": "Use JavaScript instead of TypeScript",
|
|
1153
|
-
"exclusive": [
|
|
1154
|
-
"language"
|
|
1155
|
-
],
|
|
1156
|
-
"name": "javascript",
|
|
1157
|
-
"allowNo": false,
|
|
1158
|
-
"type": "boolean"
|
|
1159
|
-
},
|
|
1160
|
-
"fn-helpers": {
|
|
1161
|
-
"aliases": [
|
|
1162
|
-
"function-helpers",
|
|
1163
|
-
"helpers"
|
|
1164
|
-
],
|
|
1165
|
-
"description": "Add helpers to the new function",
|
|
1166
|
-
"name": "fn-helpers",
|
|
1167
|
-
"allowNo": true,
|
|
1168
|
-
"type": "boolean"
|
|
1169
|
-
},
|
|
1170
|
-
"fn-installer": {
|
|
1171
|
-
"aliases": [
|
|
1172
|
-
"function-installer",
|
|
1173
|
-
"installer"
|
|
1174
|
-
],
|
|
1175
|
-
"description": "Which package manager to use when installing the @sanity/functions helpers",
|
|
1176
|
-
"name": "fn-installer",
|
|
1177
|
-
"hasDynamicHelp": false,
|
|
1178
|
-
"multiple": false,
|
|
1179
|
-
"options": [
|
|
1180
|
-
"skip",
|
|
1181
|
-
"npm",
|
|
1182
|
-
"pnpm",
|
|
1183
|
-
"yarn"
|
|
1184
|
-
],
|
|
1185
|
-
"type": "option"
|
|
1186
|
-
},
|
|
1187
|
-
"install": {
|
|
1188
|
-
"char": "i",
|
|
1189
|
-
"description": "Shortcut for --fn-installer npm",
|
|
1190
|
-
"exclusive": [
|
|
1191
|
-
"fn-installer"
|
|
1192
|
-
],
|
|
1193
|
-
"name": "install",
|
|
1194
|
-
"allowNo": false,
|
|
1195
|
-
"type": "boolean"
|
|
1196
817
|
}
|
|
1197
818
|
},
|
|
1198
819
|
"hasDynamicHelp": false,
|
|
1199
820
|
"hiddenAliases": [],
|
|
1200
|
-
"id": "blueprints:
|
|
821
|
+
"id": "blueprints:info",
|
|
1201
822
|
"pluginAlias": "@sanity/runtime-cli",
|
|
1202
823
|
"pluginName": "@sanity/runtime-cli",
|
|
1203
824
|
"pluginType": "core",
|
|
1204
|
-
"state": "deprecated",
|
|
1205
825
|
"strict": true,
|
|
1206
|
-
"summary": "
|
|
826
|
+
"summary": "Display the status and resources of the remote Stack deployment",
|
|
1207
827
|
"enableJsonFlag": true,
|
|
1208
828
|
"needs": [
|
|
1209
|
-
"
|
|
829
|
+
"deployedStack"
|
|
1210
830
|
],
|
|
1211
831
|
"isESM": true,
|
|
1212
832
|
"relativePath": [
|
|
1213
833
|
"dist",
|
|
1214
834
|
"commands",
|
|
1215
835
|
"blueprints",
|
|
1216
|
-
"
|
|
836
|
+
"info.js"
|
|
1217
837
|
]
|
|
1218
838
|
},
|
|
1219
|
-
"blueprints:
|
|
839
|
+
"blueprints:init": {
|
|
1220
840
|
"aliases": [],
|
|
1221
|
-
"args": {
|
|
1222
|
-
|
|
841
|
+
"args": {
|
|
842
|
+
"dir": {
|
|
843
|
+
"description": "Directory to create the local Blueprint in (defaults to the current directory)",
|
|
844
|
+
"name": "dir"
|
|
845
|
+
}
|
|
846
|
+
},
|
|
847
|
+
"description": "A Blueprint is your local infrastructure-as-code configuration that defines Sanity resources (datasets, functions, etc.). A Stack is the remote deployment target where your Blueprint is applied.\n[NOTE: Currently, accounts are limited to three (3) Stacks per project scope.]\n\nThis is typically the first command you run in a new project. It creates a local Blueprint manifest file (sanity.blueprint.ts, .js, or .json) and provisions a new remote Stack.\nAdditionally, a Blueprint configuration file is created in .sanity/ containing the scope and Stack IDs. This is .gitignored by default.\n\nAfter initialization, use 'blueprints plan' to preview changes, then 'blueprints deploy' to apply them.\n\nRunning without a directory prompts to confirm the current directory. Run 'blueprints init .' to initialize in the current directory without a prompt.",
|
|
1223
848
|
"examples": [
|
|
1224
849
|
"<%= config.bin %> <%= command.id %>",
|
|
1225
|
-
"<%= config.bin %> <%= command.id %>
|
|
1226
|
-
"<%= config.bin %> <%= command.id %>
|
|
1227
|
-
"<%= config.bin %> <%= command.id %> --
|
|
850
|
+
"<%= config.bin %> <%= command.id %> .",
|
|
851
|
+
"<%= config.bin %> <%= command.id %> [directory]",
|
|
852
|
+
"<%= config.bin %> <%= command.id %> --blueprint-type <json|js|ts>",
|
|
853
|
+
"<%= config.bin %> <%= command.id %> --organization-id <organizationId>",
|
|
854
|
+
"<%= config.bin %> <%= command.id %> --project-id <projectId>",
|
|
855
|
+
"<%= config.bin %> <%= command.id %> --stack-name <newStackName>",
|
|
856
|
+
"<%= config.bin %> <%= command.id %> --stack-id <existingStackId>",
|
|
857
|
+
"<%= config.bin %> <%= command.id %> new-stack --type <json|js|ts> --org <organizationId> --name <newStackName>",
|
|
858
|
+
"<%= config.bin %> <%= command.id %> old-stack --type <json|js|ts> --project-id <projectId> --stack-id <existingStackId>"
|
|
1228
859
|
],
|
|
1229
860
|
"flags": {
|
|
1230
861
|
"json": {
|
|
@@ -1267,18 +898,41 @@
|
|
|
1267
898
|
"allowNo": false,
|
|
1268
899
|
"type": "boolean"
|
|
1269
900
|
},
|
|
1270
|
-
"
|
|
901
|
+
"dir": {
|
|
902
|
+
"description": "Directory to create the local Blueprint in",
|
|
903
|
+
"name": "dir",
|
|
904
|
+
"hasDynamicHelp": false,
|
|
905
|
+
"multiple": false,
|
|
906
|
+
"type": "option"
|
|
907
|
+
},
|
|
908
|
+
"example": {
|
|
1271
909
|
"aliases": [
|
|
910
|
+
"recipe"
|
|
911
|
+
],
|
|
912
|
+
"description": "Example to use for the local Blueprint",
|
|
913
|
+
"exclusive": [
|
|
914
|
+
"blueprint-type",
|
|
1272
915
|
"stack-id",
|
|
1273
|
-
"
|
|
916
|
+
"stack-name"
|
|
1274
917
|
],
|
|
1275
|
-
"
|
|
1276
|
-
|
|
918
|
+
"name": "example",
|
|
919
|
+
"hasDynamicHelp": false,
|
|
920
|
+
"multiple": false,
|
|
921
|
+
"type": "option"
|
|
922
|
+
},
|
|
923
|
+
"blueprint-type": {
|
|
924
|
+
"aliases": [
|
|
925
|
+
"type"
|
|
1277
926
|
],
|
|
1278
|
-
"description": "
|
|
1279
|
-
"name": "
|
|
927
|
+
"description": "Blueprint manifest type to use for the local Blueprint",
|
|
928
|
+
"name": "blueprint-type",
|
|
1280
929
|
"hasDynamicHelp": false,
|
|
1281
930
|
"multiple": false,
|
|
931
|
+
"options": [
|
|
932
|
+
"json",
|
|
933
|
+
"js",
|
|
934
|
+
"ts"
|
|
935
|
+
],
|
|
1282
936
|
"type": "option"
|
|
1283
937
|
},
|
|
1284
938
|
"project-id": {
|
|
@@ -1286,9 +940,6 @@
|
|
|
1286
940
|
"project",
|
|
1287
941
|
"projectId"
|
|
1288
942
|
],
|
|
1289
|
-
"dependsOn": [
|
|
1290
|
-
"edit"
|
|
1291
|
-
],
|
|
1292
943
|
"description": "Sanity project ID used to scope Blueprint and Stack",
|
|
1293
944
|
"exclusive": [
|
|
1294
945
|
"organization-id"
|
|
@@ -1304,9 +955,6 @@
|
|
|
1304
955
|
"organizationId",
|
|
1305
956
|
"org"
|
|
1306
957
|
],
|
|
1307
|
-
"dependsOn": [
|
|
1308
|
-
"edit"
|
|
1309
|
-
],
|
|
1310
958
|
"description": "Sanity organization ID used to scope Blueprint and Stack",
|
|
1311
959
|
"exclusive": [
|
|
1312
960
|
"project-id"
|
|
@@ -1316,47 +964,79 @@
|
|
|
1316
964
|
"multiple": false,
|
|
1317
965
|
"type": "option"
|
|
1318
966
|
},
|
|
1319
|
-
"
|
|
1320
|
-
"
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
"
|
|
1324
|
-
"
|
|
967
|
+
"stack-id": {
|
|
968
|
+
"aliases": [
|
|
969
|
+
"stackId"
|
|
970
|
+
],
|
|
971
|
+
"description": "Existing Stack ID used to scope local Blueprint",
|
|
972
|
+
"exclusive": [
|
|
973
|
+
"stack-name"
|
|
974
|
+
],
|
|
975
|
+
"name": "stack-id",
|
|
976
|
+
"relationships": [
|
|
977
|
+
{
|
|
978
|
+
"type": "some",
|
|
979
|
+
"flags": [
|
|
980
|
+
"project-id",
|
|
981
|
+
"organization-id"
|
|
982
|
+
]
|
|
983
|
+
}
|
|
984
|
+
],
|
|
985
|
+
"hasDynamicHelp": false,
|
|
986
|
+
"multiple": false,
|
|
987
|
+
"type": "option"
|
|
988
|
+
},
|
|
989
|
+
"stack-name": {
|
|
990
|
+
"aliases": [
|
|
991
|
+
"name"
|
|
992
|
+
],
|
|
993
|
+
"description": "Name to use for a new Stack provisioned during initialization",
|
|
994
|
+
"exclusive": [
|
|
995
|
+
"stack-id"
|
|
996
|
+
],
|
|
997
|
+
"name": "stack-name",
|
|
998
|
+
"relationships": [
|
|
999
|
+
{
|
|
1000
|
+
"type": "some",
|
|
1001
|
+
"flags": [
|
|
1002
|
+
"project-id",
|
|
1003
|
+
"organization-id"
|
|
1004
|
+
]
|
|
1005
|
+
}
|
|
1006
|
+
],
|
|
1007
|
+
"hasDynamicHelp": false,
|
|
1008
|
+
"multiple": false,
|
|
1009
|
+
"type": "option"
|
|
1325
1010
|
}
|
|
1326
1011
|
},
|
|
1327
1012
|
"hasDynamicHelp": false,
|
|
1328
1013
|
"hiddenAliases": [],
|
|
1329
|
-
"id": "blueprints:
|
|
1014
|
+
"id": "blueprints:init",
|
|
1330
1015
|
"pluginAlias": "@sanity/runtime-cli",
|
|
1331
1016
|
"pluginName": "@sanity/runtime-cli",
|
|
1332
1017
|
"pluginType": "core",
|
|
1333
1018
|
"strict": true,
|
|
1334
|
-
"summary": "
|
|
1019
|
+
"summary": "Initialize a Blueprint and create a remote Stack",
|
|
1335
1020
|
"enableJsonFlag": true,
|
|
1336
|
-
"needs": [
|
|
1337
|
-
"token",
|
|
1338
|
-
"blueprint"
|
|
1339
|
-
],
|
|
1340
1021
|
"isESM": true,
|
|
1341
1022
|
"relativePath": [
|
|
1342
1023
|
"dist",
|
|
1343
1024
|
"commands",
|
|
1344
1025
|
"blueprints",
|
|
1345
|
-
"
|
|
1026
|
+
"init.js"
|
|
1346
1027
|
]
|
|
1347
1028
|
},
|
|
1348
|
-
"blueprints:
|
|
1029
|
+
"blueprints:logs": {
|
|
1349
1030
|
"aliases": [],
|
|
1350
1031
|
"args": {},
|
|
1351
|
-
"description": "
|
|
1032
|
+
"description": "Retrieves Stack deployment logs, useful for debugging and monitoring deployment activity.\n\nUse --watch (-w) to tail logs in real-time.\n\nUse --limit, --since, or --before to narrow the result set when not watching.\n\nIf you're not seeing expected logs, verify your Stack is deployed with 'blueprints info'.",
|
|
1352
1033
|
"examples": [
|
|
1353
1034
|
"<%= config.bin %> <%= command.id %>",
|
|
1354
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1355
|
-
"<%= config.bin %> <%= command.id %> --no-wait",
|
|
1356
|
-
"<%= config.bin %> <%= command.id %> --fn-installer npm",
|
|
1035
|
+
"<%= config.bin %> <%= command.id %> --watch",
|
|
1357
1036
|
"<%= config.bin %> <%= command.id %> --stack <name-or-id>",
|
|
1358
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1359
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1037
|
+
"<%= config.bin %> <%= command.id %> --limit 500",
|
|
1038
|
+
"<%= config.bin %> <%= command.id %> --since 2026-05-01T00:00:00Z",
|
|
1039
|
+
"<%= config.bin %> <%= command.id %> --before 2026-05-01T00:00:00Z"
|
|
1360
1040
|
],
|
|
1361
1041
|
"flags": {
|
|
1362
1042
|
"json": {
|
|
@@ -1435,40 +1115,43 @@
|
|
|
1435
1115
|
"multiple": false,
|
|
1436
1116
|
"type": "option"
|
|
1437
1117
|
},
|
|
1438
|
-
"
|
|
1439
|
-
"
|
|
1440
|
-
|
|
1441
|
-
|
|
1118
|
+
"watch": {
|
|
1119
|
+
"aliases": [
|
|
1120
|
+
"follow"
|
|
1121
|
+
],
|
|
1122
|
+
"char": "w",
|
|
1123
|
+
"description": "Watch for new Stack logs",
|
|
1124
|
+
"name": "watch",
|
|
1125
|
+
"allowNo": false,
|
|
1126
|
+
"type": "boolean"
|
|
1127
|
+
},
|
|
1128
|
+
"limit": {
|
|
1129
|
+
"char": "l",
|
|
1130
|
+
"description": "Maximum number of log entries to retrieve (1-500)",
|
|
1131
|
+
"exclusive": [
|
|
1132
|
+
"watch"
|
|
1133
|
+
],
|
|
1134
|
+
"name": "limit",
|
|
1442
1135
|
"hasDynamicHelp": false,
|
|
1443
1136
|
"multiple": false,
|
|
1444
1137
|
"type": "option"
|
|
1445
1138
|
},
|
|
1446
|
-
"
|
|
1447
|
-
"
|
|
1448
|
-
|
|
1449
|
-
"
|
|
1139
|
+
"since": {
|
|
1140
|
+
"description": "Only show logs after this ISO 8601 timestamp",
|
|
1141
|
+
"exclusive": [
|
|
1142
|
+
"watch"
|
|
1450
1143
|
],
|
|
1451
|
-
"
|
|
1452
|
-
"hidden": true,
|
|
1453
|
-
"name": "fn-installer",
|
|
1144
|
+
"name": "since",
|
|
1454
1145
|
"hasDynamicHelp": false,
|
|
1455
1146
|
"multiple": false,
|
|
1456
|
-
"options": [
|
|
1457
|
-
"npm",
|
|
1458
|
-
"pnpm",
|
|
1459
|
-
"yarn"
|
|
1460
|
-
],
|
|
1461
1147
|
"type": "option"
|
|
1462
1148
|
},
|
|
1463
|
-
"
|
|
1464
|
-
"description": "
|
|
1465
|
-
"
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
"new-stack-name": {
|
|
1470
|
-
"description": "Set a new name for the Stack",
|
|
1471
|
-
"name": "new-stack-name",
|
|
1149
|
+
"before": {
|
|
1150
|
+
"description": "Only show logs before this ISO 8601 timestamp",
|
|
1151
|
+
"exclusive": [
|
|
1152
|
+
"watch"
|
|
1153
|
+
],
|
|
1154
|
+
"name": "before",
|
|
1472
1155
|
"hasDynamicHelp": false,
|
|
1473
1156
|
"multiple": false,
|
|
1474
1157
|
"type": "option"
|
|
@@ -1476,32 +1159,36 @@
|
|
|
1476
1159
|
},
|
|
1477
1160
|
"hasDynamicHelp": false,
|
|
1478
1161
|
"hiddenAliases": [],
|
|
1479
|
-
"id": "blueprints:
|
|
1162
|
+
"id": "blueprints:logs",
|
|
1480
1163
|
"pluginAlias": "@sanity/runtime-cli",
|
|
1481
1164
|
"pluginName": "@sanity/runtime-cli",
|
|
1482
1165
|
"pluginType": "core",
|
|
1483
1166
|
"strict": true,
|
|
1484
|
-
"summary": "
|
|
1167
|
+
"summary": "Display logs for the current Blueprint's Stack deployment",
|
|
1485
1168
|
"enableJsonFlag": true,
|
|
1486
1169
|
"needs": [
|
|
1487
|
-
"deployedStack"
|
|
1488
|
-
"blueprint"
|
|
1170
|
+
"deployedStack"
|
|
1489
1171
|
],
|
|
1490
1172
|
"isESM": true,
|
|
1491
1173
|
"relativePath": [
|
|
1492
1174
|
"dist",
|
|
1493
1175
|
"commands",
|
|
1494
1176
|
"blueprints",
|
|
1495
|
-
"
|
|
1177
|
+
"logs.js"
|
|
1496
1178
|
]
|
|
1497
1179
|
},
|
|
1498
|
-
"blueprints:
|
|
1180
|
+
"blueprints:mint-deploy-token": {
|
|
1499
1181
|
"aliases": [],
|
|
1500
1182
|
"args": {},
|
|
1501
|
-
"description": "
|
|
1183
|
+
"description": "Mints a long-lived robot token with the role required to plan, deploy, and destroy Blueprints in this project or organization.\n\nBy default the command runs interactively and asks how you want to receive the token (clipboard, print, or exit). Use --print to emit only the raw token for shell pipelines, or --json for full API output.\n\nThe minted token is also visible in your Sanity Manage UI under Robots, where it can be revoked.",
|
|
1502
1184
|
"examples": [
|
|
1503
1185
|
"<%= config.bin %> <%= command.id %>",
|
|
1504
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1186
|
+
"<%= config.bin %> <%= command.id %> --label \"ci-deploy\"",
|
|
1187
|
+
"<%= config.bin %> <%= command.id %> --print",
|
|
1188
|
+
"export SANITY_AUTH_TOKEN=$(<%= config.bin %> <%= command.id %> --print)",
|
|
1189
|
+
"<%= config.bin %> <%= command.id %> --json",
|
|
1190
|
+
"<%= config.bin %> <%= command.id %> --project-id <projectId>",
|
|
1191
|
+
"<%= config.bin %> <%= command.id %> --organization-id <orgId>"
|
|
1505
1192
|
],
|
|
1506
1193
|
"flags": {
|
|
1507
1194
|
"json": {
|
|
@@ -1545,11 +1232,8 @@
|
|
|
1545
1232
|
"type": "boolean"
|
|
1546
1233
|
},
|
|
1547
1234
|
"stack": {
|
|
1548
|
-
"
|
|
1549
|
-
|
|
1550
|
-
"stackId"
|
|
1551
|
-
],
|
|
1552
|
-
"description": "Stack name or ID to destroy (defaults to the locally configured Stack)",
|
|
1235
|
+
"description": "Stack name or ID to use instead of the locally configured Stack",
|
|
1236
|
+
"hidden": true,
|
|
1553
1237
|
"name": "stack",
|
|
1554
1238
|
"hasDynamicHelp": false,
|
|
1555
1239
|
"multiple": false,
|
|
@@ -1560,10 +1244,6 @@
|
|
|
1560
1244
|
"project",
|
|
1561
1245
|
"projectId"
|
|
1562
1246
|
],
|
|
1563
|
-
"dependsOn": [
|
|
1564
|
-
"stack",
|
|
1565
|
-
"force"
|
|
1566
|
-
],
|
|
1567
1247
|
"description": "Sanity project ID used to scope Blueprint and Stack",
|
|
1568
1248
|
"exclusive": [
|
|
1569
1249
|
"organization-id"
|
|
@@ -1579,10 +1259,6 @@
|
|
|
1579
1259
|
"organizationId",
|
|
1580
1260
|
"org"
|
|
1581
1261
|
],
|
|
1582
|
-
"dependsOn": [
|
|
1583
|
-
"stack",
|
|
1584
|
-
"force"
|
|
1585
|
-
],
|
|
1586
1262
|
"description": "Sanity organization ID used to scope Blueprint and Stack",
|
|
1587
1263
|
"exclusive": [
|
|
1588
1264
|
"project-id"
|
|
@@ -1592,30 +1268,32 @@
|
|
|
1592
1268
|
"multiple": false,
|
|
1593
1269
|
"type": "option"
|
|
1594
1270
|
},
|
|
1595
|
-
"
|
|
1596
|
-
"
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
"
|
|
1600
|
-
"
|
|
1601
|
-
"allowNo": false,
|
|
1602
|
-
"type": "boolean"
|
|
1271
|
+
"label": {
|
|
1272
|
+
"description": "Human-readable label for the robot. Defaults to a generated value.",
|
|
1273
|
+
"name": "label",
|
|
1274
|
+
"hasDynamicHelp": false,
|
|
1275
|
+
"multiple": false,
|
|
1276
|
+
"type": "option"
|
|
1603
1277
|
},
|
|
1604
|
-
"
|
|
1605
|
-
"
|
|
1606
|
-
"
|
|
1278
|
+
"print": {
|
|
1279
|
+
"char": "P",
|
|
1280
|
+
"description": "Print only the raw token to stdout (suitable for shell substitution)",
|
|
1281
|
+
"exclusive": [
|
|
1282
|
+
"json"
|
|
1283
|
+
],
|
|
1284
|
+
"name": "print",
|
|
1607
1285
|
"allowNo": false,
|
|
1608
1286
|
"type": "boolean"
|
|
1609
1287
|
}
|
|
1610
1288
|
},
|
|
1611
1289
|
"hasDynamicHelp": false,
|
|
1612
1290
|
"hiddenAliases": [],
|
|
1613
|
-
"id": "blueprints:
|
|
1291
|
+
"id": "blueprints:mint-deploy-token",
|
|
1614
1292
|
"pluginAlias": "@sanity/runtime-cli",
|
|
1615
1293
|
"pluginName": "@sanity/runtime-cli",
|
|
1616
1294
|
"pluginType": "core",
|
|
1617
1295
|
"strict": true,
|
|
1618
|
-
"summary": "
|
|
1296
|
+
"summary": "Create a robot API token for deploying Blueprints from CI/CD",
|
|
1619
1297
|
"enableJsonFlag": true,
|
|
1620
1298
|
"needs": [
|
|
1621
1299
|
"scope"
|
|
@@ -1625,16 +1303,17 @@
|
|
|
1625
1303
|
"dist",
|
|
1626
1304
|
"commands",
|
|
1627
1305
|
"blueprints",
|
|
1628
|
-
"
|
|
1306
|
+
"mint-deploy-token.js"
|
|
1629
1307
|
]
|
|
1630
1308
|
},
|
|
1631
|
-
"blueprints:
|
|
1309
|
+
"blueprints:plan": {
|
|
1632
1310
|
"aliases": [],
|
|
1633
1311
|
"args": {},
|
|
1634
|
-
"description": "
|
|
1312
|
+
"description": "Use this command to preview what changes will be applied to your remote Stack before deploying. This is a safe, read-only operation—no resources are created, modified, or deleted.\n\nRun 'blueprints plan' after making local changes to your Blueprint manifest to verify the expected diff. When ready, run 'blueprints deploy' to apply changes.",
|
|
1635
1313
|
"examples": [
|
|
1636
1314
|
"<%= config.bin %> <%= command.id %>",
|
|
1637
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1315
|
+
"<%= config.bin %> <%= command.id %> --stack <name-or-id>",
|
|
1316
|
+
"<%= config.bin %> <%= command.id %> --organization-id <orgId> --stack <name-or-id>"
|
|
1638
1317
|
],
|
|
1639
1318
|
"flags": {
|
|
1640
1319
|
"json": {
|
|
@@ -1650,6 +1329,7 @@
|
|
|
1650
1329
|
"char": "p",
|
|
1651
1330
|
"description": "Path to a Blueprint file or directory containing one",
|
|
1652
1331
|
"env": "SANITY_BLUEPRINT_PATH",
|
|
1332
|
+
"hidden": true,
|
|
1653
1333
|
"name": "path",
|
|
1654
1334
|
"hasDynamicHelp": false,
|
|
1655
1335
|
"multiple": false,
|
|
@@ -1676,39 +1356,73 @@
|
|
|
1676
1356
|
"allowNo": false,
|
|
1677
1357
|
"type": "boolean"
|
|
1678
1358
|
},
|
|
1679
|
-
"
|
|
1680
|
-
"description": "
|
|
1681
|
-
"name": "
|
|
1682
|
-
"
|
|
1683
|
-
"
|
|
1359
|
+
"stack": {
|
|
1360
|
+
"description": "Stack name or ID to use instead of the locally configured Stack",
|
|
1361
|
+
"name": "stack",
|
|
1362
|
+
"hasDynamicHelp": false,
|
|
1363
|
+
"multiple": false,
|
|
1364
|
+
"type": "option"
|
|
1365
|
+
},
|
|
1366
|
+
"project-id": {
|
|
1367
|
+
"aliases": [
|
|
1368
|
+
"project",
|
|
1369
|
+
"projectId"
|
|
1370
|
+
],
|
|
1371
|
+
"description": "Sanity project ID used to scope Blueprint and Stack",
|
|
1372
|
+
"exclusive": [
|
|
1373
|
+
"organization-id"
|
|
1374
|
+
],
|
|
1375
|
+
"name": "project-id",
|
|
1376
|
+
"hasDynamicHelp": false,
|
|
1377
|
+
"multiple": false,
|
|
1378
|
+
"type": "option"
|
|
1379
|
+
},
|
|
1380
|
+
"organization-id": {
|
|
1381
|
+
"aliases": [
|
|
1382
|
+
"organization",
|
|
1383
|
+
"organizationId",
|
|
1384
|
+
"org"
|
|
1385
|
+
],
|
|
1386
|
+
"description": "Sanity organization ID used to scope Blueprint and Stack",
|
|
1387
|
+
"exclusive": [
|
|
1388
|
+
"project-id"
|
|
1389
|
+
],
|
|
1390
|
+
"name": "organization-id",
|
|
1391
|
+
"hasDynamicHelp": false,
|
|
1392
|
+
"multiple": false,
|
|
1393
|
+
"type": "option"
|
|
1684
1394
|
}
|
|
1685
1395
|
},
|
|
1686
1396
|
"hasDynamicHelp": false,
|
|
1687
1397
|
"hiddenAliases": [],
|
|
1688
|
-
"id": "blueprints:
|
|
1398
|
+
"id": "blueprints:plan",
|
|
1689
1399
|
"pluginAlias": "@sanity/runtime-cli",
|
|
1690
1400
|
"pluginName": "@sanity/runtime-cli",
|
|
1691
1401
|
"pluginType": "core",
|
|
1692
1402
|
"strict": true,
|
|
1693
|
-
"summary": "
|
|
1403
|
+
"summary": "Preview changes that will be applied to the remote Stack",
|
|
1694
1404
|
"enableJsonFlag": true,
|
|
1405
|
+
"needs": [
|
|
1406
|
+
"token",
|
|
1407
|
+
"blueprint"
|
|
1408
|
+
],
|
|
1695
1409
|
"isESM": true,
|
|
1696
1410
|
"relativePath": [
|
|
1697
1411
|
"dist",
|
|
1698
1412
|
"commands",
|
|
1699
1413
|
"blueprints",
|
|
1700
|
-
"
|
|
1414
|
+
"plan.js"
|
|
1701
1415
|
]
|
|
1702
1416
|
},
|
|
1703
|
-
"blueprints:
|
|
1417
|
+
"blueprints:promote": {
|
|
1704
1418
|
"aliases": [],
|
|
1705
1419
|
"args": {},
|
|
1706
|
-
"description": "
|
|
1420
|
+
"description": "Promotes a deployed Stack to organization scope, enabling management of org-level resources. Promotion cannot be reversed.\n\nYour local Blueprint configuration will be updated to reflect the new scope.",
|
|
1707
1421
|
"examples": [
|
|
1708
1422
|
"<%= config.bin %> <%= command.id %>",
|
|
1709
1423
|
"<%= config.bin %> <%= command.id %> --stack <name-or-id>",
|
|
1710
|
-
"<%= config.bin %> <%= command.id %> --project-id <
|
|
1711
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1424
|
+
"<%= config.bin %> <%= command.id %> --project-id <projectId> --stack <name-or-id>",
|
|
1425
|
+
"<%= config.bin %> <%= command.id %> --new-stack-name <new-name>"
|
|
1712
1426
|
],
|
|
1713
1427
|
"flags": {
|
|
1714
1428
|
"json": {
|
|
@@ -1755,7 +1469,7 @@
|
|
|
1755
1469
|
"aliases": [
|
|
1756
1470
|
"id"
|
|
1757
1471
|
],
|
|
1758
|
-
"description": "Stack name or ID",
|
|
1472
|
+
"description": "Stack name or ID to promote",
|
|
1759
1473
|
"name": "stack",
|
|
1760
1474
|
"hasDynamicHelp": false,
|
|
1761
1475
|
"multiple": false,
|
|
@@ -1785,52 +1499,56 @@
|
|
|
1785
1499
|
"exclusive": [
|
|
1786
1500
|
"project-id"
|
|
1787
1501
|
],
|
|
1502
|
+
"hidden": true,
|
|
1788
1503
|
"name": "organization-id",
|
|
1789
1504
|
"hasDynamicHelp": false,
|
|
1790
1505
|
"multiple": false,
|
|
1791
1506
|
"type": "option"
|
|
1507
|
+
},
|
|
1508
|
+
"force": {
|
|
1509
|
+
"description": "Skip confirmation prompt",
|
|
1510
|
+
"name": "force",
|
|
1511
|
+
"allowNo": false,
|
|
1512
|
+
"type": "boolean"
|
|
1513
|
+
},
|
|
1514
|
+
"new-stack-name": {
|
|
1515
|
+
"description": "Set a new name for the Stack while promoting",
|
|
1516
|
+
"name": "new-stack-name",
|
|
1517
|
+
"hasDynamicHelp": false,
|
|
1518
|
+
"multiple": false,
|
|
1519
|
+
"type": "option"
|
|
1792
1520
|
}
|
|
1793
1521
|
},
|
|
1794
1522
|
"hasDynamicHelp": false,
|
|
1795
1523
|
"hiddenAliases": [],
|
|
1796
|
-
"id": "blueprints:
|
|
1524
|
+
"id": "blueprints:promote",
|
|
1797
1525
|
"pluginAlias": "@sanity/runtime-cli",
|
|
1798
1526
|
"pluginName": "@sanity/runtime-cli",
|
|
1799
1527
|
"pluginType": "core",
|
|
1800
1528
|
"strict": true,
|
|
1801
|
-
"summary": "
|
|
1529
|
+
"summary": "Promote a Stack from project scope to organization scope",
|
|
1802
1530
|
"enableJsonFlag": true,
|
|
1803
1531
|
"needs": [
|
|
1804
|
-
"deployedStack"
|
|
1532
|
+
"deployedStack",
|
|
1533
|
+
"blueprint"
|
|
1805
1534
|
],
|
|
1806
1535
|
"isESM": true,
|
|
1807
1536
|
"relativePath": [
|
|
1808
1537
|
"dist",
|
|
1809
1538
|
"commands",
|
|
1810
1539
|
"blueprints",
|
|
1811
|
-
"
|
|
1540
|
+
"promote.js"
|
|
1812
1541
|
]
|
|
1813
1542
|
},
|
|
1814
|
-
"blueprints:
|
|
1543
|
+
"blueprints:stacks": {
|
|
1815
1544
|
"aliases": [],
|
|
1816
|
-
"args": {
|
|
1817
|
-
|
|
1818
|
-
"description": "Directory to create the local Blueprint in (defaults to the current directory)",
|
|
1819
|
-
"name": "dir"
|
|
1820
|
-
}
|
|
1821
|
-
},
|
|
1822
|
-
"description": "A Blueprint is your local infrastructure-as-code configuration that defines Sanity resources (datasets, functions, etc.). A Stack is the remote deployment target where your Blueprint is applied.\n[NOTE: Currently, accounts are limited to three (3) Stacks per project scope.]\n\nThis is typically the first command you run in a new project. It creates a local Blueprint manifest file (sanity.blueprint.ts, .js, or .json) and provisions a new remote Stack.\nAdditionally, a Blueprint configuration file is created in .sanity/ containing the scope and Stack IDs. This is .gitignored by default.\n\nAfter initialization, use 'blueprints plan' to preview changes, then 'blueprints deploy' to apply them.\n\nRunning without a directory prompts to confirm the current directory. Run 'blueprints init .' to initialize in the current directory without a prompt.",
|
|
1545
|
+
"args": {},
|
|
1546
|
+
"description": "Shows all Stacks associated with a project or organization. By default, lists Stacks scoped to the local Blueprint.\n\nUse this to discover existing Stacks you can scope a local Blueprint to (using 'blueprints config --edit'), or to audit what's deployed across your project.\n\nUse --include-projects with --organization-id to also list Stacks from all projects within the organization.",
|
|
1823
1547
|
"examples": [
|
|
1824
1548
|
"<%= config.bin %> <%= command.id %>",
|
|
1825
|
-
"<%= config.bin %> <%= command.id %> .",
|
|
1826
|
-
"<%= config.bin %> <%= command.id %> [directory]",
|
|
1827
|
-
"<%= config.bin %> <%= command.id %> --blueprint-type <json|js|ts>",
|
|
1828
|
-
"<%= config.bin %> <%= command.id %> --organization-id <organizationId>",
|
|
1829
1549
|
"<%= config.bin %> <%= command.id %> --project-id <projectId>",
|
|
1830
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1831
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1832
|
-
"<%= config.bin %> <%= command.id %> new-stack --type <json|js|ts> --org <organizationId> --name <newStackName>",
|
|
1833
|
-
"<%= config.bin %> <%= command.id %> old-stack --type <json|js|ts> --project-id <projectId> --stack-id <existingStackId>"
|
|
1550
|
+
"<%= config.bin %> <%= command.id %> --organization-id <organizationId>",
|
|
1551
|
+
"<%= config.bin %> <%= command.id %> --organization-id <organizationId> --include-projects"
|
|
1834
1552
|
],
|
|
1835
1553
|
"flags": {
|
|
1836
1554
|
"json": {
|
|
@@ -1873,41 +1591,12 @@
|
|
|
1873
1591
|
"allowNo": false,
|
|
1874
1592
|
"type": "boolean"
|
|
1875
1593
|
},
|
|
1876
|
-
"
|
|
1877
|
-
"description": "
|
|
1878
|
-
"
|
|
1879
|
-
"
|
|
1880
|
-
"multiple": false,
|
|
1881
|
-
"type": "option"
|
|
1882
|
-
},
|
|
1883
|
-
"example": {
|
|
1884
|
-
"aliases": [
|
|
1885
|
-
"recipe"
|
|
1886
|
-
],
|
|
1887
|
-
"description": "Example to use for the local Blueprint",
|
|
1888
|
-
"exclusive": [
|
|
1889
|
-
"blueprint-type",
|
|
1890
|
-
"stack-id",
|
|
1891
|
-
"stack-name"
|
|
1892
|
-
],
|
|
1893
|
-
"name": "example",
|
|
1894
|
-
"hasDynamicHelp": false,
|
|
1895
|
-
"multiple": false,
|
|
1896
|
-
"type": "option"
|
|
1897
|
-
},
|
|
1898
|
-
"blueprint-type": {
|
|
1899
|
-
"aliases": [
|
|
1900
|
-
"type"
|
|
1901
|
-
],
|
|
1902
|
-
"description": "Blueprint manifest type to use for the local Blueprint",
|
|
1903
|
-
"name": "blueprint-type",
|
|
1594
|
+
"stack": {
|
|
1595
|
+
"description": "Stack name or ID to use instead of the locally configured Stack",
|
|
1596
|
+
"hidden": true,
|
|
1597
|
+
"name": "stack",
|
|
1904
1598
|
"hasDynamicHelp": false,
|
|
1905
1599
|
"multiple": false,
|
|
1906
|
-
"options": [
|
|
1907
|
-
"json",
|
|
1908
|
-
"js",
|
|
1909
|
-
"ts"
|
|
1910
|
-
],
|
|
1911
1600
|
"type": "option"
|
|
1912
1601
|
},
|
|
1913
1602
|
"project-id": {
|
|
@@ -1917,7 +1606,8 @@
|
|
|
1917
1606
|
],
|
|
1918
1607
|
"description": "Sanity project ID used to scope Blueprint and Stack",
|
|
1919
1608
|
"exclusive": [
|
|
1920
|
-
"organization-id"
|
|
1609
|
+
"organization-id",
|
|
1610
|
+
"include-projects"
|
|
1921
1611
|
],
|
|
1922
1612
|
"name": "project-id",
|
|
1923
1613
|
"hasDynamicHelp": false,
|
|
@@ -1939,79 +1629,46 @@
|
|
|
1939
1629
|
"multiple": false,
|
|
1940
1630
|
"type": "option"
|
|
1941
1631
|
},
|
|
1942
|
-
"
|
|
1943
|
-
"
|
|
1944
|
-
"
|
|
1945
|
-
],
|
|
1946
|
-
"description": "Existing Stack ID used to scope local Blueprint",
|
|
1947
|
-
"exclusive": [
|
|
1948
|
-
"stack-name"
|
|
1949
|
-
],
|
|
1950
|
-
"name": "stack-id",
|
|
1951
|
-
"relationships": [
|
|
1952
|
-
{
|
|
1953
|
-
"type": "some",
|
|
1954
|
-
"flags": [
|
|
1955
|
-
"project-id",
|
|
1956
|
-
"organization-id"
|
|
1957
|
-
]
|
|
1958
|
-
}
|
|
1959
|
-
],
|
|
1960
|
-
"hasDynamicHelp": false,
|
|
1961
|
-
"multiple": false,
|
|
1962
|
-
"type": "option"
|
|
1963
|
-
},
|
|
1964
|
-
"stack-name": {
|
|
1965
|
-
"aliases": [
|
|
1966
|
-
"name"
|
|
1967
|
-
],
|
|
1968
|
-
"description": "Name to use for a new Stack provisioned during initialization",
|
|
1969
|
-
"exclusive": [
|
|
1970
|
-
"stack-id"
|
|
1971
|
-
],
|
|
1972
|
-
"name": "stack-name",
|
|
1973
|
-
"relationships": [
|
|
1974
|
-
{
|
|
1975
|
-
"type": "some",
|
|
1976
|
-
"flags": [
|
|
1977
|
-
"project-id",
|
|
1978
|
-
"organization-id"
|
|
1979
|
-
]
|
|
1980
|
-
}
|
|
1632
|
+
"include-projects": {
|
|
1633
|
+
"dependsOn": [
|
|
1634
|
+
"organization-id"
|
|
1981
1635
|
],
|
|
1982
|
-
"
|
|
1983
|
-
"
|
|
1984
|
-
"
|
|
1636
|
+
"description": "Include Stacks from all projects within the organization. Requires --organization-id.",
|
|
1637
|
+
"name": "include-projects",
|
|
1638
|
+
"allowNo": false,
|
|
1639
|
+
"type": "boolean"
|
|
1985
1640
|
}
|
|
1986
1641
|
},
|
|
1987
1642
|
"hasDynamicHelp": false,
|
|
1988
1643
|
"hiddenAliases": [],
|
|
1989
|
-
"id": "blueprints:
|
|
1644
|
+
"id": "blueprints:stacks",
|
|
1990
1645
|
"pluginAlias": "@sanity/runtime-cli",
|
|
1991
1646
|
"pluginName": "@sanity/runtime-cli",
|
|
1992
1647
|
"pluginType": "core",
|
|
1993
1648
|
"strict": true,
|
|
1994
|
-
"summary": "
|
|
1649
|
+
"summary": "List remote Stack deployments for your project or organization",
|
|
1995
1650
|
"enableJsonFlag": true,
|
|
1651
|
+
"needs": [
|
|
1652
|
+
"scope"
|
|
1653
|
+
],
|
|
1996
1654
|
"isESM": true,
|
|
1997
1655
|
"relativePath": [
|
|
1998
1656
|
"dist",
|
|
1999
1657
|
"commands",
|
|
2000
1658
|
"blueprints",
|
|
2001
|
-
"
|
|
1659
|
+
"stacks.js"
|
|
2002
1660
|
]
|
|
2003
1661
|
},
|
|
2004
|
-
"
|
|
1662
|
+
"functions:add": {
|
|
2005
1663
|
"aliases": [],
|
|
2006
1664
|
"args": {},
|
|
2007
|
-
"description": "
|
|
1665
|
+
"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.",
|
|
2008
1666
|
"examples": [
|
|
2009
1667
|
"<%= config.bin %> <%= command.id %>",
|
|
2010
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2011
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2012
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2013
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2014
|
-
"<%= config.bin %> <%= command.id %> --before 2026-05-01T00:00:00Z"
|
|
1668
|
+
"<%= config.bin %> <%= command.id %> --helpers",
|
|
1669
|
+
"<%= config.bin %> <%= command.id %> --name my-function",
|
|
1670
|
+
"<%= config.bin %> <%= command.id %> --name my-function --type document-create",
|
|
1671
|
+
"<%= config.bin %> <%= command.id %> --name my-function --type document-create --type document-update --lang js"
|
|
2015
1672
|
],
|
|
2016
1673
|
"flags": {
|
|
2017
1674
|
"json": {
|
|
@@ -2056,6 +1713,7 @@
|
|
|
2056
1713
|
},
|
|
2057
1714
|
"stack": {
|
|
2058
1715
|
"description": "Stack name or ID to use instead of the locally configured Stack",
|
|
1716
|
+
"hidden": true,
|
|
2059
1717
|
"name": "stack",
|
|
2060
1718
|
"hasDynamicHelp": false,
|
|
2061
1719
|
"multiple": false,
|
|
@@ -2070,6 +1728,7 @@
|
|
|
2070
1728
|
"exclusive": [
|
|
2071
1729
|
"organization-id"
|
|
2072
1730
|
],
|
|
1731
|
+
"hidden": true,
|
|
2073
1732
|
"name": "project-id",
|
|
2074
1733
|
"hasDynamicHelp": false,
|
|
2075
1734
|
"multiple": false,
|
|
@@ -2085,86 +1744,145 @@
|
|
|
2085
1744
|
"exclusive": [
|
|
2086
1745
|
"project-id"
|
|
2087
1746
|
],
|
|
1747
|
+
"hidden": true,
|
|
2088
1748
|
"name": "organization-id",
|
|
2089
1749
|
"hasDynamicHelp": false,
|
|
2090
1750
|
"multiple": false,
|
|
2091
1751
|
"type": "option"
|
|
2092
1752
|
},
|
|
2093
|
-
"
|
|
1753
|
+
"example": {
|
|
1754
|
+
"aliases": [
|
|
1755
|
+
"recipe"
|
|
1756
|
+
],
|
|
1757
|
+
"description": "Example to use for the Function",
|
|
1758
|
+
"exclusive": [
|
|
1759
|
+
"name",
|
|
1760
|
+
"fn-type",
|
|
1761
|
+
"language",
|
|
1762
|
+
"javascript",
|
|
1763
|
+
"fn-helpers",
|
|
1764
|
+
"fn-installer"
|
|
1765
|
+
],
|
|
1766
|
+
"name": "example",
|
|
1767
|
+
"hasDynamicHelp": false,
|
|
1768
|
+
"multiple": false,
|
|
1769
|
+
"type": "option"
|
|
1770
|
+
},
|
|
1771
|
+
"name": {
|
|
1772
|
+
"char": "n",
|
|
1773
|
+
"description": "Name of the Function to add",
|
|
1774
|
+
"name": "name",
|
|
1775
|
+
"hasDynamicHelp": false,
|
|
1776
|
+
"multiple": false,
|
|
1777
|
+
"type": "option"
|
|
1778
|
+
},
|
|
1779
|
+
"type": {
|
|
1780
|
+
"dependsOn": [
|
|
1781
|
+
"name"
|
|
1782
|
+
],
|
|
1783
|
+
"description": "Document change event(s) that should trigger the function; you can specify multiple events by specifying this flag multiple times",
|
|
1784
|
+
"name": "type",
|
|
1785
|
+
"hasDynamicHelp": false,
|
|
1786
|
+
"multiple": true,
|
|
1787
|
+
"options": [
|
|
1788
|
+
"document-publish",
|
|
1789
|
+
"document-create",
|
|
1790
|
+
"document-delete",
|
|
1791
|
+
"document-update",
|
|
1792
|
+
"media-library-asset-create",
|
|
1793
|
+
"media-library-asset-delete",
|
|
1794
|
+
"media-library-asset-update",
|
|
1795
|
+
"scheduled-function",
|
|
1796
|
+
"sync-tag-invalidate"
|
|
1797
|
+
],
|
|
1798
|
+
"type": "option"
|
|
1799
|
+
},
|
|
1800
|
+
"language": {
|
|
1801
|
+
"aliases": [
|
|
1802
|
+
"lang"
|
|
1803
|
+
],
|
|
1804
|
+
"description": "Language of the new Function",
|
|
1805
|
+
"name": "language",
|
|
1806
|
+
"default": "ts",
|
|
1807
|
+
"hasDynamicHelp": false,
|
|
1808
|
+
"multiple": false,
|
|
1809
|
+
"options": [
|
|
1810
|
+
"ts",
|
|
1811
|
+
"js"
|
|
1812
|
+
],
|
|
1813
|
+
"type": "option"
|
|
1814
|
+
},
|
|
1815
|
+
"javascript": {
|
|
2094
1816
|
"aliases": [
|
|
2095
|
-
"
|
|
1817
|
+
"js"
|
|
2096
1818
|
],
|
|
2097
|
-
"
|
|
2098
|
-
"
|
|
2099
|
-
|
|
1819
|
+
"description": "Use JavaScript instead of TypeScript",
|
|
1820
|
+
"exclusive": [
|
|
1821
|
+
"language"
|
|
1822
|
+
],
|
|
1823
|
+
"name": "javascript",
|
|
2100
1824
|
"allowNo": false,
|
|
2101
1825
|
"type": "boolean"
|
|
2102
1826
|
},
|
|
2103
|
-
"
|
|
2104
|
-
"
|
|
2105
|
-
"
|
|
2106
|
-
"
|
|
2107
|
-
|
|
2108
|
-
],
|
|
2109
|
-
"name": "limit",
|
|
2110
|
-
"hasDynamicHelp": false,
|
|
2111
|
-
"multiple": false,
|
|
2112
|
-
"type": "option"
|
|
1827
|
+
"helpers": {
|
|
1828
|
+
"description": "Add helpers to the new Function",
|
|
1829
|
+
"name": "helpers",
|
|
1830
|
+
"allowNo": true,
|
|
1831
|
+
"type": "boolean"
|
|
2113
1832
|
},
|
|
2114
|
-
"
|
|
2115
|
-
"description": "
|
|
2116
|
-
"
|
|
2117
|
-
"watch"
|
|
2118
|
-
],
|
|
2119
|
-
"name": "since",
|
|
1833
|
+
"installer": {
|
|
1834
|
+
"description": "How to install the @sanity/functions helpers",
|
|
1835
|
+
"name": "installer",
|
|
2120
1836
|
"hasDynamicHelp": false,
|
|
2121
1837
|
"multiple": false,
|
|
1838
|
+
"options": [
|
|
1839
|
+
"skip",
|
|
1840
|
+
"npm",
|
|
1841
|
+
"pnpm",
|
|
1842
|
+
"yarn"
|
|
1843
|
+
],
|
|
2122
1844
|
"type": "option"
|
|
2123
1845
|
},
|
|
2124
|
-
"
|
|
2125
|
-
"
|
|
1846
|
+
"install": {
|
|
1847
|
+
"char": "i",
|
|
1848
|
+
"description": "Shortcut for --fn-installer npm",
|
|
2126
1849
|
"exclusive": [
|
|
2127
|
-
"
|
|
1850
|
+
"fn-installer"
|
|
2128
1851
|
],
|
|
2129
|
-
"name": "
|
|
2130
|
-
"
|
|
2131
|
-
"
|
|
2132
|
-
"type": "option"
|
|
1852
|
+
"name": "install",
|
|
1853
|
+
"allowNo": false,
|
|
1854
|
+
"type": "boolean"
|
|
2133
1855
|
}
|
|
2134
1856
|
},
|
|
2135
1857
|
"hasDynamicHelp": false,
|
|
2136
1858
|
"hiddenAliases": [],
|
|
2137
|
-
"id": "
|
|
1859
|
+
"id": "functions:add",
|
|
2138
1860
|
"pluginAlias": "@sanity/runtime-cli",
|
|
2139
1861
|
"pluginName": "@sanity/runtime-cli",
|
|
2140
1862
|
"pluginType": "core",
|
|
2141
1863
|
"strict": true,
|
|
2142
|
-
"summary": "
|
|
1864
|
+
"summary": "Add a Function to your Blueprint",
|
|
2143
1865
|
"enableJsonFlag": true,
|
|
2144
1866
|
"needs": [
|
|
2145
|
-
"
|
|
1867
|
+
"blueprint"
|
|
2146
1868
|
],
|
|
2147
1869
|
"isESM": true,
|
|
2148
1870
|
"relativePath": [
|
|
2149
1871
|
"dist",
|
|
2150
1872
|
"commands",
|
|
2151
|
-
"
|
|
2152
|
-
"
|
|
1873
|
+
"functions",
|
|
1874
|
+
"add.js"
|
|
2153
1875
|
]
|
|
2154
1876
|
},
|
|
2155
|
-
"
|
|
1877
|
+
"functions:build": {
|
|
2156
1878
|
"aliases": [],
|
|
2157
|
-
"args": {
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
"<%= config.bin %> <%= command.id %> --json",
|
|
2165
|
-
"<%= config.bin %> <%= command.id %> --project-id <projectId>",
|
|
2166
|
-
"<%= config.bin %> <%= command.id %> --organization-id <orgId>"
|
|
2167
|
-
],
|
|
1879
|
+
"args": {
|
|
1880
|
+
"name": {
|
|
1881
|
+
"description": "The name of the Sanity Function",
|
|
1882
|
+
"name": "name",
|
|
1883
|
+
"required": false
|
|
1884
|
+
}
|
|
1885
|
+
},
|
|
2168
1886
|
"flags": {
|
|
2169
1887
|
"json": {
|
|
2170
1888
|
"description": "Format output as json",
|
|
@@ -2223,6 +1941,7 @@
|
|
|
2223
1941
|
"exclusive": [
|
|
2224
1942
|
"organization-id"
|
|
2225
1943
|
],
|
|
1944
|
+
"hidden": true,
|
|
2226
1945
|
"name": "project-id",
|
|
2227
1946
|
"hasDynamicHelp": false,
|
|
2228
1947
|
"multiple": false,
|
|
@@ -2238,57 +1957,66 @@
|
|
|
2238
1957
|
"exclusive": [
|
|
2239
1958
|
"project-id"
|
|
2240
1959
|
],
|
|
1960
|
+
"hidden": true,
|
|
2241
1961
|
"name": "organization-id",
|
|
2242
1962
|
"hasDynamicHelp": false,
|
|
2243
1963
|
"multiple": false,
|
|
2244
1964
|
"type": "option"
|
|
2245
1965
|
},
|
|
2246
|
-
"
|
|
2247
|
-
"
|
|
2248
|
-
|
|
1966
|
+
"fn-installer": {
|
|
1967
|
+
"aliases": [
|
|
1968
|
+
"function-installer",
|
|
1969
|
+
"installer"
|
|
1970
|
+
],
|
|
1971
|
+
"description": "Which package manager to use when building Functions",
|
|
1972
|
+
"hidden": true,
|
|
1973
|
+
"name": "fn-installer",
|
|
2249
1974
|
"hasDynamicHelp": false,
|
|
2250
1975
|
"multiple": false,
|
|
1976
|
+
"options": [
|
|
1977
|
+
"npm",
|
|
1978
|
+
"pnpm",
|
|
1979
|
+
"yarn"
|
|
1980
|
+
],
|
|
2251
1981
|
"type": "option"
|
|
2252
1982
|
},
|
|
2253
|
-
"
|
|
2254
|
-
"char": "
|
|
2255
|
-
"description": "
|
|
2256
|
-
"
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
"
|
|
2260
|
-
"allowNo": false,
|
|
2261
|
-
"type": "boolean"
|
|
1983
|
+
"out-dir": {
|
|
1984
|
+
"char": "o",
|
|
1985
|
+
"description": "Output directory for zip files",
|
|
1986
|
+
"name": "out-dir",
|
|
1987
|
+
"hasDynamicHelp": false,
|
|
1988
|
+
"multiple": false,
|
|
1989
|
+
"type": "option"
|
|
2262
1990
|
}
|
|
2263
1991
|
},
|
|
2264
1992
|
"hasDynamicHelp": false,
|
|
1993
|
+
"hidden": true,
|
|
2265
1994
|
"hiddenAliases": [],
|
|
2266
|
-
"id": "
|
|
1995
|
+
"id": "functions:build",
|
|
2267
1996
|
"pluginAlias": "@sanity/runtime-cli",
|
|
2268
1997
|
"pluginName": "@sanity/runtime-cli",
|
|
2269
1998
|
"pluginType": "core",
|
|
2270
1999
|
"strict": true,
|
|
2271
|
-
"summary": "
|
|
2000
|
+
"summary": "Build Sanity Function(s) to zip archives",
|
|
2272
2001
|
"enableJsonFlag": true,
|
|
2273
2002
|
"needs": [
|
|
2274
|
-
"
|
|
2003
|
+
"blueprint"
|
|
2275
2004
|
],
|
|
2276
2005
|
"isESM": true,
|
|
2277
2006
|
"relativePath": [
|
|
2278
2007
|
"dist",
|
|
2279
2008
|
"commands",
|
|
2280
|
-
"
|
|
2281
|
-
"
|
|
2009
|
+
"functions",
|
|
2010
|
+
"build.js"
|
|
2282
2011
|
]
|
|
2283
2012
|
},
|
|
2284
|
-
"
|
|
2013
|
+
"functions:dev": {
|
|
2285
2014
|
"aliases": [],
|
|
2286
2015
|
"args": {},
|
|
2287
|
-
"description": "
|
|
2016
|
+
"description": "Runs a local, web-based development server to test your functions before deploying.\n\nOpen the emulator in your browser to interactively test your functions with the payload editor.\n\nOptionally, set the host and port with the --host and --port flags. Function timeout can be configured with the --timeout flag.\n\nTo invoke a function with the CLI, use 'functions test'.",
|
|
2288
2017
|
"examples": [
|
|
2289
|
-
"<%= config.bin %> <%= command.id %>",
|
|
2290
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2291
|
-
"<%= config.bin %> <%= command.id %> --organization-id <orgId> --stack <name-or-id>"
|
|
2018
|
+
"<%= config.bin %> <%= command.id %> --host 127.0.0.1 --port 8974",
|
|
2019
|
+
"<%= config.bin %> <%= command.id %> --timeout 60"
|
|
2292
2020
|
],
|
|
2293
2021
|
"flags": {
|
|
2294
2022
|
"json": {
|
|
@@ -2333,6 +2061,7 @@
|
|
|
2333
2061
|
},
|
|
2334
2062
|
"stack": {
|
|
2335
2063
|
"description": "Stack name or ID to use instead of the locally configured Stack",
|
|
2064
|
+
"hidden": true,
|
|
2336
2065
|
"name": "stack",
|
|
2337
2066
|
"hasDynamicHelp": false,
|
|
2338
2067
|
"multiple": false,
|
|
@@ -2347,6 +2076,7 @@
|
|
|
2347
2076
|
"exclusive": [
|
|
2348
2077
|
"organization-id"
|
|
2349
2078
|
],
|
|
2079
|
+
"hidden": true,
|
|
2350
2080
|
"name": "project-id",
|
|
2351
2081
|
"hasDynamicHelp": false,
|
|
2352
2082
|
"multiple": false,
|
|
@@ -2362,42 +2092,75 @@
|
|
|
2362
2092
|
"exclusive": [
|
|
2363
2093
|
"project-id"
|
|
2364
2094
|
],
|
|
2095
|
+
"hidden": true,
|
|
2365
2096
|
"name": "organization-id",
|
|
2366
2097
|
"hasDynamicHelp": false,
|
|
2367
2098
|
"multiple": false,
|
|
2368
2099
|
"type": "option"
|
|
2100
|
+
},
|
|
2101
|
+
"host": {
|
|
2102
|
+
"char": "h",
|
|
2103
|
+
"description": "The local network interface at which to listen. [default: \"localhost\"]",
|
|
2104
|
+
"name": "host",
|
|
2105
|
+
"required": false,
|
|
2106
|
+
"hasDynamicHelp": false,
|
|
2107
|
+
"multiple": false,
|
|
2108
|
+
"type": "option"
|
|
2109
|
+
},
|
|
2110
|
+
"port": {
|
|
2111
|
+
"char": "p",
|
|
2112
|
+
"description": "TCP port to start emulator on. [default: 8080]",
|
|
2113
|
+
"name": "port",
|
|
2114
|
+
"required": false,
|
|
2115
|
+
"hasDynamicHelp": false,
|
|
2116
|
+
"multiple": false,
|
|
2117
|
+
"type": "option"
|
|
2118
|
+
},
|
|
2119
|
+
"timeout": {
|
|
2120
|
+
"char": "t",
|
|
2121
|
+
"description": "Maximum execution time for all functions, in seconds. Takes precedence over function-specific `timeout`",
|
|
2122
|
+
"name": "timeout",
|
|
2123
|
+
"required": false,
|
|
2124
|
+
"hasDynamicHelp": false,
|
|
2125
|
+
"multiple": false,
|
|
2126
|
+
"type": "option"
|
|
2369
2127
|
}
|
|
2370
2128
|
},
|
|
2371
2129
|
"hasDynamicHelp": false,
|
|
2372
2130
|
"hiddenAliases": [],
|
|
2373
|
-
"id": "
|
|
2131
|
+
"id": "functions:dev",
|
|
2374
2132
|
"pluginAlias": "@sanity/runtime-cli",
|
|
2375
2133
|
"pluginName": "@sanity/runtime-cli",
|
|
2376
2134
|
"pluginType": "core",
|
|
2377
2135
|
"strict": true,
|
|
2378
|
-
"summary": "
|
|
2136
|
+
"summary": "Start the Sanity Function emulator",
|
|
2379
2137
|
"enableJsonFlag": true,
|
|
2380
2138
|
"needs": [
|
|
2381
|
-
"token",
|
|
2382
2139
|
"blueprint"
|
|
2383
2140
|
],
|
|
2384
2141
|
"isESM": true,
|
|
2385
2142
|
"relativePath": [
|
|
2386
2143
|
"dist",
|
|
2387
2144
|
"commands",
|
|
2388
|
-
"
|
|
2389
|
-
"
|
|
2145
|
+
"functions",
|
|
2146
|
+
"dev.js"
|
|
2390
2147
|
]
|
|
2391
2148
|
},
|
|
2392
|
-
"
|
|
2149
|
+
"functions:logs": {
|
|
2393
2150
|
"aliases": [],
|
|
2394
|
-
"args": {
|
|
2395
|
-
|
|
2151
|
+
"args": {
|
|
2152
|
+
"name": {
|
|
2153
|
+
"description": "The name of the Sanity Function",
|
|
2154
|
+
"name": "name",
|
|
2155
|
+
"required": false
|
|
2156
|
+
}
|
|
2157
|
+
},
|
|
2158
|
+
"description": "Fetches execution logs from a deployed function, useful for debugging production issues or monitoring activity.\n\nUse --watch (-w) to stream logs in real-time. Use --delete to clear all logs for a function (requires confirmation unless --force is specified).",
|
|
2396
2159
|
"examples": [
|
|
2397
|
-
"<%= config.bin %> <%= command.id %>",
|
|
2398
|
-
"<%= config.bin %> <%= command.id %>
|
|
2399
|
-
"<%= config.bin %> <%= command.id %>
|
|
2400
|
-
"<%= config.bin %> <%= command.id %>
|
|
2160
|
+
"<%= config.bin %> <%= command.id %> <name>",
|
|
2161
|
+
"<%= config.bin %> <%= command.id %> <name> --json",
|
|
2162
|
+
"<%= config.bin %> <%= command.id %> <name> --limit 100",
|
|
2163
|
+
"<%= config.bin %> <%= command.id %> <name> --delete"
|
|
2401
2164
|
],
|
|
2402
2165
|
"flags": {
|
|
2403
2166
|
"json": {
|
|
@@ -2441,10 +2204,7 @@
|
|
|
2441
2204
|
"type": "boolean"
|
|
2442
2205
|
},
|
|
2443
2206
|
"stack": {
|
|
2444
|
-
"
|
|
2445
|
-
"id"
|
|
2446
|
-
],
|
|
2447
|
-
"description": "Stack name or ID to promote",
|
|
2207
|
+
"description": "Stack name or ID to use instead of the locally configured Stack",
|
|
2448
2208
|
"name": "stack",
|
|
2449
2209
|
"hasDynamicHelp": false,
|
|
2450
2210
|
"multiple": false,
|
|
@@ -2459,6 +2219,7 @@
|
|
|
2459
2219
|
"exclusive": [
|
|
2460
2220
|
"organization-id"
|
|
2461
2221
|
],
|
|
2222
|
+
"hidden": true,
|
|
2462
2223
|
"name": "project-id",
|
|
2463
2224
|
"hasDynamicHelp": false,
|
|
2464
2225
|
"multiple": false,
|
|
@@ -2480,28 +2241,66 @@
|
|
|
2480
2241
|
"multiple": false,
|
|
2481
2242
|
"type": "option"
|
|
2482
2243
|
},
|
|
2244
|
+
"limit": {
|
|
2245
|
+
"char": "l",
|
|
2246
|
+
"description": "Total number of log entries to retrieve",
|
|
2247
|
+
"name": "limit",
|
|
2248
|
+
"required": false,
|
|
2249
|
+
"default": 50,
|
|
2250
|
+
"hasDynamicHelp": false,
|
|
2251
|
+
"multiple": false,
|
|
2252
|
+
"type": "option"
|
|
2253
|
+
},
|
|
2254
|
+
"utc": {
|
|
2255
|
+
"char": "u",
|
|
2256
|
+
"description": "Show dates in UTC time zone",
|
|
2257
|
+
"name": "utc",
|
|
2258
|
+
"required": false,
|
|
2259
|
+
"allowNo": false,
|
|
2260
|
+
"type": "boolean"
|
|
2261
|
+
},
|
|
2262
|
+
"delete": {
|
|
2263
|
+
"char": "d",
|
|
2264
|
+
"description": "Delete all logs for the function",
|
|
2265
|
+
"exclusive": [
|
|
2266
|
+
"limit",
|
|
2267
|
+
"json"
|
|
2268
|
+
],
|
|
2269
|
+
"name": "delete",
|
|
2270
|
+
"required": false,
|
|
2271
|
+
"allowNo": false,
|
|
2272
|
+
"type": "boolean"
|
|
2273
|
+
},
|
|
2483
2274
|
"force": {
|
|
2484
|
-
"
|
|
2275
|
+
"char": "f",
|
|
2276
|
+
"dependsOn": [
|
|
2277
|
+
"delete"
|
|
2278
|
+
],
|
|
2279
|
+
"description": "Skip confirmation for deleting logs",
|
|
2485
2280
|
"name": "force",
|
|
2281
|
+
"required": false,
|
|
2282
|
+
"allowNo": false,
|
|
2283
|
+
"type": "boolean"
|
|
2284
|
+
},
|
|
2285
|
+
"watch": {
|
|
2286
|
+
"aliases": [
|
|
2287
|
+
"follow"
|
|
2288
|
+
],
|
|
2289
|
+
"char": "w",
|
|
2290
|
+
"description": "Watch for new logs (streaming mode)",
|
|
2291
|
+
"name": "watch",
|
|
2486
2292
|
"allowNo": false,
|
|
2487
2293
|
"type": "boolean"
|
|
2488
|
-
},
|
|
2489
|
-
"new-stack-name": {
|
|
2490
|
-
"description": "Set a new name for the Stack while promoting",
|
|
2491
|
-
"name": "new-stack-name",
|
|
2492
|
-
"hasDynamicHelp": false,
|
|
2493
|
-
"multiple": false,
|
|
2494
|
-
"type": "option"
|
|
2495
2294
|
}
|
|
2496
2295
|
},
|
|
2497
2296
|
"hasDynamicHelp": false,
|
|
2498
2297
|
"hiddenAliases": [],
|
|
2499
|
-
"id": "
|
|
2298
|
+
"id": "functions:logs",
|
|
2500
2299
|
"pluginAlias": "@sanity/runtime-cli",
|
|
2501
2300
|
"pluginName": "@sanity/runtime-cli",
|
|
2502
2301
|
"pluginType": "core",
|
|
2503
2302
|
"strict": true,
|
|
2504
|
-
"summary": "
|
|
2303
|
+
"summary": "Retrieve or delete logs for a Sanity Function",
|
|
2505
2304
|
"enableJsonFlag": true,
|
|
2506
2305
|
"needs": [
|
|
2507
2306
|
"deployedStack",
|
|
@@ -2511,19 +2310,25 @@
|
|
|
2511
2310
|
"relativePath": [
|
|
2512
2311
|
"dist",
|
|
2513
2312
|
"commands",
|
|
2514
|
-
"
|
|
2515
|
-
"
|
|
2313
|
+
"functions",
|
|
2314
|
+
"logs.js"
|
|
2516
2315
|
]
|
|
2517
2316
|
},
|
|
2518
|
-
"
|
|
2317
|
+
"functions:test": {
|
|
2519
2318
|
"aliases": [],
|
|
2520
|
-
"args": {
|
|
2521
|
-
|
|
2319
|
+
"args": {
|
|
2320
|
+
"name": {
|
|
2321
|
+
"description": "The name of the Sanity Function",
|
|
2322
|
+
"name": "name",
|
|
2323
|
+
"required": false
|
|
2324
|
+
}
|
|
2325
|
+
},
|
|
2326
|
+
"description": "Executes a function locally with the provided payload, simulating how it would run when deployed. Use this to test your function logic before deploying.\n\nProvide test data via --data (inline JSON), --file (JSON file), or --document-id (fetch from Sanity). For update events, use the before/after flag pairs to simulate document changes.",
|
|
2522
2327
|
"examples": [
|
|
2523
|
-
"<%= config.bin %> <%= command.id %>",
|
|
2524
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2525
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2526
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2328
|
+
"<%= config.bin %> <%= command.id %> <name> --data '{ \"id\": 1 }'",
|
|
2329
|
+
"<%= config.bin %> <%= command.id %> <name> --file 'payload.json'",
|
|
2330
|
+
"<%= config.bin %> <%= command.id %> <name> --data '{ \"id\": 1 }' --timeout 60",
|
|
2331
|
+
"<%= config.bin %> <%= command.id %> <name> --event update --data-before '{ \"title\": \"before\" }' --data-after '{ \"title\": \"after\" }'"
|
|
2527
2332
|
],
|
|
2528
2333
|
"flags": {
|
|
2529
2334
|
"json": {
|
|
@@ -2581,8 +2386,7 @@
|
|
|
2581
2386
|
],
|
|
2582
2387
|
"description": "Sanity project ID used to scope Blueprint and Stack",
|
|
2583
2388
|
"exclusive": [
|
|
2584
|
-
"organization-id"
|
|
2585
|
-
"include-projects"
|
|
2389
|
+
"organization-id"
|
|
2586
2390
|
],
|
|
2587
2391
|
"name": "project-id",
|
|
2588
2392
|
"hasDynamicHelp": false,
|
|
@@ -2604,34 +2408,230 @@
|
|
|
2604
2408
|
"multiple": false,
|
|
2605
2409
|
"type": "option"
|
|
2606
2410
|
},
|
|
2607
|
-
"
|
|
2608
|
-
"
|
|
2609
|
-
|
|
2411
|
+
"data": {
|
|
2412
|
+
"char": "d",
|
|
2413
|
+
"description": "Data to send to the function",
|
|
2414
|
+
"exclusive": [
|
|
2415
|
+
"file",
|
|
2416
|
+
"document-id"
|
|
2610
2417
|
],
|
|
2611
|
-
"
|
|
2612
|
-
"
|
|
2418
|
+
"name": "data",
|
|
2419
|
+
"required": false,
|
|
2420
|
+
"hasDynamicHelp": false,
|
|
2421
|
+
"multiple": false,
|
|
2422
|
+
"type": "option"
|
|
2423
|
+
},
|
|
2424
|
+
"data-before": {
|
|
2425
|
+
"description": "Original document",
|
|
2426
|
+
"exclusive": [
|
|
2427
|
+
"data",
|
|
2428
|
+
"file",
|
|
2429
|
+
"document-id",
|
|
2430
|
+
"file-before",
|
|
2431
|
+
"file-after",
|
|
2432
|
+
"document-id-before",
|
|
2433
|
+
"document-id-after"
|
|
2434
|
+
],
|
|
2435
|
+
"name": "data-before",
|
|
2436
|
+
"required": false,
|
|
2437
|
+
"hasDynamicHelp": false,
|
|
2438
|
+
"multiple": false,
|
|
2439
|
+
"type": "option"
|
|
2440
|
+
},
|
|
2441
|
+
"data-after": {
|
|
2442
|
+
"description": "Current document",
|
|
2443
|
+
"exclusive": [
|
|
2444
|
+
"data",
|
|
2445
|
+
"file",
|
|
2446
|
+
"document-id",
|
|
2447
|
+
"file-before",
|
|
2448
|
+
"file-after",
|
|
2449
|
+
"document-id-before",
|
|
2450
|
+
"document-id-after"
|
|
2451
|
+
],
|
|
2452
|
+
"name": "data-after",
|
|
2453
|
+
"required": false,
|
|
2454
|
+
"hasDynamicHelp": false,
|
|
2455
|
+
"multiple": false,
|
|
2456
|
+
"type": "option"
|
|
2457
|
+
},
|
|
2458
|
+
"event": {
|
|
2459
|
+
"char": "e",
|
|
2460
|
+
"description": "Type of event (create, update, delete)",
|
|
2461
|
+
"name": "event",
|
|
2462
|
+
"required": false,
|
|
2463
|
+
"hasDynamicHelp": false,
|
|
2464
|
+
"multiple": false,
|
|
2465
|
+
"options": [
|
|
2466
|
+
"create",
|
|
2467
|
+
"update",
|
|
2468
|
+
"delete"
|
|
2469
|
+
],
|
|
2470
|
+
"type": "option"
|
|
2471
|
+
},
|
|
2472
|
+
"file": {
|
|
2473
|
+
"char": "f",
|
|
2474
|
+
"description": "Read data from file and send to the function",
|
|
2475
|
+
"exclusive": [
|
|
2476
|
+
"data",
|
|
2477
|
+
"document-id"
|
|
2478
|
+
],
|
|
2479
|
+
"name": "file",
|
|
2480
|
+
"required": false,
|
|
2481
|
+
"hasDynamicHelp": false,
|
|
2482
|
+
"multiple": false,
|
|
2483
|
+
"type": "option"
|
|
2484
|
+
},
|
|
2485
|
+
"file-before": {
|
|
2486
|
+
"description": "Original document",
|
|
2487
|
+
"exclusive": [
|
|
2488
|
+
"data",
|
|
2489
|
+
"file",
|
|
2490
|
+
"document-id",
|
|
2491
|
+
"data-before",
|
|
2492
|
+
"data-after",
|
|
2493
|
+
"document-id-before",
|
|
2494
|
+
"document-id-after"
|
|
2495
|
+
],
|
|
2496
|
+
"name": "file-before",
|
|
2497
|
+
"required": false,
|
|
2498
|
+
"hasDynamicHelp": false,
|
|
2499
|
+
"multiple": false,
|
|
2500
|
+
"type": "option"
|
|
2501
|
+
},
|
|
2502
|
+
"file-after": {
|
|
2503
|
+
"description": "Current document",
|
|
2504
|
+
"exclusive": [
|
|
2505
|
+
"data",
|
|
2506
|
+
"file",
|
|
2507
|
+
"document-id",
|
|
2508
|
+
"data-before",
|
|
2509
|
+
"data-after",
|
|
2510
|
+
"document-id-before",
|
|
2511
|
+
"document-id-after"
|
|
2512
|
+
],
|
|
2513
|
+
"name": "file-after",
|
|
2514
|
+
"required": false,
|
|
2515
|
+
"hasDynamicHelp": false,
|
|
2516
|
+
"multiple": false,
|
|
2517
|
+
"type": "option"
|
|
2518
|
+
},
|
|
2519
|
+
"timeout": {
|
|
2520
|
+
"char": "t",
|
|
2521
|
+
"description": "Execution timeout value in seconds",
|
|
2522
|
+
"name": "timeout",
|
|
2523
|
+
"required": false,
|
|
2524
|
+
"hasDynamicHelp": false,
|
|
2525
|
+
"multiple": false,
|
|
2526
|
+
"type": "option"
|
|
2527
|
+
},
|
|
2528
|
+
"api": {
|
|
2529
|
+
"char": "a",
|
|
2530
|
+
"description": "Sanity API Version to use",
|
|
2531
|
+
"name": "api",
|
|
2532
|
+
"required": false,
|
|
2533
|
+
"hasDynamicHelp": false,
|
|
2534
|
+
"multiple": false,
|
|
2535
|
+
"type": "option"
|
|
2536
|
+
},
|
|
2537
|
+
"dataset": {
|
|
2538
|
+
"description": "The Sanity dataset to use",
|
|
2539
|
+
"name": "dataset",
|
|
2540
|
+
"required": false,
|
|
2541
|
+
"hasDynamicHelp": false,
|
|
2542
|
+
"multiple": false,
|
|
2543
|
+
"type": "option"
|
|
2544
|
+
},
|
|
2545
|
+
"document-id": {
|
|
2546
|
+
"aliases": [
|
|
2547
|
+
"doc",
|
|
2548
|
+
"documentId"
|
|
2549
|
+
],
|
|
2550
|
+
"description": "Document to fetch and send to function",
|
|
2551
|
+
"exclusive": [
|
|
2552
|
+
"data",
|
|
2553
|
+
"file"
|
|
2554
|
+
],
|
|
2555
|
+
"name": "document-id",
|
|
2556
|
+
"required": false,
|
|
2557
|
+
"hasDynamicHelp": false,
|
|
2558
|
+
"multiple": false,
|
|
2559
|
+
"type": "option"
|
|
2560
|
+
},
|
|
2561
|
+
"document-id-before": {
|
|
2562
|
+
"description": "Original document",
|
|
2563
|
+
"exclusive": [
|
|
2564
|
+
"data",
|
|
2565
|
+
"file",
|
|
2566
|
+
"document-id",
|
|
2567
|
+
"data-before",
|
|
2568
|
+
"data-after",
|
|
2569
|
+
"file-before",
|
|
2570
|
+
"file-after"
|
|
2571
|
+
],
|
|
2572
|
+
"name": "document-id-before",
|
|
2573
|
+
"required": false,
|
|
2574
|
+
"hasDynamicHelp": false,
|
|
2575
|
+
"multiple": false,
|
|
2576
|
+
"type": "option"
|
|
2577
|
+
},
|
|
2578
|
+
"document-id-after": {
|
|
2579
|
+
"description": "Current document",
|
|
2580
|
+
"exclusive": [
|
|
2581
|
+
"data",
|
|
2582
|
+
"file",
|
|
2583
|
+
"document-id",
|
|
2584
|
+
"data-before",
|
|
2585
|
+
"data-after",
|
|
2586
|
+
"file-before",
|
|
2587
|
+
"file-after"
|
|
2588
|
+
],
|
|
2589
|
+
"name": "document-id-after",
|
|
2590
|
+
"required": false,
|
|
2591
|
+
"hasDynamicHelp": false,
|
|
2592
|
+
"multiple": false,
|
|
2593
|
+
"type": "option"
|
|
2594
|
+
},
|
|
2595
|
+
"with-user-token": {
|
|
2596
|
+
"description": "Prime access token from CLI config",
|
|
2597
|
+
"name": "with-user-token",
|
|
2613
2598
|
"allowNo": false,
|
|
2614
2599
|
"type": "boolean"
|
|
2600
|
+
},
|
|
2601
|
+
"media-library-id": {
|
|
2602
|
+
"aliases": [
|
|
2603
|
+
"media"
|
|
2604
|
+
],
|
|
2605
|
+
"description": "Sanity Media Library ID to use",
|
|
2606
|
+
"exclusive": [
|
|
2607
|
+
"project-id",
|
|
2608
|
+
"dataset"
|
|
2609
|
+
],
|
|
2610
|
+
"name": "media-library-id",
|
|
2611
|
+
"required": false,
|
|
2612
|
+
"hasDynamicHelp": false,
|
|
2613
|
+
"multiple": false,
|
|
2614
|
+
"type": "option"
|
|
2615
2615
|
}
|
|
2616
2616
|
},
|
|
2617
2617
|
"hasDynamicHelp": false,
|
|
2618
2618
|
"hiddenAliases": [],
|
|
2619
|
-
"id": "
|
|
2619
|
+
"id": "functions:test",
|
|
2620
2620
|
"pluginAlias": "@sanity/runtime-cli",
|
|
2621
2621
|
"pluginName": "@sanity/runtime-cli",
|
|
2622
2622
|
"pluginType": "core",
|
|
2623
2623
|
"strict": true,
|
|
2624
|
-
"summary": "
|
|
2624
|
+
"summary": "Invoke a local Sanity Function",
|
|
2625
2625
|
"enableJsonFlag": true,
|
|
2626
2626
|
"needs": [
|
|
2627
|
-
"
|
|
2627
|
+
"blueprint"
|
|
2628
2628
|
],
|
|
2629
2629
|
"isESM": true,
|
|
2630
2630
|
"relativePath": [
|
|
2631
2631
|
"dist",
|
|
2632
2632
|
"commands",
|
|
2633
|
-
"
|
|
2634
|
-
"
|
|
2633
|
+
"functions",
|
|
2634
|
+
"test.js"
|
|
2635
2635
|
]
|
|
2636
2636
|
},
|
|
2637
2637
|
"functions:env:add": {
|
|
@@ -2998,5 +2998,5 @@
|
|
|
2998
2998
|
]
|
|
2999
2999
|
}
|
|
3000
3000
|
},
|
|
3001
|
-
"version": "17.3.
|
|
3001
|
+
"version": "17.3.1"
|
|
3002
3002
|
}
|