@sanity/runtime-cli 17.2.0 → 17.3.0-blueprinit.gaf4f184
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 +35 -26
- package/SKILL.md +21 -0
- package/dist/actions/blueprinit/manifest.d.ts +13 -0
- package/dist/actions/blueprinit/manifest.js +57 -0
- package/dist/actions/blueprinit/studio.d.ts +6 -0
- package/dist/actions/blueprinit/studio.js +43 -0
- package/dist/actions/blueprinit/templates.d.ts +34 -0
- package/dist/actions/blueprinit/templates.js +83 -0
- package/dist/actions/blueprinit/workspace.d.ts +15 -0
- package/dist/actions/blueprinit/workspace.js +142 -0
- package/dist/actions/blueprints/assets.js +15 -24
- package/dist/actions/blueprints/pre-deploy.d.ts +29 -0
- package/dist/actions/blueprints/pre-deploy.js +164 -0
- package/dist/actions/sanity/datasets.d.ts +15 -0
- package/dist/actions/sanity/datasets.js +26 -0
- package/dist/baseCommands.d.ts +7 -0
- package/dist/baseCommands.js +21 -0
- package/dist/commands/blueprinit.d.ts +14 -0
- package/dist/commands/blueprinit.js +45 -0
- package/dist/commands/functions/env/add.d.ts +3 -0
- package/dist/commands/functions/env/add.js +6 -2
- package/dist/commands/functions/env/list.d.ts +3 -0
- package/dist/commands/functions/env/list.js +9 -3
- package/dist/commands/functions/env/remove.d.ts +3 -0
- package/dist/commands/functions/env/remove.js +9 -3
- package/dist/constants.d.ts +1 -0
- package/dist/constants.js +1 -0
- package/dist/cores/blueprinit/adopt.d.ts +6 -0
- package/dist/cores/blueprinit/adopt.js +90 -0
- package/dist/cores/blueprinit/finish.d.ts +14 -0
- package/dist/cores/blueprinit/finish.js +36 -0
- package/dist/cores/blueprinit/fresh.d.ts +3 -0
- package/dist/cores/blueprinit/fresh.js +88 -0
- package/dist/cores/blueprinit/prompts.d.ts +4 -0
- package/dist/cores/blueprinit/prompts.js +14 -0
- package/dist/cores/blueprinit/selection.d.ts +15 -0
- package/dist/cores/blueprinit/selection.js +63 -0
- package/dist/cores/blueprinit/types.d.ts +13 -0
- package/dist/cores/blueprinit/types.js +1 -0
- package/dist/cores/blueprinit.d.ts +7 -0
- package/dist/cores/blueprinit.js +39 -0
- package/dist/cores/blueprints/deploy.js +16 -64
- package/dist/utils/command-skills.d.ts +2 -0
- package/dist/utils/command-skills.js +17 -0
- package/dist/utils/functions/child-process-wrapper.js +13 -171
- package/dist/utils/functions/child-runtime/console.d.ts +1 -0
- package/dist/utils/functions/child-runtime/console.js +50 -0
- package/dist/utils/functions/child-runtime/invoke.d.ts +4 -0
- package/dist/utils/functions/child-runtime/invoke.js +47 -0
- package/dist/utils/functions/child-runtime/resources.d.ts +4 -0
- package/dist/utils/functions/child-runtime/resources.js +59 -0
- package/dist/utils/studios/prepare-asset.d.ts +6 -0
- package/dist/utils/studios/prepare-asset.js +139 -0
- package/dist/utils/types.d.ts +4 -7
- package/dist/utils/types.js +2 -3
- package/oclif.manifest.json +1263 -957
- package/package.json +13 -5
- package/skills/blueprinit.md +137 -0
package/oclif.manifest.json
CHANGED
|
@@ -1,27 +1,121 @@
|
|
|
1
1
|
{
|
|
2
2
|
"commands": {
|
|
3
|
-
"
|
|
3
|
+
"blueprinit": {
|
|
4
4
|
"aliases": [],
|
|
5
|
-
"args": {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
"args": {},
|
|
6
|
+
"description": "Scaffolds a Blueprint, Studio, and starter function around an existing Sanity project.\n\nThis hidden command is an experiment; its interface and generated files are not stable.",
|
|
7
|
+
"examples": [
|
|
8
|
+
"<%= config.bin %> <%= command.id %>",
|
|
9
|
+
"<%= config.bin %> <%= command.id %> --yes"
|
|
10
|
+
],
|
|
11
|
+
"flags": {
|
|
12
|
+
"json": {
|
|
13
|
+
"description": "Format output as json",
|
|
14
|
+
"name": "json",
|
|
15
|
+
"allowNo": false,
|
|
16
|
+
"type": "boolean"
|
|
17
|
+
},
|
|
18
|
+
"llms": {
|
|
19
|
+
"aliases": [
|
|
20
|
+
"skill"
|
|
11
21
|
],
|
|
12
|
-
"
|
|
22
|
+
"description": "Show agent-oriented guidance for this command",
|
|
23
|
+
"name": "llms",
|
|
24
|
+
"allowNo": false,
|
|
25
|
+
"type": "boolean"
|
|
26
|
+
},
|
|
27
|
+
"path": {
|
|
28
|
+
"aliases": [
|
|
29
|
+
"blueprint-path"
|
|
30
|
+
],
|
|
31
|
+
"char": "p",
|
|
32
|
+
"description": "Path to a Blueprint file or directory containing one",
|
|
33
|
+
"env": "SANITY_BLUEPRINT_PATH",
|
|
34
|
+
"hidden": true,
|
|
35
|
+
"name": "path",
|
|
36
|
+
"hasDynamicHelp": false,
|
|
37
|
+
"multiple": false,
|
|
38
|
+
"type": "option"
|
|
39
|
+
},
|
|
40
|
+
"trace": {
|
|
41
|
+
"description": "Trace output",
|
|
42
|
+
"hidden": true,
|
|
43
|
+
"name": "trace",
|
|
44
|
+
"allowNo": false,
|
|
45
|
+
"type": "boolean"
|
|
46
|
+
},
|
|
47
|
+
"validate-resources": {
|
|
48
|
+
"description": "Validate resources",
|
|
49
|
+
"hidden": true,
|
|
50
|
+
"name": "validate-resources",
|
|
51
|
+
"allowNo": true,
|
|
52
|
+
"type": "boolean"
|
|
53
|
+
},
|
|
54
|
+
"verbose": {
|
|
55
|
+
"description": "Verbose output",
|
|
56
|
+
"hidden": true,
|
|
57
|
+
"name": "verbose",
|
|
58
|
+
"allowNo": false,
|
|
59
|
+
"type": "boolean"
|
|
60
|
+
},
|
|
61
|
+
"yes": {
|
|
62
|
+
"char": "y",
|
|
63
|
+
"description": "Skip confirmation prompts",
|
|
64
|
+
"name": "yes",
|
|
65
|
+
"allowNo": false,
|
|
66
|
+
"type": "boolean"
|
|
67
|
+
},
|
|
68
|
+
"organization-id": {
|
|
69
|
+
"aliases": [
|
|
70
|
+
"organization",
|
|
71
|
+
"organizationId",
|
|
72
|
+
"org"
|
|
73
|
+
],
|
|
74
|
+
"description": "Organization to use when the account has several",
|
|
75
|
+
"name": "organization-id",
|
|
76
|
+
"hasDynamicHelp": false,
|
|
77
|
+
"multiple": false,
|
|
78
|
+
"type": "option"
|
|
79
|
+
},
|
|
80
|
+
"project-id": {
|
|
81
|
+
"aliases": [
|
|
82
|
+
"project",
|
|
83
|
+
"projectId"
|
|
84
|
+
],
|
|
85
|
+
"description": "Project to use when the organization has several",
|
|
86
|
+
"name": "project-id",
|
|
87
|
+
"hasDynamicHelp": false,
|
|
88
|
+
"multiple": false,
|
|
89
|
+
"type": "option"
|
|
13
90
|
}
|
|
14
91
|
},
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
92
|
+
"hasDynamicHelp": false,
|
|
93
|
+
"hidden": true,
|
|
94
|
+
"hiddenAliases": [],
|
|
95
|
+
"id": "blueprinit",
|
|
96
|
+
"pluginAlias": "@sanity/runtime-cli",
|
|
97
|
+
"pluginName": "@sanity/runtime-cli",
|
|
98
|
+
"pluginType": "core",
|
|
99
|
+
"strict": true,
|
|
100
|
+
"summary": "Experimental blueprints-first project init",
|
|
101
|
+
"enableJsonFlag": true,
|
|
102
|
+
"isESM": true,
|
|
103
|
+
"relativePath": [
|
|
104
|
+
"dist",
|
|
105
|
+
"commands",
|
|
106
|
+
"blueprinit.js"
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
"functions:add": {
|
|
110
|
+
"aliases": [],
|
|
111
|
+
"args": {},
|
|
112
|
+
"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.",
|
|
19
113
|
"examples": [
|
|
20
|
-
"<%= config.bin %> <%= command.id %>
|
|
21
|
-
"<%= config.bin %> <%= command.id %>
|
|
22
|
-
"<%= config.bin %> <%= command.id %>
|
|
23
|
-
"<%= config.bin %> <%= command.id %>
|
|
24
|
-
"<%= config.bin %> <%= command.id %>
|
|
114
|
+
"<%= config.bin %> <%= command.id %>",
|
|
115
|
+
"<%= config.bin %> <%= command.id %> --helpers",
|
|
116
|
+
"<%= config.bin %> <%= command.id %> --name my-function",
|
|
117
|
+
"<%= config.bin %> <%= command.id %> --name my-function --type document-create",
|
|
118
|
+
"<%= config.bin %> <%= command.id %> --name my-function --type document-create --type document-update --lang js"
|
|
25
119
|
],
|
|
26
120
|
"flags": {
|
|
27
121
|
"json": {
|
|
@@ -30,6 +124,16 @@
|
|
|
30
124
|
"allowNo": false,
|
|
31
125
|
"type": "boolean"
|
|
32
126
|
},
|
|
127
|
+
"llms": {
|
|
128
|
+
"aliases": [
|
|
129
|
+
"skill"
|
|
130
|
+
],
|
|
131
|
+
"description": "Show agent-oriented guidance for this command",
|
|
132
|
+
"hidden": true,
|
|
133
|
+
"name": "llms",
|
|
134
|
+
"allowNo": false,
|
|
135
|
+
"type": "boolean"
|
|
136
|
+
},
|
|
33
137
|
"path": {
|
|
34
138
|
"aliases": [
|
|
35
139
|
"blueprint-path"
|
|
@@ -107,7 +211,7 @@
|
|
|
107
211
|
"aliases": [
|
|
108
212
|
"recipe"
|
|
109
213
|
],
|
|
110
|
-
"description": "Example to use for the
|
|
214
|
+
"description": "Example to use for the Function",
|
|
111
215
|
"exclusive": [
|
|
112
216
|
"name",
|
|
113
217
|
"fn-type",
|
|
@@ -123,21 +227,18 @@
|
|
|
123
227
|
},
|
|
124
228
|
"name": {
|
|
125
229
|
"char": "n",
|
|
126
|
-
"description": "Name of the
|
|
230
|
+
"description": "Name of the Function to add",
|
|
127
231
|
"name": "name",
|
|
128
232
|
"hasDynamicHelp": false,
|
|
129
233
|
"multiple": false,
|
|
130
234
|
"type": "option"
|
|
131
235
|
},
|
|
132
|
-
"
|
|
133
|
-
"aliases": [
|
|
134
|
-
"function-type"
|
|
135
|
-
],
|
|
236
|
+
"type": {
|
|
136
237
|
"dependsOn": [
|
|
137
238
|
"name"
|
|
138
239
|
],
|
|
139
240
|
"description": "Document change event(s) that should trigger the function; you can specify multiple events by specifying this flag multiple times",
|
|
140
|
-
"name": "
|
|
241
|
+
"name": "type",
|
|
141
242
|
"hasDynamicHelp": false,
|
|
142
243
|
"multiple": true,
|
|
143
244
|
"options": [
|
|
@@ -155,11 +256,9 @@
|
|
|
155
256
|
},
|
|
156
257
|
"language": {
|
|
157
258
|
"aliases": [
|
|
158
|
-
"function-language",
|
|
159
|
-
"fn-language",
|
|
160
259
|
"lang"
|
|
161
260
|
],
|
|
162
|
-
"description": "Language of the new
|
|
261
|
+
"description": "Language of the new Function",
|
|
163
262
|
"name": "language",
|
|
164
263
|
"default": "ts",
|
|
165
264
|
"hasDynamicHelp": false,
|
|
@@ -182,23 +281,15 @@
|
|
|
182
281
|
"allowNo": false,
|
|
183
282
|
"type": "boolean"
|
|
184
283
|
},
|
|
185
|
-
"
|
|
186
|
-
"
|
|
187
|
-
|
|
188
|
-
"helpers"
|
|
189
|
-
],
|
|
190
|
-
"description": "Add helpers to the new function",
|
|
191
|
-
"name": "fn-helpers",
|
|
284
|
+
"helpers": {
|
|
285
|
+
"description": "Add helpers to the new Function",
|
|
286
|
+
"name": "helpers",
|
|
192
287
|
"allowNo": true,
|
|
193
288
|
"type": "boolean"
|
|
194
289
|
},
|
|
195
|
-
"
|
|
196
|
-
"
|
|
197
|
-
|
|
198
|
-
"installer"
|
|
199
|
-
],
|
|
200
|
-
"description": "Which package manager to use when installing the @sanity/functions helpers",
|
|
201
|
-
"name": "fn-installer",
|
|
290
|
+
"installer": {
|
|
291
|
+
"description": "How to install the @sanity/functions helpers",
|
|
292
|
+
"name": "installer",
|
|
202
293
|
"hasDynamicHelp": false,
|
|
203
294
|
"multiple": false,
|
|
204
295
|
"options": [
|
|
@@ -222,13 +313,12 @@
|
|
|
222
313
|
},
|
|
223
314
|
"hasDynamicHelp": false,
|
|
224
315
|
"hiddenAliases": [],
|
|
225
|
-
"id": "
|
|
316
|
+
"id": "functions:add",
|
|
226
317
|
"pluginAlias": "@sanity/runtime-cli",
|
|
227
318
|
"pluginName": "@sanity/runtime-cli",
|
|
228
319
|
"pluginType": "core",
|
|
229
|
-
"state": "deprecated",
|
|
230
320
|
"strict": true,
|
|
231
|
-
"summary": "
|
|
321
|
+
"summary": "Add a Function to your Blueprint",
|
|
232
322
|
"enableJsonFlag": true,
|
|
233
323
|
"needs": [
|
|
234
324
|
"blueprint"
|
|
@@ -237,20 +327,19 @@
|
|
|
237
327
|
"relativePath": [
|
|
238
328
|
"dist",
|
|
239
329
|
"commands",
|
|
240
|
-
"
|
|
330
|
+
"functions",
|
|
241
331
|
"add.js"
|
|
242
332
|
]
|
|
243
333
|
},
|
|
244
|
-
"
|
|
334
|
+
"functions:build": {
|
|
245
335
|
"aliases": [],
|
|
246
|
-
"args": {
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
],
|
|
336
|
+
"args": {
|
|
337
|
+
"name": {
|
|
338
|
+
"description": "The name of the Sanity Function",
|
|
339
|
+
"name": "name",
|
|
340
|
+
"required": false
|
|
341
|
+
}
|
|
342
|
+
},
|
|
254
343
|
"flags": {
|
|
255
344
|
"json": {
|
|
256
345
|
"description": "Format output as json",
|
|
@@ -258,6 +347,16 @@
|
|
|
258
347
|
"allowNo": false,
|
|
259
348
|
"type": "boolean"
|
|
260
349
|
},
|
|
350
|
+
"llms": {
|
|
351
|
+
"aliases": [
|
|
352
|
+
"skill"
|
|
353
|
+
],
|
|
354
|
+
"description": "Show agent-oriented guidance for this command",
|
|
355
|
+
"hidden": true,
|
|
356
|
+
"name": "llms",
|
|
357
|
+
"allowNo": false,
|
|
358
|
+
"type": "boolean"
|
|
359
|
+
},
|
|
261
360
|
"path": {
|
|
262
361
|
"aliases": [
|
|
263
362
|
"blueprint-path"
|
|
@@ -293,14 +392,8 @@
|
|
|
293
392
|
"type": "boolean"
|
|
294
393
|
},
|
|
295
394
|
"stack": {
|
|
296
|
-
"
|
|
297
|
-
|
|
298
|
-
"stackId"
|
|
299
|
-
],
|
|
300
|
-
"dependsOn": [
|
|
301
|
-
"edit"
|
|
302
|
-
],
|
|
303
|
-
"description": "Stack name or ID to set in the configuration. Requires --edit flag",
|
|
395
|
+
"description": "Stack name or ID to use instead of the locally configured Stack",
|
|
396
|
+
"hidden": true,
|
|
304
397
|
"name": "stack",
|
|
305
398
|
"hasDynamicHelp": false,
|
|
306
399
|
"multiple": false,
|
|
@@ -311,13 +404,11 @@
|
|
|
311
404
|
"project",
|
|
312
405
|
"projectId"
|
|
313
406
|
],
|
|
314
|
-
"dependsOn": [
|
|
315
|
-
"edit"
|
|
316
|
-
],
|
|
317
407
|
"description": "Sanity project ID used to scope Blueprint and Stack",
|
|
318
408
|
"exclusive": [
|
|
319
409
|
"organization-id"
|
|
320
410
|
],
|
|
411
|
+
"hidden": true,
|
|
321
412
|
"name": "project-id",
|
|
322
413
|
"hasDynamicHelp": false,
|
|
323
414
|
"multiple": false,
|
|
@@ -329,59 +420,70 @@
|
|
|
329
420
|
"organizationId",
|
|
330
421
|
"org"
|
|
331
422
|
],
|
|
332
|
-
"dependsOn": [
|
|
333
|
-
"edit"
|
|
334
|
-
],
|
|
335
423
|
"description": "Sanity organization ID used to scope Blueprint and Stack",
|
|
336
424
|
"exclusive": [
|
|
337
425
|
"project-id"
|
|
338
426
|
],
|
|
427
|
+
"hidden": true,
|
|
339
428
|
"name": "organization-id",
|
|
340
429
|
"hasDynamicHelp": false,
|
|
341
430
|
"multiple": false,
|
|
342
431
|
"type": "option"
|
|
343
432
|
},
|
|
344
|
-
"
|
|
345
|
-
"
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
"
|
|
433
|
+
"fn-installer": {
|
|
434
|
+
"aliases": [
|
|
435
|
+
"function-installer",
|
|
436
|
+
"installer"
|
|
437
|
+
],
|
|
438
|
+
"description": "Which package manager to use when building Functions",
|
|
439
|
+
"hidden": true,
|
|
440
|
+
"name": "fn-installer",
|
|
441
|
+
"hasDynamicHelp": false,
|
|
442
|
+
"multiple": false,
|
|
443
|
+
"options": [
|
|
444
|
+
"npm",
|
|
445
|
+
"pnpm",
|
|
446
|
+
"yarn"
|
|
447
|
+
],
|
|
448
|
+
"type": "option"
|
|
449
|
+
},
|
|
450
|
+
"out-dir": {
|
|
451
|
+
"char": "o",
|
|
452
|
+
"description": "Output directory for zip files",
|
|
453
|
+
"name": "out-dir",
|
|
454
|
+
"hasDynamicHelp": false,
|
|
455
|
+
"multiple": false,
|
|
456
|
+
"type": "option"
|
|
350
457
|
}
|
|
351
458
|
},
|
|
352
459
|
"hasDynamicHelp": false,
|
|
460
|
+
"hidden": true,
|
|
353
461
|
"hiddenAliases": [],
|
|
354
|
-
"id": "
|
|
462
|
+
"id": "functions:build",
|
|
355
463
|
"pluginAlias": "@sanity/runtime-cli",
|
|
356
464
|
"pluginName": "@sanity/runtime-cli",
|
|
357
465
|
"pluginType": "core",
|
|
358
466
|
"strict": true,
|
|
359
|
-
"summary": "
|
|
467
|
+
"summary": "Build Sanity Function(s) to zip archives",
|
|
360
468
|
"enableJsonFlag": true,
|
|
361
469
|
"needs": [
|
|
362
|
-
"token",
|
|
363
470
|
"blueprint"
|
|
364
471
|
],
|
|
365
472
|
"isESM": true,
|
|
366
473
|
"relativePath": [
|
|
367
474
|
"dist",
|
|
368
475
|
"commands",
|
|
369
|
-
"
|
|
370
|
-
"
|
|
476
|
+
"functions",
|
|
477
|
+
"build.js"
|
|
371
478
|
]
|
|
372
479
|
},
|
|
373
|
-
"
|
|
480
|
+
"functions:dev": {
|
|
374
481
|
"aliases": [],
|
|
375
482
|
"args": {},
|
|
376
|
-
"description": "
|
|
483
|
+
"description": "Runs a local, web-based development server to test your functions before deploying.\n\nOpen the emulator in your browser to interactively test your functions with the payload editor.\n\nOptionally, set the host and port with the --host and --port flags. Function timeout can be configured with the --timeout flag.\n\nTo invoke a function with the CLI, use 'functions test'.",
|
|
377
484
|
"examples": [
|
|
378
|
-
"<%= config.bin %> <%= command.id %>",
|
|
379
|
-
"<%= config.bin %> <%= command.id %> --
|
|
380
|
-
"<%= config.bin %> <%= command.id %> --no-wait",
|
|
381
|
-
"<%= config.bin %> <%= command.id %> --fn-installer npm",
|
|
382
|
-
"<%= config.bin %> <%= command.id %> --stack <name-or-id>",
|
|
383
|
-
"<%= config.bin %> <%= command.id %> --organization-id <orgId> --stack <name-or-id>",
|
|
384
|
-
"<%= config.bin %> <%= command.id %> --new-stack-name <new-name>"
|
|
485
|
+
"<%= config.bin %> <%= command.id %> --host 127.0.0.1 --port 8974",
|
|
486
|
+
"<%= config.bin %> <%= command.id %> --timeout 60"
|
|
385
487
|
],
|
|
386
488
|
"flags": {
|
|
387
489
|
"json": {
|
|
@@ -390,9 +492,19 @@
|
|
|
390
492
|
"allowNo": false,
|
|
391
493
|
"type": "boolean"
|
|
392
494
|
},
|
|
393
|
-
"
|
|
495
|
+
"llms": {
|
|
394
496
|
"aliases": [
|
|
395
|
-
"
|
|
497
|
+
"skill"
|
|
498
|
+
],
|
|
499
|
+
"description": "Show agent-oriented guidance for this command",
|
|
500
|
+
"hidden": true,
|
|
501
|
+
"name": "llms",
|
|
502
|
+
"allowNo": false,
|
|
503
|
+
"type": "boolean"
|
|
504
|
+
},
|
|
505
|
+
"path": {
|
|
506
|
+
"aliases": [
|
|
507
|
+
"blueprint-path"
|
|
396
508
|
],
|
|
397
509
|
"char": "p",
|
|
398
510
|
"description": "Path to a Blueprint file or directory containing one",
|
|
@@ -426,6 +538,7 @@
|
|
|
426
538
|
},
|
|
427
539
|
"stack": {
|
|
428
540
|
"description": "Stack name or ID to use instead of the locally configured Stack",
|
|
541
|
+
"hidden": true,
|
|
429
542
|
"name": "stack",
|
|
430
543
|
"hasDynamicHelp": false,
|
|
431
544
|
"multiple": false,
|
|
@@ -440,6 +553,7 @@
|
|
|
440
553
|
"exclusive": [
|
|
441
554
|
"organization-id"
|
|
442
555
|
],
|
|
556
|
+
"hidden": true,
|
|
443
557
|
"name": "project-id",
|
|
444
558
|
"hasDynamicHelp": false,
|
|
445
559
|
"multiple": false,
|
|
@@ -455,45 +569,35 @@
|
|
|
455
569
|
"exclusive": [
|
|
456
570
|
"project-id"
|
|
457
571
|
],
|
|
572
|
+
"hidden": true,
|
|
458
573
|
"name": "organization-id",
|
|
459
574
|
"hasDynamicHelp": false,
|
|
460
575
|
"multiple": false,
|
|
461
576
|
"type": "option"
|
|
462
577
|
},
|
|
463
|
-
"
|
|
464
|
-
"char": "
|
|
465
|
-
"description": "
|
|
466
|
-
"name": "
|
|
578
|
+
"host": {
|
|
579
|
+
"char": "h",
|
|
580
|
+
"description": "The local network interface at which to listen. [default: \"localhost\"]",
|
|
581
|
+
"name": "host",
|
|
582
|
+
"required": false,
|
|
467
583
|
"hasDynamicHelp": false,
|
|
468
584
|
"multiple": false,
|
|
469
585
|
"type": "option"
|
|
470
586
|
},
|
|
471
|
-
"
|
|
472
|
-
"
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
"description": "Which package manager to use when installing Function dependencies",
|
|
477
|
-
"hidden": true,
|
|
478
|
-
"name": "fn-installer",
|
|
587
|
+
"port": {
|
|
588
|
+
"char": "p",
|
|
589
|
+
"description": "TCP port to start emulator on. [default: 8080]",
|
|
590
|
+
"name": "port",
|
|
591
|
+
"required": false,
|
|
479
592
|
"hasDynamicHelp": false,
|
|
480
593
|
"multiple": false,
|
|
481
|
-
"options": [
|
|
482
|
-
"npm",
|
|
483
|
-
"pnpm",
|
|
484
|
-
"yarn"
|
|
485
|
-
],
|
|
486
594
|
"type": "option"
|
|
487
595
|
},
|
|
488
|
-
"
|
|
489
|
-
"
|
|
490
|
-
"
|
|
491
|
-
"
|
|
492
|
-
"
|
|
493
|
-
},
|
|
494
|
-
"new-stack-name": {
|
|
495
|
-
"description": "Set a new name for the Stack",
|
|
496
|
-
"name": "new-stack-name",
|
|
596
|
+
"timeout": {
|
|
597
|
+
"char": "t",
|
|
598
|
+
"description": "Maximum execution time for all functions, in seconds. Takes precedence over function-specific `timeout`",
|
|
599
|
+
"name": "timeout",
|
|
600
|
+
"required": false,
|
|
497
601
|
"hasDynamicHelp": false,
|
|
498
602
|
"multiple": false,
|
|
499
603
|
"type": "option"
|
|
@@ -501,32 +605,39 @@
|
|
|
501
605
|
},
|
|
502
606
|
"hasDynamicHelp": false,
|
|
503
607
|
"hiddenAliases": [],
|
|
504
|
-
"id": "
|
|
608
|
+
"id": "functions:dev",
|
|
505
609
|
"pluginAlias": "@sanity/runtime-cli",
|
|
506
610
|
"pluginName": "@sanity/runtime-cli",
|
|
507
611
|
"pluginType": "core",
|
|
508
612
|
"strict": true,
|
|
509
|
-
"summary": "
|
|
613
|
+
"summary": "Start the Sanity Function emulator",
|
|
510
614
|
"enableJsonFlag": true,
|
|
511
615
|
"needs": [
|
|
512
|
-
"deployedStack",
|
|
513
616
|
"blueprint"
|
|
514
617
|
],
|
|
515
618
|
"isESM": true,
|
|
516
619
|
"relativePath": [
|
|
517
620
|
"dist",
|
|
518
621
|
"commands",
|
|
519
|
-
"
|
|
520
|
-
"
|
|
622
|
+
"functions",
|
|
623
|
+
"dev.js"
|
|
521
624
|
]
|
|
522
625
|
},
|
|
523
|
-
"
|
|
626
|
+
"functions:logs": {
|
|
524
627
|
"aliases": [],
|
|
525
|
-
"args": {
|
|
526
|
-
|
|
628
|
+
"args": {
|
|
629
|
+
"name": {
|
|
630
|
+
"description": "The name of the Sanity Function",
|
|
631
|
+
"name": "name",
|
|
632
|
+
"required": false
|
|
633
|
+
}
|
|
634
|
+
},
|
|
635
|
+
"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).",
|
|
527
636
|
"examples": [
|
|
528
|
-
"<%= config.bin %> <%= command.id %>",
|
|
529
|
-
"<%= config.bin %> <%= command.id %>
|
|
637
|
+
"<%= config.bin %> <%= command.id %> <name>",
|
|
638
|
+
"<%= config.bin %> <%= command.id %> <name> --json",
|
|
639
|
+
"<%= config.bin %> <%= command.id %> <name> --limit 100",
|
|
640
|
+
"<%= config.bin %> <%= command.id %> <name> --delete"
|
|
530
641
|
],
|
|
531
642
|
"flags": {
|
|
532
643
|
"json": {
|
|
@@ -535,6 +646,16 @@
|
|
|
535
646
|
"allowNo": false,
|
|
536
647
|
"type": "boolean"
|
|
537
648
|
},
|
|
649
|
+
"llms": {
|
|
650
|
+
"aliases": [
|
|
651
|
+
"skill"
|
|
652
|
+
],
|
|
653
|
+
"description": "Show agent-oriented guidance for this command",
|
|
654
|
+
"hidden": true,
|
|
655
|
+
"name": "llms",
|
|
656
|
+
"allowNo": false,
|
|
657
|
+
"type": "boolean"
|
|
658
|
+
},
|
|
538
659
|
"path": {
|
|
539
660
|
"aliases": [
|
|
540
661
|
"blueprint-path"
|
|
@@ -570,11 +691,7 @@
|
|
|
570
691
|
"type": "boolean"
|
|
571
692
|
},
|
|
572
693
|
"stack": {
|
|
573
|
-
"
|
|
574
|
-
"stack-id",
|
|
575
|
-
"stackId"
|
|
576
|
-
],
|
|
577
|
-
"description": "Stack name or ID to destroy (defaults to the locally configured Stack)",
|
|
694
|
+
"description": "Stack name or ID to use instead of the locally configured Stack",
|
|
578
695
|
"name": "stack",
|
|
579
696
|
"hasDynamicHelp": false,
|
|
580
697
|
"multiple": false,
|
|
@@ -585,14 +702,11 @@
|
|
|
585
702
|
"project",
|
|
586
703
|
"projectId"
|
|
587
704
|
],
|
|
588
|
-
"dependsOn": [
|
|
589
|
-
"stack",
|
|
590
|
-
"force"
|
|
591
|
-
],
|
|
592
705
|
"description": "Sanity project ID used to scope Blueprint and Stack",
|
|
593
706
|
"exclusive": [
|
|
594
707
|
"organization-id"
|
|
595
708
|
],
|
|
709
|
+
"hidden": true,
|
|
596
710
|
"name": "project-id",
|
|
597
711
|
"hasDynamicHelp": false,
|
|
598
712
|
"multiple": false,
|
|
@@ -604,62 +718,104 @@
|
|
|
604
718
|
"organizationId",
|
|
605
719
|
"org"
|
|
606
720
|
],
|
|
607
|
-
"dependsOn": [
|
|
608
|
-
"stack",
|
|
609
|
-
"force"
|
|
610
|
-
],
|
|
611
721
|
"description": "Sanity organization ID used to scope Blueprint and Stack",
|
|
612
722
|
"exclusive": [
|
|
613
723
|
"project-id"
|
|
614
724
|
],
|
|
725
|
+
"hidden": true,
|
|
615
726
|
"name": "organization-id",
|
|
616
727
|
"hasDynamicHelp": false,
|
|
617
728
|
"multiple": false,
|
|
618
729
|
"type": "option"
|
|
619
730
|
},
|
|
731
|
+
"limit": {
|
|
732
|
+
"char": "l",
|
|
733
|
+
"description": "Total number of log entries to retrieve",
|
|
734
|
+
"name": "limit",
|
|
735
|
+
"required": false,
|
|
736
|
+
"default": 50,
|
|
737
|
+
"hasDynamicHelp": false,
|
|
738
|
+
"multiple": false,
|
|
739
|
+
"type": "option"
|
|
740
|
+
},
|
|
741
|
+
"utc": {
|
|
742
|
+
"char": "u",
|
|
743
|
+
"description": "Show dates in UTC time zone",
|
|
744
|
+
"name": "utc",
|
|
745
|
+
"required": false,
|
|
746
|
+
"allowNo": false,
|
|
747
|
+
"type": "boolean"
|
|
748
|
+
},
|
|
749
|
+
"delete": {
|
|
750
|
+
"char": "d",
|
|
751
|
+
"description": "Delete all logs for the function",
|
|
752
|
+
"exclusive": [
|
|
753
|
+
"limit",
|
|
754
|
+
"json"
|
|
755
|
+
],
|
|
756
|
+
"name": "delete",
|
|
757
|
+
"required": false,
|
|
758
|
+
"allowNo": false,
|
|
759
|
+
"type": "boolean"
|
|
760
|
+
},
|
|
620
761
|
"force": {
|
|
621
|
-
"
|
|
622
|
-
|
|
762
|
+
"char": "f",
|
|
763
|
+
"dependsOn": [
|
|
764
|
+
"delete"
|
|
623
765
|
],
|
|
624
|
-
"description": "
|
|
766
|
+
"description": "Skip confirmation for deleting logs",
|
|
625
767
|
"name": "force",
|
|
768
|
+
"required": false,
|
|
626
769
|
"allowNo": false,
|
|
627
770
|
"type": "boolean"
|
|
628
771
|
},
|
|
629
|
-
"
|
|
630
|
-
"
|
|
631
|
-
|
|
772
|
+
"watch": {
|
|
773
|
+
"aliases": [
|
|
774
|
+
"follow"
|
|
775
|
+
],
|
|
776
|
+
"char": "w",
|
|
777
|
+
"description": "Watch for new logs (streaming mode)",
|
|
778
|
+
"name": "watch",
|
|
632
779
|
"allowNo": false,
|
|
633
780
|
"type": "boolean"
|
|
634
781
|
}
|
|
635
782
|
},
|
|
636
783
|
"hasDynamicHelp": false,
|
|
637
784
|
"hiddenAliases": [],
|
|
638
|
-
"id": "
|
|
785
|
+
"id": "functions:logs",
|
|
639
786
|
"pluginAlias": "@sanity/runtime-cli",
|
|
640
787
|
"pluginName": "@sanity/runtime-cli",
|
|
641
788
|
"pluginType": "core",
|
|
642
789
|
"strict": true,
|
|
643
|
-
"summary": "
|
|
790
|
+
"summary": "Retrieve or delete logs for a Sanity Function",
|
|
644
791
|
"enableJsonFlag": true,
|
|
645
792
|
"needs": [
|
|
646
|
-
"
|
|
793
|
+
"deployedStack",
|
|
794
|
+
"blueprint"
|
|
647
795
|
],
|
|
648
796
|
"isESM": true,
|
|
649
797
|
"relativePath": [
|
|
650
798
|
"dist",
|
|
651
799
|
"commands",
|
|
652
|
-
"
|
|
653
|
-
"
|
|
800
|
+
"functions",
|
|
801
|
+
"logs.js"
|
|
654
802
|
]
|
|
655
803
|
},
|
|
656
|
-
"
|
|
804
|
+
"functions:test": {
|
|
657
805
|
"aliases": [],
|
|
658
|
-
"args": {
|
|
659
|
-
|
|
806
|
+
"args": {
|
|
807
|
+
"name": {
|
|
808
|
+
"description": "The name of the Sanity Function",
|
|
809
|
+
"name": "name",
|
|
810
|
+
"required": false
|
|
811
|
+
}
|
|
812
|
+
},
|
|
813
|
+
"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.",
|
|
660
814
|
"examples": [
|
|
661
|
-
"<%= config.bin %> <%= command.id %>",
|
|
662
|
-
"<%= config.bin %> <%= command.id %> --
|
|
815
|
+
"<%= config.bin %> <%= command.id %> <name> --data '{ \"id\": 1 }'",
|
|
816
|
+
"<%= config.bin %> <%= command.id %> <name> --file 'payload.json'",
|
|
817
|
+
"<%= config.bin %> <%= command.id %> <name> --data '{ \"id\": 1 }' --timeout 60",
|
|
818
|
+
"<%= config.bin %> <%= command.id %> <name> --event update --data-before '{ \"title\": \"before\" }' --data-after '{ \"title\": \"after\" }'"
|
|
663
819
|
],
|
|
664
820
|
"flags": {
|
|
665
821
|
"json": {
|
|
@@ -668,77 +824,13 @@
|
|
|
668
824
|
"allowNo": false,
|
|
669
825
|
"type": "boolean"
|
|
670
826
|
},
|
|
671
|
-
"
|
|
827
|
+
"llms": {
|
|
672
828
|
"aliases": [
|
|
673
|
-
"
|
|
829
|
+
"skill"
|
|
674
830
|
],
|
|
675
|
-
"
|
|
676
|
-
"description": "Path to a Blueprint file or directory containing one",
|
|
677
|
-
"env": "SANITY_BLUEPRINT_PATH",
|
|
678
|
-
"name": "path",
|
|
679
|
-
"hasDynamicHelp": false,
|
|
680
|
-
"multiple": false,
|
|
681
|
-
"type": "option"
|
|
682
|
-
},
|
|
683
|
-
"trace": {
|
|
684
|
-
"description": "Trace output",
|
|
685
|
-
"hidden": true,
|
|
686
|
-
"name": "trace",
|
|
687
|
-
"allowNo": false,
|
|
688
|
-
"type": "boolean"
|
|
689
|
-
},
|
|
690
|
-
"validate-resources": {
|
|
691
|
-
"description": "Validate resources",
|
|
692
|
-
"hidden": true,
|
|
693
|
-
"name": "validate-resources",
|
|
694
|
-
"allowNo": true,
|
|
695
|
-
"type": "boolean"
|
|
696
|
-
},
|
|
697
|
-
"verbose": {
|
|
698
|
-
"description": "Verbose output",
|
|
831
|
+
"description": "Show agent-oriented guidance for this command",
|
|
699
832
|
"hidden": true,
|
|
700
|
-
"name": "
|
|
701
|
-
"allowNo": false,
|
|
702
|
-
"type": "boolean"
|
|
703
|
-
},
|
|
704
|
-
"fix": {
|
|
705
|
-
"description": "Interactively fix configuration issues",
|
|
706
|
-
"name": "fix",
|
|
707
|
-
"allowNo": false,
|
|
708
|
-
"type": "boolean"
|
|
709
|
-
}
|
|
710
|
-
},
|
|
711
|
-
"hasDynamicHelp": false,
|
|
712
|
-
"hiddenAliases": [],
|
|
713
|
-
"id": "blueprints:doctor",
|
|
714
|
-
"pluginAlias": "@sanity/runtime-cli",
|
|
715
|
-
"pluginName": "@sanity/runtime-cli",
|
|
716
|
-
"pluginType": "core",
|
|
717
|
-
"strict": true,
|
|
718
|
-
"summary": "Diagnose potential issues with local Blueprint and remote Stack configuration",
|
|
719
|
-
"enableJsonFlag": true,
|
|
720
|
-
"isESM": true,
|
|
721
|
-
"relativePath": [
|
|
722
|
-
"dist",
|
|
723
|
-
"commands",
|
|
724
|
-
"blueprints",
|
|
725
|
-
"doctor.js"
|
|
726
|
-
]
|
|
727
|
-
},
|
|
728
|
-
"blueprints:info": {
|
|
729
|
-
"aliases": [],
|
|
730
|
-
"args": {},
|
|
731
|
-
"description": "Displays the current state and metadata of your remote Stack deployment, including deployed resources, status, and configuration.\n\nUse this command to verify a deployment succeeded, check what resources are live, or confirm which Stack your local Blueprint is connected to.\n\nRun 'blueprints stacks' to see all available Stacks in your project or organization.",
|
|
732
|
-
"examples": [
|
|
733
|
-
"<%= config.bin %> <%= command.id %>",
|
|
734
|
-
"<%= config.bin %> <%= command.id %> --stack <name-or-id>",
|
|
735
|
-
"<%= config.bin %> <%= command.id %> --project-id <id> --stack <name-or-id>",
|
|
736
|
-
"<%= config.bin %> <%= command.id %> --organization-id <orgId> --stack <name-or-id>"
|
|
737
|
-
],
|
|
738
|
-
"flags": {
|
|
739
|
-
"json": {
|
|
740
|
-
"description": "Format output as json",
|
|
741
|
-
"name": "json",
|
|
833
|
+
"name": "llms",
|
|
742
834
|
"allowNo": false,
|
|
743
835
|
"type": "boolean"
|
|
744
836
|
},
|
|
@@ -777,10 +869,8 @@
|
|
|
777
869
|
"type": "boolean"
|
|
778
870
|
},
|
|
779
871
|
"stack": {
|
|
780
|
-
"
|
|
781
|
-
|
|
782
|
-
],
|
|
783
|
-
"description": "Stack name or ID",
|
|
872
|
+
"description": "Stack name or ID to use instead of the locally configured Stack",
|
|
873
|
+
"hidden": true,
|
|
784
874
|
"name": "stack",
|
|
785
875
|
"hasDynamicHelp": false,
|
|
786
876
|
"multiple": false,
|
|
@@ -814,48 +904,493 @@
|
|
|
814
904
|
"hasDynamicHelp": false,
|
|
815
905
|
"multiple": false,
|
|
816
906
|
"type": "option"
|
|
817
|
-
}
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
907
|
+
},
|
|
908
|
+
"data": {
|
|
909
|
+
"char": "d",
|
|
910
|
+
"description": "Data to send to the function",
|
|
911
|
+
"exclusive": [
|
|
912
|
+
"file",
|
|
913
|
+
"document-id"
|
|
914
|
+
],
|
|
915
|
+
"name": "data",
|
|
916
|
+
"required": false,
|
|
917
|
+
"hasDynamicHelp": false,
|
|
918
|
+
"multiple": false,
|
|
919
|
+
"type": "option"
|
|
920
|
+
},
|
|
921
|
+
"data-before": {
|
|
922
|
+
"description": "Original document",
|
|
923
|
+
"exclusive": [
|
|
924
|
+
"data",
|
|
925
|
+
"file",
|
|
926
|
+
"document-id",
|
|
927
|
+
"file-before",
|
|
928
|
+
"file-after",
|
|
929
|
+
"document-id-before",
|
|
930
|
+
"document-id-after"
|
|
931
|
+
],
|
|
932
|
+
"name": "data-before",
|
|
933
|
+
"required": false,
|
|
934
|
+
"hasDynamicHelp": false,
|
|
935
|
+
"multiple": false,
|
|
936
|
+
"type": "option"
|
|
937
|
+
},
|
|
938
|
+
"data-after": {
|
|
939
|
+
"description": "Current document",
|
|
940
|
+
"exclusive": [
|
|
941
|
+
"data",
|
|
942
|
+
"file",
|
|
943
|
+
"document-id",
|
|
944
|
+
"file-before",
|
|
945
|
+
"file-after",
|
|
946
|
+
"document-id-before",
|
|
947
|
+
"document-id-after"
|
|
948
|
+
],
|
|
949
|
+
"name": "data-after",
|
|
950
|
+
"required": false,
|
|
951
|
+
"hasDynamicHelp": false,
|
|
952
|
+
"multiple": false,
|
|
953
|
+
"type": "option"
|
|
954
|
+
},
|
|
955
|
+
"event": {
|
|
956
|
+
"char": "e",
|
|
957
|
+
"description": "Type of event (create, update, delete)",
|
|
958
|
+
"name": "event",
|
|
959
|
+
"required": false,
|
|
960
|
+
"hasDynamicHelp": false,
|
|
961
|
+
"multiple": false,
|
|
962
|
+
"options": [
|
|
963
|
+
"create",
|
|
964
|
+
"update",
|
|
965
|
+
"delete"
|
|
966
|
+
],
|
|
967
|
+
"type": "option"
|
|
968
|
+
},
|
|
969
|
+
"file": {
|
|
970
|
+
"char": "f",
|
|
971
|
+
"description": "Read data from file and send to the function",
|
|
972
|
+
"exclusive": [
|
|
973
|
+
"data",
|
|
974
|
+
"document-id"
|
|
975
|
+
],
|
|
976
|
+
"name": "file",
|
|
977
|
+
"required": false,
|
|
978
|
+
"hasDynamicHelp": false,
|
|
979
|
+
"multiple": false,
|
|
980
|
+
"type": "option"
|
|
981
|
+
},
|
|
982
|
+
"file-before": {
|
|
983
|
+
"description": "Original document",
|
|
984
|
+
"exclusive": [
|
|
985
|
+
"data",
|
|
986
|
+
"file",
|
|
987
|
+
"document-id",
|
|
988
|
+
"data-before",
|
|
989
|
+
"data-after",
|
|
990
|
+
"document-id-before",
|
|
991
|
+
"document-id-after"
|
|
992
|
+
],
|
|
993
|
+
"name": "file-before",
|
|
994
|
+
"required": false,
|
|
995
|
+
"hasDynamicHelp": false,
|
|
996
|
+
"multiple": false,
|
|
997
|
+
"type": "option"
|
|
998
|
+
},
|
|
999
|
+
"file-after": {
|
|
1000
|
+
"description": "Current document",
|
|
1001
|
+
"exclusive": [
|
|
1002
|
+
"data",
|
|
1003
|
+
"file",
|
|
1004
|
+
"document-id",
|
|
1005
|
+
"data-before",
|
|
1006
|
+
"data-after",
|
|
1007
|
+
"document-id-before",
|
|
1008
|
+
"document-id-after"
|
|
1009
|
+
],
|
|
1010
|
+
"name": "file-after",
|
|
1011
|
+
"required": false,
|
|
1012
|
+
"hasDynamicHelp": false,
|
|
1013
|
+
"multiple": false,
|
|
1014
|
+
"type": "option"
|
|
1015
|
+
},
|
|
1016
|
+
"timeout": {
|
|
1017
|
+
"char": "t",
|
|
1018
|
+
"description": "Execution timeout value in seconds",
|
|
1019
|
+
"name": "timeout",
|
|
1020
|
+
"required": false,
|
|
1021
|
+
"hasDynamicHelp": false,
|
|
1022
|
+
"multiple": false,
|
|
1023
|
+
"type": "option"
|
|
1024
|
+
},
|
|
1025
|
+
"api": {
|
|
1026
|
+
"char": "a",
|
|
1027
|
+
"description": "Sanity API Version to use",
|
|
1028
|
+
"name": "api",
|
|
1029
|
+
"required": false,
|
|
1030
|
+
"hasDynamicHelp": false,
|
|
1031
|
+
"multiple": false,
|
|
1032
|
+
"type": "option"
|
|
1033
|
+
},
|
|
1034
|
+
"dataset": {
|
|
1035
|
+
"description": "The Sanity dataset to use",
|
|
1036
|
+
"name": "dataset",
|
|
1037
|
+
"required": false,
|
|
1038
|
+
"hasDynamicHelp": false,
|
|
1039
|
+
"multiple": false,
|
|
1040
|
+
"type": "option"
|
|
1041
|
+
},
|
|
1042
|
+
"document-id": {
|
|
1043
|
+
"aliases": [
|
|
1044
|
+
"doc",
|
|
1045
|
+
"documentId"
|
|
1046
|
+
],
|
|
1047
|
+
"description": "Document to fetch and send to function",
|
|
1048
|
+
"exclusive": [
|
|
1049
|
+
"data",
|
|
1050
|
+
"file"
|
|
1051
|
+
],
|
|
1052
|
+
"name": "document-id",
|
|
1053
|
+
"required": false,
|
|
1054
|
+
"hasDynamicHelp": false,
|
|
1055
|
+
"multiple": false,
|
|
1056
|
+
"type": "option"
|
|
1057
|
+
},
|
|
1058
|
+
"document-id-before": {
|
|
1059
|
+
"description": "Original document",
|
|
1060
|
+
"exclusive": [
|
|
1061
|
+
"data",
|
|
1062
|
+
"file",
|
|
1063
|
+
"document-id",
|
|
1064
|
+
"data-before",
|
|
1065
|
+
"data-after",
|
|
1066
|
+
"file-before",
|
|
1067
|
+
"file-after"
|
|
1068
|
+
],
|
|
1069
|
+
"name": "document-id-before",
|
|
1070
|
+
"required": false,
|
|
1071
|
+
"hasDynamicHelp": false,
|
|
1072
|
+
"multiple": false,
|
|
1073
|
+
"type": "option"
|
|
1074
|
+
},
|
|
1075
|
+
"document-id-after": {
|
|
1076
|
+
"description": "Current document",
|
|
1077
|
+
"exclusive": [
|
|
1078
|
+
"data",
|
|
1079
|
+
"file",
|
|
1080
|
+
"document-id",
|
|
1081
|
+
"data-before",
|
|
1082
|
+
"data-after",
|
|
1083
|
+
"file-before",
|
|
1084
|
+
"file-after"
|
|
1085
|
+
],
|
|
1086
|
+
"name": "document-id-after",
|
|
1087
|
+
"required": false,
|
|
1088
|
+
"hasDynamicHelp": false,
|
|
1089
|
+
"multiple": false,
|
|
1090
|
+
"type": "option"
|
|
1091
|
+
},
|
|
1092
|
+
"with-user-token": {
|
|
1093
|
+
"description": "Prime access token from CLI config",
|
|
1094
|
+
"name": "with-user-token",
|
|
1095
|
+
"allowNo": false,
|
|
1096
|
+
"type": "boolean"
|
|
1097
|
+
},
|
|
1098
|
+
"media-library-id": {
|
|
1099
|
+
"aliases": [
|
|
1100
|
+
"media"
|
|
1101
|
+
],
|
|
1102
|
+
"description": "Sanity Media Library ID to use",
|
|
1103
|
+
"exclusive": [
|
|
1104
|
+
"project-id",
|
|
1105
|
+
"dataset"
|
|
1106
|
+
],
|
|
1107
|
+
"name": "media-library-id",
|
|
1108
|
+
"required": false,
|
|
1109
|
+
"hasDynamicHelp": false,
|
|
1110
|
+
"multiple": false,
|
|
1111
|
+
"type": "option"
|
|
1112
|
+
}
|
|
1113
|
+
},
|
|
1114
|
+
"hasDynamicHelp": false,
|
|
1115
|
+
"hiddenAliases": [],
|
|
1116
|
+
"id": "functions:test",
|
|
1117
|
+
"pluginAlias": "@sanity/runtime-cli",
|
|
1118
|
+
"pluginName": "@sanity/runtime-cli",
|
|
1119
|
+
"pluginType": "core",
|
|
1120
|
+
"strict": true,
|
|
1121
|
+
"summary": "Invoke a local Sanity Function",
|
|
1122
|
+
"enableJsonFlag": true,
|
|
1123
|
+
"needs": [
|
|
1124
|
+
"blueprint"
|
|
1125
|
+
],
|
|
1126
|
+
"isESM": true,
|
|
1127
|
+
"relativePath": [
|
|
1128
|
+
"dist",
|
|
1129
|
+
"commands",
|
|
1130
|
+
"functions",
|
|
1131
|
+
"test.js"
|
|
1132
|
+
]
|
|
1133
|
+
},
|
|
1134
|
+
"blueprints:add": {
|
|
1135
|
+
"aliases": [],
|
|
1136
|
+
"args": {
|
|
1137
|
+
"type": {
|
|
1138
|
+
"description": "Type of resource to add (only \"function\" is supported)",
|
|
1139
|
+
"name": "type",
|
|
1140
|
+
"options": [
|
|
1141
|
+
"function"
|
|
1142
|
+
],
|
|
1143
|
+
"required": true
|
|
1144
|
+
}
|
|
1145
|
+
},
|
|
1146
|
+
"deprecationOptions": {
|
|
1147
|
+
"to": "functions add"
|
|
1148
|
+
},
|
|
1149
|
+
"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",
|
|
1150
|
+
"examples": [
|
|
1151
|
+
"<%= config.bin %> <%= command.id %> function",
|
|
1152
|
+
"<%= config.bin %> <%= command.id %> function --helpers",
|
|
1153
|
+
"<%= config.bin %> <%= command.id %> function --name my-function",
|
|
1154
|
+
"<%= config.bin %> <%= command.id %> function --name my-function --fn-type document-create",
|
|
1155
|
+
"<%= config.bin %> <%= command.id %> function --name my-function --fn-type document-create --fn-type document-update --lang js"
|
|
1156
|
+
],
|
|
1157
|
+
"flags": {
|
|
1158
|
+
"json": {
|
|
1159
|
+
"description": "Format output as json",
|
|
1160
|
+
"name": "json",
|
|
1161
|
+
"allowNo": false,
|
|
1162
|
+
"type": "boolean"
|
|
1163
|
+
},
|
|
1164
|
+
"llms": {
|
|
1165
|
+
"aliases": [
|
|
1166
|
+
"skill"
|
|
1167
|
+
],
|
|
1168
|
+
"description": "Show agent-oriented guidance for this command",
|
|
1169
|
+
"hidden": true,
|
|
1170
|
+
"name": "llms",
|
|
1171
|
+
"allowNo": false,
|
|
1172
|
+
"type": "boolean"
|
|
1173
|
+
},
|
|
1174
|
+
"path": {
|
|
1175
|
+
"aliases": [
|
|
1176
|
+
"blueprint-path"
|
|
1177
|
+
],
|
|
1178
|
+
"char": "p",
|
|
1179
|
+
"description": "Path to a Blueprint file or directory containing one",
|
|
1180
|
+
"env": "SANITY_BLUEPRINT_PATH",
|
|
1181
|
+
"hidden": true,
|
|
1182
|
+
"name": "path",
|
|
1183
|
+
"hasDynamicHelp": false,
|
|
1184
|
+
"multiple": false,
|
|
1185
|
+
"type": "option"
|
|
1186
|
+
},
|
|
1187
|
+
"trace": {
|
|
1188
|
+
"description": "Trace output",
|
|
1189
|
+
"hidden": true,
|
|
1190
|
+
"name": "trace",
|
|
1191
|
+
"allowNo": false,
|
|
1192
|
+
"type": "boolean"
|
|
1193
|
+
},
|
|
1194
|
+
"validate-resources": {
|
|
1195
|
+
"description": "Validate resources",
|
|
1196
|
+
"hidden": true,
|
|
1197
|
+
"name": "validate-resources",
|
|
1198
|
+
"allowNo": true,
|
|
1199
|
+
"type": "boolean"
|
|
1200
|
+
},
|
|
1201
|
+
"verbose": {
|
|
1202
|
+
"description": "Verbose output",
|
|
1203
|
+
"hidden": true,
|
|
1204
|
+
"name": "verbose",
|
|
1205
|
+
"allowNo": false,
|
|
1206
|
+
"type": "boolean"
|
|
1207
|
+
},
|
|
1208
|
+
"stack": {
|
|
1209
|
+
"description": "Stack name or ID to use instead of the locally configured Stack",
|
|
1210
|
+
"hidden": true,
|
|
1211
|
+
"name": "stack",
|
|
1212
|
+
"hasDynamicHelp": false,
|
|
1213
|
+
"multiple": false,
|
|
1214
|
+
"type": "option"
|
|
1215
|
+
},
|
|
1216
|
+
"project-id": {
|
|
1217
|
+
"aliases": [
|
|
1218
|
+
"project",
|
|
1219
|
+
"projectId"
|
|
1220
|
+
],
|
|
1221
|
+
"description": "Sanity project ID used to scope Blueprint and Stack",
|
|
1222
|
+
"exclusive": [
|
|
1223
|
+
"organization-id"
|
|
1224
|
+
],
|
|
1225
|
+
"hidden": true,
|
|
1226
|
+
"name": "project-id",
|
|
1227
|
+
"hasDynamicHelp": false,
|
|
1228
|
+
"multiple": false,
|
|
1229
|
+
"type": "option"
|
|
1230
|
+
},
|
|
1231
|
+
"organization-id": {
|
|
1232
|
+
"aliases": [
|
|
1233
|
+
"organization",
|
|
1234
|
+
"organizationId",
|
|
1235
|
+
"org"
|
|
1236
|
+
],
|
|
1237
|
+
"description": "Sanity organization ID used to scope Blueprint and Stack",
|
|
1238
|
+
"exclusive": [
|
|
1239
|
+
"project-id"
|
|
1240
|
+
],
|
|
1241
|
+
"hidden": true,
|
|
1242
|
+
"name": "organization-id",
|
|
1243
|
+
"hasDynamicHelp": false,
|
|
1244
|
+
"multiple": false,
|
|
1245
|
+
"type": "option"
|
|
1246
|
+
},
|
|
1247
|
+
"example": {
|
|
1248
|
+
"aliases": [
|
|
1249
|
+
"recipe"
|
|
1250
|
+
],
|
|
1251
|
+
"description": "Example to use for the function resource. Discover examples at https://www.sanity.io/exchange/type=recipes/by=sanity",
|
|
1252
|
+
"exclusive": [
|
|
1253
|
+
"name",
|
|
1254
|
+
"fn-type",
|
|
1255
|
+
"language",
|
|
1256
|
+
"javascript",
|
|
1257
|
+
"fn-helpers",
|
|
1258
|
+
"fn-installer"
|
|
1259
|
+
],
|
|
1260
|
+
"name": "example",
|
|
1261
|
+
"hasDynamicHelp": false,
|
|
1262
|
+
"multiple": false,
|
|
1263
|
+
"type": "option"
|
|
1264
|
+
},
|
|
1265
|
+
"name": {
|
|
1266
|
+
"char": "n",
|
|
1267
|
+
"description": "Name of the resource to add",
|
|
1268
|
+
"name": "name",
|
|
1269
|
+
"hasDynamicHelp": false,
|
|
1270
|
+
"multiple": false,
|
|
1271
|
+
"type": "option"
|
|
1272
|
+
},
|
|
1273
|
+
"fn-type": {
|
|
1274
|
+
"aliases": [
|
|
1275
|
+
"function-type"
|
|
1276
|
+
],
|
|
1277
|
+
"dependsOn": [
|
|
1278
|
+
"name"
|
|
1279
|
+
],
|
|
1280
|
+
"description": "Document change event(s) that should trigger the function; you can specify multiple events by specifying this flag multiple times",
|
|
1281
|
+
"name": "fn-type",
|
|
1282
|
+
"hasDynamicHelp": false,
|
|
1283
|
+
"multiple": true,
|
|
1284
|
+
"options": [
|
|
1285
|
+
"document-publish",
|
|
1286
|
+
"document-create",
|
|
1287
|
+
"document-delete",
|
|
1288
|
+
"document-update",
|
|
1289
|
+
"media-library-asset-create",
|
|
1290
|
+
"media-library-asset-delete",
|
|
1291
|
+
"media-library-asset-update",
|
|
1292
|
+
"scheduled-function",
|
|
1293
|
+
"sync-tag-invalidate"
|
|
1294
|
+
],
|
|
1295
|
+
"type": "option"
|
|
1296
|
+
},
|
|
1297
|
+
"language": {
|
|
1298
|
+
"aliases": [
|
|
1299
|
+
"function-language",
|
|
1300
|
+
"fn-language",
|
|
1301
|
+
"lang"
|
|
1302
|
+
],
|
|
1303
|
+
"description": "Language of the new function",
|
|
1304
|
+
"name": "language",
|
|
1305
|
+
"default": "ts",
|
|
1306
|
+
"hasDynamicHelp": false,
|
|
1307
|
+
"multiple": false,
|
|
1308
|
+
"options": [
|
|
1309
|
+
"ts",
|
|
1310
|
+
"js"
|
|
1311
|
+
],
|
|
1312
|
+
"type": "option"
|
|
1313
|
+
},
|
|
1314
|
+
"javascript": {
|
|
1315
|
+
"aliases": [
|
|
1316
|
+
"js"
|
|
1317
|
+
],
|
|
1318
|
+
"description": "Use JavaScript instead of TypeScript",
|
|
1319
|
+
"exclusive": [
|
|
1320
|
+
"language"
|
|
1321
|
+
],
|
|
1322
|
+
"name": "javascript",
|
|
1323
|
+
"allowNo": false,
|
|
1324
|
+
"type": "boolean"
|
|
1325
|
+
},
|
|
1326
|
+
"fn-helpers": {
|
|
1327
|
+
"aliases": [
|
|
1328
|
+
"function-helpers",
|
|
1329
|
+
"helpers"
|
|
1330
|
+
],
|
|
1331
|
+
"description": "Add helpers to the new function",
|
|
1332
|
+
"name": "fn-helpers",
|
|
1333
|
+
"allowNo": true,
|
|
1334
|
+
"type": "boolean"
|
|
1335
|
+
},
|
|
1336
|
+
"fn-installer": {
|
|
1337
|
+
"aliases": [
|
|
1338
|
+
"function-installer",
|
|
1339
|
+
"installer"
|
|
1340
|
+
],
|
|
1341
|
+
"description": "Which package manager to use when installing the @sanity/functions helpers",
|
|
1342
|
+
"name": "fn-installer",
|
|
1343
|
+
"hasDynamicHelp": false,
|
|
1344
|
+
"multiple": false,
|
|
1345
|
+
"options": [
|
|
1346
|
+
"skip",
|
|
1347
|
+
"npm",
|
|
1348
|
+
"pnpm",
|
|
1349
|
+
"yarn"
|
|
1350
|
+
],
|
|
1351
|
+
"type": "option"
|
|
1352
|
+
},
|
|
1353
|
+
"install": {
|
|
1354
|
+
"char": "i",
|
|
1355
|
+
"description": "Shortcut for --fn-installer npm",
|
|
1356
|
+
"exclusive": [
|
|
1357
|
+
"fn-installer"
|
|
1358
|
+
],
|
|
1359
|
+
"name": "install",
|
|
1360
|
+
"allowNo": false,
|
|
1361
|
+
"type": "boolean"
|
|
1362
|
+
}
|
|
1363
|
+
},
|
|
1364
|
+
"hasDynamicHelp": false,
|
|
1365
|
+
"hiddenAliases": [],
|
|
1366
|
+
"id": "blueprints:add",
|
|
822
1367
|
"pluginAlias": "@sanity/runtime-cli",
|
|
823
1368
|
"pluginName": "@sanity/runtime-cli",
|
|
824
1369
|
"pluginType": "core",
|
|
1370
|
+
"state": "deprecated",
|
|
825
1371
|
"strict": true,
|
|
826
|
-
"summary": "
|
|
1372
|
+
"summary": "[deprecated] Use \"functions add\" instead",
|
|
827
1373
|
"enableJsonFlag": true,
|
|
828
1374
|
"needs": [
|
|
829
|
-
"
|
|
1375
|
+
"blueprint"
|
|
830
1376
|
],
|
|
831
1377
|
"isESM": true,
|
|
832
1378
|
"relativePath": [
|
|
833
1379
|
"dist",
|
|
834
1380
|
"commands",
|
|
835
1381
|
"blueprints",
|
|
836
|
-
"
|
|
1382
|
+
"add.js"
|
|
837
1383
|
]
|
|
838
1384
|
},
|
|
839
|
-
"blueprints:
|
|
1385
|
+
"blueprints:config": {
|
|
840
1386
|
"aliases": [],
|
|
841
|
-
"args": {
|
|
842
|
-
|
|
843
|
-
"description": "Directory to create the local Blueprint in (defaults to the current directory)",
|
|
844
|
-
"name": "dir"
|
|
845
|
-
}
|
|
846
|
-
},
|
|
847
|
-
"description": "A Blueprint is your local infrastructure-as-code configuration that defines Sanity resources (datasets, functions, etc.). A Stack is the remote deployment target where your Blueprint is applied.\n[NOTE: Currently, accounts are limited to three (3) Stacks per project scope.]\n\nThis is typically the first command you run in a new project. It creates a local Blueprint manifest file (sanity.blueprint.ts, .js, or .json) and provisions a new remote Stack.\nAdditionally, a Blueprint configuration file is created in .sanity/ containing the scope and Stack IDs. This is .gitignored by default.\n\nAfter initialization, use 'blueprints plan' to preview changes, then 'blueprints deploy' to apply them.\n\nRunning without a directory prompts to confirm the current directory. Run 'blueprints init .' to initialize in the current directory without a prompt.",
|
|
1387
|
+
"args": {},
|
|
1388
|
+
"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.",
|
|
848
1389
|
"examples": [
|
|
849
1390
|
"<%= config.bin %> <%= command.id %>",
|
|
850
|
-
"<%= config.bin %> <%= command.id %>
|
|
851
|
-
"<%= config.bin %> <%= command.id %>
|
|
852
|
-
"<%= config.bin %> <%= command.id %> --
|
|
853
|
-
"<%= config.bin %> <%= command.id %> --organization-id <organizationId>",
|
|
854
|
-
"<%= config.bin %> <%= command.id %> --project-id <projectId>",
|
|
855
|
-
"<%= config.bin %> <%= command.id %> --stack-name <newStackName>",
|
|
856
|
-
"<%= config.bin %> <%= command.id %> --stack-id <existingStackId>",
|
|
857
|
-
"<%= config.bin %> <%= command.id %> new-stack --type <json|js|ts> --org <organizationId> --name <newStackName>",
|
|
858
|
-
"<%= config.bin %> <%= command.id %> old-stack --type <json|js|ts> --project-id <projectId> --stack-id <existingStackId>"
|
|
1391
|
+
"<%= config.bin %> <%= command.id %> --edit",
|
|
1392
|
+
"<%= config.bin %> <%= command.id %> --edit --project-id <projectId>",
|
|
1393
|
+
"<%= config.bin %> <%= command.id %> --edit --project-id <projectId> --stack <name-or-id>"
|
|
859
1394
|
],
|
|
860
1395
|
"flags": {
|
|
861
1396
|
"json": {
|
|
@@ -864,6 +1399,16 @@
|
|
|
864
1399
|
"allowNo": false,
|
|
865
1400
|
"type": "boolean"
|
|
866
1401
|
},
|
|
1402
|
+
"llms": {
|
|
1403
|
+
"aliases": [
|
|
1404
|
+
"skill"
|
|
1405
|
+
],
|
|
1406
|
+
"description": "Show agent-oriented guidance for this command",
|
|
1407
|
+
"hidden": true,
|
|
1408
|
+
"name": "llms",
|
|
1409
|
+
"allowNo": false,
|
|
1410
|
+
"type": "boolean"
|
|
1411
|
+
},
|
|
867
1412
|
"path": {
|
|
868
1413
|
"aliases": [
|
|
869
1414
|
"blueprint-path"
|
|
@@ -898,41 +1443,18 @@
|
|
|
898
1443
|
"allowNo": false,
|
|
899
1444
|
"type": "boolean"
|
|
900
1445
|
},
|
|
901
|
-
"
|
|
902
|
-
"description": "Directory to create the local Blueprint in",
|
|
903
|
-
"name": "dir",
|
|
904
|
-
"hasDynamicHelp": false,
|
|
905
|
-
"multiple": false,
|
|
906
|
-
"type": "option"
|
|
907
|
-
},
|
|
908
|
-
"example": {
|
|
1446
|
+
"stack": {
|
|
909
1447
|
"aliases": [
|
|
910
|
-
"recipe"
|
|
911
|
-
],
|
|
912
|
-
"description": "Example to use for the local Blueprint",
|
|
913
|
-
"exclusive": [
|
|
914
|
-
"blueprint-type",
|
|
915
1448
|
"stack-id",
|
|
916
|
-
"
|
|
1449
|
+
"stackId"
|
|
917
1450
|
],
|
|
918
|
-
"
|
|
919
|
-
|
|
920
|
-
"multiple": false,
|
|
921
|
-
"type": "option"
|
|
922
|
-
},
|
|
923
|
-
"blueprint-type": {
|
|
924
|
-
"aliases": [
|
|
925
|
-
"type"
|
|
1451
|
+
"dependsOn": [
|
|
1452
|
+
"edit"
|
|
926
1453
|
],
|
|
927
|
-
"description": "
|
|
928
|
-
"name": "
|
|
1454
|
+
"description": "Stack name or ID to set in the configuration. Requires --edit flag",
|
|
1455
|
+
"name": "stack",
|
|
929
1456
|
"hasDynamicHelp": false,
|
|
930
1457
|
"multiple": false,
|
|
931
|
-
"options": [
|
|
932
|
-
"json",
|
|
933
|
-
"js",
|
|
934
|
-
"ts"
|
|
935
|
-
],
|
|
936
1458
|
"type": "option"
|
|
937
1459
|
},
|
|
938
1460
|
"project-id": {
|
|
@@ -940,6 +1462,9 @@
|
|
|
940
1462
|
"project",
|
|
941
1463
|
"projectId"
|
|
942
1464
|
],
|
|
1465
|
+
"dependsOn": [
|
|
1466
|
+
"edit"
|
|
1467
|
+
],
|
|
943
1468
|
"description": "Sanity project ID used to scope Blueprint and Stack",
|
|
944
1469
|
"exclusive": [
|
|
945
1470
|
"organization-id"
|
|
@@ -955,6 +1480,9 @@
|
|
|
955
1480
|
"organizationId",
|
|
956
1481
|
"org"
|
|
957
1482
|
],
|
|
1483
|
+
"dependsOn": [
|
|
1484
|
+
"edit"
|
|
1485
|
+
],
|
|
958
1486
|
"description": "Sanity organization ID used to scope Blueprint and Stack",
|
|
959
1487
|
"exclusive": [
|
|
960
1488
|
"project-id"
|
|
@@ -964,79 +1492,47 @@
|
|
|
964
1492
|
"multiple": false,
|
|
965
1493
|
"type": "option"
|
|
966
1494
|
},
|
|
967
|
-
"
|
|
968
|
-
"
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
"
|
|
972
|
-
"
|
|
973
|
-
"stack-name"
|
|
974
|
-
],
|
|
975
|
-
"name": "stack-id",
|
|
976
|
-
"relationships": [
|
|
977
|
-
{
|
|
978
|
-
"type": "some",
|
|
979
|
-
"flags": [
|
|
980
|
-
"project-id",
|
|
981
|
-
"organization-id"
|
|
982
|
-
]
|
|
983
|
-
}
|
|
984
|
-
],
|
|
985
|
-
"hasDynamicHelp": false,
|
|
986
|
-
"multiple": false,
|
|
987
|
-
"type": "option"
|
|
988
|
-
},
|
|
989
|
-
"stack-name": {
|
|
990
|
-
"aliases": [
|
|
991
|
-
"name"
|
|
992
|
-
],
|
|
993
|
-
"description": "Name to use for a new Stack provisioned during initialization",
|
|
994
|
-
"exclusive": [
|
|
995
|
-
"stack-id"
|
|
996
|
-
],
|
|
997
|
-
"name": "stack-name",
|
|
998
|
-
"relationships": [
|
|
999
|
-
{
|
|
1000
|
-
"type": "some",
|
|
1001
|
-
"flags": [
|
|
1002
|
-
"project-id",
|
|
1003
|
-
"organization-id"
|
|
1004
|
-
]
|
|
1005
|
-
}
|
|
1006
|
-
],
|
|
1007
|
-
"hasDynamicHelp": false,
|
|
1008
|
-
"multiple": false,
|
|
1009
|
-
"type": "option"
|
|
1495
|
+
"edit": {
|
|
1496
|
+
"char": "e",
|
|
1497
|
+
"description": "Modify the configuration interactively, or directly when combined with ID flags.",
|
|
1498
|
+
"name": "edit",
|
|
1499
|
+
"allowNo": false,
|
|
1500
|
+
"type": "boolean"
|
|
1010
1501
|
}
|
|
1011
1502
|
},
|
|
1012
1503
|
"hasDynamicHelp": false,
|
|
1013
1504
|
"hiddenAliases": [],
|
|
1014
|
-
"id": "blueprints:
|
|
1505
|
+
"id": "blueprints:config",
|
|
1015
1506
|
"pluginAlias": "@sanity/runtime-cli",
|
|
1016
1507
|
"pluginName": "@sanity/runtime-cli",
|
|
1017
1508
|
"pluginType": "core",
|
|
1018
1509
|
"strict": true,
|
|
1019
|
-
"summary": "
|
|
1510
|
+
"summary": "View or edit the local Blueprint configuration",
|
|
1020
1511
|
"enableJsonFlag": true,
|
|
1512
|
+
"needs": [
|
|
1513
|
+
"token",
|
|
1514
|
+
"blueprint"
|
|
1515
|
+
],
|
|
1021
1516
|
"isESM": true,
|
|
1022
1517
|
"relativePath": [
|
|
1023
1518
|
"dist",
|
|
1024
1519
|
"commands",
|
|
1025
1520
|
"blueprints",
|
|
1026
|
-
"
|
|
1521
|
+
"config.js"
|
|
1027
1522
|
]
|
|
1028
1523
|
},
|
|
1029
|
-
"blueprints:
|
|
1524
|
+
"blueprints:deploy": {
|
|
1030
1525
|
"aliases": [],
|
|
1031
1526
|
"args": {},
|
|
1032
|
-
"description": "
|
|
1527
|
+
"description": "Applies your local Blueprint to the remote Stack, creating, updating, or removing resources as needed. This is the primary command for applying infrastructure changes.\n\nBefore deploying, run 'blueprints plan' to preview changes. After deployment, use 'blueprints info' to verify Stack status or 'blueprints logs' to monitor activity.\n\nUse --no-wait to queue the deployment and return immediately without waiting for completion.\n\nUse --fn-installer to force which package manager to use when deploying functions.\n\nSet SANITY_ASSET_TIMEOUT (seconds) to override the 60-second timeout for processing resource assets.\n\nExit codes: 0 deployed, 2 deployment failed, 75 deployment accepted but completion could not be confirmed (rerun 'blueprints info' to check).",
|
|
1033
1528
|
"examples": [
|
|
1034
1529
|
"<%= config.bin %> <%= command.id %>",
|
|
1035
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1530
|
+
"<%= config.bin %> <%= command.id %> --message \"Enable staging dataset\"",
|
|
1531
|
+
"<%= config.bin %> <%= command.id %> --no-wait",
|
|
1532
|
+
"<%= config.bin %> <%= command.id %> --fn-installer npm",
|
|
1036
1533
|
"<%= config.bin %> <%= command.id %> --stack <name-or-id>",
|
|
1037
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1038
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1039
|
-
"<%= config.bin %> <%= command.id %> --before 2026-05-01T00:00:00Z"
|
|
1534
|
+
"<%= config.bin %> <%= command.id %> --organization-id <orgId> --stack <name-or-id>",
|
|
1535
|
+
"<%= config.bin %> <%= command.id %> --new-stack-name <new-name>"
|
|
1040
1536
|
],
|
|
1041
1537
|
"flags": {
|
|
1042
1538
|
"json": {
|
|
@@ -1045,6 +1541,16 @@
|
|
|
1045
1541
|
"allowNo": false,
|
|
1046
1542
|
"type": "boolean"
|
|
1047
1543
|
},
|
|
1544
|
+
"llms": {
|
|
1545
|
+
"aliases": [
|
|
1546
|
+
"skill"
|
|
1547
|
+
],
|
|
1548
|
+
"description": "Show agent-oriented guidance for this command",
|
|
1549
|
+
"hidden": true,
|
|
1550
|
+
"name": "llms",
|
|
1551
|
+
"allowNo": false,
|
|
1552
|
+
"type": "boolean"
|
|
1553
|
+
},
|
|
1048
1554
|
"path": {
|
|
1049
1555
|
"aliases": [
|
|
1050
1556
|
"blueprint-path"
|
|
@@ -1115,43 +1621,40 @@
|
|
|
1115
1621
|
"multiple": false,
|
|
1116
1622
|
"type": "option"
|
|
1117
1623
|
},
|
|
1118
|
-
"
|
|
1119
|
-
"
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
"char": "w",
|
|
1123
|
-
"description": "Watch for new Stack logs",
|
|
1124
|
-
"name": "watch",
|
|
1125
|
-
"allowNo": false,
|
|
1126
|
-
"type": "boolean"
|
|
1127
|
-
},
|
|
1128
|
-
"limit": {
|
|
1129
|
-
"char": "l",
|
|
1130
|
-
"description": "Maximum number of log entries to retrieve (1-500)",
|
|
1131
|
-
"exclusive": [
|
|
1132
|
-
"watch"
|
|
1133
|
-
],
|
|
1134
|
-
"name": "limit",
|
|
1624
|
+
"message": {
|
|
1625
|
+
"char": "m",
|
|
1626
|
+
"description": "Message describing the deployment (e.g. reason for change)",
|
|
1627
|
+
"name": "message",
|
|
1135
1628
|
"hasDynamicHelp": false,
|
|
1136
1629
|
"multiple": false,
|
|
1137
1630
|
"type": "option"
|
|
1138
1631
|
},
|
|
1139
|
-
"
|
|
1140
|
-
"
|
|
1141
|
-
|
|
1142
|
-
"
|
|
1632
|
+
"fn-installer": {
|
|
1633
|
+
"aliases": [
|
|
1634
|
+
"function-installer",
|
|
1635
|
+
"installer"
|
|
1143
1636
|
],
|
|
1144
|
-
"
|
|
1637
|
+
"description": "Which package manager to use when installing Function dependencies",
|
|
1638
|
+
"hidden": true,
|
|
1639
|
+
"name": "fn-installer",
|
|
1145
1640
|
"hasDynamicHelp": false,
|
|
1146
1641
|
"multiple": false,
|
|
1642
|
+
"options": [
|
|
1643
|
+
"npm",
|
|
1644
|
+
"pnpm",
|
|
1645
|
+
"yarn"
|
|
1646
|
+
],
|
|
1147
1647
|
"type": "option"
|
|
1148
1648
|
},
|
|
1149
|
-
"
|
|
1150
|
-
"description": "
|
|
1151
|
-
"
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1649
|
+
"no-wait": {
|
|
1650
|
+
"description": "Do not wait for Stack deployment to complete",
|
|
1651
|
+
"name": "no-wait",
|
|
1652
|
+
"allowNo": false,
|
|
1653
|
+
"type": "boolean"
|
|
1654
|
+
},
|
|
1655
|
+
"new-stack-name": {
|
|
1656
|
+
"description": "Set a new name for the Stack",
|
|
1657
|
+
"name": "new-stack-name",
|
|
1155
1658
|
"hasDynamicHelp": false,
|
|
1156
1659
|
"multiple": false,
|
|
1157
1660
|
"type": "option"
|
|
@@ -1159,36 +1662,32 @@
|
|
|
1159
1662
|
},
|
|
1160
1663
|
"hasDynamicHelp": false,
|
|
1161
1664
|
"hiddenAliases": [],
|
|
1162
|
-
"id": "blueprints:
|
|
1665
|
+
"id": "blueprints:deploy",
|
|
1163
1666
|
"pluginAlias": "@sanity/runtime-cli",
|
|
1164
1667
|
"pluginName": "@sanity/runtime-cli",
|
|
1165
1668
|
"pluginType": "core",
|
|
1166
1669
|
"strict": true,
|
|
1167
|
-
"summary": "
|
|
1670
|
+
"summary": "Deploy the local Blueprint to the remote Stack",
|
|
1168
1671
|
"enableJsonFlag": true,
|
|
1169
1672
|
"needs": [
|
|
1170
|
-
"deployedStack"
|
|
1673
|
+
"deployedStack",
|
|
1674
|
+
"blueprint"
|
|
1171
1675
|
],
|
|
1172
1676
|
"isESM": true,
|
|
1173
1677
|
"relativePath": [
|
|
1174
1678
|
"dist",
|
|
1175
1679
|
"commands",
|
|
1176
1680
|
"blueprints",
|
|
1177
|
-
"
|
|
1681
|
+
"deploy.js"
|
|
1178
1682
|
]
|
|
1179
1683
|
},
|
|
1180
|
-
"blueprints:
|
|
1684
|
+
"blueprints:destroy": {
|
|
1181
1685
|
"aliases": [],
|
|
1182
1686
|
"args": {},
|
|
1183
|
-
"description": "
|
|
1687
|
+
"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).",
|
|
1184
1688
|
"examples": [
|
|
1185
1689
|
"<%= config.bin %> <%= command.id %>",
|
|
1186
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1187
|
-
"<%= config.bin %> <%= command.id %> --print",
|
|
1188
|
-
"export SANITY_AUTH_TOKEN=$(<%= config.bin %> <%= command.id %> --print)",
|
|
1189
|
-
"<%= config.bin %> <%= command.id %> --json",
|
|
1190
|
-
"<%= config.bin %> <%= command.id %> --project-id <projectId>",
|
|
1191
|
-
"<%= config.bin %> <%= command.id %> --organization-id <orgId>"
|
|
1690
|
+
"<%= config.bin %> <%= command.id %> --stack <name-or-id> --project-id <projectId> --force --no-wait"
|
|
1192
1691
|
],
|
|
1193
1692
|
"flags": {
|
|
1194
1693
|
"json": {
|
|
@@ -1197,6 +1696,16 @@
|
|
|
1197
1696
|
"allowNo": false,
|
|
1198
1697
|
"type": "boolean"
|
|
1199
1698
|
},
|
|
1699
|
+
"llms": {
|
|
1700
|
+
"aliases": [
|
|
1701
|
+
"skill"
|
|
1702
|
+
],
|
|
1703
|
+
"description": "Show agent-oriented guidance for this command",
|
|
1704
|
+
"hidden": true,
|
|
1705
|
+
"name": "llms",
|
|
1706
|
+
"allowNo": false,
|
|
1707
|
+
"type": "boolean"
|
|
1708
|
+
},
|
|
1200
1709
|
"path": {
|
|
1201
1710
|
"aliases": [
|
|
1202
1711
|
"blueprint-path"
|
|
@@ -1232,8 +1741,11 @@
|
|
|
1232
1741
|
"type": "boolean"
|
|
1233
1742
|
},
|
|
1234
1743
|
"stack": {
|
|
1235
|
-
"
|
|
1236
|
-
|
|
1744
|
+
"aliases": [
|
|
1745
|
+
"stack-id",
|
|
1746
|
+
"stackId"
|
|
1747
|
+
],
|
|
1748
|
+
"description": "Stack name or ID to destroy (defaults to the locally configured Stack)",
|
|
1237
1749
|
"name": "stack",
|
|
1238
1750
|
"hasDynamicHelp": false,
|
|
1239
1751
|
"multiple": false,
|
|
@@ -1244,6 +1756,10 @@
|
|
|
1244
1756
|
"project",
|
|
1245
1757
|
"projectId"
|
|
1246
1758
|
],
|
|
1759
|
+
"dependsOn": [
|
|
1760
|
+
"stack",
|
|
1761
|
+
"force"
|
|
1762
|
+
],
|
|
1247
1763
|
"description": "Sanity project ID used to scope Blueprint and Stack",
|
|
1248
1764
|
"exclusive": [
|
|
1249
1765
|
"organization-id"
|
|
@@ -1259,6 +1775,10 @@
|
|
|
1259
1775
|
"organizationId",
|
|
1260
1776
|
"org"
|
|
1261
1777
|
],
|
|
1778
|
+
"dependsOn": [
|
|
1779
|
+
"stack",
|
|
1780
|
+
"force"
|
|
1781
|
+
],
|
|
1262
1782
|
"description": "Sanity organization ID used to scope Blueprint and Stack",
|
|
1263
1783
|
"exclusive": [
|
|
1264
1784
|
"project-id"
|
|
@@ -1268,32 +1788,30 @@
|
|
|
1268
1788
|
"multiple": false,
|
|
1269
1789
|
"type": "option"
|
|
1270
1790
|
},
|
|
1271
|
-
"
|
|
1272
|
-
"
|
|
1273
|
-
|
|
1274
|
-
"hasDynamicHelp": false,
|
|
1275
|
-
"multiple": false,
|
|
1276
|
-
"type": "option"
|
|
1277
|
-
},
|
|
1278
|
-
"print": {
|
|
1279
|
-
"char": "P",
|
|
1280
|
-
"description": "Print only the raw token to stdout (suitable for shell substitution)",
|
|
1281
|
-
"exclusive": [
|
|
1282
|
-
"json"
|
|
1791
|
+
"force": {
|
|
1792
|
+
"aliases": [
|
|
1793
|
+
"f"
|
|
1283
1794
|
],
|
|
1284
|
-
"
|
|
1795
|
+
"description": "Force Stack destruction (skip confirmation)",
|
|
1796
|
+
"name": "force",
|
|
1797
|
+
"allowNo": false,
|
|
1798
|
+
"type": "boolean"
|
|
1799
|
+
},
|
|
1800
|
+
"no-wait": {
|
|
1801
|
+
"description": "Do not wait for Stack destruction to complete",
|
|
1802
|
+
"name": "no-wait",
|
|
1285
1803
|
"allowNo": false,
|
|
1286
1804
|
"type": "boolean"
|
|
1287
1805
|
}
|
|
1288
1806
|
},
|
|
1289
1807
|
"hasDynamicHelp": false,
|
|
1290
1808
|
"hiddenAliases": [],
|
|
1291
|
-
"id": "blueprints:
|
|
1809
|
+
"id": "blueprints:destroy",
|
|
1292
1810
|
"pluginAlias": "@sanity/runtime-cli",
|
|
1293
1811
|
"pluginName": "@sanity/runtime-cli",
|
|
1294
1812
|
"pluginType": "core",
|
|
1295
1813
|
"strict": true,
|
|
1296
|
-
"summary": "
|
|
1814
|
+
"summary": "Destroy a remote Stack deployment and its resources",
|
|
1297
1815
|
"enableJsonFlag": true,
|
|
1298
1816
|
"needs": [
|
|
1299
1817
|
"scope"
|
|
@@ -1303,17 +1821,16 @@
|
|
|
1303
1821
|
"dist",
|
|
1304
1822
|
"commands",
|
|
1305
1823
|
"blueprints",
|
|
1306
|
-
"
|
|
1824
|
+
"destroy.js"
|
|
1307
1825
|
]
|
|
1308
1826
|
},
|
|
1309
|
-
"blueprints:
|
|
1827
|
+
"blueprints:doctor": {
|
|
1310
1828
|
"aliases": [],
|
|
1311
1829
|
"args": {},
|
|
1312
|
-
"description": "
|
|
1830
|
+
"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.",
|
|
1313
1831
|
"examples": [
|
|
1314
1832
|
"<%= config.bin %> <%= command.id %>",
|
|
1315
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1316
|
-
"<%= config.bin %> <%= command.id %> --organization-id <orgId> --stack <name-or-id>"
|
|
1833
|
+
"<%= config.bin %> <%= command.id %> --fix"
|
|
1317
1834
|
],
|
|
1318
1835
|
"flags": {
|
|
1319
1836
|
"json": {
|
|
@@ -1322,6 +1839,16 @@
|
|
|
1322
1839
|
"allowNo": false,
|
|
1323
1840
|
"type": "boolean"
|
|
1324
1841
|
},
|
|
1842
|
+
"llms": {
|
|
1843
|
+
"aliases": [
|
|
1844
|
+
"skill"
|
|
1845
|
+
],
|
|
1846
|
+
"description": "Show agent-oriented guidance for this command",
|
|
1847
|
+
"hidden": true,
|
|
1848
|
+
"name": "llms",
|
|
1849
|
+
"allowNo": false,
|
|
1850
|
+
"type": "boolean"
|
|
1851
|
+
},
|
|
1325
1852
|
"path": {
|
|
1326
1853
|
"aliases": [
|
|
1327
1854
|
"blueprint-path"
|
|
@@ -1329,7 +1856,6 @@
|
|
|
1329
1856
|
"char": "p",
|
|
1330
1857
|
"description": "Path to a Blueprint file or directory containing one",
|
|
1331
1858
|
"env": "SANITY_BLUEPRINT_PATH",
|
|
1332
|
-
"hidden": true,
|
|
1333
1859
|
"name": "path",
|
|
1334
1860
|
"hasDynamicHelp": false,
|
|
1335
1861
|
"multiple": false,
|
|
@@ -1356,73 +1882,39 @@
|
|
|
1356
1882
|
"allowNo": false,
|
|
1357
1883
|
"type": "boolean"
|
|
1358
1884
|
},
|
|
1359
|
-
"
|
|
1360
|
-
"description": "
|
|
1361
|
-
"name": "
|
|
1362
|
-
"
|
|
1363
|
-
"
|
|
1364
|
-
"type": "option"
|
|
1365
|
-
},
|
|
1366
|
-
"project-id": {
|
|
1367
|
-
"aliases": [
|
|
1368
|
-
"project",
|
|
1369
|
-
"projectId"
|
|
1370
|
-
],
|
|
1371
|
-
"description": "Sanity project ID used to scope Blueprint and Stack",
|
|
1372
|
-
"exclusive": [
|
|
1373
|
-
"organization-id"
|
|
1374
|
-
],
|
|
1375
|
-
"name": "project-id",
|
|
1376
|
-
"hasDynamicHelp": false,
|
|
1377
|
-
"multiple": false,
|
|
1378
|
-
"type": "option"
|
|
1379
|
-
},
|
|
1380
|
-
"organization-id": {
|
|
1381
|
-
"aliases": [
|
|
1382
|
-
"organization",
|
|
1383
|
-
"organizationId",
|
|
1384
|
-
"org"
|
|
1385
|
-
],
|
|
1386
|
-
"description": "Sanity organization ID used to scope Blueprint and Stack",
|
|
1387
|
-
"exclusive": [
|
|
1388
|
-
"project-id"
|
|
1389
|
-
],
|
|
1390
|
-
"name": "organization-id",
|
|
1391
|
-
"hasDynamicHelp": false,
|
|
1392
|
-
"multiple": false,
|
|
1393
|
-
"type": "option"
|
|
1885
|
+
"fix": {
|
|
1886
|
+
"description": "Interactively fix configuration issues",
|
|
1887
|
+
"name": "fix",
|
|
1888
|
+
"allowNo": false,
|
|
1889
|
+
"type": "boolean"
|
|
1394
1890
|
}
|
|
1395
1891
|
},
|
|
1396
1892
|
"hasDynamicHelp": false,
|
|
1397
1893
|
"hiddenAliases": [],
|
|
1398
|
-
"id": "blueprints:
|
|
1894
|
+
"id": "blueprints:doctor",
|
|
1399
1895
|
"pluginAlias": "@sanity/runtime-cli",
|
|
1400
1896
|
"pluginName": "@sanity/runtime-cli",
|
|
1401
1897
|
"pluginType": "core",
|
|
1402
1898
|
"strict": true,
|
|
1403
|
-
"summary": "
|
|
1899
|
+
"summary": "Diagnose potential issues with local Blueprint and remote Stack configuration",
|
|
1404
1900
|
"enableJsonFlag": true,
|
|
1405
|
-
"needs": [
|
|
1406
|
-
"token",
|
|
1407
|
-
"blueprint"
|
|
1408
|
-
],
|
|
1409
1901
|
"isESM": true,
|
|
1410
1902
|
"relativePath": [
|
|
1411
1903
|
"dist",
|
|
1412
1904
|
"commands",
|
|
1413
1905
|
"blueprints",
|
|
1414
|
-
"
|
|
1906
|
+
"doctor.js"
|
|
1415
1907
|
]
|
|
1416
1908
|
},
|
|
1417
|
-
"blueprints:
|
|
1909
|
+
"blueprints:info": {
|
|
1418
1910
|
"aliases": [],
|
|
1419
1911
|
"args": {},
|
|
1420
|
-
"description": "
|
|
1912
|
+
"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.",
|
|
1421
1913
|
"examples": [
|
|
1422
1914
|
"<%= config.bin %> <%= command.id %>",
|
|
1423
1915
|
"<%= config.bin %> <%= command.id %> --stack <name-or-id>",
|
|
1424
|
-
"<%= config.bin %> <%= command.id %> --project-id <
|
|
1425
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1916
|
+
"<%= config.bin %> <%= command.id %> --project-id <id> --stack <name-or-id>",
|
|
1917
|
+
"<%= config.bin %> <%= command.id %> --organization-id <orgId> --stack <name-or-id>"
|
|
1426
1918
|
],
|
|
1427
1919
|
"flags": {
|
|
1428
1920
|
"json": {
|
|
@@ -1431,6 +1923,16 @@
|
|
|
1431
1923
|
"allowNo": false,
|
|
1432
1924
|
"type": "boolean"
|
|
1433
1925
|
},
|
|
1926
|
+
"llms": {
|
|
1927
|
+
"aliases": [
|
|
1928
|
+
"skill"
|
|
1929
|
+
],
|
|
1930
|
+
"description": "Show agent-oriented guidance for this command",
|
|
1931
|
+
"hidden": true,
|
|
1932
|
+
"name": "llms",
|
|
1933
|
+
"allowNo": false,
|
|
1934
|
+
"type": "boolean"
|
|
1935
|
+
},
|
|
1434
1936
|
"path": {
|
|
1435
1937
|
"aliases": [
|
|
1436
1938
|
"blueprint-path"
|
|
@@ -1469,7 +1971,7 @@
|
|
|
1469
1971
|
"aliases": [
|
|
1470
1972
|
"id"
|
|
1471
1973
|
],
|
|
1472
|
-
"description": "Stack name or ID
|
|
1974
|
+
"description": "Stack name or ID",
|
|
1473
1975
|
"name": "stack",
|
|
1474
1976
|
"hasDynamicHelp": false,
|
|
1475
1977
|
"multiple": false,
|
|
@@ -1497,23 +1999,9 @@
|
|
|
1497
1999
|
],
|
|
1498
2000
|
"description": "Sanity organization ID used to scope Blueprint and Stack",
|
|
1499
2001
|
"exclusive": [
|
|
1500
|
-
"project-id"
|
|
1501
|
-
],
|
|
1502
|
-
"
|
|
1503
|
-
"name": "organization-id",
|
|
1504
|
-
"hasDynamicHelp": false,
|
|
1505
|
-
"multiple": false,
|
|
1506
|
-
"type": "option"
|
|
1507
|
-
},
|
|
1508
|
-
"force": {
|
|
1509
|
-
"description": "Skip confirmation prompt",
|
|
1510
|
-
"name": "force",
|
|
1511
|
-
"allowNo": false,
|
|
1512
|
-
"type": "boolean"
|
|
1513
|
-
},
|
|
1514
|
-
"new-stack-name": {
|
|
1515
|
-
"description": "Set a new name for the Stack while promoting",
|
|
1516
|
-
"name": "new-stack-name",
|
|
2002
|
+
"project-id"
|
|
2003
|
+
],
|
|
2004
|
+
"name": "organization-id",
|
|
1517
2005
|
"hasDynamicHelp": false,
|
|
1518
2006
|
"multiple": false,
|
|
1519
2007
|
"type": "option"
|
|
@@ -1521,34 +2009,44 @@
|
|
|
1521
2009
|
},
|
|
1522
2010
|
"hasDynamicHelp": false,
|
|
1523
2011
|
"hiddenAliases": [],
|
|
1524
|
-
"id": "blueprints:
|
|
2012
|
+
"id": "blueprints:info",
|
|
1525
2013
|
"pluginAlias": "@sanity/runtime-cli",
|
|
1526
2014
|
"pluginName": "@sanity/runtime-cli",
|
|
1527
2015
|
"pluginType": "core",
|
|
1528
2016
|
"strict": true,
|
|
1529
|
-
"summary": "
|
|
2017
|
+
"summary": "Display the status and resources of the remote Stack deployment",
|
|
1530
2018
|
"enableJsonFlag": true,
|
|
1531
2019
|
"needs": [
|
|
1532
|
-
"deployedStack"
|
|
1533
|
-
"blueprint"
|
|
2020
|
+
"deployedStack"
|
|
1534
2021
|
],
|
|
1535
2022
|
"isESM": true,
|
|
1536
2023
|
"relativePath": [
|
|
1537
2024
|
"dist",
|
|
1538
2025
|
"commands",
|
|
1539
2026
|
"blueprints",
|
|
1540
|
-
"
|
|
2027
|
+
"info.js"
|
|
1541
2028
|
]
|
|
1542
2029
|
},
|
|
1543
|
-
"blueprints:
|
|
2030
|
+
"blueprints:init": {
|
|
1544
2031
|
"aliases": [],
|
|
1545
|
-
"args": {
|
|
1546
|
-
|
|
2032
|
+
"args": {
|
|
2033
|
+
"dir": {
|
|
2034
|
+
"description": "Directory to create the local Blueprint in (defaults to the current directory)",
|
|
2035
|
+
"name": "dir"
|
|
2036
|
+
}
|
|
2037
|
+
},
|
|
2038
|
+
"description": "A Blueprint is your local infrastructure-as-code configuration that defines Sanity resources (datasets, functions, etc.). A Stack is the remote deployment target where your Blueprint is applied.\n[NOTE: Currently, accounts are limited to three (3) Stacks per project scope.]\n\nThis is typically the first command you run in a new project. It creates a local Blueprint manifest file (sanity.blueprint.ts, .js, or .json) and provisions a new remote Stack.\nAdditionally, a Blueprint configuration file is created in .sanity/ containing the scope and Stack IDs. This is .gitignored by default.\n\nAfter initialization, use 'blueprints plan' to preview changes, then 'blueprints deploy' to apply them.\n\nRunning without a directory prompts to confirm the current directory. Run 'blueprints init .' to initialize in the current directory without a prompt.",
|
|
1547
2039
|
"examples": [
|
|
1548
2040
|
"<%= config.bin %> <%= command.id %>",
|
|
1549
|
-
"<%= config.bin %> <%= command.id %>
|
|
2041
|
+
"<%= config.bin %> <%= command.id %> .",
|
|
2042
|
+
"<%= config.bin %> <%= command.id %> [directory]",
|
|
2043
|
+
"<%= config.bin %> <%= command.id %> --blueprint-type <json|js|ts>",
|
|
1550
2044
|
"<%= config.bin %> <%= command.id %> --organization-id <organizationId>",
|
|
1551
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2045
|
+
"<%= config.bin %> <%= command.id %> --project-id <projectId>",
|
|
2046
|
+
"<%= config.bin %> <%= command.id %> --stack-name <newStackName>",
|
|
2047
|
+
"<%= config.bin %> <%= command.id %> --stack-id <existingStackId>",
|
|
2048
|
+
"<%= config.bin %> <%= command.id %> new-stack --type <json|js|ts> --org <organizationId> --name <newStackName>",
|
|
2049
|
+
"<%= config.bin %> <%= command.id %> old-stack --type <json|js|ts> --project-id <projectId> --stack-id <existingStackId>"
|
|
1552
2050
|
],
|
|
1553
2051
|
"flags": {
|
|
1554
2052
|
"json": {
|
|
@@ -1557,6 +2055,16 @@
|
|
|
1557
2055
|
"allowNo": false,
|
|
1558
2056
|
"type": "boolean"
|
|
1559
2057
|
},
|
|
2058
|
+
"llms": {
|
|
2059
|
+
"aliases": [
|
|
2060
|
+
"skill"
|
|
2061
|
+
],
|
|
2062
|
+
"description": "Show agent-oriented guidance for this command",
|
|
2063
|
+
"hidden": true,
|
|
2064
|
+
"name": "llms",
|
|
2065
|
+
"allowNo": false,
|
|
2066
|
+
"type": "boolean"
|
|
2067
|
+
},
|
|
1560
2068
|
"path": {
|
|
1561
2069
|
"aliases": [
|
|
1562
2070
|
"blueprint-path"
|
|
@@ -1591,12 +2099,41 @@
|
|
|
1591
2099
|
"allowNo": false,
|
|
1592
2100
|
"type": "boolean"
|
|
1593
2101
|
},
|
|
1594
|
-
"
|
|
1595
|
-
"description": "
|
|
1596
|
-
"
|
|
1597
|
-
"
|
|
2102
|
+
"dir": {
|
|
2103
|
+
"description": "Directory to create the local Blueprint in",
|
|
2104
|
+
"name": "dir",
|
|
2105
|
+
"hasDynamicHelp": false,
|
|
2106
|
+
"multiple": false,
|
|
2107
|
+
"type": "option"
|
|
2108
|
+
},
|
|
2109
|
+
"example": {
|
|
2110
|
+
"aliases": [
|
|
2111
|
+
"recipe"
|
|
2112
|
+
],
|
|
2113
|
+
"description": "Example to use for the local Blueprint",
|
|
2114
|
+
"exclusive": [
|
|
2115
|
+
"blueprint-type",
|
|
2116
|
+
"stack-id",
|
|
2117
|
+
"stack-name"
|
|
2118
|
+
],
|
|
2119
|
+
"name": "example",
|
|
2120
|
+
"hasDynamicHelp": false,
|
|
2121
|
+
"multiple": false,
|
|
2122
|
+
"type": "option"
|
|
2123
|
+
},
|
|
2124
|
+
"blueprint-type": {
|
|
2125
|
+
"aliases": [
|
|
2126
|
+
"type"
|
|
2127
|
+
],
|
|
2128
|
+
"description": "Blueprint manifest type to use for the local Blueprint",
|
|
2129
|
+
"name": "blueprint-type",
|
|
1598
2130
|
"hasDynamicHelp": false,
|
|
1599
2131
|
"multiple": false,
|
|
2132
|
+
"options": [
|
|
2133
|
+
"json",
|
|
2134
|
+
"js",
|
|
2135
|
+
"ts"
|
|
2136
|
+
],
|
|
1600
2137
|
"type": "option"
|
|
1601
2138
|
},
|
|
1602
2139
|
"project-id": {
|
|
@@ -1606,8 +2143,7 @@
|
|
|
1606
2143
|
],
|
|
1607
2144
|
"description": "Sanity project ID used to scope Blueprint and Stack",
|
|
1608
2145
|
"exclusive": [
|
|
1609
|
-
"organization-id"
|
|
1610
|
-
"include-projects"
|
|
2146
|
+
"organization-id"
|
|
1611
2147
|
],
|
|
1612
2148
|
"name": "project-id",
|
|
1613
2149
|
"hasDynamicHelp": false,
|
|
@@ -1629,46 +2165,79 @@
|
|
|
1629
2165
|
"multiple": false,
|
|
1630
2166
|
"type": "option"
|
|
1631
2167
|
},
|
|
1632
|
-
"
|
|
1633
|
-
"
|
|
1634
|
-
"
|
|
2168
|
+
"stack-id": {
|
|
2169
|
+
"aliases": [
|
|
2170
|
+
"stackId"
|
|
1635
2171
|
],
|
|
1636
|
-
"description": "
|
|
1637
|
-
"
|
|
1638
|
-
|
|
1639
|
-
|
|
2172
|
+
"description": "Existing Stack ID used to scope local Blueprint",
|
|
2173
|
+
"exclusive": [
|
|
2174
|
+
"stack-name"
|
|
2175
|
+
],
|
|
2176
|
+
"name": "stack-id",
|
|
2177
|
+
"relationships": [
|
|
2178
|
+
{
|
|
2179
|
+
"type": "some",
|
|
2180
|
+
"flags": [
|
|
2181
|
+
"project-id",
|
|
2182
|
+
"organization-id"
|
|
2183
|
+
]
|
|
2184
|
+
}
|
|
2185
|
+
],
|
|
2186
|
+
"hasDynamicHelp": false,
|
|
2187
|
+
"multiple": false,
|
|
2188
|
+
"type": "option"
|
|
2189
|
+
},
|
|
2190
|
+
"stack-name": {
|
|
2191
|
+
"aliases": [
|
|
2192
|
+
"name"
|
|
2193
|
+
],
|
|
2194
|
+
"description": "Name to use for a new Stack provisioned during initialization",
|
|
2195
|
+
"exclusive": [
|
|
2196
|
+
"stack-id"
|
|
2197
|
+
],
|
|
2198
|
+
"name": "stack-name",
|
|
2199
|
+
"relationships": [
|
|
2200
|
+
{
|
|
2201
|
+
"type": "some",
|
|
2202
|
+
"flags": [
|
|
2203
|
+
"project-id",
|
|
2204
|
+
"organization-id"
|
|
2205
|
+
]
|
|
2206
|
+
}
|
|
2207
|
+
],
|
|
2208
|
+
"hasDynamicHelp": false,
|
|
2209
|
+
"multiple": false,
|
|
2210
|
+
"type": "option"
|
|
1640
2211
|
}
|
|
1641
2212
|
},
|
|
1642
2213
|
"hasDynamicHelp": false,
|
|
1643
2214
|
"hiddenAliases": [],
|
|
1644
|
-
"id": "blueprints:
|
|
2215
|
+
"id": "blueprints:init",
|
|
1645
2216
|
"pluginAlias": "@sanity/runtime-cli",
|
|
1646
2217
|
"pluginName": "@sanity/runtime-cli",
|
|
1647
2218
|
"pluginType": "core",
|
|
1648
2219
|
"strict": true,
|
|
1649
|
-
"summary": "
|
|
2220
|
+
"summary": "Initialize a Blueprint and create a remote Stack",
|
|
1650
2221
|
"enableJsonFlag": true,
|
|
1651
|
-
"needs": [
|
|
1652
|
-
"scope"
|
|
1653
|
-
],
|
|
1654
2222
|
"isESM": true,
|
|
1655
2223
|
"relativePath": [
|
|
1656
2224
|
"dist",
|
|
1657
2225
|
"commands",
|
|
1658
2226
|
"blueprints",
|
|
1659
|
-
"
|
|
2227
|
+
"init.js"
|
|
1660
2228
|
]
|
|
1661
2229
|
},
|
|
1662
|
-
"
|
|
2230
|
+
"blueprints:logs": {
|
|
1663
2231
|
"aliases": [],
|
|
1664
2232
|
"args": {},
|
|
1665
|
-
"description": "
|
|
2233
|
+
"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'.",
|
|
1666
2234
|
"examples": [
|
|
1667
2235
|
"<%= config.bin %> <%= command.id %>",
|
|
1668
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1669
|
-
"<%= config.bin %> <%= command.id %> --name
|
|
1670
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1671
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2236
|
+
"<%= config.bin %> <%= command.id %> --watch",
|
|
2237
|
+
"<%= config.bin %> <%= command.id %> --stack <name-or-id>",
|
|
2238
|
+
"<%= config.bin %> <%= command.id %> --limit 500",
|
|
2239
|
+
"<%= config.bin %> <%= command.id %> --since 2026-05-01T00:00:00Z",
|
|
2240
|
+
"<%= config.bin %> <%= command.id %> --before 2026-05-01T00:00:00Z"
|
|
1672
2241
|
],
|
|
1673
2242
|
"flags": {
|
|
1674
2243
|
"json": {
|
|
@@ -1677,6 +2246,16 @@
|
|
|
1677
2246
|
"allowNo": false,
|
|
1678
2247
|
"type": "boolean"
|
|
1679
2248
|
},
|
|
2249
|
+
"llms": {
|
|
2250
|
+
"aliases": [
|
|
2251
|
+
"skill"
|
|
2252
|
+
],
|
|
2253
|
+
"description": "Show agent-oriented guidance for this command",
|
|
2254
|
+
"hidden": true,
|
|
2255
|
+
"name": "llms",
|
|
2256
|
+
"allowNo": false,
|
|
2257
|
+
"type": "boolean"
|
|
2258
|
+
},
|
|
1680
2259
|
"path": {
|
|
1681
2260
|
"aliases": [
|
|
1682
2261
|
"blueprint-path"
|
|
@@ -1713,7 +2292,6 @@
|
|
|
1713
2292
|
},
|
|
1714
2293
|
"stack": {
|
|
1715
2294
|
"description": "Stack name or ID to use instead of the locally configured Stack",
|
|
1716
|
-
"hidden": true,
|
|
1717
2295
|
"name": "stack",
|
|
1718
2296
|
"hasDynamicHelp": false,
|
|
1719
2297
|
"multiple": false,
|
|
@@ -1728,7 +2306,6 @@
|
|
|
1728
2306
|
"exclusive": [
|
|
1729
2307
|
"organization-id"
|
|
1730
2308
|
],
|
|
1731
|
-
"hidden": true,
|
|
1732
2309
|
"name": "project-id",
|
|
1733
2310
|
"hasDynamicHelp": false,
|
|
1734
2311
|
"multiple": false,
|
|
@@ -1744,145 +2321,86 @@
|
|
|
1744
2321
|
"exclusive": [
|
|
1745
2322
|
"project-id"
|
|
1746
2323
|
],
|
|
1747
|
-
"hidden": true,
|
|
1748
2324
|
"name": "organization-id",
|
|
1749
2325
|
"hasDynamicHelp": false,
|
|
1750
2326
|
"multiple": false,
|
|
1751
2327
|
"type": "option"
|
|
1752
2328
|
},
|
|
1753
|
-
"
|
|
2329
|
+
"watch": {
|
|
1754
2330
|
"aliases": [
|
|
1755
|
-
"
|
|
1756
|
-
],
|
|
1757
|
-
"description": "Example to use for the Function",
|
|
1758
|
-
"exclusive": [
|
|
1759
|
-
"name",
|
|
1760
|
-
"fn-type",
|
|
1761
|
-
"language",
|
|
1762
|
-
"javascript",
|
|
1763
|
-
"fn-helpers",
|
|
1764
|
-
"fn-installer"
|
|
1765
|
-
],
|
|
1766
|
-
"name": "example",
|
|
1767
|
-
"hasDynamicHelp": false,
|
|
1768
|
-
"multiple": false,
|
|
1769
|
-
"type": "option"
|
|
1770
|
-
},
|
|
1771
|
-
"name": {
|
|
1772
|
-
"char": "n",
|
|
1773
|
-
"description": "Name of the Function to add",
|
|
1774
|
-
"name": "name",
|
|
1775
|
-
"hasDynamicHelp": false,
|
|
1776
|
-
"multiple": false,
|
|
1777
|
-
"type": "option"
|
|
1778
|
-
},
|
|
1779
|
-
"type": {
|
|
1780
|
-
"dependsOn": [
|
|
1781
|
-
"name"
|
|
1782
|
-
],
|
|
1783
|
-
"description": "Document change event(s) that should trigger the function; you can specify multiple events by specifying this flag multiple times",
|
|
1784
|
-
"name": "type",
|
|
1785
|
-
"hasDynamicHelp": false,
|
|
1786
|
-
"multiple": true,
|
|
1787
|
-
"options": [
|
|
1788
|
-
"document-publish",
|
|
1789
|
-
"document-create",
|
|
1790
|
-
"document-delete",
|
|
1791
|
-
"document-update",
|
|
1792
|
-
"media-library-asset-create",
|
|
1793
|
-
"media-library-asset-delete",
|
|
1794
|
-
"media-library-asset-update",
|
|
1795
|
-
"scheduled-function",
|
|
1796
|
-
"sync-tag-invalidate"
|
|
2331
|
+
"follow"
|
|
1797
2332
|
],
|
|
1798
|
-
"
|
|
2333
|
+
"char": "w",
|
|
2334
|
+
"description": "Watch for new Stack logs",
|
|
2335
|
+
"name": "watch",
|
|
2336
|
+
"allowNo": false,
|
|
2337
|
+
"type": "boolean"
|
|
1799
2338
|
},
|
|
1800
|
-
"
|
|
1801
|
-
"
|
|
1802
|
-
|
|
2339
|
+
"limit": {
|
|
2340
|
+
"char": "l",
|
|
2341
|
+
"description": "Maximum number of log entries to retrieve (1-500)",
|
|
2342
|
+
"exclusive": [
|
|
2343
|
+
"watch"
|
|
1803
2344
|
],
|
|
1804
|
-
"
|
|
1805
|
-
"name": "language",
|
|
1806
|
-
"default": "ts",
|
|
2345
|
+
"name": "limit",
|
|
1807
2346
|
"hasDynamicHelp": false,
|
|
1808
2347
|
"multiple": false,
|
|
1809
|
-
"options": [
|
|
1810
|
-
"ts",
|
|
1811
|
-
"js"
|
|
1812
|
-
],
|
|
1813
2348
|
"type": "option"
|
|
1814
2349
|
},
|
|
1815
|
-
"
|
|
1816
|
-
"
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
"description": "Use JavaScript instead of TypeScript",
|
|
1820
|
-
"exclusive": [
|
|
1821
|
-
"language"
|
|
1822
|
-
],
|
|
1823
|
-
"name": "javascript",
|
|
1824
|
-
"allowNo": false,
|
|
1825
|
-
"type": "boolean"
|
|
1826
|
-
},
|
|
1827
|
-
"helpers": {
|
|
1828
|
-
"description": "Add helpers to the new Function",
|
|
1829
|
-
"name": "helpers",
|
|
1830
|
-
"allowNo": true,
|
|
1831
|
-
"type": "boolean"
|
|
1832
|
-
},
|
|
1833
|
-
"installer": {
|
|
1834
|
-
"description": "How to install the @sanity/functions helpers",
|
|
1835
|
-
"name": "installer",
|
|
1836
|
-
"hasDynamicHelp": false,
|
|
1837
|
-
"multiple": false,
|
|
1838
|
-
"options": [
|
|
1839
|
-
"skip",
|
|
1840
|
-
"npm",
|
|
1841
|
-
"pnpm",
|
|
1842
|
-
"yarn"
|
|
2350
|
+
"since": {
|
|
2351
|
+
"description": "Only show logs after this ISO 8601 timestamp",
|
|
2352
|
+
"exclusive": [
|
|
2353
|
+
"watch"
|
|
1843
2354
|
],
|
|
2355
|
+
"name": "since",
|
|
2356
|
+
"hasDynamicHelp": false,
|
|
2357
|
+
"multiple": false,
|
|
1844
2358
|
"type": "option"
|
|
1845
2359
|
},
|
|
1846
|
-
"
|
|
1847
|
-
"
|
|
1848
|
-
"description": "Shortcut for --fn-installer npm",
|
|
2360
|
+
"before": {
|
|
2361
|
+
"description": "Only show logs before this ISO 8601 timestamp",
|
|
1849
2362
|
"exclusive": [
|
|
1850
|
-
"
|
|
2363
|
+
"watch"
|
|
1851
2364
|
],
|
|
1852
|
-
"name": "
|
|
1853
|
-
"
|
|
1854
|
-
"
|
|
2365
|
+
"name": "before",
|
|
2366
|
+
"hasDynamicHelp": false,
|
|
2367
|
+
"multiple": false,
|
|
2368
|
+
"type": "option"
|
|
1855
2369
|
}
|
|
1856
2370
|
},
|
|
1857
2371
|
"hasDynamicHelp": false,
|
|
1858
2372
|
"hiddenAliases": [],
|
|
1859
|
-
"id": "
|
|
2373
|
+
"id": "blueprints:logs",
|
|
1860
2374
|
"pluginAlias": "@sanity/runtime-cli",
|
|
1861
2375
|
"pluginName": "@sanity/runtime-cli",
|
|
1862
2376
|
"pluginType": "core",
|
|
1863
2377
|
"strict": true,
|
|
1864
|
-
"summary": "
|
|
2378
|
+
"summary": "Display logs for the current Blueprint's Stack deployment",
|
|
1865
2379
|
"enableJsonFlag": true,
|
|
1866
2380
|
"needs": [
|
|
1867
|
-
"
|
|
2381
|
+
"deployedStack"
|
|
1868
2382
|
],
|
|
1869
2383
|
"isESM": true,
|
|
1870
2384
|
"relativePath": [
|
|
1871
2385
|
"dist",
|
|
1872
2386
|
"commands",
|
|
1873
|
-
"
|
|
1874
|
-
"
|
|
2387
|
+
"blueprints",
|
|
2388
|
+
"logs.js"
|
|
1875
2389
|
]
|
|
1876
2390
|
},
|
|
1877
|
-
"
|
|
2391
|
+
"blueprints:mint-deploy-token": {
|
|
1878
2392
|
"aliases": [],
|
|
1879
|
-
"args": {
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
2393
|
+
"args": {},
|
|
2394
|
+
"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.",
|
|
2395
|
+
"examples": [
|
|
2396
|
+
"<%= config.bin %> <%= command.id %>",
|
|
2397
|
+
"<%= config.bin %> <%= command.id %> --label \"ci-deploy\"",
|
|
2398
|
+
"<%= config.bin %> <%= command.id %> --print",
|
|
2399
|
+
"export SANITY_AUTH_TOKEN=$(<%= config.bin %> <%= command.id %> --print)",
|
|
2400
|
+
"<%= config.bin %> <%= command.id %> --json",
|
|
2401
|
+
"<%= config.bin %> <%= command.id %> --project-id <projectId>",
|
|
2402
|
+
"<%= config.bin %> <%= command.id %> --organization-id <orgId>"
|
|
2403
|
+
],
|
|
1886
2404
|
"flags": {
|
|
1887
2405
|
"json": {
|
|
1888
2406
|
"description": "Format output as json",
|
|
@@ -1890,6 +2408,16 @@
|
|
|
1890
2408
|
"allowNo": false,
|
|
1891
2409
|
"type": "boolean"
|
|
1892
2410
|
},
|
|
2411
|
+
"llms": {
|
|
2412
|
+
"aliases": [
|
|
2413
|
+
"skill"
|
|
2414
|
+
],
|
|
2415
|
+
"description": "Show agent-oriented guidance for this command",
|
|
2416
|
+
"hidden": true,
|
|
2417
|
+
"name": "llms",
|
|
2418
|
+
"allowNo": false,
|
|
2419
|
+
"type": "boolean"
|
|
2420
|
+
},
|
|
1893
2421
|
"path": {
|
|
1894
2422
|
"aliases": [
|
|
1895
2423
|
"blueprint-path"
|
|
@@ -1941,7 +2469,6 @@
|
|
|
1941
2469
|
"exclusive": [
|
|
1942
2470
|
"organization-id"
|
|
1943
2471
|
],
|
|
1944
|
-
"hidden": true,
|
|
1945
2472
|
"name": "project-id",
|
|
1946
2473
|
"hasDynamicHelp": false,
|
|
1947
2474
|
"multiple": false,
|
|
@@ -1957,66 +2484,57 @@
|
|
|
1957
2484
|
"exclusive": [
|
|
1958
2485
|
"project-id"
|
|
1959
2486
|
],
|
|
1960
|
-
"hidden": true,
|
|
1961
2487
|
"name": "organization-id",
|
|
1962
2488
|
"hasDynamicHelp": false,
|
|
1963
2489
|
"multiple": false,
|
|
1964
2490
|
"type": "option"
|
|
1965
2491
|
},
|
|
1966
|
-
"
|
|
1967
|
-
"
|
|
1968
|
-
|
|
1969
|
-
"installer"
|
|
1970
|
-
],
|
|
1971
|
-
"description": "Which package manager to use when building Functions",
|
|
1972
|
-
"hidden": true,
|
|
1973
|
-
"name": "fn-installer",
|
|
2492
|
+
"label": {
|
|
2493
|
+
"description": "Human-readable label for the robot. Defaults to a generated value.",
|
|
2494
|
+
"name": "label",
|
|
1974
2495
|
"hasDynamicHelp": false,
|
|
1975
2496
|
"multiple": false,
|
|
1976
|
-
"options": [
|
|
1977
|
-
"npm",
|
|
1978
|
-
"pnpm",
|
|
1979
|
-
"yarn"
|
|
1980
|
-
],
|
|
1981
2497
|
"type": "option"
|
|
1982
2498
|
},
|
|
1983
|
-
"
|
|
1984
|
-
"char": "
|
|
1985
|
-
"description": "
|
|
1986
|
-
"
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
"
|
|
2499
|
+
"print": {
|
|
2500
|
+
"char": "P",
|
|
2501
|
+
"description": "Print only the raw token to stdout (suitable for shell substitution)",
|
|
2502
|
+
"exclusive": [
|
|
2503
|
+
"json"
|
|
2504
|
+
],
|
|
2505
|
+
"name": "print",
|
|
2506
|
+
"allowNo": false,
|
|
2507
|
+
"type": "boolean"
|
|
1990
2508
|
}
|
|
1991
2509
|
},
|
|
1992
2510
|
"hasDynamicHelp": false,
|
|
1993
|
-
"hidden": true,
|
|
1994
2511
|
"hiddenAliases": [],
|
|
1995
|
-
"id": "
|
|
2512
|
+
"id": "blueprints:mint-deploy-token",
|
|
1996
2513
|
"pluginAlias": "@sanity/runtime-cli",
|
|
1997
2514
|
"pluginName": "@sanity/runtime-cli",
|
|
1998
2515
|
"pluginType": "core",
|
|
1999
2516
|
"strict": true,
|
|
2000
|
-
"summary": "
|
|
2517
|
+
"summary": "Create a robot API token for deploying Blueprints from CI/CD",
|
|
2001
2518
|
"enableJsonFlag": true,
|
|
2002
2519
|
"needs": [
|
|
2003
|
-
"
|
|
2520
|
+
"scope"
|
|
2004
2521
|
],
|
|
2005
2522
|
"isESM": true,
|
|
2006
2523
|
"relativePath": [
|
|
2007
2524
|
"dist",
|
|
2008
2525
|
"commands",
|
|
2009
|
-
"
|
|
2010
|
-
"
|
|
2526
|
+
"blueprints",
|
|
2527
|
+
"mint-deploy-token.js"
|
|
2011
2528
|
]
|
|
2012
2529
|
},
|
|
2013
|
-
"
|
|
2530
|
+
"blueprints:plan": {
|
|
2014
2531
|
"aliases": [],
|
|
2015
2532
|
"args": {},
|
|
2016
|
-
"description": "
|
|
2533
|
+
"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.",
|
|
2017
2534
|
"examples": [
|
|
2018
|
-
"<%= config.bin %> <%= command.id %>
|
|
2019
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2535
|
+
"<%= config.bin %> <%= command.id %>",
|
|
2536
|
+
"<%= config.bin %> <%= command.id %> --stack <name-or-id>",
|
|
2537
|
+
"<%= config.bin %> <%= command.id %> --organization-id <orgId> --stack <name-or-id>"
|
|
2020
2538
|
],
|
|
2021
2539
|
"flags": {
|
|
2022
2540
|
"json": {
|
|
@@ -2025,6 +2543,16 @@
|
|
|
2025
2543
|
"allowNo": false,
|
|
2026
2544
|
"type": "boolean"
|
|
2027
2545
|
},
|
|
2546
|
+
"llms": {
|
|
2547
|
+
"aliases": [
|
|
2548
|
+
"skill"
|
|
2549
|
+
],
|
|
2550
|
+
"description": "Show agent-oriented guidance for this command",
|
|
2551
|
+
"hidden": true,
|
|
2552
|
+
"name": "llms",
|
|
2553
|
+
"allowNo": false,
|
|
2554
|
+
"type": "boolean"
|
|
2555
|
+
},
|
|
2028
2556
|
"path": {
|
|
2029
2557
|
"aliases": [
|
|
2030
2558
|
"blueprint-path"
|
|
@@ -2061,7 +2589,6 @@
|
|
|
2061
2589
|
},
|
|
2062
2590
|
"stack": {
|
|
2063
2591
|
"description": "Stack name or ID to use instead of the locally configured Stack",
|
|
2064
|
-
"hidden": true,
|
|
2065
2592
|
"name": "stack",
|
|
2066
2593
|
"hasDynamicHelp": false,
|
|
2067
2594
|
"multiple": false,
|
|
@@ -2076,7 +2603,6 @@
|
|
|
2076
2603
|
"exclusive": [
|
|
2077
2604
|
"organization-id"
|
|
2078
2605
|
],
|
|
2079
|
-
"hidden": true,
|
|
2080
2606
|
"name": "project-id",
|
|
2081
2607
|
"hasDynamicHelp": false,
|
|
2082
2608
|
"multiple": false,
|
|
@@ -2092,75 +2618,42 @@
|
|
|
2092
2618
|
"exclusive": [
|
|
2093
2619
|
"project-id"
|
|
2094
2620
|
],
|
|
2095
|
-
"hidden": true,
|
|
2096
2621
|
"name": "organization-id",
|
|
2097
2622
|
"hasDynamicHelp": false,
|
|
2098
2623
|
"multiple": false,
|
|
2099
2624
|
"type": "option"
|
|
2100
|
-
},
|
|
2101
|
-
"host": {
|
|
2102
|
-
"char": "h",
|
|
2103
|
-
"description": "The local network interface at which to listen. [default: \"localhost\"]",
|
|
2104
|
-
"name": "host",
|
|
2105
|
-
"required": false,
|
|
2106
|
-
"hasDynamicHelp": false,
|
|
2107
|
-
"multiple": false,
|
|
2108
|
-
"type": "option"
|
|
2109
|
-
},
|
|
2110
|
-
"port": {
|
|
2111
|
-
"char": "p",
|
|
2112
|
-
"description": "TCP port to start emulator on. [default: 8080]",
|
|
2113
|
-
"name": "port",
|
|
2114
|
-
"required": false,
|
|
2115
|
-
"hasDynamicHelp": false,
|
|
2116
|
-
"multiple": false,
|
|
2117
|
-
"type": "option"
|
|
2118
|
-
},
|
|
2119
|
-
"timeout": {
|
|
2120
|
-
"char": "t",
|
|
2121
|
-
"description": "Maximum execution time for all functions, in seconds. Takes precedence over function-specific `timeout`",
|
|
2122
|
-
"name": "timeout",
|
|
2123
|
-
"required": false,
|
|
2124
|
-
"hasDynamicHelp": false,
|
|
2125
|
-
"multiple": false,
|
|
2126
|
-
"type": "option"
|
|
2127
2625
|
}
|
|
2128
2626
|
},
|
|
2129
2627
|
"hasDynamicHelp": false,
|
|
2130
2628
|
"hiddenAliases": [],
|
|
2131
|
-
"id": "
|
|
2629
|
+
"id": "blueprints:plan",
|
|
2132
2630
|
"pluginAlias": "@sanity/runtime-cli",
|
|
2133
2631
|
"pluginName": "@sanity/runtime-cli",
|
|
2134
2632
|
"pluginType": "core",
|
|
2135
2633
|
"strict": true,
|
|
2136
|
-
"summary": "
|
|
2634
|
+
"summary": "Preview changes that will be applied to the remote Stack",
|
|
2137
2635
|
"enableJsonFlag": true,
|
|
2138
2636
|
"needs": [
|
|
2637
|
+
"token",
|
|
2139
2638
|
"blueprint"
|
|
2140
2639
|
],
|
|
2141
2640
|
"isESM": true,
|
|
2142
2641
|
"relativePath": [
|
|
2143
2642
|
"dist",
|
|
2144
2643
|
"commands",
|
|
2145
|
-
"
|
|
2146
|
-
"
|
|
2644
|
+
"blueprints",
|
|
2645
|
+
"plan.js"
|
|
2147
2646
|
]
|
|
2148
2647
|
},
|
|
2149
|
-
"
|
|
2648
|
+
"blueprints:promote": {
|
|
2150
2649
|
"aliases": [],
|
|
2151
|
-
"args": {
|
|
2152
|
-
|
|
2153
|
-
"description": "The name of the Sanity Function",
|
|
2154
|
-
"name": "name",
|
|
2155
|
-
"required": false
|
|
2156
|
-
}
|
|
2157
|
-
},
|
|
2158
|
-
"description": "Fetches execution logs from a deployed function, useful for debugging production issues or monitoring activity.\n\nUse --watch (-w) to stream logs in real-time. Use --delete to clear all logs for a function (requires confirmation unless --force is specified).",
|
|
2650
|
+
"args": {},
|
|
2651
|
+
"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.",
|
|
2159
2652
|
"examples": [
|
|
2160
|
-
"<%= config.bin %> <%= command.id %>
|
|
2161
|
-
"<%= config.bin %> <%= command.id %> <name>
|
|
2162
|
-
"<%= config.bin %> <%= command.id %> <
|
|
2163
|
-
"<%= config.bin %> <%= command.id %> <name>
|
|
2653
|
+
"<%= config.bin %> <%= command.id %>",
|
|
2654
|
+
"<%= config.bin %> <%= command.id %> --stack <name-or-id>",
|
|
2655
|
+
"<%= config.bin %> <%= command.id %> --project-id <projectId> --stack <name-or-id>",
|
|
2656
|
+
"<%= config.bin %> <%= command.id %> --new-stack-name <new-name>"
|
|
2164
2657
|
],
|
|
2165
2658
|
"flags": {
|
|
2166
2659
|
"json": {
|
|
@@ -2169,6 +2662,16 @@
|
|
|
2169
2662
|
"allowNo": false,
|
|
2170
2663
|
"type": "boolean"
|
|
2171
2664
|
},
|
|
2665
|
+
"llms": {
|
|
2666
|
+
"aliases": [
|
|
2667
|
+
"skill"
|
|
2668
|
+
],
|
|
2669
|
+
"description": "Show agent-oriented guidance for this command",
|
|
2670
|
+
"hidden": true,
|
|
2671
|
+
"name": "llms",
|
|
2672
|
+
"allowNo": false,
|
|
2673
|
+
"type": "boolean"
|
|
2674
|
+
},
|
|
2172
2675
|
"path": {
|
|
2173
2676
|
"aliases": [
|
|
2174
2677
|
"blueprint-path"
|
|
@@ -2204,7 +2707,10 @@
|
|
|
2204
2707
|
"type": "boolean"
|
|
2205
2708
|
},
|
|
2206
2709
|
"stack": {
|
|
2207
|
-
"
|
|
2710
|
+
"aliases": [
|
|
2711
|
+
"id"
|
|
2712
|
+
],
|
|
2713
|
+
"description": "Stack name or ID to promote",
|
|
2208
2714
|
"name": "stack",
|
|
2209
2715
|
"hasDynamicHelp": false,
|
|
2210
2716
|
"multiple": false,
|
|
@@ -2219,7 +2725,6 @@
|
|
|
2219
2725
|
"exclusive": [
|
|
2220
2726
|
"organization-id"
|
|
2221
2727
|
],
|
|
2222
|
-
"hidden": true,
|
|
2223
2728
|
"name": "project-id",
|
|
2224
2729
|
"hasDynamicHelp": false,
|
|
2225
2730
|
"multiple": false,
|
|
@@ -2241,66 +2746,28 @@
|
|
|
2241
2746
|
"multiple": false,
|
|
2242
2747
|
"type": "option"
|
|
2243
2748
|
},
|
|
2244
|
-
"limit": {
|
|
2245
|
-
"char": "l",
|
|
2246
|
-
"description": "Total number of log entries to retrieve",
|
|
2247
|
-
"name": "limit",
|
|
2248
|
-
"required": false,
|
|
2249
|
-
"default": 50,
|
|
2250
|
-
"hasDynamicHelp": false,
|
|
2251
|
-
"multiple": false,
|
|
2252
|
-
"type": "option"
|
|
2253
|
-
},
|
|
2254
|
-
"utc": {
|
|
2255
|
-
"char": "u",
|
|
2256
|
-
"description": "Show dates in UTC time zone",
|
|
2257
|
-
"name": "utc",
|
|
2258
|
-
"required": false,
|
|
2259
|
-
"allowNo": false,
|
|
2260
|
-
"type": "boolean"
|
|
2261
|
-
},
|
|
2262
|
-
"delete": {
|
|
2263
|
-
"char": "d",
|
|
2264
|
-
"description": "Delete all logs for the function",
|
|
2265
|
-
"exclusive": [
|
|
2266
|
-
"limit",
|
|
2267
|
-
"json"
|
|
2268
|
-
],
|
|
2269
|
-
"name": "delete",
|
|
2270
|
-
"required": false,
|
|
2271
|
-
"allowNo": false,
|
|
2272
|
-
"type": "boolean"
|
|
2273
|
-
},
|
|
2274
2749
|
"force": {
|
|
2275
|
-
"
|
|
2276
|
-
"dependsOn": [
|
|
2277
|
-
"delete"
|
|
2278
|
-
],
|
|
2279
|
-
"description": "Skip confirmation for deleting logs",
|
|
2750
|
+
"description": "Skip confirmation prompt",
|
|
2280
2751
|
"name": "force",
|
|
2281
|
-
"required": false,
|
|
2282
2752
|
"allowNo": false,
|
|
2283
2753
|
"type": "boolean"
|
|
2284
2754
|
},
|
|
2285
|
-
"
|
|
2286
|
-
"
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
"
|
|
2290
|
-
"
|
|
2291
|
-
"name": "watch",
|
|
2292
|
-
"allowNo": false,
|
|
2293
|
-
"type": "boolean"
|
|
2755
|
+
"new-stack-name": {
|
|
2756
|
+
"description": "Set a new name for the Stack while promoting",
|
|
2757
|
+
"name": "new-stack-name",
|
|
2758
|
+
"hasDynamicHelp": false,
|
|
2759
|
+
"multiple": false,
|
|
2760
|
+
"type": "option"
|
|
2294
2761
|
}
|
|
2295
2762
|
},
|
|
2296
2763
|
"hasDynamicHelp": false,
|
|
2297
2764
|
"hiddenAliases": [],
|
|
2298
|
-
"id": "
|
|
2765
|
+
"id": "blueprints:promote",
|
|
2299
2766
|
"pluginAlias": "@sanity/runtime-cli",
|
|
2300
2767
|
"pluginName": "@sanity/runtime-cli",
|
|
2301
2768
|
"pluginType": "core",
|
|
2302
2769
|
"strict": true,
|
|
2303
|
-
"summary": "
|
|
2770
|
+
"summary": "Promote a Stack from project scope to organization scope",
|
|
2304
2771
|
"enableJsonFlag": true,
|
|
2305
2772
|
"needs": [
|
|
2306
2773
|
"deployedStack",
|
|
@@ -2310,25 +2777,19 @@
|
|
|
2310
2777
|
"relativePath": [
|
|
2311
2778
|
"dist",
|
|
2312
2779
|
"commands",
|
|
2313
|
-
"
|
|
2314
|
-
"
|
|
2780
|
+
"blueprints",
|
|
2781
|
+
"promote.js"
|
|
2315
2782
|
]
|
|
2316
2783
|
},
|
|
2317
|
-
"
|
|
2784
|
+
"blueprints:stacks": {
|
|
2318
2785
|
"aliases": [],
|
|
2319
|
-
"args": {
|
|
2320
|
-
|
|
2321
|
-
"description": "The name of the Sanity Function",
|
|
2322
|
-
"name": "name",
|
|
2323
|
-
"required": false
|
|
2324
|
-
}
|
|
2325
|
-
},
|
|
2326
|
-
"description": "Executes a function locally with the provided payload, simulating how it would run when deployed. Use this to test your function logic before deploying.\n\nProvide test data via --data (inline JSON), --file (JSON file), or --document-id (fetch from Sanity). For update events, use the before/after flag pairs to simulate document changes.",
|
|
2786
|
+
"args": {},
|
|
2787
|
+
"description": "Shows all Stacks associated with a project or organization. By default, lists Stacks scoped to the local Blueprint.\n\nUse this to discover existing Stacks you can scope a local Blueprint to (using 'blueprints config --edit'), or to audit what's deployed across your project.\n\nUse --include-projects with --organization-id to also list Stacks from all projects within the organization.",
|
|
2327
2788
|
"examples": [
|
|
2328
|
-
"<%= config.bin %> <%= command.id %>
|
|
2329
|
-
"<%= config.bin %> <%= command.id %> <
|
|
2330
|
-
"<%= config.bin %> <%= command.id %>
|
|
2331
|
-
"<%= config.bin %> <%= command.id %>
|
|
2789
|
+
"<%= config.bin %> <%= command.id %>",
|
|
2790
|
+
"<%= config.bin %> <%= command.id %> --project-id <projectId>",
|
|
2791
|
+
"<%= config.bin %> <%= command.id %> --organization-id <organizationId>",
|
|
2792
|
+
"<%= config.bin %> <%= command.id %> --organization-id <organizationId> --include-projects"
|
|
2332
2793
|
],
|
|
2333
2794
|
"flags": {
|
|
2334
2795
|
"json": {
|
|
@@ -2337,6 +2798,16 @@
|
|
|
2337
2798
|
"allowNo": false,
|
|
2338
2799
|
"type": "boolean"
|
|
2339
2800
|
},
|
|
2801
|
+
"llms": {
|
|
2802
|
+
"aliases": [
|
|
2803
|
+
"skill"
|
|
2804
|
+
],
|
|
2805
|
+
"description": "Show agent-oriented guidance for this command",
|
|
2806
|
+
"hidden": true,
|
|
2807
|
+
"name": "llms",
|
|
2808
|
+
"allowNo": false,
|
|
2809
|
+
"type": "boolean"
|
|
2810
|
+
},
|
|
2340
2811
|
"path": {
|
|
2341
2812
|
"aliases": [
|
|
2342
2813
|
"blueprint-path"
|
|
@@ -2386,7 +2857,8 @@
|
|
|
2386
2857
|
],
|
|
2387
2858
|
"description": "Sanity project ID used to scope Blueprint and Stack",
|
|
2388
2859
|
"exclusive": [
|
|
2389
|
-
"organization-id"
|
|
2860
|
+
"organization-id",
|
|
2861
|
+
"include-projects"
|
|
2390
2862
|
],
|
|
2391
2863
|
"name": "project-id",
|
|
2392
2864
|
"hasDynamicHelp": false,
|
|
@@ -2408,230 +2880,34 @@
|
|
|
2408
2880
|
"multiple": false,
|
|
2409
2881
|
"type": "option"
|
|
2410
2882
|
},
|
|
2411
|
-
"
|
|
2412
|
-
"
|
|
2413
|
-
|
|
2414
|
-
"exclusive": [
|
|
2415
|
-
"file",
|
|
2416
|
-
"document-id"
|
|
2417
|
-
],
|
|
2418
|
-
"name": "data",
|
|
2419
|
-
"required": false,
|
|
2420
|
-
"hasDynamicHelp": false,
|
|
2421
|
-
"multiple": false,
|
|
2422
|
-
"type": "option"
|
|
2423
|
-
},
|
|
2424
|
-
"data-before": {
|
|
2425
|
-
"description": "Original document",
|
|
2426
|
-
"exclusive": [
|
|
2427
|
-
"data",
|
|
2428
|
-
"file",
|
|
2429
|
-
"document-id",
|
|
2430
|
-
"file-before",
|
|
2431
|
-
"file-after",
|
|
2432
|
-
"document-id-before",
|
|
2433
|
-
"document-id-after"
|
|
2434
|
-
],
|
|
2435
|
-
"name": "data-before",
|
|
2436
|
-
"required": false,
|
|
2437
|
-
"hasDynamicHelp": false,
|
|
2438
|
-
"multiple": false,
|
|
2439
|
-
"type": "option"
|
|
2440
|
-
},
|
|
2441
|
-
"data-after": {
|
|
2442
|
-
"description": "Current document",
|
|
2443
|
-
"exclusive": [
|
|
2444
|
-
"data",
|
|
2445
|
-
"file",
|
|
2446
|
-
"document-id",
|
|
2447
|
-
"file-before",
|
|
2448
|
-
"file-after",
|
|
2449
|
-
"document-id-before",
|
|
2450
|
-
"document-id-after"
|
|
2451
|
-
],
|
|
2452
|
-
"name": "data-after",
|
|
2453
|
-
"required": false,
|
|
2454
|
-
"hasDynamicHelp": false,
|
|
2455
|
-
"multiple": false,
|
|
2456
|
-
"type": "option"
|
|
2457
|
-
},
|
|
2458
|
-
"event": {
|
|
2459
|
-
"char": "e",
|
|
2460
|
-
"description": "Type of event (create, update, delete)",
|
|
2461
|
-
"name": "event",
|
|
2462
|
-
"required": false,
|
|
2463
|
-
"hasDynamicHelp": false,
|
|
2464
|
-
"multiple": false,
|
|
2465
|
-
"options": [
|
|
2466
|
-
"create",
|
|
2467
|
-
"update",
|
|
2468
|
-
"delete"
|
|
2469
|
-
],
|
|
2470
|
-
"type": "option"
|
|
2471
|
-
},
|
|
2472
|
-
"file": {
|
|
2473
|
-
"char": "f",
|
|
2474
|
-
"description": "Read data from file and send to the function",
|
|
2475
|
-
"exclusive": [
|
|
2476
|
-
"data",
|
|
2477
|
-
"document-id"
|
|
2478
|
-
],
|
|
2479
|
-
"name": "file",
|
|
2480
|
-
"required": false,
|
|
2481
|
-
"hasDynamicHelp": false,
|
|
2482
|
-
"multiple": false,
|
|
2483
|
-
"type": "option"
|
|
2484
|
-
},
|
|
2485
|
-
"file-before": {
|
|
2486
|
-
"description": "Original document",
|
|
2487
|
-
"exclusive": [
|
|
2488
|
-
"data",
|
|
2489
|
-
"file",
|
|
2490
|
-
"document-id",
|
|
2491
|
-
"data-before",
|
|
2492
|
-
"data-after",
|
|
2493
|
-
"document-id-before",
|
|
2494
|
-
"document-id-after"
|
|
2495
|
-
],
|
|
2496
|
-
"name": "file-before",
|
|
2497
|
-
"required": false,
|
|
2498
|
-
"hasDynamicHelp": false,
|
|
2499
|
-
"multiple": false,
|
|
2500
|
-
"type": "option"
|
|
2501
|
-
},
|
|
2502
|
-
"file-after": {
|
|
2503
|
-
"description": "Current document",
|
|
2504
|
-
"exclusive": [
|
|
2505
|
-
"data",
|
|
2506
|
-
"file",
|
|
2507
|
-
"document-id",
|
|
2508
|
-
"data-before",
|
|
2509
|
-
"data-after",
|
|
2510
|
-
"document-id-before",
|
|
2511
|
-
"document-id-after"
|
|
2512
|
-
],
|
|
2513
|
-
"name": "file-after",
|
|
2514
|
-
"required": false,
|
|
2515
|
-
"hasDynamicHelp": false,
|
|
2516
|
-
"multiple": false,
|
|
2517
|
-
"type": "option"
|
|
2518
|
-
},
|
|
2519
|
-
"timeout": {
|
|
2520
|
-
"char": "t",
|
|
2521
|
-
"description": "Execution timeout value in seconds",
|
|
2522
|
-
"name": "timeout",
|
|
2523
|
-
"required": false,
|
|
2524
|
-
"hasDynamicHelp": false,
|
|
2525
|
-
"multiple": false,
|
|
2526
|
-
"type": "option"
|
|
2527
|
-
},
|
|
2528
|
-
"api": {
|
|
2529
|
-
"char": "a",
|
|
2530
|
-
"description": "Sanity API Version to use",
|
|
2531
|
-
"name": "api",
|
|
2532
|
-
"required": false,
|
|
2533
|
-
"hasDynamicHelp": false,
|
|
2534
|
-
"multiple": false,
|
|
2535
|
-
"type": "option"
|
|
2536
|
-
},
|
|
2537
|
-
"dataset": {
|
|
2538
|
-
"description": "The Sanity dataset to use",
|
|
2539
|
-
"name": "dataset",
|
|
2540
|
-
"required": false,
|
|
2541
|
-
"hasDynamicHelp": false,
|
|
2542
|
-
"multiple": false,
|
|
2543
|
-
"type": "option"
|
|
2544
|
-
},
|
|
2545
|
-
"document-id": {
|
|
2546
|
-
"aliases": [
|
|
2547
|
-
"doc",
|
|
2548
|
-
"documentId"
|
|
2549
|
-
],
|
|
2550
|
-
"description": "Document to fetch and send to function",
|
|
2551
|
-
"exclusive": [
|
|
2552
|
-
"data",
|
|
2553
|
-
"file"
|
|
2554
|
-
],
|
|
2555
|
-
"name": "document-id",
|
|
2556
|
-
"required": false,
|
|
2557
|
-
"hasDynamicHelp": false,
|
|
2558
|
-
"multiple": false,
|
|
2559
|
-
"type": "option"
|
|
2560
|
-
},
|
|
2561
|
-
"document-id-before": {
|
|
2562
|
-
"description": "Original document",
|
|
2563
|
-
"exclusive": [
|
|
2564
|
-
"data",
|
|
2565
|
-
"file",
|
|
2566
|
-
"document-id",
|
|
2567
|
-
"data-before",
|
|
2568
|
-
"data-after",
|
|
2569
|
-
"file-before",
|
|
2570
|
-
"file-after"
|
|
2571
|
-
],
|
|
2572
|
-
"name": "document-id-before",
|
|
2573
|
-
"required": false,
|
|
2574
|
-
"hasDynamicHelp": false,
|
|
2575
|
-
"multiple": false,
|
|
2576
|
-
"type": "option"
|
|
2577
|
-
},
|
|
2578
|
-
"document-id-after": {
|
|
2579
|
-
"description": "Current document",
|
|
2580
|
-
"exclusive": [
|
|
2581
|
-
"data",
|
|
2582
|
-
"file",
|
|
2583
|
-
"document-id",
|
|
2584
|
-
"data-before",
|
|
2585
|
-
"data-after",
|
|
2586
|
-
"file-before",
|
|
2587
|
-
"file-after"
|
|
2883
|
+
"include-projects": {
|
|
2884
|
+
"dependsOn": [
|
|
2885
|
+
"organization-id"
|
|
2588
2886
|
],
|
|
2589
|
-
"
|
|
2590
|
-
"
|
|
2591
|
-
"hasDynamicHelp": false,
|
|
2592
|
-
"multiple": false,
|
|
2593
|
-
"type": "option"
|
|
2594
|
-
},
|
|
2595
|
-
"with-user-token": {
|
|
2596
|
-
"description": "Prime access token from CLI config",
|
|
2597
|
-
"name": "with-user-token",
|
|
2887
|
+
"description": "Include Stacks from all projects within the organization. Requires --organization-id.",
|
|
2888
|
+
"name": "include-projects",
|
|
2598
2889
|
"allowNo": false,
|
|
2599
2890
|
"type": "boolean"
|
|
2600
|
-
},
|
|
2601
|
-
"media-library-id": {
|
|
2602
|
-
"aliases": [
|
|
2603
|
-
"media"
|
|
2604
|
-
],
|
|
2605
|
-
"description": "Sanity Media Library ID to use",
|
|
2606
|
-
"exclusive": [
|
|
2607
|
-
"project-id",
|
|
2608
|
-
"dataset"
|
|
2609
|
-
],
|
|
2610
|
-
"name": "media-library-id",
|
|
2611
|
-
"required": false,
|
|
2612
|
-
"hasDynamicHelp": false,
|
|
2613
|
-
"multiple": false,
|
|
2614
|
-
"type": "option"
|
|
2615
2891
|
}
|
|
2616
2892
|
},
|
|
2617
2893
|
"hasDynamicHelp": false,
|
|
2618
2894
|
"hiddenAliases": [],
|
|
2619
|
-
"id": "
|
|
2895
|
+
"id": "blueprints:stacks",
|
|
2620
2896
|
"pluginAlias": "@sanity/runtime-cli",
|
|
2621
2897
|
"pluginName": "@sanity/runtime-cli",
|
|
2622
2898
|
"pluginType": "core",
|
|
2623
2899
|
"strict": true,
|
|
2624
|
-
"summary": "
|
|
2900
|
+
"summary": "List remote Stack deployments for your project or organization",
|
|
2625
2901
|
"enableJsonFlag": true,
|
|
2626
2902
|
"needs": [
|
|
2627
|
-
"
|
|
2903
|
+
"scope"
|
|
2628
2904
|
],
|
|
2629
2905
|
"isESM": true,
|
|
2630
2906
|
"relativePath": [
|
|
2631
2907
|
"dist",
|
|
2632
2908
|
"commands",
|
|
2633
|
-
"
|
|
2634
|
-
"
|
|
2909
|
+
"blueprints",
|
|
2910
|
+
"stacks.js"
|
|
2635
2911
|
]
|
|
2636
2912
|
},
|
|
2637
2913
|
"functions:env:add": {
|
|
@@ -2655,7 +2931,8 @@
|
|
|
2655
2931
|
},
|
|
2656
2932
|
"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.",
|
|
2657
2933
|
"examples": [
|
|
2658
|
-
"<%= config.bin %> <%= command.id %> MyFunction API_URL https://api.example.com/"
|
|
2934
|
+
"<%= config.bin %> <%= command.id %> MyFunction API_URL https://api.example.com/",
|
|
2935
|
+
"<%= config.bin %> <%= command.id %> --stack <name-or-id> MyFunction API_URL https://api.example.com/"
|
|
2659
2936
|
],
|
|
2660
2937
|
"flags": {
|
|
2661
2938
|
"json": {
|
|
@@ -2664,6 +2941,16 @@
|
|
|
2664
2941
|
"allowNo": false,
|
|
2665
2942
|
"type": "boolean"
|
|
2666
2943
|
},
|
|
2944
|
+
"llms": {
|
|
2945
|
+
"aliases": [
|
|
2946
|
+
"skill"
|
|
2947
|
+
],
|
|
2948
|
+
"description": "Show agent-oriented guidance for this command",
|
|
2949
|
+
"hidden": true,
|
|
2950
|
+
"name": "llms",
|
|
2951
|
+
"allowNo": false,
|
|
2952
|
+
"type": "boolean"
|
|
2953
|
+
},
|
|
2667
2954
|
"path": {
|
|
2668
2955
|
"aliases": [
|
|
2669
2956
|
"blueprint-path"
|
|
@@ -2700,7 +2987,6 @@
|
|
|
2700
2987
|
},
|
|
2701
2988
|
"stack": {
|
|
2702
2989
|
"description": "Stack name or ID to use instead of the locally configured Stack",
|
|
2703
|
-
"hidden": true,
|
|
2704
2990
|
"name": "stack",
|
|
2705
2991
|
"hasDynamicHelp": false,
|
|
2706
2992
|
"multiple": false,
|
|
@@ -2771,7 +3057,8 @@
|
|
|
2771
3057
|
},
|
|
2772
3058
|
"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.",
|
|
2773
3059
|
"examples": [
|
|
2774
|
-
"<%= config.bin %> <%= command.id %> MyFunction"
|
|
3060
|
+
"<%= config.bin %> <%= command.id %> MyFunction",
|
|
3061
|
+
"<%= config.bin %> <%= command.id %> --stack <name-or-id> MyFunction"
|
|
2775
3062
|
],
|
|
2776
3063
|
"flags": {
|
|
2777
3064
|
"json": {
|
|
@@ -2780,6 +3067,16 @@
|
|
|
2780
3067
|
"allowNo": false,
|
|
2781
3068
|
"type": "boolean"
|
|
2782
3069
|
},
|
|
3070
|
+
"llms": {
|
|
3071
|
+
"aliases": [
|
|
3072
|
+
"skill"
|
|
3073
|
+
],
|
|
3074
|
+
"description": "Show agent-oriented guidance for this command",
|
|
3075
|
+
"hidden": true,
|
|
3076
|
+
"name": "llms",
|
|
3077
|
+
"allowNo": false,
|
|
3078
|
+
"type": "boolean"
|
|
3079
|
+
},
|
|
2783
3080
|
"path": {
|
|
2784
3081
|
"aliases": [
|
|
2785
3082
|
"blueprint-path"
|
|
@@ -2816,7 +3113,6 @@
|
|
|
2816
3113
|
},
|
|
2817
3114
|
"stack": {
|
|
2818
3115
|
"description": "Stack name or ID to use instead of the locally configured Stack",
|
|
2819
|
-
"hidden": true,
|
|
2820
3116
|
"name": "stack",
|
|
2821
3117
|
"hasDynamicHelp": false,
|
|
2822
3118
|
"multiple": false,
|
|
@@ -2892,7 +3188,8 @@
|
|
|
2892
3188
|
},
|
|
2893
3189
|
"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.",
|
|
2894
3190
|
"examples": [
|
|
2895
|
-
"<%= config.bin %> <%= command.id %> MyFunction API_URL"
|
|
3191
|
+
"<%= config.bin %> <%= command.id %> MyFunction API_URL",
|
|
3192
|
+
"<%= config.bin %> <%= command.id %> --stack <name-or-id> MyFunction API_URL"
|
|
2896
3193
|
],
|
|
2897
3194
|
"flags": {
|
|
2898
3195
|
"json": {
|
|
@@ -2901,6 +3198,16 @@
|
|
|
2901
3198
|
"allowNo": false,
|
|
2902
3199
|
"type": "boolean"
|
|
2903
3200
|
},
|
|
3201
|
+
"llms": {
|
|
3202
|
+
"aliases": [
|
|
3203
|
+
"skill"
|
|
3204
|
+
],
|
|
3205
|
+
"description": "Show agent-oriented guidance for this command",
|
|
3206
|
+
"hidden": true,
|
|
3207
|
+
"name": "llms",
|
|
3208
|
+
"allowNo": false,
|
|
3209
|
+
"type": "boolean"
|
|
3210
|
+
},
|
|
2904
3211
|
"path": {
|
|
2905
3212
|
"aliases": [
|
|
2906
3213
|
"blueprint-path"
|
|
@@ -2937,7 +3244,6 @@
|
|
|
2937
3244
|
},
|
|
2938
3245
|
"stack": {
|
|
2939
3246
|
"description": "Stack name or ID to use instead of the locally configured Stack",
|
|
2940
|
-
"hidden": true,
|
|
2941
3247
|
"name": "stack",
|
|
2942
3248
|
"hasDynamicHelp": false,
|
|
2943
3249
|
"multiple": false,
|
|
@@ -2998,5 +3304,5 @@
|
|
|
2998
3304
|
]
|
|
2999
3305
|
}
|
|
3000
3306
|
},
|
|
3001
|
-
"version": "17.
|
|
3307
|
+
"version": "17.3.0-blueprinit.gaf4f184"
|
|
3002
3308
|
}
|