@sanity/runtime-cli 17.20.0 → 17.20.1-next.g9166da1
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 +19 -19
- package/dist/actions/blueprints/logs-polling.js +7 -1
- package/dist/actions/functions/env/list.d.ts +5 -1
- package/dist/actions/functions/env/list.js +5 -5
- package/dist/actions/functions/env/remove.d.ts +1 -1
- package/dist/actions/functions/env/remove.js +2 -2
- package/dist/actions/functions/env/update.d.ts +1 -1
- package/dist/actions/functions/env/update.js +2 -2
- package/dist/actions/functions/list.js +3 -6
- package/dist/actions/functions/logs.d.ts +6 -2
- package/dist/actions/functions/logs.js +6 -7
- package/dist/utils/functions/api-error.d.ts +6 -0
- package/dist/utils/functions/api-error.js +25 -0
- package/oclif.manifest.json +1052 -1052
- package/package.json +1 -1
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,15 +107,14 @@
|
|
|
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
|
-
"type",
|
|
113
|
+
"fn-type",
|
|
102
114
|
"language",
|
|
103
115
|
"javascript",
|
|
104
|
-
"helpers",
|
|
105
|
-
"installer"
|
|
106
|
-
"install"
|
|
116
|
+
"fn-helpers",
|
|
117
|
+
"fn-installer"
|
|
107
118
|
],
|
|
108
119
|
"name": "example",
|
|
109
120
|
"hasDynamicHelp": false,
|
|
@@ -112,18 +123,21 @@
|
|
|
112
123
|
},
|
|
113
124
|
"name": {
|
|
114
125
|
"char": "n",
|
|
115
|
-
"description": "Name of the
|
|
126
|
+
"description": "Name of the resource to add",
|
|
116
127
|
"name": "name",
|
|
117
128
|
"hasDynamicHelp": false,
|
|
118
129
|
"multiple": false,
|
|
119
130
|
"type": "option"
|
|
120
131
|
},
|
|
121
|
-
"type": {
|
|
132
|
+
"fn-type": {
|
|
133
|
+
"aliases": [
|
|
134
|
+
"function-type"
|
|
135
|
+
],
|
|
122
136
|
"dependsOn": [
|
|
123
137
|
"name"
|
|
124
138
|
],
|
|
125
139
|
"description": "Document change event(s) that should trigger the function; you can specify multiple events by specifying this flag multiple times",
|
|
126
|
-
"name": "type",
|
|
140
|
+
"name": "fn-type",
|
|
127
141
|
"hasDynamicHelp": false,
|
|
128
142
|
"multiple": true,
|
|
129
143
|
"options": [
|
|
@@ -143,9 +157,11 @@
|
|
|
143
157
|
},
|
|
144
158
|
"language": {
|
|
145
159
|
"aliases": [
|
|
160
|
+
"function-language",
|
|
161
|
+
"fn-language",
|
|
146
162
|
"lang"
|
|
147
163
|
],
|
|
148
|
-
"description": "Language of the new
|
|
164
|
+
"description": "Language of the new function",
|
|
149
165
|
"name": "language",
|
|
150
166
|
"default": "ts",
|
|
151
167
|
"hasDynamicHelp": false,
|
|
@@ -168,15 +184,23 @@
|
|
|
168
184
|
"allowNo": false,
|
|
169
185
|
"type": "boolean"
|
|
170
186
|
},
|
|
171
|
-
"helpers": {
|
|
172
|
-
"
|
|
173
|
-
|
|
187
|
+
"fn-helpers": {
|
|
188
|
+
"aliases": [
|
|
189
|
+
"function-helpers",
|
|
190
|
+
"helpers"
|
|
191
|
+
],
|
|
192
|
+
"description": "Add helpers to the new function",
|
|
193
|
+
"name": "fn-helpers",
|
|
174
194
|
"allowNo": true,
|
|
175
195
|
"type": "boolean"
|
|
176
196
|
},
|
|
177
|
-
"installer": {
|
|
178
|
-
"
|
|
179
|
-
|
|
197
|
+
"fn-installer": {
|
|
198
|
+
"aliases": [
|
|
199
|
+
"function-installer",
|
|
200
|
+
"installer"
|
|
201
|
+
],
|
|
202
|
+
"description": "Which package manager to use when installing the @sanity/functions helpers",
|
|
203
|
+
"name": "fn-installer",
|
|
180
204
|
"hasDynamicHelp": false,
|
|
181
205
|
"multiple": false,
|
|
182
206
|
"options": [
|
|
@@ -189,9 +213,9 @@
|
|
|
189
213
|
},
|
|
190
214
|
"install": {
|
|
191
215
|
"char": "i",
|
|
192
|
-
"description": "Shortcut for --installer npm",
|
|
216
|
+
"description": "Shortcut for --fn-installer npm",
|
|
193
217
|
"exclusive": [
|
|
194
|
-
"installer"
|
|
218
|
+
"fn-installer"
|
|
195
219
|
],
|
|
196
220
|
"name": "install",
|
|
197
221
|
"allowNo": false,
|
|
@@ -200,12 +224,13 @@
|
|
|
200
224
|
},
|
|
201
225
|
"hasDynamicHelp": false,
|
|
202
226
|
"hiddenAliases": [],
|
|
203
|
-
"id": "
|
|
227
|
+
"id": "blueprints:add",
|
|
204
228
|
"pluginAlias": "@sanity/runtime-cli",
|
|
205
229
|
"pluginName": "@sanity/runtime-cli",
|
|
206
230
|
"pluginType": "core",
|
|
231
|
+
"state": "deprecated",
|
|
207
232
|
"strict": true,
|
|
208
|
-
"summary": "
|
|
233
|
+
"summary": "[deprecated] Use \"functions add\" instead",
|
|
209
234
|
"enableJsonFlag": true,
|
|
210
235
|
"needs": [
|
|
211
236
|
"blueprint"
|
|
@@ -214,19 +239,20 @@
|
|
|
214
239
|
"relativePath": [
|
|
215
240
|
"dist",
|
|
216
241
|
"commands",
|
|
217
|
-
"
|
|
242
|
+
"blueprints",
|
|
218
243
|
"add.js"
|
|
219
244
|
]
|
|
220
245
|
},
|
|
221
|
-
"
|
|
246
|
+
"blueprints:config": {
|
|
222
247
|
"aliases": [],
|
|
223
|
-
"args": {
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
248
|
+
"args": {},
|
|
249
|
+
"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.",
|
|
250
|
+
"examples": [
|
|
251
|
+
"<%= config.bin %> <%= command.id %>",
|
|
252
|
+
"<%= config.bin %> <%= command.id %> --edit",
|
|
253
|
+
"<%= config.bin %> <%= command.id %> --edit --project-id <projectId>",
|
|
254
|
+
"<%= config.bin %> <%= command.id %> --edit --project-id <projectId> --stack <name-or-id>"
|
|
255
|
+
],
|
|
230
256
|
"flags": {
|
|
231
257
|
"json": {
|
|
232
258
|
"description": "Format output as json",
|
|
@@ -269,8 +295,14 @@
|
|
|
269
295
|
"type": "boolean"
|
|
270
296
|
},
|
|
271
297
|
"stack": {
|
|
272
|
-
"
|
|
273
|
-
|
|
298
|
+
"aliases": [
|
|
299
|
+
"stack-id",
|
|
300
|
+
"stackId"
|
|
301
|
+
],
|
|
302
|
+
"dependsOn": [
|
|
303
|
+
"edit"
|
|
304
|
+
],
|
|
305
|
+
"description": "Stack name or ID to set in the configuration. Requires --edit flag",
|
|
274
306
|
"name": "stack",
|
|
275
307
|
"hasDynamicHelp": false,
|
|
276
308
|
"multiple": false,
|
|
@@ -281,11 +313,13 @@
|
|
|
281
313
|
"project",
|
|
282
314
|
"projectId"
|
|
283
315
|
],
|
|
316
|
+
"dependsOn": [
|
|
317
|
+
"edit"
|
|
318
|
+
],
|
|
284
319
|
"description": "Sanity project ID used to scope Blueprint and Stack",
|
|
285
320
|
"exclusive": [
|
|
286
321
|
"organization-id"
|
|
287
322
|
],
|
|
288
|
-
"hidden": true,
|
|
289
323
|
"name": "project-id",
|
|
290
324
|
"hasDynamicHelp": false,
|
|
291
325
|
"multiple": false,
|
|
@@ -297,70 +331,59 @@
|
|
|
297
331
|
"organizationId",
|
|
298
332
|
"org"
|
|
299
333
|
],
|
|
334
|
+
"dependsOn": [
|
|
335
|
+
"edit"
|
|
336
|
+
],
|
|
300
337
|
"description": "Sanity organization ID used to scope Blueprint and Stack",
|
|
301
338
|
"exclusive": [
|
|
302
339
|
"project-id"
|
|
303
340
|
],
|
|
304
|
-
"hidden": true,
|
|
305
341
|
"name": "organization-id",
|
|
306
342
|
"hasDynamicHelp": false,
|
|
307
343
|
"multiple": false,
|
|
308
344
|
"type": "option"
|
|
309
345
|
},
|
|
310
|
-
"
|
|
311
|
-
"
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
"
|
|
316
|
-
"hidden": true,
|
|
317
|
-
"name": "fn-installer",
|
|
318
|
-
"hasDynamicHelp": false,
|
|
319
|
-
"multiple": false,
|
|
320
|
-
"options": [
|
|
321
|
-
"npm",
|
|
322
|
-
"pnpm",
|
|
323
|
-
"yarn"
|
|
324
|
-
],
|
|
325
|
-
"type": "option"
|
|
326
|
-
},
|
|
327
|
-
"out-dir": {
|
|
328
|
-
"char": "o",
|
|
329
|
-
"description": "Output directory for zip files",
|
|
330
|
-
"name": "out-dir",
|
|
331
|
-
"hasDynamicHelp": false,
|
|
332
|
-
"multiple": false,
|
|
333
|
-
"type": "option"
|
|
346
|
+
"edit": {
|
|
347
|
+
"char": "e",
|
|
348
|
+
"description": "Modify the configuration interactively, or directly when combined with ID flags.",
|
|
349
|
+
"name": "edit",
|
|
350
|
+
"allowNo": false,
|
|
351
|
+
"type": "boolean"
|
|
334
352
|
}
|
|
335
353
|
},
|
|
336
354
|
"hasDynamicHelp": false,
|
|
337
|
-
"hidden": true,
|
|
338
355
|
"hiddenAliases": [],
|
|
339
|
-
"id": "
|
|
356
|
+
"id": "blueprints:config",
|
|
340
357
|
"pluginAlias": "@sanity/runtime-cli",
|
|
341
358
|
"pluginName": "@sanity/runtime-cli",
|
|
342
359
|
"pluginType": "core",
|
|
343
360
|
"strict": true,
|
|
344
|
-
"summary": "
|
|
361
|
+
"summary": "View or edit the local Blueprint configuration",
|
|
345
362
|
"enableJsonFlag": true,
|
|
346
363
|
"needs": [
|
|
364
|
+
"token",
|
|
347
365
|
"blueprint"
|
|
348
366
|
],
|
|
349
367
|
"isESM": true,
|
|
350
368
|
"relativePath": [
|
|
351
369
|
"dist",
|
|
352
370
|
"commands",
|
|
353
|
-
"
|
|
354
|
-
"
|
|
371
|
+
"blueprints",
|
|
372
|
+
"config.js"
|
|
355
373
|
]
|
|
356
374
|
},
|
|
357
|
-
"
|
|
375
|
+
"blueprints:deploy": {
|
|
358
376
|
"aliases": [],
|
|
359
377
|
"args": {},
|
|
360
|
-
"description": "
|
|
378
|
+
"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 180-second timeout for processing resource assets.\n\nSet SANITY_ASSET_CONCURRENCY to override how many resource assets are processed at once (default 4).\n\nExit codes: 0 deployed, 2 deployment failed, 75 deployment accepted but completion could not be confirmed (rerun 'blueprints info' to check).",
|
|
361
379
|
"examples": [
|
|
362
|
-
"<%= config.bin %> <%= command.id %>
|
|
363
|
-
"<%= config.bin %> <%= command.id %> --
|
|
380
|
+
"<%= config.bin %> <%= command.id %>",
|
|
381
|
+
"<%= config.bin %> <%= command.id %> --message \"Enable staging dataset\"",
|
|
382
|
+
"<%= config.bin %> <%= command.id %> --no-wait",
|
|
383
|
+
"<%= config.bin %> <%= command.id %> --fn-installer npm",
|
|
384
|
+
"<%= config.bin %> <%= command.id %> --stack <name-or-id>",
|
|
385
|
+
"<%= config.bin %> <%= command.id %> --organization-id <orgId> --stack <name-or-id>",
|
|
386
|
+
"<%= config.bin %> <%= command.id %> --new-stack-name <new-name>"
|
|
364
387
|
],
|
|
365
388
|
"flags": {
|
|
366
389
|
"json": {
|
|
@@ -405,7 +428,6 @@
|
|
|
405
428
|
},
|
|
406
429
|
"stack": {
|
|
407
430
|
"description": "Stack name or ID to use instead of the locally configured Stack",
|
|
408
|
-
"hidden": true,
|
|
409
431
|
"name": "stack",
|
|
410
432
|
"hasDynamicHelp": false,
|
|
411
433
|
"multiple": false,
|
|
@@ -420,7 +442,6 @@
|
|
|
420
442
|
"exclusive": [
|
|
421
443
|
"organization-id"
|
|
422
444
|
],
|
|
423
|
-
"hidden": true,
|
|
424
445
|
"name": "project-id",
|
|
425
446
|
"hasDynamicHelp": false,
|
|
426
447
|
"multiple": false,
|
|
@@ -436,35 +457,56 @@
|
|
|
436
457
|
"exclusive": [
|
|
437
458
|
"project-id"
|
|
438
459
|
],
|
|
439
|
-
"hidden": true,
|
|
440
460
|
"name": "organization-id",
|
|
441
461
|
"hasDynamicHelp": false,
|
|
442
462
|
"multiple": false,
|
|
443
463
|
"type": "option"
|
|
444
464
|
},
|
|
445
|
-
"
|
|
446
|
-
"char": "
|
|
447
|
-
"description": "
|
|
448
|
-
"name": "
|
|
449
|
-
"required": false,
|
|
465
|
+
"message": {
|
|
466
|
+
"char": "m",
|
|
467
|
+
"description": "Message describing the deployment (e.g. reason for change)",
|
|
468
|
+
"name": "message",
|
|
450
469
|
"hasDynamicHelp": false,
|
|
451
470
|
"multiple": false,
|
|
452
471
|
"type": "option"
|
|
453
472
|
},
|
|
454
|
-
"
|
|
455
|
-
"
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
473
|
+
"fn-installer": {
|
|
474
|
+
"aliases": [
|
|
475
|
+
"function-installer",
|
|
476
|
+
"installer"
|
|
477
|
+
],
|
|
478
|
+
"description": "Which package manager to use when installing Function dependencies",
|
|
479
|
+
"hidden": true,
|
|
480
|
+
"name": "fn-installer",
|
|
459
481
|
"hasDynamicHelp": false,
|
|
460
482
|
"multiple": false,
|
|
483
|
+
"options": [
|
|
484
|
+
"npm",
|
|
485
|
+
"pnpm",
|
|
486
|
+
"yarn"
|
|
487
|
+
],
|
|
461
488
|
"type": "option"
|
|
462
489
|
},
|
|
463
|
-
"
|
|
464
|
-
"
|
|
465
|
-
"
|
|
466
|
-
"
|
|
467
|
-
"
|
|
490
|
+
"no-wait": {
|
|
491
|
+
"description": "Do not wait for Stack deployment to complete",
|
|
492
|
+
"name": "no-wait",
|
|
493
|
+
"allowNo": false,
|
|
494
|
+
"type": "boolean"
|
|
495
|
+
},
|
|
496
|
+
"configure": {
|
|
497
|
+
"aliases": [
|
|
498
|
+
"config",
|
|
499
|
+
"init"
|
|
500
|
+
],
|
|
501
|
+
"description": "Configure the local Blueprint interactively before deploying",
|
|
502
|
+
"hidden": true,
|
|
503
|
+
"name": "configure",
|
|
504
|
+
"allowNo": false,
|
|
505
|
+
"type": "boolean"
|
|
506
|
+
},
|
|
507
|
+
"new-stack-name": {
|
|
508
|
+
"description": "Set a new name for the Stack",
|
|
509
|
+
"name": "new-stack-name",
|
|
468
510
|
"hasDynamicHelp": false,
|
|
469
511
|
"multiple": false,
|
|
470
512
|
"type": "option"
|
|
@@ -472,34 +514,32 @@
|
|
|
472
514
|
},
|
|
473
515
|
"hasDynamicHelp": false,
|
|
474
516
|
"hiddenAliases": [],
|
|
475
|
-
"id": "
|
|
517
|
+
"id": "blueprints:deploy",
|
|
476
518
|
"pluginAlias": "@sanity/runtime-cli",
|
|
477
519
|
"pluginName": "@sanity/runtime-cli",
|
|
478
520
|
"pluginType": "core",
|
|
479
521
|
"strict": true,
|
|
480
|
-
"summary": "
|
|
522
|
+
"summary": "Deploy the local Blueprint to the remote Stack",
|
|
481
523
|
"enableJsonFlag": true,
|
|
482
524
|
"needs": [
|
|
525
|
+
"deployedStack",
|
|
483
526
|
"blueprint"
|
|
484
527
|
],
|
|
485
528
|
"isESM": true,
|
|
486
529
|
"relativePath": [
|
|
487
530
|
"dist",
|
|
488
531
|
"commands",
|
|
489
|
-
"
|
|
490
|
-
"
|
|
532
|
+
"blueprints",
|
|
533
|
+
"deploy.js"
|
|
491
534
|
]
|
|
492
535
|
},
|
|
493
|
-
"
|
|
536
|
+
"blueprints:destroy": {
|
|
494
537
|
"aliases": [],
|
|
495
538
|
"args": {},
|
|
496
|
-
"description": "
|
|
539
|
+
"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).",
|
|
497
540
|
"examples": [
|
|
498
541
|
"<%= config.bin %> <%= command.id %>",
|
|
499
|
-
"<%= config.bin %> <%= command.id %> --
|
|
500
|
-
"<%= config.bin %> <%= command.id %> --project-id <projectId>",
|
|
501
|
-
"<%= config.bin %> <%= command.id %> --organization-id <organizationId>",
|
|
502
|
-
"<%= config.bin %> <%= command.id %> --project-id <projectId> --json"
|
|
542
|
+
"<%= config.bin %> <%= command.id %> --stack <name-or-id> --project-id <projectId> --force --no-wait"
|
|
503
543
|
],
|
|
504
544
|
"flags": {
|
|
505
545
|
"json": {
|
|
@@ -536,15 +576,18 @@
|
|
|
536
576
|
"type": "boolean"
|
|
537
577
|
},
|
|
538
578
|
"verbose": {
|
|
539
|
-
"
|
|
540
|
-
"
|
|
579
|
+
"description": "Verbose output",
|
|
580
|
+
"hidden": true,
|
|
541
581
|
"name": "verbose",
|
|
542
582
|
"allowNo": false,
|
|
543
583
|
"type": "boolean"
|
|
544
584
|
},
|
|
545
585
|
"stack": {
|
|
546
|
-
"
|
|
547
|
-
|
|
586
|
+
"aliases": [
|
|
587
|
+
"stack-id",
|
|
588
|
+
"stackId"
|
|
589
|
+
],
|
|
590
|
+
"description": "Stack name or ID to destroy (defaults to the locally configured Stack)",
|
|
548
591
|
"name": "stack",
|
|
549
592
|
"hasDynamicHelp": false,
|
|
550
593
|
"multiple": false,
|
|
@@ -555,9 +598,13 @@
|
|
|
555
598
|
"project",
|
|
556
599
|
"projectId"
|
|
557
600
|
],
|
|
558
|
-
"
|
|
559
|
-
|
|
560
|
-
"
|
|
601
|
+
"dependsOn": [
|
|
602
|
+
"stack",
|
|
603
|
+
"force"
|
|
604
|
+
],
|
|
605
|
+
"description": "Sanity project ID used to scope Blueprint and Stack",
|
|
606
|
+
"exclusive": [
|
|
607
|
+
"organization-id"
|
|
561
608
|
],
|
|
562
609
|
"name": "project-id",
|
|
563
610
|
"hasDynamicHelp": false,
|
|
@@ -570,6 +617,10 @@
|
|
|
570
617
|
"organizationId",
|
|
571
618
|
"org"
|
|
572
619
|
],
|
|
620
|
+
"dependsOn": [
|
|
621
|
+
"stack",
|
|
622
|
+
"force"
|
|
623
|
+
],
|
|
573
624
|
"description": "Sanity organization ID used to scope Blueprint and Stack",
|
|
574
625
|
"exclusive": [
|
|
575
626
|
"project-id"
|
|
@@ -578,17 +629,29 @@
|
|
|
578
629
|
"hasDynamicHelp": false,
|
|
579
630
|
"multiple": false,
|
|
580
631
|
"type": "option"
|
|
632
|
+
},
|
|
633
|
+
"force": {
|
|
634
|
+
"char": "f",
|
|
635
|
+
"description": "Force Stack destruction (skip confirmation)",
|
|
636
|
+
"name": "force",
|
|
637
|
+
"allowNo": false,
|
|
638
|
+
"type": "boolean"
|
|
639
|
+
},
|
|
640
|
+
"no-wait": {
|
|
641
|
+
"description": "Do not wait for Stack destruction to complete",
|
|
642
|
+
"name": "no-wait",
|
|
643
|
+
"allowNo": false,
|
|
644
|
+
"type": "boolean"
|
|
581
645
|
}
|
|
582
646
|
},
|
|
583
647
|
"hasDynamicHelp": false,
|
|
584
|
-
"hidden": true,
|
|
585
648
|
"hiddenAliases": [],
|
|
586
|
-
"id": "
|
|
649
|
+
"id": "blueprints:destroy",
|
|
587
650
|
"pluginAlias": "@sanity/runtime-cli",
|
|
588
651
|
"pluginName": "@sanity/runtime-cli",
|
|
589
652
|
"pluginType": "core",
|
|
590
653
|
"strict": true,
|
|
591
|
-
"summary": "
|
|
654
|
+
"summary": "Destroy a remote Stack deployment and its resources",
|
|
592
655
|
"enableJsonFlag": true,
|
|
593
656
|
"needs": [
|
|
594
657
|
"scope"
|
|
@@ -597,25 +660,91 @@
|
|
|
597
660
|
"relativePath": [
|
|
598
661
|
"dist",
|
|
599
662
|
"commands",
|
|
600
|
-
"
|
|
601
|
-
"
|
|
663
|
+
"blueprints",
|
|
664
|
+
"destroy.js"
|
|
602
665
|
]
|
|
603
666
|
},
|
|
604
|
-
"
|
|
667
|
+
"blueprints:doctor": {
|
|
605
668
|
"aliases": [],
|
|
606
|
-
"args": {
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
669
|
+
"args": {},
|
|
670
|
+
"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.",
|
|
671
|
+
"examples": [
|
|
672
|
+
"<%= config.bin %> <%= command.id %>",
|
|
673
|
+
"<%= config.bin %> <%= command.id %> --fix"
|
|
674
|
+
],
|
|
675
|
+
"flags": {
|
|
676
|
+
"json": {
|
|
677
|
+
"description": "Format output as json",
|
|
678
|
+
"name": "json",
|
|
679
|
+
"allowNo": false,
|
|
680
|
+
"type": "boolean"
|
|
681
|
+
},
|
|
682
|
+
"path": {
|
|
683
|
+
"aliases": [
|
|
684
|
+
"blueprint-path"
|
|
685
|
+
],
|
|
686
|
+
"char": "p",
|
|
687
|
+
"description": "Path to a Blueprint file or directory containing one",
|
|
688
|
+
"env": "SANITY_BLUEPRINT_PATH",
|
|
689
|
+
"name": "path",
|
|
690
|
+
"hasDynamicHelp": false,
|
|
691
|
+
"multiple": false,
|
|
692
|
+
"type": "option"
|
|
693
|
+
},
|
|
694
|
+
"trace": {
|
|
695
|
+
"description": "Trace output",
|
|
696
|
+
"hidden": true,
|
|
697
|
+
"name": "trace",
|
|
698
|
+
"allowNo": false,
|
|
699
|
+
"type": "boolean"
|
|
700
|
+
},
|
|
701
|
+
"validate-resources": {
|
|
702
|
+
"description": "Validate resources",
|
|
703
|
+
"hidden": true,
|
|
704
|
+
"name": "validate-resources",
|
|
705
|
+
"allowNo": true,
|
|
706
|
+
"type": "boolean"
|
|
707
|
+
},
|
|
708
|
+
"verbose": {
|
|
709
|
+
"description": "Verbose output",
|
|
710
|
+
"hidden": true,
|
|
711
|
+
"name": "verbose",
|
|
712
|
+
"allowNo": false,
|
|
713
|
+
"type": "boolean"
|
|
714
|
+
},
|
|
715
|
+
"fix": {
|
|
716
|
+
"description": "Interactively fix configuration issues",
|
|
717
|
+
"name": "fix",
|
|
718
|
+
"allowNo": false,
|
|
719
|
+
"type": "boolean"
|
|
611
720
|
}
|
|
612
721
|
},
|
|
613
|
-
"
|
|
722
|
+
"hasDynamicHelp": false,
|
|
723
|
+
"hiddenAliases": [],
|
|
724
|
+
"id": "blueprints:doctor",
|
|
725
|
+
"pluginAlias": "@sanity/runtime-cli",
|
|
726
|
+
"pluginName": "@sanity/runtime-cli",
|
|
727
|
+
"pluginType": "core",
|
|
728
|
+
"strict": true,
|
|
729
|
+
"summary": "Diagnose potential issues with local Blueprint and remote Stack configuration",
|
|
730
|
+
"enableJsonFlag": true,
|
|
731
|
+
"isESM": true,
|
|
732
|
+
"relativePath": [
|
|
733
|
+
"dist",
|
|
734
|
+
"commands",
|
|
735
|
+
"blueprints",
|
|
736
|
+
"doctor.js"
|
|
737
|
+
]
|
|
738
|
+
},
|
|
739
|
+
"blueprints:info": {
|
|
740
|
+
"aliases": [],
|
|
741
|
+
"args": {},
|
|
742
|
+
"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.",
|
|
614
743
|
"examples": [
|
|
615
|
-
"<%= config.bin %> <%= command.id %>
|
|
616
|
-
"<%= config.bin %> <%= command.id %> <name>
|
|
617
|
-
"<%= config.bin %> <%= command.id %> <
|
|
618
|
-
"<%= config.bin %> <%= command.id %> <
|
|
744
|
+
"<%= config.bin %> <%= command.id %>",
|
|
745
|
+
"<%= config.bin %> <%= command.id %> --stack <name-or-id>",
|
|
746
|
+
"<%= config.bin %> <%= command.id %> --project-id <id> --stack <name-or-id>",
|
|
747
|
+
"<%= config.bin %> <%= command.id %> --organization-id <orgId> --stack <name-or-id>"
|
|
619
748
|
],
|
|
620
749
|
"flags": {
|
|
621
750
|
"json": {
|
|
@@ -652,14 +781,17 @@
|
|
|
652
781
|
"type": "boolean"
|
|
653
782
|
},
|
|
654
783
|
"verbose": {
|
|
655
|
-
"
|
|
656
|
-
"
|
|
784
|
+
"char": "v",
|
|
785
|
+
"description": "Show resource and external IDs",
|
|
657
786
|
"name": "verbose",
|
|
658
787
|
"allowNo": false,
|
|
659
788
|
"type": "boolean"
|
|
660
789
|
},
|
|
661
790
|
"stack": {
|
|
662
|
-
"
|
|
791
|
+
"aliases": [
|
|
792
|
+
"id"
|
|
793
|
+
],
|
|
794
|
+
"description": "Stack name or ID",
|
|
663
795
|
"name": "stack",
|
|
664
796
|
"hasDynamicHelp": false,
|
|
665
797
|
"multiple": false,
|
|
@@ -674,7 +806,6 @@
|
|
|
674
806
|
"exclusive": [
|
|
675
807
|
"organization-id"
|
|
676
808
|
],
|
|
677
|
-
"hidden": true,
|
|
678
809
|
"name": "project-id",
|
|
679
810
|
"hasDynamicHelp": false,
|
|
680
811
|
"multiple": false,
|
|
@@ -690,103 +821,52 @@
|
|
|
690
821
|
"exclusive": [
|
|
691
822
|
"project-id"
|
|
692
823
|
],
|
|
693
|
-
"hidden": true,
|
|
694
824
|
"name": "organization-id",
|
|
695
825
|
"hasDynamicHelp": false,
|
|
696
826
|
"multiple": false,
|
|
697
827
|
"type": "option"
|
|
698
|
-
},
|
|
699
|
-
"limit": {
|
|
700
|
-
"char": "l",
|
|
701
|
-
"description": "Total number of log entries to retrieve",
|
|
702
|
-
"name": "limit",
|
|
703
|
-
"required": false,
|
|
704
|
-
"default": 50,
|
|
705
|
-
"hasDynamicHelp": false,
|
|
706
|
-
"multiple": false,
|
|
707
|
-
"type": "option"
|
|
708
|
-
},
|
|
709
|
-
"utc": {
|
|
710
|
-
"char": "u",
|
|
711
|
-
"description": "Show dates in UTC time zone",
|
|
712
|
-
"name": "utc",
|
|
713
|
-
"required": false,
|
|
714
|
-
"allowNo": false,
|
|
715
|
-
"type": "boolean"
|
|
716
|
-
},
|
|
717
|
-
"delete": {
|
|
718
|
-
"char": "d",
|
|
719
|
-
"description": "Delete all logs for the function",
|
|
720
|
-
"exclusive": [
|
|
721
|
-
"limit",
|
|
722
|
-
"json"
|
|
723
|
-
],
|
|
724
|
-
"name": "delete",
|
|
725
|
-
"required": false,
|
|
726
|
-
"allowNo": false,
|
|
727
|
-
"type": "boolean"
|
|
728
|
-
},
|
|
729
|
-
"force": {
|
|
730
|
-
"char": "f",
|
|
731
|
-
"dependsOn": [
|
|
732
|
-
"delete"
|
|
733
|
-
],
|
|
734
|
-
"description": "Skip confirmation for deleting logs",
|
|
735
|
-
"name": "force",
|
|
736
|
-
"required": false,
|
|
737
|
-
"allowNo": false,
|
|
738
|
-
"type": "boolean"
|
|
739
|
-
},
|
|
740
|
-
"watch": {
|
|
741
|
-
"aliases": [
|
|
742
|
-
"follow"
|
|
743
|
-
],
|
|
744
|
-
"char": "w",
|
|
745
|
-
"description": "Watch for new logs (streaming mode)",
|
|
746
|
-
"exclusive": [
|
|
747
|
-
"json"
|
|
748
|
-
],
|
|
749
|
-
"name": "watch",
|
|
750
|
-
"allowNo": false,
|
|
751
|
-
"type": "boolean"
|
|
752
828
|
}
|
|
753
829
|
},
|
|
754
830
|
"hasDynamicHelp": false,
|
|
755
831
|
"hiddenAliases": [],
|
|
756
|
-
"id": "
|
|
832
|
+
"id": "blueprints:info",
|
|
757
833
|
"pluginAlias": "@sanity/runtime-cli",
|
|
758
834
|
"pluginName": "@sanity/runtime-cli",
|
|
759
835
|
"pluginType": "core",
|
|
760
836
|
"strict": true,
|
|
761
|
-
"summary": "
|
|
837
|
+
"summary": "Display the status and resources of the remote Stack deployment",
|
|
762
838
|
"enableJsonFlag": true,
|
|
763
839
|
"needs": [
|
|
764
|
-
"deployedStack"
|
|
765
|
-
"blueprint"
|
|
840
|
+
"deployedStack"
|
|
766
841
|
],
|
|
767
842
|
"isESM": true,
|
|
768
843
|
"relativePath": [
|
|
769
844
|
"dist",
|
|
770
845
|
"commands",
|
|
771
|
-
"
|
|
772
|
-
"
|
|
846
|
+
"blueprints",
|
|
847
|
+
"info.js"
|
|
773
848
|
]
|
|
774
849
|
},
|
|
775
|
-
"
|
|
850
|
+
"blueprints:init": {
|
|
776
851
|
"aliases": [],
|
|
777
852
|
"args": {
|
|
778
|
-
"
|
|
779
|
-
"description": "
|
|
780
|
-
"name": "
|
|
781
|
-
"required": false
|
|
853
|
+
"dir": {
|
|
854
|
+
"description": "Directory to create the local Blueprint in (defaults to the current directory)",
|
|
855
|
+
"name": "dir"
|
|
782
856
|
}
|
|
783
857
|
},
|
|
784
|
-
"description": "
|
|
858
|
+
"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\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. A .gitignore covering node_modules, .env, and Function build output is created or updated; the .sanity/ config itself is not ignored.\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.",
|
|
785
859
|
"examples": [
|
|
786
|
-
"<%= config.bin %> <%= command.id %>
|
|
787
|
-
"<%= config.bin %> <%= command.id %>
|
|
788
|
-
"<%= config.bin %> <%= command.id %>
|
|
789
|
-
"<%= config.bin %> <%= command.id %>
|
|
860
|
+
"<%= config.bin %> <%= command.id %>",
|
|
861
|
+
"<%= config.bin %> <%= command.id %> .",
|
|
862
|
+
"<%= config.bin %> <%= command.id %> [directory]",
|
|
863
|
+
"<%= config.bin %> <%= command.id %> --blueprint-type <json|js|ts>",
|
|
864
|
+
"<%= config.bin %> <%= command.id %> --organization-id <organizationId>",
|
|
865
|
+
"<%= config.bin %> <%= command.id %> --project-id <projectId>",
|
|
866
|
+
"<%= config.bin %> <%= command.id %> --stack-name <newStackName>",
|
|
867
|
+
"<%= config.bin %> <%= command.id %> --stack-id <existingStackId>",
|
|
868
|
+
"<%= config.bin %> <%= command.id %> new-stack --type <json|js|ts> --org <organizationId> --name <newStackName>",
|
|
869
|
+
"<%= config.bin %> <%= command.id %> old-stack --type <json|js|ts> --project-id <projectId> --stack-id <existingStackId>"
|
|
790
870
|
],
|
|
791
871
|
"flags": {
|
|
792
872
|
"json": {
|
|
@@ -829,299 +909,145 @@
|
|
|
829
909
|
"allowNo": false,
|
|
830
910
|
"type": "boolean"
|
|
831
911
|
},
|
|
832
|
-
"
|
|
833
|
-
"description": "
|
|
834
|
-
"
|
|
835
|
-
"name": "stack",
|
|
912
|
+
"dir": {
|
|
913
|
+
"description": "Directory to create the local Blueprint in",
|
|
914
|
+
"name": "dir",
|
|
836
915
|
"hasDynamicHelp": false,
|
|
837
916
|
"multiple": false,
|
|
838
917
|
"type": "option"
|
|
839
918
|
},
|
|
840
|
-
"
|
|
919
|
+
"example": {
|
|
841
920
|
"aliases": [
|
|
842
|
-
"
|
|
843
|
-
"projectId"
|
|
921
|
+
"recipe"
|
|
844
922
|
],
|
|
845
|
-
"description": "
|
|
923
|
+
"description": "Example to use for the local Blueprint",
|
|
846
924
|
"exclusive": [
|
|
847
|
-
"
|
|
925
|
+
"blueprint-type",
|
|
926
|
+
"stack-id",
|
|
927
|
+
"stack-name"
|
|
848
928
|
],
|
|
849
|
-
"name": "
|
|
929
|
+
"name": "example",
|
|
850
930
|
"hasDynamicHelp": false,
|
|
851
931
|
"multiple": false,
|
|
852
932
|
"type": "option"
|
|
853
933
|
},
|
|
854
|
-
"
|
|
934
|
+
"blueprint-type": {
|
|
855
935
|
"aliases": [
|
|
856
|
-
"
|
|
857
|
-
"organizationId",
|
|
858
|
-
"org"
|
|
859
|
-
],
|
|
860
|
-
"description": "Sanity organization ID used to scope Blueprint and Stack",
|
|
861
|
-
"exclusive": [
|
|
862
|
-
"project-id"
|
|
936
|
+
"type"
|
|
863
937
|
],
|
|
864
|
-
"
|
|
865
|
-
"
|
|
866
|
-
"multiple": false,
|
|
867
|
-
"type": "option"
|
|
868
|
-
},
|
|
869
|
-
"data": {
|
|
870
|
-
"char": "d",
|
|
871
|
-
"description": "Data to send to the function",
|
|
872
|
-
"exclusive": [
|
|
873
|
-
"file",
|
|
874
|
-
"document-id"
|
|
875
|
-
],
|
|
876
|
-
"name": "data",
|
|
877
|
-
"required": false,
|
|
878
|
-
"hasDynamicHelp": false,
|
|
879
|
-
"multiple": false,
|
|
880
|
-
"type": "option"
|
|
881
|
-
},
|
|
882
|
-
"data-before": {
|
|
883
|
-
"description": "Original document",
|
|
884
|
-
"exclusive": [
|
|
885
|
-
"data",
|
|
886
|
-
"file",
|
|
887
|
-
"document-id",
|
|
888
|
-
"file-before",
|
|
889
|
-
"file-after",
|
|
890
|
-
"document-id-before",
|
|
891
|
-
"document-id-after"
|
|
892
|
-
],
|
|
893
|
-
"name": "data-before",
|
|
894
|
-
"required": false,
|
|
895
|
-
"hasDynamicHelp": false,
|
|
896
|
-
"multiple": false,
|
|
897
|
-
"type": "option"
|
|
898
|
-
},
|
|
899
|
-
"data-after": {
|
|
900
|
-
"description": "Current document",
|
|
901
|
-
"exclusive": [
|
|
902
|
-
"data",
|
|
903
|
-
"file",
|
|
904
|
-
"document-id",
|
|
905
|
-
"file-before",
|
|
906
|
-
"file-after",
|
|
907
|
-
"document-id-before",
|
|
908
|
-
"document-id-after"
|
|
909
|
-
],
|
|
910
|
-
"name": "data-after",
|
|
911
|
-
"required": false,
|
|
912
|
-
"hasDynamicHelp": false,
|
|
913
|
-
"multiple": false,
|
|
914
|
-
"type": "option"
|
|
915
|
-
},
|
|
916
|
-
"event": {
|
|
917
|
-
"char": "e",
|
|
918
|
-
"description": "Type of event (create, update, delete)",
|
|
919
|
-
"name": "event",
|
|
920
|
-
"required": false,
|
|
938
|
+
"description": "Blueprint manifest type to use for the local Blueprint",
|
|
939
|
+
"name": "blueprint-type",
|
|
921
940
|
"hasDynamicHelp": false,
|
|
922
941
|
"multiple": false,
|
|
923
942
|
"options": [
|
|
924
|
-
"
|
|
925
|
-
"
|
|
926
|
-
"
|
|
927
|
-
],
|
|
928
|
-
"type": "option"
|
|
929
|
-
},
|
|
930
|
-
"file": {
|
|
931
|
-
"char": "f",
|
|
932
|
-
"description": "Read data from file and send to the function",
|
|
933
|
-
"exclusive": [
|
|
934
|
-
"data",
|
|
935
|
-
"document-id"
|
|
943
|
+
"json",
|
|
944
|
+
"js",
|
|
945
|
+
"ts"
|
|
936
946
|
],
|
|
937
|
-
"name": "file",
|
|
938
|
-
"required": false,
|
|
939
|
-
"hasDynamicHelp": false,
|
|
940
|
-
"multiple": false,
|
|
941
947
|
"type": "option"
|
|
942
948
|
},
|
|
943
|
-
"
|
|
944
|
-
"
|
|
945
|
-
|
|
946
|
-
"
|
|
947
|
-
"file",
|
|
948
|
-
"document-id",
|
|
949
|
-
"data-before",
|
|
950
|
-
"data-after",
|
|
951
|
-
"document-id-before",
|
|
952
|
-
"document-id-after"
|
|
949
|
+
"project-id": {
|
|
950
|
+
"aliases": [
|
|
951
|
+
"project",
|
|
952
|
+
"projectId"
|
|
953
953
|
],
|
|
954
|
-
"
|
|
955
|
-
"required": false,
|
|
956
|
-
"hasDynamicHelp": false,
|
|
957
|
-
"multiple": false,
|
|
958
|
-
"type": "option"
|
|
959
|
-
},
|
|
960
|
-
"file-after": {
|
|
961
|
-
"description": "Current document",
|
|
954
|
+
"description": "Sanity project ID used to scope Blueprint and Stack",
|
|
962
955
|
"exclusive": [
|
|
963
|
-
"
|
|
964
|
-
"file",
|
|
965
|
-
"document-id",
|
|
966
|
-
"data-before",
|
|
967
|
-
"data-after",
|
|
968
|
-
"document-id-before",
|
|
969
|
-
"document-id-after"
|
|
956
|
+
"organization-id"
|
|
970
957
|
],
|
|
971
|
-
"name": "
|
|
972
|
-
"required": false,
|
|
973
|
-
"hasDynamicHelp": false,
|
|
974
|
-
"multiple": false,
|
|
975
|
-
"type": "option"
|
|
976
|
-
},
|
|
977
|
-
"timeout": {
|
|
978
|
-
"char": "t",
|
|
979
|
-
"description": "Execution timeout value in seconds",
|
|
980
|
-
"name": "timeout",
|
|
981
|
-
"required": false,
|
|
982
|
-
"hasDynamicHelp": false,
|
|
983
|
-
"multiple": false,
|
|
984
|
-
"type": "option"
|
|
985
|
-
},
|
|
986
|
-
"api": {
|
|
987
|
-
"char": "a",
|
|
988
|
-
"description": "Sanity API Version to use",
|
|
989
|
-
"name": "api",
|
|
990
|
-
"required": false,
|
|
991
|
-
"hasDynamicHelp": false,
|
|
992
|
-
"multiple": false,
|
|
993
|
-
"type": "option"
|
|
994
|
-
},
|
|
995
|
-
"dataset": {
|
|
996
|
-
"description": "The Sanity dataset to use",
|
|
997
|
-
"name": "dataset",
|
|
998
|
-
"required": false,
|
|
958
|
+
"name": "project-id",
|
|
999
959
|
"hasDynamicHelp": false,
|
|
1000
960
|
"multiple": false,
|
|
1001
961
|
"type": "option"
|
|
1002
962
|
},
|
|
1003
|
-
"
|
|
963
|
+
"organization-id": {
|
|
1004
964
|
"aliases": [
|
|
1005
|
-
"
|
|
1006
|
-
"
|
|
965
|
+
"organization",
|
|
966
|
+
"organizationId",
|
|
967
|
+
"org"
|
|
1007
968
|
],
|
|
1008
|
-
"description": "
|
|
969
|
+
"description": "Sanity organization ID used to scope Blueprint and Stack",
|
|
1009
970
|
"exclusive": [
|
|
1010
|
-
"
|
|
1011
|
-
"file"
|
|
971
|
+
"project-id"
|
|
1012
972
|
],
|
|
1013
|
-
"name": "
|
|
1014
|
-
"required": false,
|
|
973
|
+
"name": "organization-id",
|
|
1015
974
|
"hasDynamicHelp": false,
|
|
1016
975
|
"multiple": false,
|
|
1017
976
|
"type": "option"
|
|
1018
977
|
},
|
|
1019
|
-
"
|
|
1020
|
-
"
|
|
1021
|
-
|
|
1022
|
-
"data",
|
|
1023
|
-
"file",
|
|
1024
|
-
"document-id",
|
|
1025
|
-
"data-before",
|
|
1026
|
-
"data-after",
|
|
1027
|
-
"file-before",
|
|
1028
|
-
"file-after"
|
|
978
|
+
"stack-id": {
|
|
979
|
+
"aliases": [
|
|
980
|
+
"stackId"
|
|
1029
981
|
],
|
|
1030
|
-
"
|
|
1031
|
-
"required": false,
|
|
1032
|
-
"hasDynamicHelp": false,
|
|
1033
|
-
"multiple": false,
|
|
1034
|
-
"type": "option"
|
|
1035
|
-
},
|
|
1036
|
-
"document-id-after": {
|
|
1037
|
-
"description": "Current document",
|
|
982
|
+
"description": "Existing Stack ID used to scope local Blueprint",
|
|
1038
983
|
"exclusive": [
|
|
1039
|
-
"
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
984
|
+
"stack-name"
|
|
985
|
+
],
|
|
986
|
+
"name": "stack-id",
|
|
987
|
+
"relationships": [
|
|
988
|
+
{
|
|
989
|
+
"type": "some",
|
|
990
|
+
"flags": [
|
|
991
|
+
"project-id",
|
|
992
|
+
"organization-id"
|
|
993
|
+
]
|
|
994
|
+
}
|
|
1046
995
|
],
|
|
1047
|
-
"name": "document-id-after",
|
|
1048
|
-
"required": false,
|
|
1049
996
|
"hasDynamicHelp": false,
|
|
1050
997
|
"multiple": false,
|
|
1051
998
|
"type": "option"
|
|
1052
999
|
},
|
|
1053
|
-
"
|
|
1054
|
-
"description": "Prime access token from CLI config",
|
|
1055
|
-
"name": "with-user-token",
|
|
1056
|
-
"allowNo": false,
|
|
1057
|
-
"type": "boolean"
|
|
1058
|
-
},
|
|
1059
|
-
"media-library-id": {
|
|
1000
|
+
"stack-name": {
|
|
1060
1001
|
"aliases": [
|
|
1061
|
-
"
|
|
1002
|
+
"name"
|
|
1062
1003
|
],
|
|
1063
|
-
"description": "
|
|
1004
|
+
"description": "Name to use for a new Stack provisioned during initialization",
|
|
1064
1005
|
"exclusive": [
|
|
1065
|
-
"
|
|
1066
|
-
|
|
1006
|
+
"stack-id"
|
|
1007
|
+
],
|
|
1008
|
+
"name": "stack-name",
|
|
1009
|
+
"relationships": [
|
|
1010
|
+
{
|
|
1011
|
+
"type": "some",
|
|
1012
|
+
"flags": [
|
|
1013
|
+
"project-id",
|
|
1014
|
+
"organization-id"
|
|
1015
|
+
]
|
|
1016
|
+
}
|
|
1067
1017
|
],
|
|
1068
|
-
"name": "media-library-id",
|
|
1069
|
-
"required": false,
|
|
1070
1018
|
"hasDynamicHelp": false,
|
|
1071
1019
|
"multiple": false,
|
|
1072
1020
|
"type": "option"
|
|
1073
|
-
},
|
|
1074
|
-
"no-wait": {
|
|
1075
|
-
"description": "Skip durable wait delays instead of sleeping",
|
|
1076
|
-
"name": "no-wait",
|
|
1077
|
-
"required": false,
|
|
1078
|
-
"allowNo": false,
|
|
1079
|
-
"type": "boolean"
|
|
1080
1021
|
}
|
|
1081
1022
|
},
|
|
1082
1023
|
"hasDynamicHelp": false,
|
|
1083
1024
|
"hiddenAliases": [],
|
|
1084
|
-
"id": "
|
|
1025
|
+
"id": "blueprints:init",
|
|
1085
1026
|
"pluginAlias": "@sanity/runtime-cli",
|
|
1086
1027
|
"pluginName": "@sanity/runtime-cli",
|
|
1087
1028
|
"pluginType": "core",
|
|
1088
1029
|
"strict": true,
|
|
1089
|
-
"summary": "
|
|
1030
|
+
"summary": "Initialize a Blueprint and create a remote Stack",
|
|
1090
1031
|
"enableJsonFlag": true,
|
|
1091
|
-
"needs": [
|
|
1092
|
-
"blueprint"
|
|
1093
|
-
],
|
|
1094
1032
|
"isESM": true,
|
|
1095
1033
|
"relativePath": [
|
|
1096
1034
|
"dist",
|
|
1097
1035
|
"commands",
|
|
1098
|
-
"
|
|
1099
|
-
"
|
|
1036
|
+
"blueprints",
|
|
1037
|
+
"init.js"
|
|
1100
1038
|
]
|
|
1101
1039
|
},
|
|
1102
|
-
"
|
|
1040
|
+
"blueprints:logs": {
|
|
1103
1041
|
"aliases": [],
|
|
1104
|
-
"args": {
|
|
1105
|
-
|
|
1106
|
-
"description": "The name of the Sanity Function",
|
|
1107
|
-
"name": "name",
|
|
1108
|
-
"required": true
|
|
1109
|
-
},
|
|
1110
|
-
"key": {
|
|
1111
|
-
"description": "The name of the environment variable",
|
|
1112
|
-
"name": "key",
|
|
1113
|
-
"required": true
|
|
1114
|
-
},
|
|
1115
|
-
"value": {
|
|
1116
|
-
"description": "The value of the environment variable",
|
|
1117
|
-
"name": "value",
|
|
1118
|
-
"required": true
|
|
1119
|
-
}
|
|
1120
|
-
},
|
|
1121
|
-
"description": "Sets an environment variable in a deployed Sanity Function. If the variable already exists, its value is updated.\n\nEnvironment variables are useful for API keys, configuration values, and other secrets that shouldn't be hardcoded. Changes take effect on the next function invocation.",
|
|
1042
|
+
"args": {},
|
|
1043
|
+
"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'.",
|
|
1122
1044
|
"examples": [
|
|
1123
|
-
"<%= config.bin %> <%= command.id %>
|
|
1124
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1045
|
+
"<%= config.bin %> <%= command.id %>",
|
|
1046
|
+
"<%= config.bin %> <%= command.id %> --watch",
|
|
1047
|
+
"<%= config.bin %> <%= command.id %> --stack <name-or-id>",
|
|
1048
|
+
"<%= config.bin %> <%= command.id %> --limit 500",
|
|
1049
|
+
"<%= config.bin %> <%= command.id %> --since 2026-05-01T00:00:00Z",
|
|
1050
|
+
"<%= config.bin %> <%= command.id %> --before 2026-05-01T00:00:00Z"
|
|
1125
1051
|
],
|
|
1126
1052
|
"flags": {
|
|
1127
1053
|
"json": {
|
|
@@ -1180,7 +1106,6 @@
|
|
|
1180
1106
|
"exclusive": [
|
|
1181
1107
|
"organization-id"
|
|
1182
1108
|
],
|
|
1183
|
-
"hidden": true,
|
|
1184
1109
|
"name": "project-id",
|
|
1185
1110
|
"hasDynamicHelp": false,
|
|
1186
1111
|
"multiple": false,
|
|
@@ -1196,8 +1121,51 @@
|
|
|
1196
1121
|
"exclusive": [
|
|
1197
1122
|
"project-id"
|
|
1198
1123
|
],
|
|
1199
|
-
"
|
|
1200
|
-
"
|
|
1124
|
+
"name": "organization-id",
|
|
1125
|
+
"hasDynamicHelp": false,
|
|
1126
|
+
"multiple": false,
|
|
1127
|
+
"type": "option"
|
|
1128
|
+
},
|
|
1129
|
+
"watch": {
|
|
1130
|
+
"aliases": [
|
|
1131
|
+
"follow"
|
|
1132
|
+
],
|
|
1133
|
+
"char": "w",
|
|
1134
|
+
"description": "Watch for new Stack logs",
|
|
1135
|
+
"exclusive": [
|
|
1136
|
+
"json"
|
|
1137
|
+
],
|
|
1138
|
+
"name": "watch",
|
|
1139
|
+
"allowNo": false,
|
|
1140
|
+
"type": "boolean"
|
|
1141
|
+
},
|
|
1142
|
+
"limit": {
|
|
1143
|
+
"char": "l",
|
|
1144
|
+
"description": "Maximum number of log entries to retrieve (1-500)",
|
|
1145
|
+
"exclusive": [
|
|
1146
|
+
"watch"
|
|
1147
|
+
],
|
|
1148
|
+
"name": "limit",
|
|
1149
|
+
"hasDynamicHelp": false,
|
|
1150
|
+
"multiple": false,
|
|
1151
|
+
"type": "option"
|
|
1152
|
+
},
|
|
1153
|
+
"since": {
|
|
1154
|
+
"description": "Only show logs after this ISO 8601 timestamp",
|
|
1155
|
+
"exclusive": [
|
|
1156
|
+
"watch"
|
|
1157
|
+
],
|
|
1158
|
+
"name": "since",
|
|
1159
|
+
"hasDynamicHelp": false,
|
|
1160
|
+
"multiple": false,
|
|
1161
|
+
"type": "option"
|
|
1162
|
+
},
|
|
1163
|
+
"before": {
|
|
1164
|
+
"description": "Only show logs before this ISO 8601 timestamp",
|
|
1165
|
+
"exclusive": [
|
|
1166
|
+
"watch"
|
|
1167
|
+
],
|
|
1168
|
+
"name": "before",
|
|
1201
1169
|
"hasDynamicHelp": false,
|
|
1202
1170
|
"multiple": false,
|
|
1203
1171
|
"type": "option"
|
|
@@ -1205,39 +1173,36 @@
|
|
|
1205
1173
|
},
|
|
1206
1174
|
"hasDynamicHelp": false,
|
|
1207
1175
|
"hiddenAliases": [],
|
|
1208
|
-
"id": "
|
|
1176
|
+
"id": "blueprints:logs",
|
|
1209
1177
|
"pluginAlias": "@sanity/runtime-cli",
|
|
1210
1178
|
"pluginName": "@sanity/runtime-cli",
|
|
1211
1179
|
"pluginType": "core",
|
|
1212
1180
|
"strict": true,
|
|
1213
|
-
"summary": "
|
|
1181
|
+
"summary": "Display logs for the current Blueprint's Stack deployment",
|
|
1214
1182
|
"enableJsonFlag": true,
|
|
1215
1183
|
"needs": [
|
|
1216
|
-
"deployedStack"
|
|
1217
|
-
"blueprint"
|
|
1184
|
+
"deployedStack"
|
|
1218
1185
|
],
|
|
1219
1186
|
"isESM": true,
|
|
1220
1187
|
"relativePath": [
|
|
1221
1188
|
"dist",
|
|
1222
1189
|
"commands",
|
|
1223
|
-
"
|
|
1224
|
-
"
|
|
1225
|
-
"add.js"
|
|
1190
|
+
"blueprints",
|
|
1191
|
+
"logs.js"
|
|
1226
1192
|
]
|
|
1227
1193
|
},
|
|
1228
|
-
"
|
|
1194
|
+
"blueprints:mint-deploy-token": {
|
|
1229
1195
|
"aliases": [],
|
|
1230
|
-
"args": {
|
|
1231
|
-
|
|
1232
|
-
"description": "The name of the Sanity Function",
|
|
1233
|
-
"name": "name",
|
|
1234
|
-
"required": true
|
|
1235
|
-
}
|
|
1236
|
-
},
|
|
1237
|
-
"description": "Displays all environment variables (keys only) configured in a deployed Sanity Function.\n\nUse 'functions env add' to set variables or 'functions env remove' to delete them.",
|
|
1196
|
+
"args": {},
|
|
1197
|
+
"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.",
|
|
1238
1198
|
"examples": [
|
|
1239
|
-
"<%= config.bin %> <%= command.id %>
|
|
1240
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1199
|
+
"<%= config.bin %> <%= command.id %>",
|
|
1200
|
+
"<%= config.bin %> <%= command.id %> --label \"ci-deploy\"",
|
|
1201
|
+
"<%= config.bin %> <%= command.id %> --print",
|
|
1202
|
+
"export SANITY_AUTH_TOKEN=$(<%= config.bin %> <%= command.id %> --print)",
|
|
1203
|
+
"<%= config.bin %> <%= command.id %> --json",
|
|
1204
|
+
"<%= config.bin %> <%= command.id %> --project-id <projectId>",
|
|
1205
|
+
"<%= config.bin %> <%= command.id %> --organization-id <orgId>"
|
|
1241
1206
|
],
|
|
1242
1207
|
"flags": {
|
|
1243
1208
|
"json": {
|
|
@@ -1282,6 +1247,7 @@
|
|
|
1282
1247
|
},
|
|
1283
1248
|
"stack": {
|
|
1284
1249
|
"description": "Stack name or ID to use instead of the locally configured Stack",
|
|
1250
|
+
"hidden": true,
|
|
1285
1251
|
"name": "stack",
|
|
1286
1252
|
"hasDynamicHelp": false,
|
|
1287
1253
|
"multiple": false,
|
|
@@ -1296,7 +1262,6 @@
|
|
|
1296
1262
|
"exclusive": [
|
|
1297
1263
|
"organization-id"
|
|
1298
1264
|
],
|
|
1299
|
-
"hidden": true,
|
|
1300
1265
|
"name": "project-id",
|
|
1301
1266
|
"hasDynamicHelp": false,
|
|
1302
1267
|
"multiple": false,
|
|
@@ -1312,53 +1277,57 @@
|
|
|
1312
1277
|
"exclusive": [
|
|
1313
1278
|
"project-id"
|
|
1314
1279
|
],
|
|
1315
|
-
"hidden": true,
|
|
1316
1280
|
"name": "organization-id",
|
|
1317
1281
|
"hasDynamicHelp": false,
|
|
1318
1282
|
"multiple": false,
|
|
1319
1283
|
"type": "option"
|
|
1284
|
+
},
|
|
1285
|
+
"label": {
|
|
1286
|
+
"description": "Human-readable label for the robot. Defaults to a generated value.",
|
|
1287
|
+
"name": "label",
|
|
1288
|
+
"hasDynamicHelp": false,
|
|
1289
|
+
"multiple": false,
|
|
1290
|
+
"type": "option"
|
|
1291
|
+
},
|
|
1292
|
+
"print": {
|
|
1293
|
+
"char": "P",
|
|
1294
|
+
"description": "Print only the raw token to stdout (suitable for shell substitution)",
|
|
1295
|
+
"exclusive": [
|
|
1296
|
+
"json"
|
|
1297
|
+
],
|
|
1298
|
+
"name": "print",
|
|
1299
|
+
"allowNo": false,
|
|
1300
|
+
"type": "boolean"
|
|
1320
1301
|
}
|
|
1321
1302
|
},
|
|
1322
1303
|
"hasDynamicHelp": false,
|
|
1323
1304
|
"hiddenAliases": [],
|
|
1324
|
-
"id": "
|
|
1305
|
+
"id": "blueprints:mint-deploy-token",
|
|
1325
1306
|
"pluginAlias": "@sanity/runtime-cli",
|
|
1326
1307
|
"pluginName": "@sanity/runtime-cli",
|
|
1327
1308
|
"pluginType": "core",
|
|
1328
1309
|
"strict": true,
|
|
1329
|
-
"summary": "
|
|
1310
|
+
"summary": "Create a robot API token for deploying Blueprints from CI/CD",
|
|
1330
1311
|
"enableJsonFlag": true,
|
|
1331
1312
|
"needs": [
|
|
1332
|
-
"
|
|
1333
|
-
"blueprint"
|
|
1313
|
+
"scope"
|
|
1334
1314
|
],
|
|
1335
1315
|
"isESM": true,
|
|
1336
1316
|
"relativePath": [
|
|
1337
1317
|
"dist",
|
|
1338
1318
|
"commands",
|
|
1339
|
-
"
|
|
1340
|
-
"
|
|
1341
|
-
"list.js"
|
|
1319
|
+
"blueprints",
|
|
1320
|
+
"mint-deploy-token.js"
|
|
1342
1321
|
]
|
|
1343
1322
|
},
|
|
1344
|
-
"
|
|
1323
|
+
"blueprints:plan": {
|
|
1345
1324
|
"aliases": [],
|
|
1346
|
-
"args": {
|
|
1347
|
-
|
|
1348
|
-
"description": "The name of the Sanity Function",
|
|
1349
|
-
"name": "name",
|
|
1350
|
-
"required": true
|
|
1351
|
-
},
|
|
1352
|
-
"key": {
|
|
1353
|
-
"description": "The name of the environment variable",
|
|
1354
|
-
"name": "key",
|
|
1355
|
-
"required": true
|
|
1356
|
-
}
|
|
1357
|
-
},
|
|
1358
|
-
"description": "Deletes an environment variable from a deployed Sanity Function. The change takes effect on the next function invocation.\n\nUse 'functions env list' to see current variables before removing.",
|
|
1325
|
+
"args": {},
|
|
1326
|
+
"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.",
|
|
1359
1327
|
"examples": [
|
|
1360
|
-
"<%= config.bin %> <%= command.id %>
|
|
1361
|
-
"<%= config.bin %> <%= command.id %> --stack <name-or-id>
|
|
1328
|
+
"<%= config.bin %> <%= command.id %>",
|
|
1329
|
+
"<%= config.bin %> <%= command.id %> --stack <name-or-id>",
|
|
1330
|
+
"<%= config.bin %> <%= command.id %> --organization-id <orgId> --stack <name-or-id>"
|
|
1362
1331
|
],
|
|
1363
1332
|
"flags": {
|
|
1364
1333
|
"json": {
|
|
@@ -1417,7 +1386,6 @@
|
|
|
1417
1386
|
"exclusive": [
|
|
1418
1387
|
"organization-id"
|
|
1419
1388
|
],
|
|
1420
|
-
"hidden": true,
|
|
1421
1389
|
"name": "project-id",
|
|
1422
1390
|
"hasDynamicHelp": false,
|
|
1423
1391
|
"multiple": false,
|
|
@@ -1433,7 +1401,6 @@
|
|
|
1433
1401
|
"exclusive": [
|
|
1434
1402
|
"project-id"
|
|
1435
1403
|
],
|
|
1436
|
-
"hidden": true,
|
|
1437
1404
|
"name": "organization-id",
|
|
1438
1405
|
"hasDynamicHelp": false,
|
|
1439
1406
|
"multiple": false,
|
|
@@ -1442,48 +1409,34 @@
|
|
|
1442
1409
|
},
|
|
1443
1410
|
"hasDynamicHelp": false,
|
|
1444
1411
|
"hiddenAliases": [],
|
|
1445
|
-
"id": "
|
|
1412
|
+
"id": "blueprints:plan",
|
|
1446
1413
|
"pluginAlias": "@sanity/runtime-cli",
|
|
1447
1414
|
"pluginName": "@sanity/runtime-cli",
|
|
1448
1415
|
"pluginType": "core",
|
|
1449
1416
|
"strict": true,
|
|
1450
|
-
"summary": "
|
|
1417
|
+
"summary": "Preview changes that will be applied to the remote Stack",
|
|
1451
1418
|
"enableJsonFlag": true,
|
|
1452
1419
|
"needs": [
|
|
1453
|
-
"
|
|
1420
|
+
"token",
|
|
1454
1421
|
"blueprint"
|
|
1455
1422
|
],
|
|
1456
1423
|
"isESM": true,
|
|
1457
1424
|
"relativePath": [
|
|
1458
1425
|
"dist",
|
|
1459
1426
|
"commands",
|
|
1460
|
-
"
|
|
1461
|
-
"
|
|
1462
|
-
"remove.js"
|
|
1427
|
+
"blueprints",
|
|
1428
|
+
"plan.js"
|
|
1463
1429
|
]
|
|
1464
1430
|
},
|
|
1465
|
-
"blueprints:
|
|
1431
|
+
"blueprints:promote": {
|
|
1466
1432
|
"aliases": [],
|
|
1467
|
-
"args": {
|
|
1468
|
-
|
|
1469
|
-
"description": "Type of resource to add (only \"function\" is supported)",
|
|
1470
|
-
"name": "type",
|
|
1471
|
-
"options": [
|
|
1472
|
-
"function"
|
|
1473
|
-
],
|
|
1474
|
-
"required": true
|
|
1475
|
-
}
|
|
1476
|
-
},
|
|
1477
|
-
"deprecationOptions": {
|
|
1478
|
-
"to": "functions add"
|
|
1479
|
-
},
|
|
1480
|
-
"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",
|
|
1433
|
+
"args": {},
|
|
1434
|
+
"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.",
|
|
1481
1435
|
"examples": [
|
|
1482
|
-
"<%= config.bin %> <%= command.id %>
|
|
1483
|
-
"<%= config.bin %> <%= command.id %>
|
|
1484
|
-
"<%= config.bin %> <%= command.id %>
|
|
1485
|
-
"<%= config.bin %> <%= command.id %>
|
|
1486
|
-
"<%= config.bin %> <%= command.id %> function --name my-function --fn-type document-create --fn-type document-update --lang js"
|
|
1436
|
+
"<%= config.bin %> <%= command.id %>",
|
|
1437
|
+
"<%= config.bin %> <%= command.id %> --stack <name-or-id>",
|
|
1438
|
+
"<%= config.bin %> <%= command.id %> --project-id <projectId> --stack <name-or-id>",
|
|
1439
|
+
"<%= config.bin %> <%= command.id %> --new-stack-name <new-name>"
|
|
1487
1440
|
],
|
|
1488
1441
|
"flags": {
|
|
1489
1442
|
"json": {
|
|
@@ -1527,8 +1480,10 @@
|
|
|
1527
1480
|
"type": "boolean"
|
|
1528
1481
|
},
|
|
1529
1482
|
"stack": {
|
|
1530
|
-
"
|
|
1531
|
-
|
|
1483
|
+
"aliases": [
|
|
1484
|
+
"id"
|
|
1485
|
+
],
|
|
1486
|
+
"description": "Stack name or ID to promote",
|
|
1532
1487
|
"name": "stack",
|
|
1533
1488
|
"hasDynamicHelp": false,
|
|
1534
1489
|
"multiple": false,
|
|
@@ -1543,7 +1498,6 @@
|
|
|
1543
1498
|
"exclusive": [
|
|
1544
1499
|
"organization-id"
|
|
1545
1500
|
],
|
|
1546
|
-
"hidden": true,
|
|
1547
1501
|
"name": "project-id",
|
|
1548
1502
|
"hasDynamicHelp": false,
|
|
1549
1503
|
"multiple": false,
|
|
@@ -1565,136 +1519,31 @@
|
|
|
1565
1519
|
"multiple": false,
|
|
1566
1520
|
"type": "option"
|
|
1567
1521
|
},
|
|
1568
|
-
"
|
|
1569
|
-
"
|
|
1570
|
-
|
|
1571
|
-
],
|
|
1572
|
-
"description": "Example to use for the function resource. Discover examples at https://www.sanity.io/exchange/type=recipes/by=sanity",
|
|
1573
|
-
"exclusive": [
|
|
1574
|
-
"name",
|
|
1575
|
-
"fn-type",
|
|
1576
|
-
"language",
|
|
1577
|
-
"javascript",
|
|
1578
|
-
"fn-helpers",
|
|
1579
|
-
"fn-installer"
|
|
1580
|
-
],
|
|
1581
|
-
"name": "example",
|
|
1582
|
-
"hasDynamicHelp": false,
|
|
1583
|
-
"multiple": false,
|
|
1584
|
-
"type": "option"
|
|
1585
|
-
},
|
|
1586
|
-
"name": {
|
|
1587
|
-
"char": "n",
|
|
1588
|
-
"description": "Name of the resource to add",
|
|
1589
|
-
"name": "name",
|
|
1590
|
-
"hasDynamicHelp": false,
|
|
1591
|
-
"multiple": false,
|
|
1592
|
-
"type": "option"
|
|
1593
|
-
},
|
|
1594
|
-
"fn-type": {
|
|
1595
|
-
"aliases": [
|
|
1596
|
-
"function-type"
|
|
1597
|
-
],
|
|
1598
|
-
"dependsOn": [
|
|
1599
|
-
"name"
|
|
1600
|
-
],
|
|
1601
|
-
"description": "Document change event(s) that should trigger the function; you can specify multiple events by specifying this flag multiple times",
|
|
1602
|
-
"name": "fn-type",
|
|
1603
|
-
"hasDynamicHelp": false,
|
|
1604
|
-
"multiple": true,
|
|
1605
|
-
"options": [
|
|
1606
|
-
"document-publish",
|
|
1607
|
-
"document-create",
|
|
1608
|
-
"document-delete",
|
|
1609
|
-
"document-update",
|
|
1610
|
-
"media-library-asset-create",
|
|
1611
|
-
"media-library-asset-delete",
|
|
1612
|
-
"media-library-asset-update",
|
|
1613
|
-
"pub-sub",
|
|
1614
|
-
"scheduled-function",
|
|
1615
|
-
"sync-tag-invalidate",
|
|
1616
|
-
"durable-function"
|
|
1617
|
-
],
|
|
1618
|
-
"type": "option"
|
|
1619
|
-
},
|
|
1620
|
-
"language": {
|
|
1621
|
-
"aliases": [
|
|
1622
|
-
"function-language",
|
|
1623
|
-
"fn-language",
|
|
1624
|
-
"lang"
|
|
1625
|
-
],
|
|
1626
|
-
"description": "Language of the new function",
|
|
1627
|
-
"name": "language",
|
|
1628
|
-
"default": "ts",
|
|
1629
|
-
"hasDynamicHelp": false,
|
|
1630
|
-
"multiple": false,
|
|
1631
|
-
"options": [
|
|
1632
|
-
"ts",
|
|
1633
|
-
"js"
|
|
1634
|
-
],
|
|
1635
|
-
"type": "option"
|
|
1636
|
-
},
|
|
1637
|
-
"javascript": {
|
|
1638
|
-
"aliases": [
|
|
1639
|
-
"js"
|
|
1640
|
-
],
|
|
1641
|
-
"description": "Use JavaScript instead of TypeScript",
|
|
1642
|
-
"exclusive": [
|
|
1643
|
-
"language"
|
|
1644
|
-
],
|
|
1645
|
-
"name": "javascript",
|
|
1522
|
+
"force": {
|
|
1523
|
+
"description": "Skip confirmation prompt",
|
|
1524
|
+
"name": "force",
|
|
1646
1525
|
"allowNo": false,
|
|
1647
1526
|
"type": "boolean"
|
|
1648
1527
|
},
|
|
1649
|
-
"
|
|
1650
|
-
"
|
|
1651
|
-
|
|
1652
|
-
"helpers"
|
|
1653
|
-
],
|
|
1654
|
-
"description": "Add helpers to the new function",
|
|
1655
|
-
"name": "fn-helpers",
|
|
1656
|
-
"allowNo": true,
|
|
1657
|
-
"type": "boolean"
|
|
1658
|
-
},
|
|
1659
|
-
"fn-installer": {
|
|
1660
|
-
"aliases": [
|
|
1661
|
-
"function-installer",
|
|
1662
|
-
"installer"
|
|
1663
|
-
],
|
|
1664
|
-
"description": "Which package manager to use when installing the @sanity/functions helpers",
|
|
1665
|
-
"name": "fn-installer",
|
|
1528
|
+
"new-stack-name": {
|
|
1529
|
+
"description": "Set a new name for the Stack while promoting",
|
|
1530
|
+
"name": "new-stack-name",
|
|
1666
1531
|
"hasDynamicHelp": false,
|
|
1667
1532
|
"multiple": false,
|
|
1668
|
-
"
|
|
1669
|
-
"skip",
|
|
1670
|
-
"npm",
|
|
1671
|
-
"pnpm",
|
|
1672
|
-
"yarn"
|
|
1673
|
-
],
|
|
1674
|
-
"type": "option"
|
|
1675
|
-
},
|
|
1676
|
-
"install": {
|
|
1677
|
-
"char": "i",
|
|
1678
|
-
"description": "Shortcut for --fn-installer npm",
|
|
1679
|
-
"exclusive": [
|
|
1680
|
-
"fn-installer"
|
|
1681
|
-
],
|
|
1682
|
-
"name": "install",
|
|
1683
|
-
"allowNo": false,
|
|
1684
|
-
"type": "boolean"
|
|
1533
|
+
"type": "option"
|
|
1685
1534
|
}
|
|
1686
1535
|
},
|
|
1687
1536
|
"hasDynamicHelp": false,
|
|
1688
1537
|
"hiddenAliases": [],
|
|
1689
|
-
"id": "blueprints:
|
|
1538
|
+
"id": "blueprints:promote",
|
|
1690
1539
|
"pluginAlias": "@sanity/runtime-cli",
|
|
1691
1540
|
"pluginName": "@sanity/runtime-cli",
|
|
1692
1541
|
"pluginType": "core",
|
|
1693
|
-
"state": "deprecated",
|
|
1694
1542
|
"strict": true,
|
|
1695
|
-
"summary": "
|
|
1543
|
+
"summary": "Promote a Stack from project scope to organization scope",
|
|
1696
1544
|
"enableJsonFlag": true,
|
|
1697
1545
|
"needs": [
|
|
1546
|
+
"deployedStack",
|
|
1698
1547
|
"blueprint"
|
|
1699
1548
|
],
|
|
1700
1549
|
"isESM": true,
|
|
@@ -1702,18 +1551,19 @@
|
|
|
1702
1551
|
"dist",
|
|
1703
1552
|
"commands",
|
|
1704
1553
|
"blueprints",
|
|
1705
|
-
"
|
|
1554
|
+
"promote.js"
|
|
1706
1555
|
]
|
|
1707
1556
|
},
|
|
1708
|
-
"blueprints:
|
|
1557
|
+
"blueprints:stacks": {
|
|
1709
1558
|
"aliases": [],
|
|
1710
1559
|
"args": {},
|
|
1711
|
-
"description": "
|
|
1560
|
+
"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\nWithout a scope, prompts for an organization or project. Use --all to list Stacks across every organization and project you can access, or --include-projects with --organization-id for one organization and its projects.",
|
|
1712
1561
|
"examples": [
|
|
1713
1562
|
"<%= config.bin %> <%= command.id %>",
|
|
1714
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1715
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1716
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1563
|
+
"<%= config.bin %> <%= command.id %> --all",
|
|
1564
|
+
"<%= config.bin %> <%= command.id %> --project-id <projectId>",
|
|
1565
|
+
"<%= config.bin %> <%= command.id %> --organization-id <organizationId>",
|
|
1566
|
+
"<%= config.bin %> <%= command.id %> --organization-id <organizationId> --include-projects"
|
|
1717
1567
|
],
|
|
1718
1568
|
"flags": {
|
|
1719
1569
|
"json": {
|
|
@@ -1757,14 +1607,8 @@
|
|
|
1757
1607
|
"type": "boolean"
|
|
1758
1608
|
},
|
|
1759
1609
|
"stack": {
|
|
1760
|
-
"
|
|
1761
|
-
|
|
1762
|
-
"stackId"
|
|
1763
|
-
],
|
|
1764
|
-
"dependsOn": [
|
|
1765
|
-
"edit"
|
|
1766
|
-
],
|
|
1767
|
-
"description": "Stack name or ID to set in the configuration. Requires --edit flag",
|
|
1610
|
+
"description": "Stack name or ID to use instead of the locally configured Stack",
|
|
1611
|
+
"hidden": true,
|
|
1768
1612
|
"name": "stack",
|
|
1769
1613
|
"hasDynamicHelp": false,
|
|
1770
1614
|
"multiple": false,
|
|
@@ -1775,12 +1619,11 @@
|
|
|
1775
1619
|
"project",
|
|
1776
1620
|
"projectId"
|
|
1777
1621
|
],
|
|
1778
|
-
"dependsOn": [
|
|
1779
|
-
"edit"
|
|
1780
|
-
],
|
|
1781
1622
|
"description": "Sanity project ID used to scope Blueprint and Stack",
|
|
1782
1623
|
"exclusive": [
|
|
1783
|
-
"organization-id"
|
|
1624
|
+
"organization-id",
|
|
1625
|
+
"include-projects",
|
|
1626
|
+
"all"
|
|
1784
1627
|
],
|
|
1785
1628
|
"name": "project-id",
|
|
1786
1629
|
"hasDynamicHelp": false,
|
|
@@ -1793,59 +1636,67 @@
|
|
|
1793
1636
|
"organizationId",
|
|
1794
1637
|
"org"
|
|
1795
1638
|
],
|
|
1796
|
-
"dependsOn": [
|
|
1797
|
-
"edit"
|
|
1798
|
-
],
|
|
1799
1639
|
"description": "Sanity organization ID used to scope Blueprint and Stack",
|
|
1800
1640
|
"exclusive": [
|
|
1801
|
-
"project-id"
|
|
1641
|
+
"project-id",
|
|
1642
|
+
"all"
|
|
1802
1643
|
],
|
|
1803
1644
|
"name": "organization-id",
|
|
1804
1645
|
"hasDynamicHelp": false,
|
|
1805
1646
|
"multiple": false,
|
|
1806
1647
|
"type": "option"
|
|
1807
1648
|
},
|
|
1808
|
-
"
|
|
1809
|
-
"
|
|
1810
|
-
|
|
1811
|
-
|
|
1649
|
+
"include-projects": {
|
|
1650
|
+
"dependsOn": [
|
|
1651
|
+
"organization-id"
|
|
1652
|
+
],
|
|
1653
|
+
"description": "Include Stacks from all projects within the organization. Requires --organization-id.",
|
|
1654
|
+
"name": "include-projects",
|
|
1655
|
+
"allowNo": false,
|
|
1656
|
+
"type": "boolean"
|
|
1657
|
+
},
|
|
1658
|
+
"all": {
|
|
1659
|
+
"description": "List Stacks from every organization and project you have access to",
|
|
1660
|
+
"exclusive": [
|
|
1661
|
+
"project-id",
|
|
1662
|
+
"organization-id",
|
|
1663
|
+
"include-projects"
|
|
1664
|
+
],
|
|
1665
|
+
"name": "all",
|
|
1812
1666
|
"allowNo": false,
|
|
1813
1667
|
"type": "boolean"
|
|
1814
1668
|
}
|
|
1815
1669
|
},
|
|
1816
1670
|
"hasDynamicHelp": false,
|
|
1817
1671
|
"hiddenAliases": [],
|
|
1818
|
-
"id": "blueprints:
|
|
1672
|
+
"id": "blueprints:stacks",
|
|
1819
1673
|
"pluginAlias": "@sanity/runtime-cli",
|
|
1820
1674
|
"pluginName": "@sanity/runtime-cli",
|
|
1821
1675
|
"pluginType": "core",
|
|
1822
1676
|
"strict": true,
|
|
1823
|
-
"summary": "
|
|
1677
|
+
"summary": "List remote Stack deployments for your project or organization",
|
|
1824
1678
|
"enableJsonFlag": true,
|
|
1825
1679
|
"needs": [
|
|
1826
|
-
"token"
|
|
1827
|
-
"blueprint"
|
|
1680
|
+
"token"
|
|
1828
1681
|
],
|
|
1829
1682
|
"isESM": true,
|
|
1830
1683
|
"relativePath": [
|
|
1831
1684
|
"dist",
|
|
1832
1685
|
"commands",
|
|
1833
1686
|
"blueprints",
|
|
1834
|
-
"
|
|
1687
|
+
"stacks.js"
|
|
1835
1688
|
]
|
|
1836
1689
|
},
|
|
1837
|
-
"
|
|
1690
|
+
"functions:add": {
|
|
1838
1691
|
"aliases": [],
|
|
1839
1692
|
"args": {},
|
|
1840
|
-
"description": "
|
|
1693
|
+
"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.",
|
|
1841
1694
|
"examples": [
|
|
1842
1695
|
"<%= config.bin %> <%= command.id %>",
|
|
1843
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1844
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1845
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1846
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1847
|
-
"<%= config.bin %> <%= command.id %> --organization-id <orgId> --stack <name-or-id>",
|
|
1848
|
-
"<%= config.bin %> <%= command.id %> --new-stack-name <new-name>"
|
|
1696
|
+
"<%= config.bin %> <%= command.id %> --helpers",
|
|
1697
|
+
"<%= config.bin %> <%= command.id %> --name my-function",
|
|
1698
|
+
"<%= config.bin %> <%= command.id %> --name my-function --type document-create",
|
|
1699
|
+
"<%= config.bin %> <%= command.id %> --name my-function --type document-create --type document-update --lang js"
|
|
1849
1700
|
],
|
|
1850
1701
|
"flags": {
|
|
1851
1702
|
"json": {
|
|
@@ -1890,6 +1741,7 @@
|
|
|
1890
1741
|
},
|
|
1891
1742
|
"stack": {
|
|
1892
1743
|
"description": "Stack name or ID to use instead of the locally configured Stack",
|
|
1744
|
+
"hidden": true,
|
|
1893
1745
|
"name": "stack",
|
|
1894
1746
|
"hasDynamicHelp": false,
|
|
1895
1747
|
"multiple": false,
|
|
@@ -1904,6 +1756,7 @@
|
|
|
1904
1756
|
"exclusive": [
|
|
1905
1757
|
"organization-id"
|
|
1906
1758
|
],
|
|
1759
|
+
"hidden": true,
|
|
1907
1760
|
"name": "project-id",
|
|
1908
1761
|
"hasDynamicHelp": false,
|
|
1909
1762
|
"multiple": false,
|
|
@@ -1919,90 +1772,148 @@
|
|
|
1919
1772
|
"exclusive": [
|
|
1920
1773
|
"project-id"
|
|
1921
1774
|
],
|
|
1775
|
+
"hidden": true,
|
|
1922
1776
|
"name": "organization-id",
|
|
1923
1777
|
"hasDynamicHelp": false,
|
|
1924
1778
|
"multiple": false,
|
|
1925
1779
|
"type": "option"
|
|
1926
1780
|
},
|
|
1927
|
-
"
|
|
1928
|
-
"
|
|
1929
|
-
|
|
1930
|
-
|
|
1781
|
+
"example": {
|
|
1782
|
+
"aliases": [
|
|
1783
|
+
"recipe"
|
|
1784
|
+
],
|
|
1785
|
+
"description": "Example to use for the Function",
|
|
1786
|
+
"exclusive": [
|
|
1787
|
+
"name",
|
|
1788
|
+
"type",
|
|
1789
|
+
"language",
|
|
1790
|
+
"javascript",
|
|
1791
|
+
"helpers",
|
|
1792
|
+
"installer",
|
|
1793
|
+
"install"
|
|
1794
|
+
],
|
|
1795
|
+
"name": "example",
|
|
1931
1796
|
"hasDynamicHelp": false,
|
|
1932
1797
|
"multiple": false,
|
|
1933
1798
|
"type": "option"
|
|
1934
1799
|
},
|
|
1935
|
-
"
|
|
1800
|
+
"name": {
|
|
1801
|
+
"char": "n",
|
|
1802
|
+
"description": "Name of the Function to add",
|
|
1803
|
+
"name": "name",
|
|
1804
|
+
"hasDynamicHelp": false,
|
|
1805
|
+
"multiple": false,
|
|
1806
|
+
"type": "option"
|
|
1807
|
+
},
|
|
1808
|
+
"type": {
|
|
1809
|
+
"dependsOn": [
|
|
1810
|
+
"name"
|
|
1811
|
+
],
|
|
1812
|
+
"description": "Document change event(s) that should trigger the function; you can specify multiple events by specifying this flag multiple times",
|
|
1813
|
+
"name": "type",
|
|
1814
|
+
"hasDynamicHelp": false,
|
|
1815
|
+
"multiple": true,
|
|
1816
|
+
"options": [
|
|
1817
|
+
"document-publish",
|
|
1818
|
+
"document-create",
|
|
1819
|
+
"document-delete",
|
|
1820
|
+
"document-update",
|
|
1821
|
+
"media-library-asset-create",
|
|
1822
|
+
"media-library-asset-delete",
|
|
1823
|
+
"media-library-asset-update",
|
|
1824
|
+
"pub-sub",
|
|
1825
|
+
"scheduled-function",
|
|
1826
|
+
"sync-tag-invalidate",
|
|
1827
|
+
"durable-function"
|
|
1828
|
+
],
|
|
1829
|
+
"type": "option"
|
|
1830
|
+
},
|
|
1831
|
+
"language": {
|
|
1936
1832
|
"aliases": [
|
|
1937
|
-
"
|
|
1938
|
-
"installer"
|
|
1833
|
+
"lang"
|
|
1939
1834
|
],
|
|
1940
|
-
"description": "
|
|
1941
|
-
"
|
|
1942
|
-
"
|
|
1835
|
+
"description": "Language of the new Function",
|
|
1836
|
+
"name": "language",
|
|
1837
|
+
"default": "ts",
|
|
1943
1838
|
"hasDynamicHelp": false,
|
|
1944
1839
|
"multiple": false,
|
|
1945
1840
|
"options": [
|
|
1946
|
-
"
|
|
1947
|
-
"
|
|
1948
|
-
"yarn"
|
|
1841
|
+
"ts",
|
|
1842
|
+
"js"
|
|
1949
1843
|
],
|
|
1950
1844
|
"type": "option"
|
|
1951
1845
|
},
|
|
1952
|
-
"
|
|
1953
|
-
"description": "Do not wait for Stack deployment to complete",
|
|
1954
|
-
"name": "no-wait",
|
|
1955
|
-
"allowNo": false,
|
|
1956
|
-
"type": "boolean"
|
|
1957
|
-
},
|
|
1958
|
-
"configure": {
|
|
1846
|
+
"javascript": {
|
|
1959
1847
|
"aliases": [
|
|
1960
|
-
"
|
|
1961
|
-
"init"
|
|
1848
|
+
"js"
|
|
1962
1849
|
],
|
|
1963
|
-
"description": "
|
|
1964
|
-
"
|
|
1965
|
-
|
|
1850
|
+
"description": "Use JavaScript instead of TypeScript",
|
|
1851
|
+
"exclusive": [
|
|
1852
|
+
"language"
|
|
1853
|
+
],
|
|
1854
|
+
"name": "javascript",
|
|
1966
1855
|
"allowNo": false,
|
|
1967
1856
|
"type": "boolean"
|
|
1968
1857
|
},
|
|
1969
|
-
"
|
|
1970
|
-
"description": "
|
|
1971
|
-
"name": "
|
|
1858
|
+
"helpers": {
|
|
1859
|
+
"description": "Add helpers to the new Function",
|
|
1860
|
+
"name": "helpers",
|
|
1861
|
+
"allowNo": true,
|
|
1862
|
+
"type": "boolean"
|
|
1863
|
+
},
|
|
1864
|
+
"installer": {
|
|
1865
|
+
"description": "How to install the @sanity/functions helpers",
|
|
1866
|
+
"name": "installer",
|
|
1972
1867
|
"hasDynamicHelp": false,
|
|
1973
1868
|
"multiple": false,
|
|
1869
|
+
"options": [
|
|
1870
|
+
"skip",
|
|
1871
|
+
"npm",
|
|
1872
|
+
"pnpm",
|
|
1873
|
+
"yarn"
|
|
1874
|
+
],
|
|
1974
1875
|
"type": "option"
|
|
1876
|
+
},
|
|
1877
|
+
"install": {
|
|
1878
|
+
"char": "i",
|
|
1879
|
+
"description": "Shortcut for --installer npm",
|
|
1880
|
+
"exclusive": [
|
|
1881
|
+
"installer"
|
|
1882
|
+
],
|
|
1883
|
+
"name": "install",
|
|
1884
|
+
"allowNo": false,
|
|
1885
|
+
"type": "boolean"
|
|
1975
1886
|
}
|
|
1976
1887
|
},
|
|
1977
1888
|
"hasDynamicHelp": false,
|
|
1978
1889
|
"hiddenAliases": [],
|
|
1979
|
-
"id": "
|
|
1890
|
+
"id": "functions:add",
|
|
1980
1891
|
"pluginAlias": "@sanity/runtime-cli",
|
|
1981
1892
|
"pluginName": "@sanity/runtime-cli",
|
|
1982
1893
|
"pluginType": "core",
|
|
1983
1894
|
"strict": true,
|
|
1984
|
-
"summary": "
|
|
1895
|
+
"summary": "Add a Function to your Blueprint",
|
|
1985
1896
|
"enableJsonFlag": true,
|
|
1986
1897
|
"needs": [
|
|
1987
|
-
"deployedStack",
|
|
1988
1898
|
"blueprint"
|
|
1989
1899
|
],
|
|
1990
1900
|
"isESM": true,
|
|
1991
1901
|
"relativePath": [
|
|
1992
1902
|
"dist",
|
|
1993
1903
|
"commands",
|
|
1994
|
-
"
|
|
1995
|
-
"
|
|
1904
|
+
"functions",
|
|
1905
|
+
"add.js"
|
|
1996
1906
|
]
|
|
1997
1907
|
},
|
|
1998
|
-
"
|
|
1908
|
+
"functions:build": {
|
|
1999
1909
|
"aliases": [],
|
|
2000
|
-
"args": {
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
1910
|
+
"args": {
|
|
1911
|
+
"name": {
|
|
1912
|
+
"description": "The name of the Sanity Function",
|
|
1913
|
+
"name": "name",
|
|
1914
|
+
"required": false
|
|
1915
|
+
}
|
|
1916
|
+
},
|
|
2006
1917
|
"flags": {
|
|
2007
1918
|
"json": {
|
|
2008
1919
|
"description": "Format output as json",
|
|
@@ -2045,11 +1956,8 @@
|
|
|
2045
1956
|
"type": "boolean"
|
|
2046
1957
|
},
|
|
2047
1958
|
"stack": {
|
|
2048
|
-
"
|
|
2049
|
-
|
|
2050
|
-
"stackId"
|
|
2051
|
-
],
|
|
2052
|
-
"description": "Stack name or ID to destroy (defaults to the locally configured Stack)",
|
|
1959
|
+
"description": "Stack name or ID to use instead of the locally configured Stack",
|
|
1960
|
+
"hidden": true,
|
|
2053
1961
|
"name": "stack",
|
|
2054
1962
|
"hasDynamicHelp": false,
|
|
2055
1963
|
"multiple": false,
|
|
@@ -2060,14 +1968,11 @@
|
|
|
2060
1968
|
"project",
|
|
2061
1969
|
"projectId"
|
|
2062
1970
|
],
|
|
2063
|
-
"dependsOn": [
|
|
2064
|
-
"stack",
|
|
2065
|
-
"force"
|
|
2066
|
-
],
|
|
2067
1971
|
"description": "Sanity project ID used to scope Blueprint and Stack",
|
|
2068
1972
|
"exclusive": [
|
|
2069
1973
|
"organization-id"
|
|
2070
1974
|
],
|
|
1975
|
+
"hidden": true,
|
|
2071
1976
|
"name": "project-id",
|
|
2072
1977
|
"hasDynamicHelp": false,
|
|
2073
1978
|
"multiple": false,
|
|
@@ -2079,60 +1984,70 @@
|
|
|
2079
1984
|
"organizationId",
|
|
2080
1985
|
"org"
|
|
2081
1986
|
],
|
|
2082
|
-
"dependsOn": [
|
|
2083
|
-
"stack",
|
|
2084
|
-
"force"
|
|
2085
|
-
],
|
|
2086
1987
|
"description": "Sanity organization ID used to scope Blueprint and Stack",
|
|
2087
1988
|
"exclusive": [
|
|
2088
1989
|
"project-id"
|
|
2089
1990
|
],
|
|
1991
|
+
"hidden": true,
|
|
2090
1992
|
"name": "organization-id",
|
|
2091
1993
|
"hasDynamicHelp": false,
|
|
2092
1994
|
"multiple": false,
|
|
2093
1995
|
"type": "option"
|
|
2094
1996
|
},
|
|
2095
|
-
"
|
|
2096
|
-
"
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
"
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
"
|
|
2104
|
-
"
|
|
2105
|
-
"
|
|
2106
|
-
|
|
1997
|
+
"fn-installer": {
|
|
1998
|
+
"aliases": [
|
|
1999
|
+
"function-installer",
|
|
2000
|
+
"installer"
|
|
2001
|
+
],
|
|
2002
|
+
"description": "Which package manager to use when building Functions",
|
|
2003
|
+
"hidden": true,
|
|
2004
|
+
"name": "fn-installer",
|
|
2005
|
+
"hasDynamicHelp": false,
|
|
2006
|
+
"multiple": false,
|
|
2007
|
+
"options": [
|
|
2008
|
+
"npm",
|
|
2009
|
+
"pnpm",
|
|
2010
|
+
"yarn"
|
|
2011
|
+
],
|
|
2012
|
+
"type": "option"
|
|
2013
|
+
},
|
|
2014
|
+
"out-dir": {
|
|
2015
|
+
"char": "o",
|
|
2016
|
+
"description": "Output directory for zip files",
|
|
2017
|
+
"name": "out-dir",
|
|
2018
|
+
"hasDynamicHelp": false,
|
|
2019
|
+
"multiple": false,
|
|
2020
|
+
"type": "option"
|
|
2107
2021
|
}
|
|
2108
2022
|
},
|
|
2109
2023
|
"hasDynamicHelp": false,
|
|
2024
|
+
"hidden": true,
|
|
2110
2025
|
"hiddenAliases": [],
|
|
2111
|
-
"id": "
|
|
2026
|
+
"id": "functions:build",
|
|
2112
2027
|
"pluginAlias": "@sanity/runtime-cli",
|
|
2113
2028
|
"pluginName": "@sanity/runtime-cli",
|
|
2114
2029
|
"pluginType": "core",
|
|
2115
2030
|
"strict": true,
|
|
2116
|
-
"summary": "
|
|
2031
|
+
"summary": "Build Sanity Function(s) to zip archives",
|
|
2117
2032
|
"enableJsonFlag": true,
|
|
2118
2033
|
"needs": [
|
|
2119
|
-
"
|
|
2034
|
+
"blueprint"
|
|
2120
2035
|
],
|
|
2121
2036
|
"isESM": true,
|
|
2122
2037
|
"relativePath": [
|
|
2123
2038
|
"dist",
|
|
2124
2039
|
"commands",
|
|
2125
|
-
"
|
|
2126
|
-
"
|
|
2040
|
+
"functions",
|
|
2041
|
+
"build.js"
|
|
2127
2042
|
]
|
|
2128
2043
|
},
|
|
2129
|
-
"
|
|
2044
|
+
"functions:dev": {
|
|
2130
2045
|
"aliases": [],
|
|
2131
2046
|
"args": {},
|
|
2132
|
-
"description": "
|
|
2047
|
+
"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. The live-reload WebSocket server shares this host and port. Function timeout can be configured with the --timeout flag.\n\nTo invoke a function with the CLI, use 'functions test'.",
|
|
2133
2048
|
"examples": [
|
|
2134
|
-
"<%= config.bin %> <%= command.id %>",
|
|
2135
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2049
|
+
"<%= config.bin %> <%= command.id %> --host 127.0.0.1 --port 3333",
|
|
2050
|
+
"<%= config.bin %> <%= command.id %> --timeout 60"
|
|
2136
2051
|
],
|
|
2137
2052
|
"flags": {
|
|
2138
2053
|
"json": {
|
|
@@ -2148,6 +2063,7 @@
|
|
|
2148
2063
|
"char": "p",
|
|
2149
2064
|
"description": "Path to a Blueprint file or directory containing one",
|
|
2150
2065
|
"env": "SANITY_BLUEPRINT_PATH",
|
|
2066
|
+
"hidden": true,
|
|
2151
2067
|
"name": "path",
|
|
2152
2068
|
"hasDynamicHelp": false,
|
|
2153
2069
|
"multiple": false,
|
|
@@ -2174,39 +2090,103 @@
|
|
|
2174
2090
|
"allowNo": false,
|
|
2175
2091
|
"type": "boolean"
|
|
2176
2092
|
},
|
|
2177
|
-
"
|
|
2178
|
-
"description": "
|
|
2179
|
-
"
|
|
2180
|
-
"
|
|
2181
|
-
"
|
|
2093
|
+
"stack": {
|
|
2094
|
+
"description": "Stack name or ID to use instead of the locally configured Stack",
|
|
2095
|
+
"hidden": true,
|
|
2096
|
+
"name": "stack",
|
|
2097
|
+
"hasDynamicHelp": false,
|
|
2098
|
+
"multiple": false,
|
|
2099
|
+
"type": "option"
|
|
2100
|
+
},
|
|
2101
|
+
"project-id": {
|
|
2102
|
+
"aliases": [
|
|
2103
|
+
"project",
|
|
2104
|
+
"projectId"
|
|
2105
|
+
],
|
|
2106
|
+
"description": "Sanity project ID used to scope Blueprint and Stack",
|
|
2107
|
+
"exclusive": [
|
|
2108
|
+
"organization-id"
|
|
2109
|
+
],
|
|
2110
|
+
"hidden": true,
|
|
2111
|
+
"name": "project-id",
|
|
2112
|
+
"hasDynamicHelp": false,
|
|
2113
|
+
"multiple": false,
|
|
2114
|
+
"type": "option"
|
|
2115
|
+
},
|
|
2116
|
+
"organization-id": {
|
|
2117
|
+
"aliases": [
|
|
2118
|
+
"organization",
|
|
2119
|
+
"organizationId",
|
|
2120
|
+
"org"
|
|
2121
|
+
],
|
|
2122
|
+
"description": "Sanity organization ID used to scope Blueprint and Stack",
|
|
2123
|
+
"exclusive": [
|
|
2124
|
+
"project-id"
|
|
2125
|
+
],
|
|
2126
|
+
"hidden": true,
|
|
2127
|
+
"name": "organization-id",
|
|
2128
|
+
"hasDynamicHelp": false,
|
|
2129
|
+
"multiple": false,
|
|
2130
|
+
"type": "option"
|
|
2131
|
+
},
|
|
2132
|
+
"host": {
|
|
2133
|
+
"char": "h",
|
|
2134
|
+
"description": "The local network interface at which to listen. [default: \"localhost\"]",
|
|
2135
|
+
"name": "host",
|
|
2136
|
+
"required": false,
|
|
2137
|
+
"hasDynamicHelp": false,
|
|
2138
|
+
"multiple": false,
|
|
2139
|
+
"type": "option"
|
|
2140
|
+
},
|
|
2141
|
+
"port": {
|
|
2142
|
+
"char": "p",
|
|
2143
|
+
"description": "TCP port to start emulator on. [default: 8080]",
|
|
2144
|
+
"name": "port",
|
|
2145
|
+
"required": false,
|
|
2146
|
+
"hasDynamicHelp": false,
|
|
2147
|
+
"multiple": false,
|
|
2148
|
+
"type": "option"
|
|
2149
|
+
},
|
|
2150
|
+
"timeout": {
|
|
2151
|
+
"char": "t",
|
|
2152
|
+
"description": "Maximum execution time for all functions, in seconds. Takes precedence over function-specific `timeout`",
|
|
2153
|
+
"name": "timeout",
|
|
2154
|
+
"required": false,
|
|
2155
|
+
"hasDynamicHelp": false,
|
|
2156
|
+
"multiple": false,
|
|
2157
|
+
"type": "option"
|
|
2182
2158
|
}
|
|
2183
2159
|
},
|
|
2184
2160
|
"hasDynamicHelp": false,
|
|
2185
2161
|
"hiddenAliases": [],
|
|
2186
|
-
"id": "
|
|
2162
|
+
"id": "functions:dev",
|
|
2187
2163
|
"pluginAlias": "@sanity/runtime-cli",
|
|
2188
2164
|
"pluginName": "@sanity/runtime-cli",
|
|
2189
2165
|
"pluginType": "core",
|
|
2190
2166
|
"strict": true,
|
|
2191
|
-
"summary": "
|
|
2167
|
+
"summary": "Start the Sanity Function emulator",
|
|
2192
2168
|
"enableJsonFlag": true,
|
|
2169
|
+
"needs": [
|
|
2170
|
+
"blueprint"
|
|
2171
|
+
],
|
|
2193
2172
|
"isESM": true,
|
|
2194
2173
|
"relativePath": [
|
|
2195
2174
|
"dist",
|
|
2196
2175
|
"commands",
|
|
2197
|
-
"
|
|
2198
|
-
"
|
|
2176
|
+
"functions",
|
|
2177
|
+
"dev.js"
|
|
2199
2178
|
]
|
|
2200
2179
|
},
|
|
2201
|
-
"
|
|
2180
|
+
"functions:list": {
|
|
2202
2181
|
"aliases": [],
|
|
2203
2182
|
"args": {},
|
|
2204
|
-
"description": "
|
|
2183
|
+
"description": "Lists functions deployed directly in the selected project or organization scope. The local Blueprint config supplies the scope by default.\n\nUse --project-id or --organization-id to select a scope without a local Blueprint. Organization results include organization-scoped functions only.",
|
|
2205
2184
|
"examples": [
|
|
2206
2185
|
"<%= config.bin %> <%= command.id %>",
|
|
2207
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2208
|
-
"<%= config.bin %> <%= command.id %> --project-id <
|
|
2209
|
-
"<%= config.bin %> <%= command.id %> --organization-id <
|
|
2186
|
+
"<%= config.bin %> <%= command.id %> --verbose",
|
|
2187
|
+
"<%= config.bin %> <%= command.id %> --project-id <projectId>",
|
|
2188
|
+
"<%= config.bin %> <%= command.id %> --organization-id <organizationId>",
|
|
2189
|
+
"<%= config.bin %> <%= command.id %> --project-id <projectId> --json"
|
|
2210
2190
|
],
|
|
2211
2191
|
"flags": {
|
|
2212
2192
|
"json": {
|
|
@@ -2244,16 +2224,14 @@
|
|
|
2244
2224
|
},
|
|
2245
2225
|
"verbose": {
|
|
2246
2226
|
"char": "v",
|
|
2247
|
-
"description": "Show
|
|
2227
|
+
"description": "Show function configuration details",
|
|
2248
2228
|
"name": "verbose",
|
|
2249
2229
|
"allowNo": false,
|
|
2250
2230
|
"type": "boolean"
|
|
2251
2231
|
},
|
|
2252
2232
|
"stack": {
|
|
2253
|
-
"
|
|
2254
|
-
|
|
2255
|
-
],
|
|
2256
|
-
"description": "Stack name or ID",
|
|
2233
|
+
"description": "Stack name or ID to use instead of the locally configured Stack",
|
|
2234
|
+
"hidden": true,
|
|
2257
2235
|
"name": "stack",
|
|
2258
2236
|
"hasDynamicHelp": false,
|
|
2259
2237
|
"multiple": false,
|
|
@@ -2290,45 +2268,41 @@
|
|
|
2290
2268
|
}
|
|
2291
2269
|
},
|
|
2292
2270
|
"hasDynamicHelp": false,
|
|
2271
|
+
"hidden": true,
|
|
2293
2272
|
"hiddenAliases": [],
|
|
2294
|
-
"id": "
|
|
2273
|
+
"id": "functions:list",
|
|
2295
2274
|
"pluginAlias": "@sanity/runtime-cli",
|
|
2296
2275
|
"pluginName": "@sanity/runtime-cli",
|
|
2297
2276
|
"pluginType": "core",
|
|
2298
2277
|
"strict": true,
|
|
2299
|
-
"summary": "
|
|
2278
|
+
"summary": "List deployed Sanity Functions",
|
|
2300
2279
|
"enableJsonFlag": true,
|
|
2301
2280
|
"needs": [
|
|
2302
|
-
"
|
|
2281
|
+
"scope"
|
|
2303
2282
|
],
|
|
2304
2283
|
"isESM": true,
|
|
2305
2284
|
"relativePath": [
|
|
2306
2285
|
"dist",
|
|
2307
2286
|
"commands",
|
|
2308
|
-
"
|
|
2309
|
-
"
|
|
2287
|
+
"functions",
|
|
2288
|
+
"list.js"
|
|
2310
2289
|
]
|
|
2311
2290
|
},
|
|
2312
|
-
"
|
|
2291
|
+
"functions:logs": {
|
|
2313
2292
|
"aliases": [],
|
|
2314
2293
|
"args": {
|
|
2315
|
-
"
|
|
2316
|
-
"description": "
|
|
2317
|
-
"name": "
|
|
2294
|
+
"name": {
|
|
2295
|
+
"description": "The name of the Sanity Function",
|
|
2296
|
+
"name": "name",
|
|
2297
|
+
"required": false
|
|
2318
2298
|
}
|
|
2319
2299
|
},
|
|
2320
|
-
"description": "
|
|
2300
|
+
"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).",
|
|
2321
2301
|
"examples": [
|
|
2322
|
-
"<%= config.bin %> <%= command.id %>",
|
|
2323
|
-
"<%= config.bin %> <%= command.id %>
|
|
2324
|
-
"<%= config.bin %> <%= command.id %>
|
|
2325
|
-
"<%= config.bin %> <%= command.id %>
|
|
2326
|
-
"<%= config.bin %> <%= command.id %> --organization-id <organizationId>",
|
|
2327
|
-
"<%= config.bin %> <%= command.id %> --project-id <projectId>",
|
|
2328
|
-
"<%= config.bin %> <%= command.id %> --stack-name <newStackName>",
|
|
2329
|
-
"<%= config.bin %> <%= command.id %> --stack-id <existingStackId>",
|
|
2330
|
-
"<%= config.bin %> <%= command.id %> new-stack --type <json|js|ts> --org <organizationId> --name <newStackName>",
|
|
2331
|
-
"<%= config.bin %> <%= command.id %> old-stack --type <json|js|ts> --project-id <projectId> --stack-id <existingStackId>"
|
|
2302
|
+
"<%= config.bin %> <%= command.id %> <name>",
|
|
2303
|
+
"<%= config.bin %> <%= command.id %> <name> --json",
|
|
2304
|
+
"<%= config.bin %> <%= command.id %> <name> --limit 100",
|
|
2305
|
+
"<%= config.bin %> <%= command.id %> <name> --delete"
|
|
2332
2306
|
],
|
|
2333
2307
|
"flags": {
|
|
2334
2308
|
"json": {
|
|
@@ -2371,41 +2345,11 @@
|
|
|
2371
2345
|
"allowNo": false,
|
|
2372
2346
|
"type": "boolean"
|
|
2373
2347
|
},
|
|
2374
|
-
"
|
|
2375
|
-
"description": "
|
|
2376
|
-
"name": "
|
|
2377
|
-
"hasDynamicHelp": false,
|
|
2378
|
-
"multiple": false,
|
|
2379
|
-
"type": "option"
|
|
2380
|
-
},
|
|
2381
|
-
"example": {
|
|
2382
|
-
"aliases": [
|
|
2383
|
-
"recipe"
|
|
2384
|
-
],
|
|
2385
|
-
"description": "Example to use for the local Blueprint",
|
|
2386
|
-
"exclusive": [
|
|
2387
|
-
"blueprint-type",
|
|
2388
|
-
"stack-id",
|
|
2389
|
-
"stack-name"
|
|
2390
|
-
],
|
|
2391
|
-
"name": "example",
|
|
2392
|
-
"hasDynamicHelp": false,
|
|
2393
|
-
"multiple": false,
|
|
2394
|
-
"type": "option"
|
|
2395
|
-
},
|
|
2396
|
-
"blueprint-type": {
|
|
2397
|
-
"aliases": [
|
|
2398
|
-
"type"
|
|
2399
|
-
],
|
|
2400
|
-
"description": "Blueprint manifest type to use for the local Blueprint",
|
|
2401
|
-
"name": "blueprint-type",
|
|
2348
|
+
"stack": {
|
|
2349
|
+
"description": "Stack name or ID to use instead of the locally configured Stack",
|
|
2350
|
+
"name": "stack",
|
|
2402
2351
|
"hasDynamicHelp": false,
|
|
2403
2352
|
"multiple": false,
|
|
2404
|
-
"options": [
|
|
2405
|
-
"json",
|
|
2406
|
-
"js",
|
|
2407
|
-
"ts"
|
|
2408
|
-
],
|
|
2409
2353
|
"type": "option"
|
|
2410
2354
|
},
|
|
2411
2355
|
"project-id": {
|
|
@@ -2417,6 +2361,7 @@
|
|
|
2417
2361
|
"exclusive": [
|
|
2418
2362
|
"organization-id"
|
|
2419
2363
|
],
|
|
2364
|
+
"hidden": true,
|
|
2420
2365
|
"name": "project-id",
|
|
2421
2366
|
"hasDynamicHelp": false,
|
|
2422
2367
|
"multiple": false,
|
|
@@ -2432,84 +2377,103 @@
|
|
|
2432
2377
|
"exclusive": [
|
|
2433
2378
|
"project-id"
|
|
2434
2379
|
],
|
|
2380
|
+
"hidden": true,
|
|
2435
2381
|
"name": "organization-id",
|
|
2436
2382
|
"hasDynamicHelp": false,
|
|
2437
2383
|
"multiple": false,
|
|
2438
2384
|
"type": "option"
|
|
2439
2385
|
},
|
|
2440
|
-
"
|
|
2441
|
-
"
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
"
|
|
2386
|
+
"limit": {
|
|
2387
|
+
"char": "l",
|
|
2388
|
+
"description": "Total number of log entries to retrieve",
|
|
2389
|
+
"name": "limit",
|
|
2390
|
+
"required": false,
|
|
2391
|
+
"default": 50,
|
|
2392
|
+
"hasDynamicHelp": false,
|
|
2393
|
+
"multiple": false,
|
|
2394
|
+
"type": "option"
|
|
2395
|
+
},
|
|
2396
|
+
"utc": {
|
|
2397
|
+
"char": "u",
|
|
2398
|
+
"description": "Show dates in UTC time zone",
|
|
2399
|
+
"name": "utc",
|
|
2400
|
+
"required": false,
|
|
2401
|
+
"allowNo": false,
|
|
2402
|
+
"type": "boolean"
|
|
2403
|
+
},
|
|
2404
|
+
"delete": {
|
|
2405
|
+
"char": "d",
|
|
2406
|
+
"description": "Delete all logs for the function",
|
|
2445
2407
|
"exclusive": [
|
|
2446
|
-
"
|
|
2408
|
+
"limit",
|
|
2409
|
+
"json"
|
|
2447
2410
|
],
|
|
2448
|
-
"name": "
|
|
2449
|
-
"
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2411
|
+
"name": "delete",
|
|
2412
|
+
"required": false,
|
|
2413
|
+
"allowNo": false,
|
|
2414
|
+
"type": "boolean"
|
|
2415
|
+
},
|
|
2416
|
+
"force": {
|
|
2417
|
+
"char": "f",
|
|
2418
|
+
"dependsOn": [
|
|
2419
|
+
"delete"
|
|
2457
2420
|
],
|
|
2458
|
-
"
|
|
2459
|
-
"
|
|
2460
|
-
"
|
|
2421
|
+
"description": "Skip confirmation for deleting logs",
|
|
2422
|
+
"name": "force",
|
|
2423
|
+
"required": false,
|
|
2424
|
+
"allowNo": false,
|
|
2425
|
+
"type": "boolean"
|
|
2461
2426
|
},
|
|
2462
|
-
"
|
|
2427
|
+
"watch": {
|
|
2463
2428
|
"aliases": [
|
|
2464
|
-
"
|
|
2429
|
+
"follow"
|
|
2465
2430
|
],
|
|
2466
|
-
"
|
|
2431
|
+
"char": "w",
|
|
2432
|
+
"description": "Watch for new logs (streaming mode)",
|
|
2467
2433
|
"exclusive": [
|
|
2468
|
-
"
|
|
2469
|
-
],
|
|
2470
|
-
"name": "stack-name",
|
|
2471
|
-
"relationships": [
|
|
2472
|
-
{
|
|
2473
|
-
"type": "some",
|
|
2474
|
-
"flags": [
|
|
2475
|
-
"project-id",
|
|
2476
|
-
"organization-id"
|
|
2477
|
-
]
|
|
2478
|
-
}
|
|
2434
|
+
"json"
|
|
2479
2435
|
],
|
|
2480
|
-
"
|
|
2481
|
-
"
|
|
2482
|
-
"type": "
|
|
2436
|
+
"name": "watch",
|
|
2437
|
+
"allowNo": false,
|
|
2438
|
+
"type": "boolean"
|
|
2483
2439
|
}
|
|
2484
2440
|
},
|
|
2485
2441
|
"hasDynamicHelp": false,
|
|
2486
2442
|
"hiddenAliases": [],
|
|
2487
|
-
"id": "
|
|
2443
|
+
"id": "functions:logs",
|
|
2488
2444
|
"pluginAlias": "@sanity/runtime-cli",
|
|
2489
2445
|
"pluginName": "@sanity/runtime-cli",
|
|
2490
2446
|
"pluginType": "core",
|
|
2491
2447
|
"strict": true,
|
|
2492
|
-
"summary": "
|
|
2448
|
+
"summary": "Retrieve or delete logs for a Sanity Function",
|
|
2493
2449
|
"enableJsonFlag": true,
|
|
2450
|
+
"needs": [
|
|
2451
|
+
"deployedStack",
|
|
2452
|
+
"blueprint"
|
|
2453
|
+
],
|
|
2494
2454
|
"isESM": true,
|
|
2495
2455
|
"relativePath": [
|
|
2496
2456
|
"dist",
|
|
2497
2457
|
"commands",
|
|
2498
|
-
"
|
|
2499
|
-
"
|
|
2458
|
+
"functions",
|
|
2459
|
+
"logs.js"
|
|
2500
2460
|
]
|
|
2501
2461
|
},
|
|
2502
|
-
"
|
|
2462
|
+
"functions:test": {
|
|
2503
2463
|
"aliases": [],
|
|
2504
|
-
"args": {
|
|
2505
|
-
|
|
2464
|
+
"args": {
|
|
2465
|
+
"name": {
|
|
2466
|
+
"description": "The name of the Sanity Function",
|
|
2467
|
+
"name": "name",
|
|
2468
|
+
"required": false
|
|
2469
|
+
}
|
|
2470
|
+
},
|
|
2471
|
+
"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.",
|
|
2506
2472
|
"examples": [
|
|
2507
|
-
"<%= config.bin %> <%= command.id %>",
|
|
2508
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2509
|
-
"<%= config.bin %> <%= command.id %>
|
|
2510
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2511
|
-
"<%= config.bin %> <%= command.id %> --since 2026-05-01T00:00:00Z",
|
|
2512
|
-
"<%= config.bin %> <%= command.id %> --before 2026-05-01T00:00:00Z"
|
|
2473
|
+
"<%= config.bin %> <%= command.id %> <name> --data '{ \"id\": 1 }'",
|
|
2474
|
+
"<%= config.bin %> <%= command.id %> <name> --file 'payload.json'",
|
|
2475
|
+
"<%= config.bin %> <%= command.id %> <name> --data '{ \"id\": 1 }' --timeout 60",
|
|
2476
|
+
"<%= config.bin %> <%= command.id %> <name> --event update --data-before '{ \"title\": \"before\" }' --data-after '{ \"title\": \"after\" }'"
|
|
2513
2477
|
],
|
|
2514
2478
|
"flags": {
|
|
2515
2479
|
"json": {
|
|
@@ -2554,6 +2518,7 @@
|
|
|
2554
2518
|
},
|
|
2555
2519
|
"stack": {
|
|
2556
2520
|
"description": "Stack name or ID to use instead of the locally configured Stack",
|
|
2521
|
+
"hidden": true,
|
|
2557
2522
|
"name": "stack",
|
|
2558
2523
|
"hasDynamicHelp": false,
|
|
2559
2524
|
"multiple": false,
|
|
@@ -2588,208 +2553,262 @@
|
|
|
2588
2553
|
"multiple": false,
|
|
2589
2554
|
"type": "option"
|
|
2590
2555
|
},
|
|
2591
|
-
"
|
|
2592
|
-
"
|
|
2593
|
-
|
|
2594
|
-
],
|
|
2595
|
-
"char": "w",
|
|
2596
|
-
"description": "Watch for new Stack logs",
|
|
2556
|
+
"data": {
|
|
2557
|
+
"char": "d",
|
|
2558
|
+
"description": "Data to send to the function",
|
|
2597
2559
|
"exclusive": [
|
|
2598
|
-
"
|
|
2560
|
+
"file",
|
|
2561
|
+
"document-id"
|
|
2599
2562
|
],
|
|
2600
|
-
"name": "
|
|
2601
|
-
"
|
|
2602
|
-
"
|
|
2563
|
+
"name": "data",
|
|
2564
|
+
"required": false,
|
|
2565
|
+
"hasDynamicHelp": false,
|
|
2566
|
+
"multiple": false,
|
|
2567
|
+
"type": "option"
|
|
2603
2568
|
},
|
|
2604
|
-
"
|
|
2605
|
-
"
|
|
2606
|
-
"description": "Maximum number of log entries to retrieve (1-500)",
|
|
2569
|
+
"data-before": {
|
|
2570
|
+
"description": "Original document",
|
|
2607
2571
|
"exclusive": [
|
|
2608
|
-
"
|
|
2572
|
+
"data",
|
|
2573
|
+
"file",
|
|
2574
|
+
"document-id",
|
|
2575
|
+
"file-before",
|
|
2576
|
+
"file-after",
|
|
2577
|
+
"document-id-before",
|
|
2578
|
+
"document-id-after"
|
|
2609
2579
|
],
|
|
2610
|
-
"name": "
|
|
2580
|
+
"name": "data-before",
|
|
2581
|
+
"required": false,
|
|
2611
2582
|
"hasDynamicHelp": false,
|
|
2612
2583
|
"multiple": false,
|
|
2613
2584
|
"type": "option"
|
|
2614
2585
|
},
|
|
2615
|
-
"
|
|
2616
|
-
"description": "
|
|
2586
|
+
"data-after": {
|
|
2587
|
+
"description": "Current document",
|
|
2617
2588
|
"exclusive": [
|
|
2618
|
-
"
|
|
2589
|
+
"data",
|
|
2590
|
+
"file",
|
|
2591
|
+
"document-id",
|
|
2592
|
+
"file-before",
|
|
2593
|
+
"file-after",
|
|
2594
|
+
"document-id-before",
|
|
2595
|
+
"document-id-after"
|
|
2619
2596
|
],
|
|
2620
|
-
"name": "
|
|
2597
|
+
"name": "data-after",
|
|
2598
|
+
"required": false,
|
|
2621
2599
|
"hasDynamicHelp": false,
|
|
2622
2600
|
"multiple": false,
|
|
2623
2601
|
"type": "option"
|
|
2624
2602
|
},
|
|
2625
|
-
"
|
|
2626
|
-
"
|
|
2603
|
+
"event": {
|
|
2604
|
+
"char": "e",
|
|
2605
|
+
"description": "Type of event (create, update, delete)",
|
|
2606
|
+
"name": "event",
|
|
2607
|
+
"required": false,
|
|
2608
|
+
"hasDynamicHelp": false,
|
|
2609
|
+
"multiple": false,
|
|
2610
|
+
"options": [
|
|
2611
|
+
"create",
|
|
2612
|
+
"update",
|
|
2613
|
+
"delete"
|
|
2614
|
+
],
|
|
2615
|
+
"type": "option"
|
|
2616
|
+
},
|
|
2617
|
+
"file": {
|
|
2618
|
+
"char": "f",
|
|
2619
|
+
"description": "Read data from file and send to the function",
|
|
2627
2620
|
"exclusive": [
|
|
2628
|
-
"
|
|
2621
|
+
"data",
|
|
2622
|
+
"document-id"
|
|
2629
2623
|
],
|
|
2630
|
-
"name": "
|
|
2624
|
+
"name": "file",
|
|
2625
|
+
"required": false,
|
|
2631
2626
|
"hasDynamicHelp": false,
|
|
2632
2627
|
"multiple": false,
|
|
2633
2628
|
"type": "option"
|
|
2634
|
-
}
|
|
2635
|
-
},
|
|
2636
|
-
"hasDynamicHelp": false,
|
|
2637
|
-
"hiddenAliases": [],
|
|
2638
|
-
"id": "blueprints:logs",
|
|
2639
|
-
"pluginAlias": "@sanity/runtime-cli",
|
|
2640
|
-
"pluginName": "@sanity/runtime-cli",
|
|
2641
|
-
"pluginType": "core",
|
|
2642
|
-
"strict": true,
|
|
2643
|
-
"summary": "Display logs for the current Blueprint's Stack deployment",
|
|
2644
|
-
"enableJsonFlag": true,
|
|
2645
|
-
"needs": [
|
|
2646
|
-
"deployedStack"
|
|
2647
|
-
],
|
|
2648
|
-
"isESM": true,
|
|
2649
|
-
"relativePath": [
|
|
2650
|
-
"dist",
|
|
2651
|
-
"commands",
|
|
2652
|
-
"blueprints",
|
|
2653
|
-
"logs.js"
|
|
2654
|
-
]
|
|
2655
|
-
},
|
|
2656
|
-
"blueprints:mint-deploy-token": {
|
|
2657
|
-
"aliases": [],
|
|
2658
|
-
"args": {},
|
|
2659
|
-
"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.",
|
|
2660
|
-
"examples": [
|
|
2661
|
-
"<%= config.bin %> <%= command.id %>",
|
|
2662
|
-
"<%= config.bin %> <%= command.id %> --label \"ci-deploy\"",
|
|
2663
|
-
"<%= config.bin %> <%= command.id %> --print",
|
|
2664
|
-
"export SANITY_AUTH_TOKEN=$(<%= config.bin %> <%= command.id %> --print)",
|
|
2665
|
-
"<%= config.bin %> <%= command.id %> --json",
|
|
2666
|
-
"<%= config.bin %> <%= command.id %> --project-id <projectId>",
|
|
2667
|
-
"<%= config.bin %> <%= command.id %> --organization-id <orgId>"
|
|
2668
|
-
],
|
|
2669
|
-
"flags": {
|
|
2670
|
-
"json": {
|
|
2671
|
-
"description": "Format output as json",
|
|
2672
|
-
"name": "json",
|
|
2673
|
-
"allowNo": false,
|
|
2674
|
-
"type": "boolean"
|
|
2675
2629
|
},
|
|
2676
|
-
"
|
|
2677
|
-
"
|
|
2678
|
-
|
|
2630
|
+
"file-before": {
|
|
2631
|
+
"description": "Original document",
|
|
2632
|
+
"exclusive": [
|
|
2633
|
+
"data",
|
|
2634
|
+
"file",
|
|
2635
|
+
"document-id",
|
|
2636
|
+
"data-before",
|
|
2637
|
+
"data-after",
|
|
2638
|
+
"document-id-before",
|
|
2639
|
+
"document-id-after"
|
|
2679
2640
|
],
|
|
2680
|
-
"
|
|
2681
|
-
"
|
|
2682
|
-
"env": "SANITY_BLUEPRINT_PATH",
|
|
2683
|
-
"hidden": true,
|
|
2684
|
-
"name": "path",
|
|
2641
|
+
"name": "file-before",
|
|
2642
|
+
"required": false,
|
|
2685
2643
|
"hasDynamicHelp": false,
|
|
2686
2644
|
"multiple": false,
|
|
2687
2645
|
"type": "option"
|
|
2688
2646
|
},
|
|
2689
|
-
"
|
|
2690
|
-
"description": "
|
|
2691
|
-
"
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2647
|
+
"file-after": {
|
|
2648
|
+
"description": "Current document",
|
|
2649
|
+
"exclusive": [
|
|
2650
|
+
"data",
|
|
2651
|
+
"file",
|
|
2652
|
+
"document-id",
|
|
2653
|
+
"data-before",
|
|
2654
|
+
"data-after",
|
|
2655
|
+
"document-id-before",
|
|
2656
|
+
"document-id-after"
|
|
2657
|
+
],
|
|
2658
|
+
"name": "file-after",
|
|
2659
|
+
"required": false,
|
|
2660
|
+
"hasDynamicHelp": false,
|
|
2661
|
+
"multiple": false,
|
|
2662
|
+
"type": "option"
|
|
2695
2663
|
},
|
|
2696
|
-
"
|
|
2697
|
-
"
|
|
2698
|
-
"
|
|
2699
|
-
"name": "
|
|
2700
|
-
"
|
|
2701
|
-
"
|
|
2664
|
+
"timeout": {
|
|
2665
|
+
"char": "t",
|
|
2666
|
+
"description": "Execution timeout value in seconds",
|
|
2667
|
+
"name": "timeout",
|
|
2668
|
+
"required": false,
|
|
2669
|
+
"hasDynamicHelp": false,
|
|
2670
|
+
"multiple": false,
|
|
2671
|
+
"type": "option"
|
|
2702
2672
|
},
|
|
2703
|
-
"
|
|
2704
|
-
"
|
|
2705
|
-
"
|
|
2706
|
-
"name": "
|
|
2707
|
-
"
|
|
2708
|
-
"
|
|
2673
|
+
"api": {
|
|
2674
|
+
"char": "a",
|
|
2675
|
+
"description": "Sanity API Version to use",
|
|
2676
|
+
"name": "api",
|
|
2677
|
+
"required": false,
|
|
2678
|
+
"hasDynamicHelp": false,
|
|
2679
|
+
"multiple": false,
|
|
2680
|
+
"type": "option"
|
|
2709
2681
|
},
|
|
2710
|
-
"
|
|
2711
|
-
"description": "
|
|
2712
|
-
"
|
|
2713
|
-
"
|
|
2682
|
+
"dataset": {
|
|
2683
|
+
"description": "The Sanity dataset to use",
|
|
2684
|
+
"name": "dataset",
|
|
2685
|
+
"required": false,
|
|
2714
2686
|
"hasDynamicHelp": false,
|
|
2715
2687
|
"multiple": false,
|
|
2716
2688
|
"type": "option"
|
|
2717
2689
|
},
|
|
2718
|
-
"
|
|
2690
|
+
"document-id": {
|
|
2719
2691
|
"aliases": [
|
|
2720
|
-
"
|
|
2721
|
-
"
|
|
2692
|
+
"doc",
|
|
2693
|
+
"documentId"
|
|
2722
2694
|
],
|
|
2723
|
-
"description": "
|
|
2695
|
+
"description": "Document to fetch and send to function",
|
|
2724
2696
|
"exclusive": [
|
|
2725
|
-
"
|
|
2697
|
+
"data",
|
|
2698
|
+
"file"
|
|
2726
2699
|
],
|
|
2727
|
-
"name": "
|
|
2700
|
+
"name": "document-id",
|
|
2701
|
+
"required": false,
|
|
2728
2702
|
"hasDynamicHelp": false,
|
|
2729
2703
|
"multiple": false,
|
|
2730
2704
|
"type": "option"
|
|
2731
2705
|
},
|
|
2732
|
-
"
|
|
2733
|
-
"
|
|
2734
|
-
"organization",
|
|
2735
|
-
"organizationId",
|
|
2736
|
-
"org"
|
|
2737
|
-
],
|
|
2738
|
-
"description": "Sanity organization ID used to scope Blueprint and Stack",
|
|
2706
|
+
"document-id-before": {
|
|
2707
|
+
"description": "Original document",
|
|
2739
2708
|
"exclusive": [
|
|
2740
|
-
"
|
|
2709
|
+
"data",
|
|
2710
|
+
"file",
|
|
2711
|
+
"document-id",
|
|
2712
|
+
"data-before",
|
|
2713
|
+
"data-after",
|
|
2714
|
+
"file-before",
|
|
2715
|
+
"file-after"
|
|
2741
2716
|
],
|
|
2742
|
-
"name": "
|
|
2717
|
+
"name": "document-id-before",
|
|
2718
|
+
"required": false,
|
|
2743
2719
|
"hasDynamicHelp": false,
|
|
2744
2720
|
"multiple": false,
|
|
2745
2721
|
"type": "option"
|
|
2746
2722
|
},
|
|
2747
|
-
"
|
|
2748
|
-
"description": "
|
|
2749
|
-
"
|
|
2723
|
+
"document-id-after": {
|
|
2724
|
+
"description": "Current document",
|
|
2725
|
+
"exclusive": [
|
|
2726
|
+
"data",
|
|
2727
|
+
"file",
|
|
2728
|
+
"document-id",
|
|
2729
|
+
"data-before",
|
|
2730
|
+
"data-after",
|
|
2731
|
+
"file-before",
|
|
2732
|
+
"file-after"
|
|
2733
|
+
],
|
|
2734
|
+
"name": "document-id-after",
|
|
2735
|
+
"required": false,
|
|
2750
2736
|
"hasDynamicHelp": false,
|
|
2751
2737
|
"multiple": false,
|
|
2752
2738
|
"type": "option"
|
|
2753
2739
|
},
|
|
2754
|
-
"
|
|
2755
|
-
"
|
|
2756
|
-
"
|
|
2740
|
+
"with-user-token": {
|
|
2741
|
+
"description": "Prime access token from CLI config",
|
|
2742
|
+
"name": "with-user-token",
|
|
2743
|
+
"allowNo": false,
|
|
2744
|
+
"type": "boolean"
|
|
2745
|
+
},
|
|
2746
|
+
"media-library-id": {
|
|
2747
|
+
"aliases": [
|
|
2748
|
+
"media"
|
|
2749
|
+
],
|
|
2750
|
+
"description": "Sanity Media Library ID to use",
|
|
2757
2751
|
"exclusive": [
|
|
2758
|
-
"
|
|
2752
|
+
"project-id",
|
|
2753
|
+
"dataset"
|
|
2759
2754
|
],
|
|
2760
|
-
"name": "
|
|
2755
|
+
"name": "media-library-id",
|
|
2756
|
+
"required": false,
|
|
2757
|
+
"hasDynamicHelp": false,
|
|
2758
|
+
"multiple": false,
|
|
2759
|
+
"type": "option"
|
|
2760
|
+
},
|
|
2761
|
+
"no-wait": {
|
|
2762
|
+
"description": "Skip durable wait delays instead of sleeping",
|
|
2763
|
+
"name": "no-wait",
|
|
2764
|
+
"required": false,
|
|
2761
2765
|
"allowNo": false,
|
|
2762
2766
|
"type": "boolean"
|
|
2763
2767
|
}
|
|
2764
2768
|
},
|
|
2765
2769
|
"hasDynamicHelp": false,
|
|
2766
2770
|
"hiddenAliases": [],
|
|
2767
|
-
"id": "
|
|
2771
|
+
"id": "functions:test",
|
|
2768
2772
|
"pluginAlias": "@sanity/runtime-cli",
|
|
2769
2773
|
"pluginName": "@sanity/runtime-cli",
|
|
2770
2774
|
"pluginType": "core",
|
|
2771
2775
|
"strict": true,
|
|
2772
|
-
"summary": "
|
|
2776
|
+
"summary": "Invoke a local Sanity Function",
|
|
2773
2777
|
"enableJsonFlag": true,
|
|
2774
2778
|
"needs": [
|
|
2775
|
-
"
|
|
2779
|
+
"blueprint"
|
|
2776
2780
|
],
|
|
2777
2781
|
"isESM": true,
|
|
2778
2782
|
"relativePath": [
|
|
2779
2783
|
"dist",
|
|
2780
2784
|
"commands",
|
|
2781
|
-
"
|
|
2782
|
-
"
|
|
2785
|
+
"functions",
|
|
2786
|
+
"test.js"
|
|
2783
2787
|
]
|
|
2784
2788
|
},
|
|
2785
|
-
"
|
|
2789
|
+
"functions:env:add": {
|
|
2786
2790
|
"aliases": [],
|
|
2787
|
-
"args": {
|
|
2788
|
-
|
|
2791
|
+
"args": {
|
|
2792
|
+
"name": {
|
|
2793
|
+
"description": "The name of the Sanity Function",
|
|
2794
|
+
"name": "name",
|
|
2795
|
+
"required": true
|
|
2796
|
+
},
|
|
2797
|
+
"key": {
|
|
2798
|
+
"description": "The name of the environment variable",
|
|
2799
|
+
"name": "key",
|
|
2800
|
+
"required": true
|
|
2801
|
+
},
|
|
2802
|
+
"value": {
|
|
2803
|
+
"description": "The value of the environment variable",
|
|
2804
|
+
"name": "value",
|
|
2805
|
+
"required": true
|
|
2806
|
+
}
|
|
2807
|
+
},
|
|
2808
|
+
"description": "Sets an environment variable in a deployed Sanity Function. If the variable already exists, its value is updated.\n\nEnvironment variables are useful for API keys, configuration values, and other secrets that shouldn't be hardcoded. Changes take effect on the next function invocation.",
|
|
2789
2809
|
"examples": [
|
|
2790
|
-
"<%= config.bin %> <%= command.id %>",
|
|
2791
|
-
"<%= config.bin %> <%= command.id %> --stack <name-or-id>"
|
|
2792
|
-
"<%= config.bin %> <%= command.id %> --organization-id <orgId> --stack <name-or-id>"
|
|
2810
|
+
"<%= config.bin %> <%= command.id %> MyFunction API_URL https://api.example.com/",
|
|
2811
|
+
"<%= config.bin %> <%= command.id %> --stack <name-or-id> MyFunction API_URL https://api.example.com/"
|
|
2793
2812
|
],
|
|
2794
2813
|
"flags": {
|
|
2795
2814
|
"json": {
|
|
@@ -2848,6 +2867,7 @@
|
|
|
2848
2867
|
"exclusive": [
|
|
2849
2868
|
"organization-id"
|
|
2850
2869
|
],
|
|
2870
|
+
"hidden": true,
|
|
2851
2871
|
"name": "project-id",
|
|
2852
2872
|
"hasDynamicHelp": false,
|
|
2853
2873
|
"multiple": false,
|
|
@@ -2863,6 +2883,7 @@
|
|
|
2863
2883
|
"exclusive": [
|
|
2864
2884
|
"project-id"
|
|
2865
2885
|
],
|
|
2886
|
+
"hidden": true,
|
|
2866
2887
|
"name": "organization-id",
|
|
2867
2888
|
"hasDynamicHelp": false,
|
|
2868
2889
|
"multiple": false,
|
|
@@ -2871,34 +2892,39 @@
|
|
|
2871
2892
|
},
|
|
2872
2893
|
"hasDynamicHelp": false,
|
|
2873
2894
|
"hiddenAliases": [],
|
|
2874
|
-
"id": "
|
|
2895
|
+
"id": "functions:env:add",
|
|
2875
2896
|
"pluginAlias": "@sanity/runtime-cli",
|
|
2876
2897
|
"pluginName": "@sanity/runtime-cli",
|
|
2877
2898
|
"pluginType": "core",
|
|
2878
2899
|
"strict": true,
|
|
2879
|
-
"summary": "
|
|
2900
|
+
"summary": "Add or set an environment variable for a deployed function",
|
|
2880
2901
|
"enableJsonFlag": true,
|
|
2881
2902
|
"needs": [
|
|
2882
|
-
"
|
|
2903
|
+
"deployedStack",
|
|
2883
2904
|
"blueprint"
|
|
2884
2905
|
],
|
|
2885
2906
|
"isESM": true,
|
|
2886
2907
|
"relativePath": [
|
|
2887
2908
|
"dist",
|
|
2888
2909
|
"commands",
|
|
2889
|
-
"
|
|
2890
|
-
"
|
|
2910
|
+
"functions",
|
|
2911
|
+
"env",
|
|
2912
|
+
"add.js"
|
|
2891
2913
|
]
|
|
2892
2914
|
},
|
|
2893
|
-
"
|
|
2915
|
+
"functions:env:list": {
|
|
2894
2916
|
"aliases": [],
|
|
2895
|
-
"args": {
|
|
2896
|
-
|
|
2917
|
+
"args": {
|
|
2918
|
+
"name": {
|
|
2919
|
+
"description": "The name of the Sanity Function",
|
|
2920
|
+
"name": "name",
|
|
2921
|
+
"required": true
|
|
2922
|
+
}
|
|
2923
|
+
},
|
|
2924
|
+
"description": "Displays all environment variables (keys only) configured in a deployed Sanity Function.\n\nUse 'functions env add' to set variables or 'functions env remove' to delete them.",
|
|
2897
2925
|
"examples": [
|
|
2898
|
-
"<%= config.bin %> <%= command.id %>",
|
|
2899
|
-
"<%= config.bin %> <%= command.id %> --stack <name-or-id>"
|
|
2900
|
-
"<%= config.bin %> <%= command.id %> --project-id <projectId> --stack <name-or-id>",
|
|
2901
|
-
"<%= config.bin %> <%= command.id %> --new-stack-name <new-name>"
|
|
2926
|
+
"<%= config.bin %> <%= command.id %> MyFunction",
|
|
2927
|
+
"<%= config.bin %> <%= command.id %> --stack <name-or-id> MyFunction"
|
|
2902
2928
|
],
|
|
2903
2929
|
"flags": {
|
|
2904
2930
|
"json": {
|
|
@@ -2942,10 +2968,7 @@
|
|
|
2942
2968
|
"type": "boolean"
|
|
2943
2969
|
},
|
|
2944
2970
|
"stack": {
|
|
2945
|
-
"
|
|
2946
|
-
"id"
|
|
2947
|
-
],
|
|
2948
|
-
"description": "Stack name or ID to promote",
|
|
2971
|
+
"description": "Stack name or ID to use instead of the locally configured Stack",
|
|
2949
2972
|
"name": "stack",
|
|
2950
2973
|
"hasDynamicHelp": false,
|
|
2951
2974
|
"multiple": false,
|
|
@@ -2960,6 +2983,7 @@
|
|
|
2960
2983
|
"exclusive": [
|
|
2961
2984
|
"organization-id"
|
|
2962
2985
|
],
|
|
2986
|
+
"hidden": true,
|
|
2963
2987
|
"name": "project-id",
|
|
2964
2988
|
"hasDynamicHelp": false,
|
|
2965
2989
|
"multiple": false,
|
|
@@ -2980,29 +3004,16 @@
|
|
|
2980
3004
|
"hasDynamicHelp": false,
|
|
2981
3005
|
"multiple": false,
|
|
2982
3006
|
"type": "option"
|
|
2983
|
-
},
|
|
2984
|
-
"force": {
|
|
2985
|
-
"description": "Skip confirmation prompt",
|
|
2986
|
-
"name": "force",
|
|
2987
|
-
"allowNo": false,
|
|
2988
|
-
"type": "boolean"
|
|
2989
|
-
},
|
|
2990
|
-
"new-stack-name": {
|
|
2991
|
-
"description": "Set a new name for the Stack while promoting",
|
|
2992
|
-
"name": "new-stack-name",
|
|
2993
|
-
"hasDynamicHelp": false,
|
|
2994
|
-
"multiple": false,
|
|
2995
|
-
"type": "option"
|
|
2996
3007
|
}
|
|
2997
3008
|
},
|
|
2998
3009
|
"hasDynamicHelp": false,
|
|
2999
3010
|
"hiddenAliases": [],
|
|
3000
|
-
"id": "
|
|
3011
|
+
"id": "functions:env:list",
|
|
3001
3012
|
"pluginAlias": "@sanity/runtime-cli",
|
|
3002
3013
|
"pluginName": "@sanity/runtime-cli",
|
|
3003
3014
|
"pluginType": "core",
|
|
3004
3015
|
"strict": true,
|
|
3005
|
-
"summary": "
|
|
3016
|
+
"summary": "List environment variables for a deployed function",
|
|
3006
3017
|
"enableJsonFlag": true,
|
|
3007
3018
|
"needs": [
|
|
3008
3019
|
"deployedStack",
|
|
@@ -3012,20 +3023,29 @@
|
|
|
3012
3023
|
"relativePath": [
|
|
3013
3024
|
"dist",
|
|
3014
3025
|
"commands",
|
|
3015
|
-
"
|
|
3016
|
-
"
|
|
3026
|
+
"functions",
|
|
3027
|
+
"env",
|
|
3028
|
+
"list.js"
|
|
3017
3029
|
]
|
|
3018
3030
|
},
|
|
3019
|
-
"
|
|
3031
|
+
"functions:env:remove": {
|
|
3020
3032
|
"aliases": [],
|
|
3021
|
-
"args": {
|
|
3022
|
-
|
|
3033
|
+
"args": {
|
|
3034
|
+
"name": {
|
|
3035
|
+
"description": "The name of the Sanity Function",
|
|
3036
|
+
"name": "name",
|
|
3037
|
+
"required": true
|
|
3038
|
+
},
|
|
3039
|
+
"key": {
|
|
3040
|
+
"description": "The name of the environment variable",
|
|
3041
|
+
"name": "key",
|
|
3042
|
+
"required": true
|
|
3043
|
+
}
|
|
3044
|
+
},
|
|
3045
|
+
"description": "Deletes an environment variable from a deployed Sanity Function. The change takes effect on the next function invocation.\n\nUse 'functions env list' to see current variables before removing.",
|
|
3023
3046
|
"examples": [
|
|
3024
|
-
"<%= config.bin %> <%= command.id %>",
|
|
3025
|
-
"<%= config.bin %> <%= command.id %> --
|
|
3026
|
-
"<%= config.bin %> <%= command.id %> --project-id <projectId>",
|
|
3027
|
-
"<%= config.bin %> <%= command.id %> --organization-id <organizationId>",
|
|
3028
|
-
"<%= config.bin %> <%= command.id %> --organization-id <organizationId> --include-projects"
|
|
3047
|
+
"<%= config.bin %> <%= command.id %> MyFunction API_URL",
|
|
3048
|
+
"<%= config.bin %> <%= command.id %> --stack <name-or-id> MyFunction API_URL"
|
|
3029
3049
|
],
|
|
3030
3050
|
"flags": {
|
|
3031
3051
|
"json": {
|
|
@@ -3070,7 +3090,6 @@
|
|
|
3070
3090
|
},
|
|
3071
3091
|
"stack": {
|
|
3072
3092
|
"description": "Stack name or ID to use instead of the locally configured Stack",
|
|
3073
|
-
"hidden": true,
|
|
3074
3093
|
"name": "stack",
|
|
3075
3094
|
"hasDynamicHelp": false,
|
|
3076
3095
|
"multiple": false,
|
|
@@ -3083,10 +3102,9 @@
|
|
|
3083
3102
|
],
|
|
3084
3103
|
"description": "Sanity project ID used to scope Blueprint and Stack",
|
|
3085
3104
|
"exclusive": [
|
|
3086
|
-
"organization-id"
|
|
3087
|
-
"include-projects",
|
|
3088
|
-
"all"
|
|
3105
|
+
"organization-id"
|
|
3089
3106
|
],
|
|
3107
|
+
"hidden": true,
|
|
3090
3108
|
"name": "project-id",
|
|
3091
3109
|
"hasDynamicHelp": false,
|
|
3092
3110
|
"multiple": false,
|
|
@@ -3100,55 +3118,37 @@
|
|
|
3100
3118
|
],
|
|
3101
3119
|
"description": "Sanity organization ID used to scope Blueprint and Stack",
|
|
3102
3120
|
"exclusive": [
|
|
3103
|
-
"project-id"
|
|
3104
|
-
"all"
|
|
3121
|
+
"project-id"
|
|
3105
3122
|
],
|
|
3123
|
+
"hidden": true,
|
|
3106
3124
|
"name": "organization-id",
|
|
3107
3125
|
"hasDynamicHelp": false,
|
|
3108
3126
|
"multiple": false,
|
|
3109
3127
|
"type": "option"
|
|
3110
|
-
},
|
|
3111
|
-
"include-projects": {
|
|
3112
|
-
"dependsOn": [
|
|
3113
|
-
"organization-id"
|
|
3114
|
-
],
|
|
3115
|
-
"description": "Include Stacks from all projects within the organization. Requires --organization-id.",
|
|
3116
|
-
"name": "include-projects",
|
|
3117
|
-
"allowNo": false,
|
|
3118
|
-
"type": "boolean"
|
|
3119
|
-
},
|
|
3120
|
-
"all": {
|
|
3121
|
-
"description": "List Stacks from every organization and project you have access to",
|
|
3122
|
-
"exclusive": [
|
|
3123
|
-
"project-id",
|
|
3124
|
-
"organization-id",
|
|
3125
|
-
"include-projects"
|
|
3126
|
-
],
|
|
3127
|
-
"name": "all",
|
|
3128
|
-
"allowNo": false,
|
|
3129
|
-
"type": "boolean"
|
|
3130
3128
|
}
|
|
3131
3129
|
},
|
|
3132
3130
|
"hasDynamicHelp": false,
|
|
3133
3131
|
"hiddenAliases": [],
|
|
3134
|
-
"id": "
|
|
3132
|
+
"id": "functions:env:remove",
|
|
3135
3133
|
"pluginAlias": "@sanity/runtime-cli",
|
|
3136
3134
|
"pluginName": "@sanity/runtime-cli",
|
|
3137
3135
|
"pluginType": "core",
|
|
3138
3136
|
"strict": true,
|
|
3139
|
-
"summary": "
|
|
3137
|
+
"summary": "Remove an environment variable from a deployed function",
|
|
3140
3138
|
"enableJsonFlag": true,
|
|
3141
3139
|
"needs": [
|
|
3142
|
-
"
|
|
3140
|
+
"deployedStack",
|
|
3141
|
+
"blueprint"
|
|
3143
3142
|
],
|
|
3144
3143
|
"isESM": true,
|
|
3145
3144
|
"relativePath": [
|
|
3146
3145
|
"dist",
|
|
3147
3146
|
"commands",
|
|
3148
|
-
"
|
|
3149
|
-
"
|
|
3147
|
+
"functions",
|
|
3148
|
+
"env",
|
|
3149
|
+
"remove.js"
|
|
3150
3150
|
]
|
|
3151
3151
|
}
|
|
3152
3152
|
},
|
|
3153
|
-
"version": "17.20.
|
|
3153
|
+
"version": "17.20.1-next.g9166da1"
|
|
3154
3154
|
}
|