@sanity/cli 8.22.0 → 8.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/context/watchJob.js +9 -3
- package/dist/actions/context/watchJob.js.map +1 -1
- package/dist/actions/deploy/blueprintManaged.js +59 -0
- package/dist/actions/deploy/blueprintManaged.js.map +1 -0
- package/dist/actions/deploy/deployApp.js +117 -1
- package/dist/actions/deploy/deployApp.js.map +1 -1
- package/dist/actions/deploy/deployRunner.js.map +1 -1
- package/dist/actions/deploy/deployStudio.js +6 -31
- package/dist/actions/deploy/deployStudio.js.map +1 -1
- package/dist/actions/deploy/deployStudioSchemasAndManifestsWorker.js +6 -15
- package/dist/actions/deploy/deployStudioSchemasAndManifestsWorker.js.map +1 -1
- package/dist/actions/exec/runScript.worker.js +6 -2
- package/dist/actions/exec/runScript.worker.js.map +1 -1
- package/dist/actions/init/bootstrapLocalTemplate.js +35 -11
- package/dist/actions/init/bootstrapLocalTemplate.js.map +1 -1
- package/dist/actions/init/createMediaLibraryCliConfig.js +12 -0
- package/dist/actions/init/createMediaLibraryCliConfig.js.map +1 -0
- package/dist/actions/init/determineMediaLibraryTemplate.js +14 -0
- package/dist/actions/init/determineMediaLibraryTemplate.js.map +1 -0
- package/dist/actions/init/initAction.js +35 -6
- package/dist/actions/init/initAction.js.map +1 -1
- package/dist/actions/init/initApp.js +81 -6
- package/dist/actions/init/initApp.js.map +1 -1
- package/dist/actions/init/offerAspectPull.js +81 -0
- package/dist/actions/init/offerAspectPull.js.map +1 -0
- package/dist/actions/init/project/getProjectDetails.js +25 -2
- package/dist/actions/init/project/getProjectDetails.js.map +1 -1
- package/dist/actions/init/templates/index.js +3 -0
- package/dist/actions/init/templates/index.js.map +1 -1
- package/dist/actions/init/templates/mediaLibraryConfig.js +51 -0
- package/dist/actions/init/templates/mediaLibraryConfig.js.map +1 -0
- package/dist/actions/media/aspectName.js +8 -0
- package/dist/actions/media/aspectName.js.map +1 -0
- package/dist/actions/media/aspectSync/contract.js +163 -0
- package/dist/actions/media/aspectSync/contract.js.map +1 -0
- package/dist/actions/media/aspectSync/syncAspects.js +115 -0
- package/dist/actions/media/aspectSync/syncAspects.js.map +1 -0
- package/dist/actions/media/cliConfigFields.js +192 -0
- package/dist/actions/media/cliConfigFields.js.map +1 -0
- package/dist/actions/media/pullAspects.js +225 -0
- package/dist/actions/media/pullAspects.js.map +1 -0
- package/dist/actions/media/resolveMediaLibraryId.js +83 -0
- package/dist/actions/media/resolveMediaLibraryId.js.map +1 -0
- package/dist/actions/schema/deploySchemas.js.map +1 -1
- package/dist/actions/schema/extractSchemaWatcher.js +69 -14
- package/dist/actions/schema/extractSchemaWatcher.js.map +1 -1
- package/dist/actions/schema/updateWorkspaceSchema.js.map +1 -1
- package/dist/commands/context/build.js +2 -2
- package/dist/commands/context/build.js.map +1 -1
- package/dist/commands/context/entries/get.js +83 -0
- package/dist/commands/context/entries/get.js.map +1 -0
- package/dist/commands/context/entries/list.js +82 -0
- package/dist/commands/context/entries/list.js.map +1 -0
- package/dist/commands/context/entries/rebuild.js +95 -0
- package/dist/commands/context/entries/rebuild.js.map +1 -0
- package/dist/commands/context/issues/apply.js +86 -0
- package/dist/commands/context/issues/apply.js.map +1 -0
- package/dist/commands/context/issues/dismiss.js +52 -0
- package/dist/commands/context/issues/dismiss.js.map +1 -0
- package/dist/commands/context/issues/get.js +105 -0
- package/dist/commands/context/issues/get.js.map +1 -0
- package/dist/commands/context/issues/list.js +128 -0
- package/dist/commands/context/issues/list.js.map +1 -0
- package/dist/commands/context/issues/reopen.js +53 -0
- package/dist/commands/context/issues/reopen.js.map +1 -0
- package/dist/commands/context/issues/resolve.js +137 -0
- package/dist/commands/context/issues/resolve.js.map +1 -0
- package/dist/commands/context/jobs/get.js +2 -2
- package/dist/commands/context/jobs/get.js.map +1 -1
- package/dist/commands/context/query.js +92 -0
- package/dist/commands/context/query.js.map +1 -0
- package/dist/commands/deploy.js +13 -0
- package/dist/commands/deploy.js.map +1 -1
- package/dist/commands/media/prune-aspect-data.js +170 -0
- package/dist/commands/media/prune-aspect-data.js.map +1 -0
- package/dist/commands/media/pull-aspects.js +309 -0
- package/dist/commands/media/pull-aspects.js.map +1 -0
- package/dist/exports/invokeSanityCli/commandPolicies/mcpPolicy.js +17 -0
- package/dist/exports/invokeSanityCli/commandPolicies/mcpPolicy.js.map +1 -1
- package/dist/services/context.js +96 -3
- package/dist/services/context.js.map +1 -1
- package/dist/services/mediaLibraries.js +175 -8
- package/dist/services/mediaLibraries.js.map +1 -1
- package/oclif.manifest.json +1050 -361
- package/package.json +6 -5
- package/templates/media-library-config/README.md +52 -0
- package/templates/media-library-config/eslint.config.txt +52 -0
- package/templates/media-library-config/src/fields/caption.tsx +29 -0
- package/templates/media-library-config/src/fields/notes.tsx +54 -0
package/oclif.manifest.json
CHANGED
|
@@ -423,6 +423,14 @@
|
|
|
423
423
|
"allowNo": false,
|
|
424
424
|
"type": "boolean"
|
|
425
425
|
},
|
|
426
|
+
"media-library-id": {
|
|
427
|
+
"description": "For a Media Library config deploy: the media library to sync the aspect definitions to. Defaults to the single active library of the configured organization; required when the organization has several",
|
|
428
|
+
"hidden": true,
|
|
429
|
+
"name": "media-library-id",
|
|
430
|
+
"hasDynamicHelp": false,
|
|
431
|
+
"multiple": false,
|
|
432
|
+
"type": "option"
|
|
433
|
+
},
|
|
426
434
|
"minify": {
|
|
427
435
|
"description": "Minify built JavaScript (use --no-minify to skip for faster builds)",
|
|
428
436
|
"name": "minify",
|
|
@@ -2084,6 +2092,78 @@
|
|
|
2084
2092
|
"list.js"
|
|
2085
2093
|
]
|
|
2086
2094
|
},
|
|
2095
|
+
"context:query": {
|
|
2096
|
+
"aliases": [],
|
|
2097
|
+
"args": {
|
|
2098
|
+
"query": {
|
|
2099
|
+
"description": "GROQ query to run against the organization's Context documents",
|
|
2100
|
+
"name": "query",
|
|
2101
|
+
"required": true
|
|
2102
|
+
}
|
|
2103
|
+
},
|
|
2104
|
+
"description": "Query an organization's Context documents with GROQ",
|
|
2105
|
+
"examples": [
|
|
2106
|
+
{
|
|
2107
|
+
"command": "<%= config.bin %> <%= command.id %> '*[_type == \"sanity.context.issue\" && status == \"open\"]{_id, knowledgeBaseId}'",
|
|
2108
|
+
"description": "List open issues across all knowledge bases"
|
|
2109
|
+
},
|
|
2110
|
+
{
|
|
2111
|
+
"command": "<%= config.bin %> <%= command.id %> '*[_type == \"sanity.context.entry\" && knowledgeBaseId == $kb].path' --params '{\"kb\": \"kb-abc123\"}' --json",
|
|
2112
|
+
"description": "List the entry paths of one knowledge base as plain JSON"
|
|
2113
|
+
}
|
|
2114
|
+
],
|
|
2115
|
+
"flags": {
|
|
2116
|
+
"json": {
|
|
2117
|
+
"description": "Format output as json.",
|
|
2118
|
+
"helpGroup": "GLOBAL",
|
|
2119
|
+
"name": "json",
|
|
2120
|
+
"allowNo": false,
|
|
2121
|
+
"type": "boolean"
|
|
2122
|
+
},
|
|
2123
|
+
"organization": {
|
|
2124
|
+
"description": "Organization to query (overrides CLI configuration)",
|
|
2125
|
+
"helpGroup": "OVERRIDE",
|
|
2126
|
+
"name": "organization",
|
|
2127
|
+
"hasDynamicHelp": false,
|
|
2128
|
+
"helpValue": "<id>",
|
|
2129
|
+
"multiple": false,
|
|
2130
|
+
"type": "option"
|
|
2131
|
+
},
|
|
2132
|
+
"params": {
|
|
2133
|
+
"description": "Query parameters as a JSON object",
|
|
2134
|
+
"name": "params",
|
|
2135
|
+
"hasDynamicHelp": false,
|
|
2136
|
+
"helpValue": "<json>",
|
|
2137
|
+
"multiple": false,
|
|
2138
|
+
"type": "option"
|
|
2139
|
+
}
|
|
2140
|
+
},
|
|
2141
|
+
"hasDynamicHelp": false,
|
|
2142
|
+
"hiddenAliases": [],
|
|
2143
|
+
"id": "context:query",
|
|
2144
|
+
"pluginAlias": "@sanity/cli",
|
|
2145
|
+
"pluginName": "@sanity/cli",
|
|
2146
|
+
"pluginType": "core",
|
|
2147
|
+
"strict": true,
|
|
2148
|
+
"enableJsonFlag": true,
|
|
2149
|
+
"telemetry": {
|
|
2150
|
+
"redactedFlags": [
|
|
2151
|
+
{
|
|
2152
|
+
"canonical": "--params",
|
|
2153
|
+
"flags": [
|
|
2154
|
+
"--params"
|
|
2155
|
+
]
|
|
2156
|
+
}
|
|
2157
|
+
]
|
|
2158
|
+
},
|
|
2159
|
+
"isESM": true,
|
|
2160
|
+
"relativePath": [
|
|
2161
|
+
"dist",
|
|
2162
|
+
"commands",
|
|
2163
|
+
"context",
|
|
2164
|
+
"query.js"
|
|
2165
|
+
]
|
|
2166
|
+
},
|
|
2087
2167
|
"context:refresh": {
|
|
2088
2168
|
"aliases": [],
|
|
2089
2169
|
"args": {
|
|
@@ -2208,6 +2288,167 @@
|
|
|
2208
2288
|
"update.js"
|
|
2209
2289
|
]
|
|
2210
2290
|
},
|
|
2291
|
+
"cors:add": {
|
|
2292
|
+
"aliases": [],
|
|
2293
|
+
"args": {
|
|
2294
|
+
"origin": {
|
|
2295
|
+
"description": "Origin to allow (e.g., https://example.com)",
|
|
2296
|
+
"name": "origin",
|
|
2297
|
+
"required": true
|
|
2298
|
+
}
|
|
2299
|
+
},
|
|
2300
|
+
"description": "Add a CORS origin to the project",
|
|
2301
|
+
"examples": [
|
|
2302
|
+
{
|
|
2303
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
2304
|
+
"description": "Interactively add a CORS origin"
|
|
2305
|
+
},
|
|
2306
|
+
{
|
|
2307
|
+
"command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
|
|
2308
|
+
"description": "Add a localhost origin without credentials"
|
|
2309
|
+
},
|
|
2310
|
+
{
|
|
2311
|
+
"command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
|
|
2312
|
+
"description": "Add a production origin with credentials allowed"
|
|
2313
|
+
},
|
|
2314
|
+
{
|
|
2315
|
+
"command": "<%= config.bin %> <%= command.id %> https://myapp.com --project-id abc123",
|
|
2316
|
+
"description": "Add a CORS origin for a specific project"
|
|
2317
|
+
}
|
|
2318
|
+
],
|
|
2319
|
+
"flags": {
|
|
2320
|
+
"project-id": {
|
|
2321
|
+
"char": "p",
|
|
2322
|
+
"description": "Project ID to add CORS origin to (overrides CLI configuration)",
|
|
2323
|
+
"helpGroup": "OVERRIDE",
|
|
2324
|
+
"name": "project-id",
|
|
2325
|
+
"hasDynamicHelp": false,
|
|
2326
|
+
"helpValue": "<id>",
|
|
2327
|
+
"multiple": false,
|
|
2328
|
+
"type": "option"
|
|
2329
|
+
},
|
|
2330
|
+
"credentials": {
|
|
2331
|
+
"description": "Allow credentials (token/cookie) to be sent from this origin",
|
|
2332
|
+
"name": "credentials",
|
|
2333
|
+
"required": false,
|
|
2334
|
+
"allowNo": true,
|
|
2335
|
+
"type": "boolean"
|
|
2336
|
+
},
|
|
2337
|
+
"yes": {
|
|
2338
|
+
"char": "y",
|
|
2339
|
+
"description": "Confirm risky wildcard origins without prompting",
|
|
2340
|
+
"name": "yes",
|
|
2341
|
+
"allowNo": false,
|
|
2342
|
+
"type": "boolean"
|
|
2343
|
+
}
|
|
2344
|
+
},
|
|
2345
|
+
"hasDynamicHelp": false,
|
|
2346
|
+
"hiddenAliases": [],
|
|
2347
|
+
"id": "cors:add",
|
|
2348
|
+
"pluginAlias": "@sanity/cli",
|
|
2349
|
+
"pluginName": "@sanity/cli",
|
|
2350
|
+
"pluginType": "core",
|
|
2351
|
+
"strict": true,
|
|
2352
|
+
"isESM": true,
|
|
2353
|
+
"relativePath": [
|
|
2354
|
+
"dist",
|
|
2355
|
+
"commands",
|
|
2356
|
+
"cors",
|
|
2357
|
+
"add.js"
|
|
2358
|
+
]
|
|
2359
|
+
},
|
|
2360
|
+
"cors:delete": {
|
|
2361
|
+
"aliases": [],
|
|
2362
|
+
"args": {
|
|
2363
|
+
"origin": {
|
|
2364
|
+
"description": "Origin to delete (will prompt if not provided)",
|
|
2365
|
+
"name": "origin",
|
|
2366
|
+
"required": false
|
|
2367
|
+
}
|
|
2368
|
+
},
|
|
2369
|
+
"description": "Delete a CORS origin from the project",
|
|
2370
|
+
"examples": [
|
|
2371
|
+
{
|
|
2372
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
2373
|
+
"description": "Interactively select and delete a CORS origin"
|
|
2374
|
+
},
|
|
2375
|
+
{
|
|
2376
|
+
"command": "<%= config.bin %> <%= command.id %> https://example.com",
|
|
2377
|
+
"description": "Delete a specific CORS origin"
|
|
2378
|
+
},
|
|
2379
|
+
{
|
|
2380
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
2381
|
+
"description": "Delete a CORS origin from a specific project"
|
|
2382
|
+
}
|
|
2383
|
+
],
|
|
2384
|
+
"flags": {
|
|
2385
|
+
"project-id": {
|
|
2386
|
+
"char": "p",
|
|
2387
|
+
"description": "Project ID to delete CORS origin from (overrides CLI configuration)",
|
|
2388
|
+
"helpGroup": "OVERRIDE",
|
|
2389
|
+
"name": "project-id",
|
|
2390
|
+
"hasDynamicHelp": false,
|
|
2391
|
+
"helpValue": "<id>",
|
|
2392
|
+
"multiple": false,
|
|
2393
|
+
"type": "option"
|
|
2394
|
+
}
|
|
2395
|
+
},
|
|
2396
|
+
"hasDynamicHelp": false,
|
|
2397
|
+
"hiddenAliases": [],
|
|
2398
|
+
"id": "cors:delete",
|
|
2399
|
+
"pluginAlias": "@sanity/cli",
|
|
2400
|
+
"pluginName": "@sanity/cli",
|
|
2401
|
+
"pluginType": "core",
|
|
2402
|
+
"strict": true,
|
|
2403
|
+
"isESM": true,
|
|
2404
|
+
"relativePath": [
|
|
2405
|
+
"dist",
|
|
2406
|
+
"commands",
|
|
2407
|
+
"cors",
|
|
2408
|
+
"delete.js"
|
|
2409
|
+
]
|
|
2410
|
+
},
|
|
2411
|
+
"cors:list": {
|
|
2412
|
+
"aliases": [],
|
|
2413
|
+
"args": {},
|
|
2414
|
+
"description": "List CORS origins for the project",
|
|
2415
|
+
"examples": [
|
|
2416
|
+
{
|
|
2417
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
2418
|
+
"description": "List CORS origins for the project"
|
|
2419
|
+
},
|
|
2420
|
+
{
|
|
2421
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
2422
|
+
"description": "List CORS origins for a specific project"
|
|
2423
|
+
}
|
|
2424
|
+
],
|
|
2425
|
+
"flags": {
|
|
2426
|
+
"project-id": {
|
|
2427
|
+
"char": "p",
|
|
2428
|
+
"description": "Project ID to list CORS origins for (overrides CLI configuration)",
|
|
2429
|
+
"helpGroup": "OVERRIDE",
|
|
2430
|
+
"name": "project-id",
|
|
2431
|
+
"hasDynamicHelp": false,
|
|
2432
|
+
"helpValue": "<id>",
|
|
2433
|
+
"multiple": false,
|
|
2434
|
+
"type": "option"
|
|
2435
|
+
}
|
|
2436
|
+
},
|
|
2437
|
+
"hasDynamicHelp": false,
|
|
2438
|
+
"hiddenAliases": [],
|
|
2439
|
+
"id": "cors:list",
|
|
2440
|
+
"pluginAlias": "@sanity/cli",
|
|
2441
|
+
"pluginName": "@sanity/cli",
|
|
2442
|
+
"pluginType": "core",
|
|
2443
|
+
"strict": true,
|
|
2444
|
+
"isESM": true,
|
|
2445
|
+
"relativePath": [
|
|
2446
|
+
"dist",
|
|
2447
|
+
"commands",
|
|
2448
|
+
"cors",
|
|
2449
|
+
"list.js"
|
|
2450
|
+
]
|
|
2451
|
+
},
|
|
2211
2452
|
"datasets:copy": {
|
|
2212
2453
|
"aliases": [],
|
|
2213
2454
|
"args": {
|
|
@@ -2830,198 +3071,37 @@
|
|
|
2830
3071
|
"list.js"
|
|
2831
3072
|
]
|
|
2832
3073
|
},
|
|
2833
|
-
"
|
|
3074
|
+
"docs:browse": {
|
|
3075
|
+
"aliases": [],
|
|
3076
|
+
"args": {},
|
|
3077
|
+
"description": "Open Sanity docs in your browser",
|
|
3078
|
+
"flags": {},
|
|
3079
|
+
"hasDynamicHelp": false,
|
|
3080
|
+
"hiddenAliases": [],
|
|
3081
|
+
"id": "docs:browse",
|
|
3082
|
+
"pluginAlias": "@sanity/cli",
|
|
3083
|
+
"pluginName": "@sanity/cli",
|
|
3084
|
+
"pluginType": "core",
|
|
3085
|
+
"strict": true,
|
|
3086
|
+
"enableJsonFlag": false,
|
|
3087
|
+
"isESM": true,
|
|
3088
|
+
"relativePath": [
|
|
3089
|
+
"dist",
|
|
3090
|
+
"commands",
|
|
3091
|
+
"docs",
|
|
3092
|
+
"browse.js"
|
|
3093
|
+
]
|
|
3094
|
+
},
|
|
3095
|
+
"docs:read": {
|
|
2834
3096
|
"aliases": [],
|
|
2835
3097
|
"args": {
|
|
2836
|
-
"
|
|
2837
|
-
"description": "
|
|
2838
|
-
"name": "
|
|
3098
|
+
"path": {
|
|
3099
|
+
"description": "Path or URL to article, found in search results and docs content as links",
|
|
3100
|
+
"name": "path",
|
|
2839
3101
|
"required": true
|
|
2840
3102
|
}
|
|
2841
3103
|
},
|
|
2842
|
-
"description": "
|
|
2843
|
-
"examples": [
|
|
2844
|
-
{
|
|
2845
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2846
|
-
"description": "Interactively add a CORS origin"
|
|
2847
|
-
},
|
|
2848
|
-
{
|
|
2849
|
-
"command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
|
|
2850
|
-
"description": "Add a localhost origin without credentials"
|
|
2851
|
-
},
|
|
2852
|
-
{
|
|
2853
|
-
"command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
|
|
2854
|
-
"description": "Add a production origin with credentials allowed"
|
|
2855
|
-
},
|
|
2856
|
-
{
|
|
2857
|
-
"command": "<%= config.bin %> <%= command.id %> https://myapp.com --project-id abc123",
|
|
2858
|
-
"description": "Add a CORS origin for a specific project"
|
|
2859
|
-
}
|
|
2860
|
-
],
|
|
2861
|
-
"flags": {
|
|
2862
|
-
"project-id": {
|
|
2863
|
-
"char": "p",
|
|
2864
|
-
"description": "Project ID to add CORS origin to (overrides CLI configuration)",
|
|
2865
|
-
"helpGroup": "OVERRIDE",
|
|
2866
|
-
"name": "project-id",
|
|
2867
|
-
"hasDynamicHelp": false,
|
|
2868
|
-
"helpValue": "<id>",
|
|
2869
|
-
"multiple": false,
|
|
2870
|
-
"type": "option"
|
|
2871
|
-
},
|
|
2872
|
-
"credentials": {
|
|
2873
|
-
"description": "Allow credentials (token/cookie) to be sent from this origin",
|
|
2874
|
-
"name": "credentials",
|
|
2875
|
-
"required": false,
|
|
2876
|
-
"allowNo": true,
|
|
2877
|
-
"type": "boolean"
|
|
2878
|
-
},
|
|
2879
|
-
"yes": {
|
|
2880
|
-
"char": "y",
|
|
2881
|
-
"description": "Confirm risky wildcard origins without prompting",
|
|
2882
|
-
"name": "yes",
|
|
2883
|
-
"allowNo": false,
|
|
2884
|
-
"type": "boolean"
|
|
2885
|
-
}
|
|
2886
|
-
},
|
|
2887
|
-
"hasDynamicHelp": false,
|
|
2888
|
-
"hiddenAliases": [],
|
|
2889
|
-
"id": "cors:add",
|
|
2890
|
-
"pluginAlias": "@sanity/cli",
|
|
2891
|
-
"pluginName": "@sanity/cli",
|
|
2892
|
-
"pluginType": "core",
|
|
2893
|
-
"strict": true,
|
|
2894
|
-
"isESM": true,
|
|
2895
|
-
"relativePath": [
|
|
2896
|
-
"dist",
|
|
2897
|
-
"commands",
|
|
2898
|
-
"cors",
|
|
2899
|
-
"add.js"
|
|
2900
|
-
]
|
|
2901
|
-
},
|
|
2902
|
-
"cors:delete": {
|
|
2903
|
-
"aliases": [],
|
|
2904
|
-
"args": {
|
|
2905
|
-
"origin": {
|
|
2906
|
-
"description": "Origin to delete (will prompt if not provided)",
|
|
2907
|
-
"name": "origin",
|
|
2908
|
-
"required": false
|
|
2909
|
-
}
|
|
2910
|
-
},
|
|
2911
|
-
"description": "Delete a CORS origin from the project",
|
|
2912
|
-
"examples": [
|
|
2913
|
-
{
|
|
2914
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2915
|
-
"description": "Interactively select and delete a CORS origin"
|
|
2916
|
-
},
|
|
2917
|
-
{
|
|
2918
|
-
"command": "<%= config.bin %> <%= command.id %> https://example.com",
|
|
2919
|
-
"description": "Delete a specific CORS origin"
|
|
2920
|
-
},
|
|
2921
|
-
{
|
|
2922
|
-
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
2923
|
-
"description": "Delete a CORS origin from a specific project"
|
|
2924
|
-
}
|
|
2925
|
-
],
|
|
2926
|
-
"flags": {
|
|
2927
|
-
"project-id": {
|
|
2928
|
-
"char": "p",
|
|
2929
|
-
"description": "Project ID to delete CORS origin from (overrides CLI configuration)",
|
|
2930
|
-
"helpGroup": "OVERRIDE",
|
|
2931
|
-
"name": "project-id",
|
|
2932
|
-
"hasDynamicHelp": false,
|
|
2933
|
-
"helpValue": "<id>",
|
|
2934
|
-
"multiple": false,
|
|
2935
|
-
"type": "option"
|
|
2936
|
-
}
|
|
2937
|
-
},
|
|
2938
|
-
"hasDynamicHelp": false,
|
|
2939
|
-
"hiddenAliases": [],
|
|
2940
|
-
"id": "cors:delete",
|
|
2941
|
-
"pluginAlias": "@sanity/cli",
|
|
2942
|
-
"pluginName": "@sanity/cli",
|
|
2943
|
-
"pluginType": "core",
|
|
2944
|
-
"strict": true,
|
|
2945
|
-
"isESM": true,
|
|
2946
|
-
"relativePath": [
|
|
2947
|
-
"dist",
|
|
2948
|
-
"commands",
|
|
2949
|
-
"cors",
|
|
2950
|
-
"delete.js"
|
|
2951
|
-
]
|
|
2952
|
-
},
|
|
2953
|
-
"cors:list": {
|
|
2954
|
-
"aliases": [],
|
|
2955
|
-
"args": {},
|
|
2956
|
-
"description": "List CORS origins for the project",
|
|
2957
|
-
"examples": [
|
|
2958
|
-
{
|
|
2959
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2960
|
-
"description": "List CORS origins for the project"
|
|
2961
|
-
},
|
|
2962
|
-
{
|
|
2963
|
-
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
2964
|
-
"description": "List CORS origins for a specific project"
|
|
2965
|
-
}
|
|
2966
|
-
],
|
|
2967
|
-
"flags": {
|
|
2968
|
-
"project-id": {
|
|
2969
|
-
"char": "p",
|
|
2970
|
-
"description": "Project ID to list CORS origins for (overrides CLI configuration)",
|
|
2971
|
-
"helpGroup": "OVERRIDE",
|
|
2972
|
-
"name": "project-id",
|
|
2973
|
-
"hasDynamicHelp": false,
|
|
2974
|
-
"helpValue": "<id>",
|
|
2975
|
-
"multiple": false,
|
|
2976
|
-
"type": "option"
|
|
2977
|
-
}
|
|
2978
|
-
},
|
|
2979
|
-
"hasDynamicHelp": false,
|
|
2980
|
-
"hiddenAliases": [],
|
|
2981
|
-
"id": "cors:list",
|
|
2982
|
-
"pluginAlias": "@sanity/cli",
|
|
2983
|
-
"pluginName": "@sanity/cli",
|
|
2984
|
-
"pluginType": "core",
|
|
2985
|
-
"strict": true,
|
|
2986
|
-
"isESM": true,
|
|
2987
|
-
"relativePath": [
|
|
2988
|
-
"dist",
|
|
2989
|
-
"commands",
|
|
2990
|
-
"cors",
|
|
2991
|
-
"list.js"
|
|
2992
|
-
]
|
|
2993
|
-
},
|
|
2994
|
-
"docs:browse": {
|
|
2995
|
-
"aliases": [],
|
|
2996
|
-
"args": {},
|
|
2997
|
-
"description": "Open Sanity docs in your browser",
|
|
2998
|
-
"flags": {},
|
|
2999
|
-
"hasDynamicHelp": false,
|
|
3000
|
-
"hiddenAliases": [],
|
|
3001
|
-
"id": "docs:browse",
|
|
3002
|
-
"pluginAlias": "@sanity/cli",
|
|
3003
|
-
"pluginName": "@sanity/cli",
|
|
3004
|
-
"pluginType": "core",
|
|
3005
|
-
"strict": true,
|
|
3006
|
-
"enableJsonFlag": false,
|
|
3007
|
-
"isESM": true,
|
|
3008
|
-
"relativePath": [
|
|
3009
|
-
"dist",
|
|
3010
|
-
"commands",
|
|
3011
|
-
"docs",
|
|
3012
|
-
"browse.js"
|
|
3013
|
-
]
|
|
3014
|
-
},
|
|
3015
|
-
"docs:read": {
|
|
3016
|
-
"aliases": [],
|
|
3017
|
-
"args": {
|
|
3018
|
-
"path": {
|
|
3019
|
-
"description": "Path or URL to article, found in search results and docs content as links",
|
|
3020
|
-
"name": "path",
|
|
3021
|
-
"required": true
|
|
3022
|
-
}
|
|
3023
|
-
},
|
|
3024
|
-
"description": "Read an article in terminal",
|
|
3104
|
+
"description": "Read an article in terminal",
|
|
3025
3105
|
"examples": [
|
|
3026
3106
|
{
|
|
3027
3107
|
"command": "<%= config.bin %> <%= command.id %> /docs/studio/installation",
|
|
@@ -4492,32 +4572,46 @@
|
|
|
4492
4572
|
"import.js"
|
|
4493
4573
|
]
|
|
4494
4574
|
},
|
|
4495
|
-
"
|
|
4575
|
+
"media:prune-aspect-data": {
|
|
4496
4576
|
"aliases": [],
|
|
4497
4577
|
"args": {
|
|
4498
|
-
"
|
|
4499
|
-
"description": "
|
|
4500
|
-
"name": "
|
|
4501
|
-
"required":
|
|
4578
|
+
"aspectName": {
|
|
4579
|
+
"description": "Name of the aspect whose data to remove from all assets",
|
|
4580
|
+
"name": "aspectName",
|
|
4581
|
+
"required": true
|
|
4502
4582
|
}
|
|
4503
4583
|
},
|
|
4504
|
-
"description": "
|
|
4584
|
+
"description": "Irreversibly remove an aspect's data (aspects.<name> values) from every asset of a media library",
|
|
4505
4585
|
"examples": [
|
|
4506
4586
|
{
|
|
4507
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
4508
|
-
"description": "
|
|
4587
|
+
"command": "<%= config.bin %> <%= command.id %> legacyAspect",
|
|
4588
|
+
"description": "Report which assets carry aspects.legacyAspect (changes nothing)"
|
|
4509
4589
|
},
|
|
4510
4590
|
{
|
|
4511
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4512
|
-
"description": "
|
|
4591
|
+
"command": "<%= config.bin %> <%= command.id %> legacyAspect --yes",
|
|
4592
|
+
"description": "Remove aspects.legacyAspect from every asset that carries it"
|
|
4513
4593
|
}
|
|
4514
4594
|
],
|
|
4515
|
-
"flags": {
|
|
4595
|
+
"flags": {
|
|
4596
|
+
"media-library-id": {
|
|
4597
|
+
"description": "The id of the media library to prune (defaults to the single active library of the configured organization)",
|
|
4598
|
+
"name": "media-library-id",
|
|
4599
|
+
"hasDynamicHelp": false,
|
|
4600
|
+
"multiple": false,
|
|
4601
|
+
"type": "option"
|
|
4602
|
+
},
|
|
4603
|
+
"yes": {
|
|
4604
|
+
"char": "y",
|
|
4605
|
+
"description": "Execute the prune. Without this flag the command only reports what would change",
|
|
4606
|
+
"name": "yes",
|
|
4607
|
+
"allowNo": false,
|
|
4608
|
+
"type": "boolean"
|
|
4609
|
+
}
|
|
4610
|
+
},
|
|
4516
4611
|
"hasDynamicHelp": false,
|
|
4517
|
-
"
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
"id": "migrations:create",
|
|
4612
|
+
"hidden": true,
|
|
4613
|
+
"hiddenAliases": [],
|
|
4614
|
+
"id": "media:prune-aspect-data",
|
|
4521
4615
|
"pluginAlias": "@sanity/cli",
|
|
4522
4616
|
"pluginName": "@sanity/cli",
|
|
4523
4617
|
"pluginType": "core",
|
|
@@ -4526,37 +4620,144 @@
|
|
|
4526
4620
|
"relativePath": [
|
|
4527
4621
|
"dist",
|
|
4528
4622
|
"commands",
|
|
4529
|
-
"
|
|
4530
|
-
"
|
|
4623
|
+
"media",
|
|
4624
|
+
"prune-aspect-data.js"
|
|
4531
4625
|
]
|
|
4532
4626
|
},
|
|
4533
|
-
"
|
|
4627
|
+
"media:pull-aspects": {
|
|
4534
4628
|
"aliases": [],
|
|
4535
4629
|
"args": {},
|
|
4536
|
-
"description": "
|
|
4630
|
+
"description": "Generate field modules from a media library's stored aspect documents",
|
|
4537
4631
|
"examples": [
|
|
4538
4632
|
{
|
|
4539
4633
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
4540
|
-
"description": "
|
|
4634
|
+
"description": "Generate src/fields/<name>.tsx modules from the stored aspects"
|
|
4635
|
+
},
|
|
4636
|
+
{
|
|
4637
|
+
"command": "<%= config.bin %> <%= command.id %> --media-library-id ml123 --overwrite",
|
|
4638
|
+
"description": "Pull from a specific media library, overwriting existing modules"
|
|
4541
4639
|
}
|
|
4542
4640
|
],
|
|
4543
|
-
"flags": {
|
|
4641
|
+
"flags": {
|
|
4642
|
+
"media-library-id": {
|
|
4643
|
+
"description": "The id of the media library to pull from (defaults to the single active library of the configured organization)",
|
|
4644
|
+
"name": "media-library-id",
|
|
4645
|
+
"hasDynamicHelp": false,
|
|
4646
|
+
"multiple": false,
|
|
4647
|
+
"type": "option"
|
|
4648
|
+
},
|
|
4649
|
+
"out-dir": {
|
|
4650
|
+
"description": "Directory to write the generated field modules to, relative to the project root",
|
|
4651
|
+
"name": "out-dir",
|
|
4652
|
+
"default": "src/fields",
|
|
4653
|
+
"hasDynamicHelp": false,
|
|
4654
|
+
"multiple": false,
|
|
4655
|
+
"type": "option"
|
|
4656
|
+
},
|
|
4657
|
+
"overwrite": {
|
|
4658
|
+
"description": "Overwrite existing field modules and re-generate fields already declared in the config",
|
|
4659
|
+
"name": "overwrite",
|
|
4660
|
+
"allowNo": false,
|
|
4661
|
+
"type": "boolean"
|
|
4662
|
+
},
|
|
4663
|
+
"update-config": {
|
|
4664
|
+
"description": "Declare the generated fields in sanity.cli.ts (--no-update-config to skip). Prompted when omitted; unattended runs only print the entries",
|
|
4665
|
+
"name": "update-config",
|
|
4666
|
+
"allowNo": true,
|
|
4667
|
+
"type": "boolean"
|
|
4668
|
+
}
|
|
4669
|
+
},
|
|
4544
4670
|
"hasDynamicHelp": false,
|
|
4545
|
-
"
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
"id": "migrations:list",
|
|
4671
|
+
"hidden": true,
|
|
4672
|
+
"hiddenAliases": [],
|
|
4673
|
+
"id": "media:pull-aspects",
|
|
4549
4674
|
"pluginAlias": "@sanity/cli",
|
|
4550
4675
|
"pluginName": "@sanity/cli",
|
|
4551
4676
|
"pluginType": "core",
|
|
4552
4677
|
"strict": true,
|
|
4553
|
-
"
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4678
|
+
"telemetry": {
|
|
4679
|
+
"redactedFlags": [
|
|
4680
|
+
{
|
|
4681
|
+
"canonical": "--out-dir",
|
|
4682
|
+
"flags": [
|
|
4683
|
+
"--out-dir"
|
|
4684
|
+
]
|
|
4685
|
+
}
|
|
4686
|
+
]
|
|
4687
|
+
},
|
|
4688
|
+
"isESM": true,
|
|
4689
|
+
"relativePath": [
|
|
4690
|
+
"dist",
|
|
4691
|
+
"commands",
|
|
4692
|
+
"media",
|
|
4693
|
+
"pull-aspects.js"
|
|
4694
|
+
]
|
|
4695
|
+
},
|
|
4696
|
+
"migrations:create": {
|
|
4697
|
+
"aliases": [],
|
|
4698
|
+
"args": {
|
|
4699
|
+
"title": {
|
|
4700
|
+
"description": "Title of migration",
|
|
4701
|
+
"name": "title",
|
|
4702
|
+
"required": false
|
|
4703
|
+
}
|
|
4704
|
+
},
|
|
4705
|
+
"description": "Create a new migration within your project",
|
|
4706
|
+
"examples": [
|
|
4707
|
+
{
|
|
4708
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
4709
|
+
"description": "Create a new migration, prompting for title and options"
|
|
4710
|
+
},
|
|
4711
|
+
{
|
|
4712
|
+
"command": "<%= config.bin %> <%= command.id %> \"Rename field from location to address\"",
|
|
4713
|
+
"description": "Create a new migration with the provided title, prompting for options"
|
|
4714
|
+
}
|
|
4715
|
+
],
|
|
4716
|
+
"flags": {},
|
|
4717
|
+
"hasDynamicHelp": false,
|
|
4718
|
+
"hiddenAliases": [
|
|
4719
|
+
"migration:create"
|
|
4720
|
+
],
|
|
4721
|
+
"id": "migrations:create",
|
|
4722
|
+
"pluginAlias": "@sanity/cli",
|
|
4723
|
+
"pluginName": "@sanity/cli",
|
|
4724
|
+
"pluginType": "core",
|
|
4725
|
+
"strict": true,
|
|
4726
|
+
"isESM": true,
|
|
4727
|
+
"relativePath": [
|
|
4728
|
+
"dist",
|
|
4729
|
+
"commands",
|
|
4730
|
+
"migrations",
|
|
4731
|
+
"create.js"
|
|
4732
|
+
]
|
|
4733
|
+
},
|
|
4734
|
+
"migrations:list": {
|
|
4735
|
+
"aliases": [],
|
|
4736
|
+
"args": {},
|
|
4737
|
+
"description": "List available migrations",
|
|
4738
|
+
"examples": [
|
|
4739
|
+
{
|
|
4740
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
4741
|
+
"description": "List all available migrations in the project"
|
|
4742
|
+
}
|
|
4743
|
+
],
|
|
4744
|
+
"flags": {},
|
|
4745
|
+
"hasDynamicHelp": false,
|
|
4746
|
+
"hiddenAliases": [
|
|
4747
|
+
"migration:list"
|
|
4748
|
+
],
|
|
4749
|
+
"id": "migrations:list",
|
|
4750
|
+
"pluginAlias": "@sanity/cli",
|
|
4751
|
+
"pluginName": "@sanity/cli",
|
|
4752
|
+
"pluginType": "core",
|
|
4753
|
+
"strict": true,
|
|
4754
|
+
"isESM": true,
|
|
4755
|
+
"relativePath": [
|
|
4756
|
+
"dist",
|
|
4757
|
+
"commands",
|
|
4758
|
+
"migrations",
|
|
4759
|
+
"list.js"
|
|
4760
|
+
]
|
|
4560
4761
|
},
|
|
4561
4762
|
"migrations:run": {
|
|
4562
4763
|
"aliases": [],
|
|
@@ -5713,48 +5914,6 @@
|
|
|
5713
5914
|
"status.js"
|
|
5714
5915
|
]
|
|
5715
5916
|
},
|
|
5716
|
-
"typegen:generate": {
|
|
5717
|
-
"aliases": [],
|
|
5718
|
-
"args": {},
|
|
5719
|
-
"description": "Sanity TypeGen\n\nConfiguration:\nThis command can utilize configuration settings defined in a `sanity-typegen.json` file. These settings include:\n\n- \"path\": Specifies a glob pattern to locate your TypeScript or JavaScript files.\n Default: \"./src/**/*.{ts,tsx,js,jsx}\"\n\n- \"schema\": Defines the path to your Sanity schema file. This file should be generated using the `sanity schema extract` command.\n Default: \"schema.json\"\n\n- \"generates\": Indicates the path where the generated TypeScript type definitions will be saved.\n Default: \"./sanity.types.ts\"\n\nThe default configuration values listed above are used if not overridden in your `sanity-typegen.json` configuration file. To customize the behavior of the type generation, adjust these properties in the configuration file according to your project's needs.\n\nNote:\n- The `sanity schema extract` command is a prerequisite for extracting your Sanity Studio schema into a `schema.json` file, which is then used by the `sanity typegen generate` command to generate type definitions.\n- To generate types for several datasets, list them in `typegen.resources` in `sanity.cli.ts` (beta). Each resource uses its own `schema` file, or the schema bound to its dataset when `schema` is omitted. With `--watch`, a schema bound to a dataset is fetched once, when the watcher starts. Restart it after deploying a schema.",
|
|
5720
|
-
"examples": [
|
|
5721
|
-
{
|
|
5722
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
5723
|
-
"description": "Generate TypeScript type definitions from a Sanity Studio schema extracted using the `sanity schema extract` command."
|
|
5724
|
-
}
|
|
5725
|
-
],
|
|
5726
|
-
"flags": {
|
|
5727
|
-
"config-path": {
|
|
5728
|
-
"description": "[Default: sanity-typegen.json] Specifies the path to the typegen configuration file. This file should be a JSON file that contains settings for the type generation process.",
|
|
5729
|
-
"name": "config-path",
|
|
5730
|
-
"hasDynamicHelp": false,
|
|
5731
|
-
"multiple": false,
|
|
5732
|
-
"type": "option"
|
|
5733
|
-
},
|
|
5734
|
-
"watch": {
|
|
5735
|
-
"description": "[Default: false] Run the typegen in watch mode",
|
|
5736
|
-
"name": "watch",
|
|
5737
|
-
"allowNo": false,
|
|
5738
|
-
"type": "boolean"
|
|
5739
|
-
}
|
|
5740
|
-
},
|
|
5741
|
-
"hasDynamicHelp": false,
|
|
5742
|
-
"hiddenAliases": [
|
|
5743
|
-
"typegen:generate"
|
|
5744
|
-
],
|
|
5745
|
-
"id": "typegen:generate",
|
|
5746
|
-
"pluginAlias": "@sanity/cli",
|
|
5747
|
-
"pluginName": "@sanity/cli",
|
|
5748
|
-
"pluginType": "core",
|
|
5749
|
-
"strict": true,
|
|
5750
|
-
"isESM": true,
|
|
5751
|
-
"relativePath": [
|
|
5752
|
-
"dist",
|
|
5753
|
-
"commands",
|
|
5754
|
-
"typegen",
|
|
5755
|
-
"generate.js"
|
|
5756
|
-
]
|
|
5757
|
-
},
|
|
5758
5917
|
"tokens:create": {
|
|
5759
5918
|
"aliases": [],
|
|
5760
5919
|
"args": {
|
|
@@ -6077,6 +6236,48 @@
|
|
|
6077
6236
|
"rotate.js"
|
|
6078
6237
|
]
|
|
6079
6238
|
},
|
|
6239
|
+
"typegen:generate": {
|
|
6240
|
+
"aliases": [],
|
|
6241
|
+
"args": {},
|
|
6242
|
+
"description": "Sanity TypeGen\n\nConfiguration:\nThis command can utilize configuration settings defined in a `sanity-typegen.json` file. These settings include:\n\n- \"path\": Specifies a glob pattern to locate your TypeScript or JavaScript files.\n Default: \"./src/**/*.{ts,tsx,js,jsx}\"\n\n- \"schema\": Defines the path to your Sanity schema file. This file should be generated using the `sanity schema extract` command.\n Default: \"schema.json\"\n\n- \"generates\": Indicates the path where the generated TypeScript type definitions will be saved.\n Default: \"./sanity.types.ts\"\n\nThe default configuration values listed above are used if not overridden in your `sanity-typegen.json` configuration file. To customize the behavior of the type generation, adjust these properties in the configuration file according to your project's needs.\n\nNote:\n- The `sanity schema extract` command is a prerequisite for extracting your Sanity Studio schema into a `schema.json` file, which is then used by the `sanity typegen generate` command to generate type definitions.\n- To generate types for several datasets, list them in `typegen.resources` in `sanity.cli.ts` (beta). Each resource uses its own `schema` file, or the schema bound to its dataset when `schema` is omitted. With `--watch`, a schema bound to a dataset is fetched once, when the watcher starts. Restart it after deploying a schema.",
|
|
6243
|
+
"examples": [
|
|
6244
|
+
{
|
|
6245
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
6246
|
+
"description": "Generate TypeScript type definitions from a Sanity Studio schema extracted using the `sanity schema extract` command."
|
|
6247
|
+
}
|
|
6248
|
+
],
|
|
6249
|
+
"flags": {
|
|
6250
|
+
"config-path": {
|
|
6251
|
+
"description": "[Default: sanity-typegen.json] Specifies the path to the typegen configuration file. This file should be a JSON file that contains settings for the type generation process.",
|
|
6252
|
+
"name": "config-path",
|
|
6253
|
+
"hasDynamicHelp": false,
|
|
6254
|
+
"multiple": false,
|
|
6255
|
+
"type": "option"
|
|
6256
|
+
},
|
|
6257
|
+
"watch": {
|
|
6258
|
+
"description": "[Default: false] Run the typegen in watch mode",
|
|
6259
|
+
"name": "watch",
|
|
6260
|
+
"allowNo": false,
|
|
6261
|
+
"type": "boolean"
|
|
6262
|
+
}
|
|
6263
|
+
},
|
|
6264
|
+
"hasDynamicHelp": false,
|
|
6265
|
+
"hiddenAliases": [
|
|
6266
|
+
"typegen:generate"
|
|
6267
|
+
],
|
|
6268
|
+
"id": "typegen:generate",
|
|
6269
|
+
"pluginAlias": "@sanity/cli",
|
|
6270
|
+
"pluginName": "@sanity/cli",
|
|
6271
|
+
"pluginType": "core",
|
|
6272
|
+
"strict": true,
|
|
6273
|
+
"isESM": true,
|
|
6274
|
+
"relativePath": [
|
|
6275
|
+
"dist",
|
|
6276
|
+
"commands",
|
|
6277
|
+
"typegen",
|
|
6278
|
+
"generate.js"
|
|
6279
|
+
]
|
|
6280
|
+
},
|
|
6080
6281
|
"users:invite": {
|
|
6081
6282
|
"aliases": [],
|
|
6082
6283
|
"args": {
|
|
@@ -6230,47 +6431,193 @@
|
|
|
6230
6431
|
"list.js"
|
|
6231
6432
|
]
|
|
6232
6433
|
},
|
|
6233
|
-
"context:
|
|
6434
|
+
"context:entries:get": {
|
|
6234
6435
|
"aliases": [],
|
|
6235
6436
|
"args": {
|
|
6236
6437
|
"knowledgeBaseId": {
|
|
6237
6438
|
"description": "Knowledge base ID",
|
|
6238
6439
|
"name": "knowledgeBaseId",
|
|
6239
6440
|
"required": true
|
|
6441
|
+
},
|
|
6442
|
+
"path": {
|
|
6443
|
+
"description": "Entry path, as listed by `sanity context entries list`",
|
|
6444
|
+
"name": "path",
|
|
6445
|
+
"required": true
|
|
6240
6446
|
}
|
|
6241
6447
|
},
|
|
6242
|
-
"description": "
|
|
6448
|
+
"description": "Get an entry and its content",
|
|
6243
6449
|
"examples": [
|
|
6244
6450
|
{
|
|
6245
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123
|
|
6246
|
-
"description": "
|
|
6451
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 billing/refunds",
|
|
6452
|
+
"description": "Print an entry and its content"
|
|
6247
6453
|
},
|
|
6248
6454
|
{
|
|
6249
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --
|
|
6250
|
-
"description": "
|
|
6251
|
-
}
|
|
6455
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 billing/refunds --json",
|
|
6456
|
+
"description": "Output the entry, including citations, as JSON"
|
|
6457
|
+
}
|
|
6458
|
+
],
|
|
6459
|
+
"flags": {
|
|
6460
|
+
"json": {
|
|
6461
|
+
"description": "Format output as json.",
|
|
6462
|
+
"helpGroup": "GLOBAL",
|
|
6463
|
+
"name": "json",
|
|
6464
|
+
"allowNo": false,
|
|
6465
|
+
"type": "boolean"
|
|
6466
|
+
}
|
|
6467
|
+
},
|
|
6468
|
+
"hasDynamicHelp": false,
|
|
6469
|
+
"hiddenAliases": [],
|
|
6470
|
+
"id": "context:entries:get",
|
|
6471
|
+
"pluginAlias": "@sanity/cli",
|
|
6472
|
+
"pluginName": "@sanity/cli",
|
|
6473
|
+
"pluginType": "core",
|
|
6474
|
+
"strict": true,
|
|
6475
|
+
"enableJsonFlag": true,
|
|
6476
|
+
"isESM": true,
|
|
6477
|
+
"relativePath": [
|
|
6478
|
+
"dist",
|
|
6479
|
+
"commands",
|
|
6480
|
+
"context",
|
|
6481
|
+
"entries",
|
|
6482
|
+
"get.js"
|
|
6483
|
+
]
|
|
6484
|
+
},
|
|
6485
|
+
"context:entries:list": {
|
|
6486
|
+
"aliases": [],
|
|
6487
|
+
"args": {
|
|
6488
|
+
"knowledgeBaseId": {
|
|
6489
|
+
"description": "Knowledge base ID",
|
|
6490
|
+
"name": "knowledgeBaseId",
|
|
6491
|
+
"required": true
|
|
6492
|
+
}
|
|
6493
|
+
},
|
|
6494
|
+
"description": "List the entries a knowledge base build produced",
|
|
6495
|
+
"examples": [
|
|
6252
6496
|
{
|
|
6253
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123
|
|
6254
|
-
"description": "
|
|
6497
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123",
|
|
6498
|
+
"description": "List all entries for a knowledge base"
|
|
6255
6499
|
},
|
|
6256
6500
|
{
|
|
6257
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --
|
|
6258
|
-
"description": "
|
|
6501
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --json",
|
|
6502
|
+
"description": "Output entries as JSON"
|
|
6259
6503
|
}
|
|
6260
6504
|
],
|
|
6261
6505
|
"flags": {
|
|
6262
|
-
"
|
|
6263
|
-
"description": "
|
|
6264
|
-
"
|
|
6265
|
-
"
|
|
6266
|
-
"
|
|
6267
|
-
"
|
|
6268
|
-
|
|
6269
|
-
|
|
6506
|
+
"json": {
|
|
6507
|
+
"description": "Format output as json.",
|
|
6508
|
+
"helpGroup": "GLOBAL",
|
|
6509
|
+
"name": "json",
|
|
6510
|
+
"allowNo": false,
|
|
6511
|
+
"type": "boolean"
|
|
6512
|
+
}
|
|
6513
|
+
},
|
|
6514
|
+
"hasDynamicHelp": false,
|
|
6515
|
+
"hiddenAliases": [],
|
|
6516
|
+
"id": "context:entries:list",
|
|
6517
|
+
"pluginAlias": "@sanity/cli",
|
|
6518
|
+
"pluginName": "@sanity/cli",
|
|
6519
|
+
"pluginType": "core",
|
|
6520
|
+
"strict": true,
|
|
6521
|
+
"enableJsonFlag": true,
|
|
6522
|
+
"isESM": true,
|
|
6523
|
+
"relativePath": [
|
|
6524
|
+
"dist",
|
|
6525
|
+
"commands",
|
|
6526
|
+
"context",
|
|
6527
|
+
"entries",
|
|
6528
|
+
"list.js"
|
|
6529
|
+
]
|
|
6530
|
+
},
|
|
6531
|
+
"context:entries:rebuild": {
|
|
6532
|
+
"aliases": [],
|
|
6533
|
+
"args": {
|
|
6534
|
+
"knowledgeBaseId": {
|
|
6535
|
+
"description": "Knowledge base ID",
|
|
6536
|
+
"name": "knowledgeBaseId",
|
|
6537
|
+
"required": true
|
|
6270
6538
|
},
|
|
6271
|
-
"
|
|
6272
|
-
"description": "
|
|
6273
|
-
"
|
|
6539
|
+
"path": {
|
|
6540
|
+
"description": "Entry path, as listed by `sanity context entries list`",
|
|
6541
|
+
"name": "path",
|
|
6542
|
+
"required": true
|
|
6543
|
+
}
|
|
6544
|
+
},
|
|
6545
|
+
"description": "Rebuild one entry from its sources",
|
|
6546
|
+
"examples": [
|
|
6547
|
+
{
|
|
6548
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 billing/refunds",
|
|
6549
|
+
"description": "Start a rebuild and return the job ID"
|
|
6550
|
+
},
|
|
6551
|
+
{
|
|
6552
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 billing/refunds --watch",
|
|
6553
|
+
"description": "Rebuild an entry and wait for it to finish (non-zero exit on failure)"
|
|
6554
|
+
}
|
|
6555
|
+
],
|
|
6556
|
+
"flags": {
|
|
6557
|
+
"watch": {
|
|
6558
|
+
"description": "Wait for the rebuild to finish, exiting non-zero if it fails",
|
|
6559
|
+
"name": "watch",
|
|
6560
|
+
"allowNo": false,
|
|
6561
|
+
"type": "boolean"
|
|
6562
|
+
}
|
|
6563
|
+
},
|
|
6564
|
+
"hasDynamicHelp": false,
|
|
6565
|
+
"hiddenAliases": [],
|
|
6566
|
+
"id": "context:entries:rebuild",
|
|
6567
|
+
"pluginAlias": "@sanity/cli",
|
|
6568
|
+
"pluginName": "@sanity/cli",
|
|
6569
|
+
"pluginType": "core",
|
|
6570
|
+
"strict": true,
|
|
6571
|
+
"isESM": true,
|
|
6572
|
+
"relativePath": [
|
|
6573
|
+
"dist",
|
|
6574
|
+
"commands",
|
|
6575
|
+
"context",
|
|
6576
|
+
"entries",
|
|
6577
|
+
"rebuild.js"
|
|
6578
|
+
]
|
|
6579
|
+
},
|
|
6580
|
+
"context:imports:create": {
|
|
6581
|
+
"aliases": [],
|
|
6582
|
+
"args": {
|
|
6583
|
+
"knowledgeBaseId": {
|
|
6584
|
+
"description": "Knowledge base ID",
|
|
6585
|
+
"name": "knowledgeBaseId",
|
|
6586
|
+
"required": true
|
|
6587
|
+
}
|
|
6588
|
+
},
|
|
6589
|
+
"description": "Import content into a knowledge base",
|
|
6590
|
+
"examples": [
|
|
6591
|
+
{
|
|
6592
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --text \"Refunds are processed within 5 days\" --title \"Refund policy\"",
|
|
6593
|
+
"description": "Import inline text"
|
|
6594
|
+
},
|
|
6595
|
+
{
|
|
6596
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --file ./handbook.pdf",
|
|
6597
|
+
"description": "Upload and import a local file"
|
|
6598
|
+
},
|
|
6599
|
+
{
|
|
6600
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --url https://example.com/docs",
|
|
6601
|
+
"description": "Crawl a website"
|
|
6602
|
+
},
|
|
6603
|
+
{
|
|
6604
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --query '*[_type == \"article\"]' --sanity-project abc123 --sanity-dataset production",
|
|
6605
|
+
"description": "Bind a Sanity dataset as a source"
|
|
6606
|
+
}
|
|
6607
|
+
],
|
|
6608
|
+
"flags": {
|
|
6609
|
+
"content-type": {
|
|
6610
|
+
"description": "Content type of the import (--text: text/markdown or text/plain; --file: any MIME type, inferred from the file extension when omitted)",
|
|
6611
|
+
"name": "content-type",
|
|
6612
|
+
"required": false,
|
|
6613
|
+
"hasDynamicHelp": false,
|
|
6614
|
+
"helpValue": "<mime>",
|
|
6615
|
+
"multiple": false,
|
|
6616
|
+
"type": "option"
|
|
6617
|
+
},
|
|
6618
|
+
"file": {
|
|
6619
|
+
"description": "Path to a local file to import",
|
|
6620
|
+
"exclusive": [
|
|
6274
6621
|
"text",
|
|
6275
6622
|
"url",
|
|
6276
6623
|
"query"
|
|
@@ -6659,39 +7006,81 @@
|
|
|
6659
7006
|
"get.js"
|
|
6660
7007
|
]
|
|
6661
7008
|
},
|
|
6662
|
-
"
|
|
7009
|
+
"context:issues:apply": {
|
|
6663
7010
|
"aliases": [],
|
|
6664
7011
|
"args": {
|
|
6665
|
-
"
|
|
6666
|
-
"description": "
|
|
6667
|
-
"name": "
|
|
6668
|
-
"required":
|
|
7012
|
+
"knowledgeBaseId": {
|
|
7013
|
+
"description": "Knowledge base ID",
|
|
7014
|
+
"name": "knowledgeBaseId",
|
|
7015
|
+
"required": true
|
|
7016
|
+
},
|
|
7017
|
+
"issueId": {
|
|
7018
|
+
"description": "ID of an issue to accept and apply (pass several to apply them in one batch). Conflicts can't be applied; resolve them with `sanity context issues resolve`",
|
|
7019
|
+
"multiple": true,
|
|
7020
|
+
"name": "issueId",
|
|
7021
|
+
"required": true
|
|
6669
7022
|
}
|
|
6670
7023
|
},
|
|
6671
|
-
"description": "
|
|
7024
|
+
"description": "Accept and apply issues to a knowledge base",
|
|
6672
7025
|
"examples": [
|
|
6673
7026
|
{
|
|
6674
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6675
|
-
"description": "
|
|
7027
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 issue.def456 issue.ghi789",
|
|
7028
|
+
"description": "Accept and apply two issues in one batch"
|
|
7029
|
+
},
|
|
7030
|
+
{
|
|
7031
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 issue.def456 --watch",
|
|
7032
|
+
"description": "Apply an issue and wait for it to finish (non-zero exit on failure)"
|
|
6676
7033
|
}
|
|
6677
7034
|
],
|
|
6678
7035
|
"flags": {
|
|
6679
|
-
"
|
|
6680
|
-
"
|
|
6681
|
-
"
|
|
6682
|
-
"
|
|
6683
|
-
"
|
|
6684
|
-
"hasDynamicHelp": false,
|
|
6685
|
-
"helpValue": "<id>",
|
|
6686
|
-
"multiple": false,
|
|
6687
|
-
"type": "option"
|
|
7036
|
+
"watch": {
|
|
7037
|
+
"description": "Wait for the apply to finish, exiting non-zero if it fails",
|
|
7038
|
+
"name": "watch",
|
|
7039
|
+
"allowNo": false,
|
|
7040
|
+
"type": "boolean"
|
|
6688
7041
|
}
|
|
6689
7042
|
},
|
|
6690
7043
|
"hasDynamicHelp": false,
|
|
6691
|
-
"hiddenAliases": [
|
|
6692
|
-
|
|
7044
|
+
"hiddenAliases": [],
|
|
7045
|
+
"id": "context:issues:apply",
|
|
7046
|
+
"pluginAlias": "@sanity/cli",
|
|
7047
|
+
"pluginName": "@sanity/cli",
|
|
7048
|
+
"pluginType": "core",
|
|
7049
|
+
"strict": true,
|
|
7050
|
+
"isESM": true,
|
|
7051
|
+
"relativePath": [
|
|
7052
|
+
"dist",
|
|
7053
|
+
"commands",
|
|
7054
|
+
"context",
|
|
7055
|
+
"issues",
|
|
7056
|
+
"apply.js"
|
|
7057
|
+
]
|
|
7058
|
+
},
|
|
7059
|
+
"context:issues:dismiss": {
|
|
7060
|
+
"aliases": [],
|
|
7061
|
+
"args": {
|
|
7062
|
+
"knowledgeBaseId": {
|
|
7063
|
+
"description": "Knowledge base ID",
|
|
7064
|
+
"name": "knowledgeBaseId",
|
|
7065
|
+
"required": true
|
|
7066
|
+
},
|
|
7067
|
+
"issueId": {
|
|
7068
|
+
"description": "Issue ID",
|
|
7069
|
+
"name": "issueId",
|
|
7070
|
+
"required": true
|
|
7071
|
+
}
|
|
7072
|
+
},
|
|
7073
|
+
"description": "Dismiss an issue\n\nDismissing is permanent: dismissed issues can't be reopened.",
|
|
7074
|
+
"examples": [
|
|
7075
|
+
{
|
|
7076
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 issue.def456",
|
|
7077
|
+
"description": "Dismiss an issue"
|
|
7078
|
+
}
|
|
6693
7079
|
],
|
|
6694
|
-
"
|
|
7080
|
+
"flags": {},
|
|
7081
|
+
"hasDynamicHelp": false,
|
|
7082
|
+
"hiddenAliases": [],
|
|
7083
|
+
"id": "context:issues:dismiss",
|
|
6695
7084
|
"pluginAlias": "@sanity/cli",
|
|
6696
7085
|
"pluginName": "@sanity/cli",
|
|
6697
7086
|
"pluginType": "core",
|
|
@@ -6700,66 +7089,192 @@
|
|
|
6700
7089
|
"relativePath": [
|
|
6701
7090
|
"dist",
|
|
6702
7091
|
"commands",
|
|
6703
|
-
"
|
|
6704
|
-
"
|
|
6705
|
-
"
|
|
7092
|
+
"context",
|
|
7093
|
+
"issues",
|
|
7094
|
+
"dismiss.js"
|
|
6706
7095
|
]
|
|
6707
7096
|
},
|
|
6708
|
-
"
|
|
7097
|
+
"context:issues:get": {
|
|
6709
7098
|
"aliases": [],
|
|
6710
7099
|
"args": {
|
|
6711
|
-
"
|
|
6712
|
-
"description": "
|
|
6713
|
-
"name": "
|
|
6714
|
-
"required":
|
|
7100
|
+
"knowledgeBaseId": {
|
|
7101
|
+
"description": "Knowledge base ID",
|
|
7102
|
+
"name": "knowledgeBaseId",
|
|
7103
|
+
"required": true
|
|
7104
|
+
},
|
|
7105
|
+
"issueId": {
|
|
7106
|
+
"description": "Issue ID",
|
|
7107
|
+
"name": "issueId",
|
|
7108
|
+
"required": true
|
|
6715
7109
|
}
|
|
6716
7110
|
},
|
|
6717
|
-
"description": "
|
|
7111
|
+
"description": "Get details of an issue",
|
|
6718
7112
|
"examples": [
|
|
6719
7113
|
{
|
|
6720
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6721
|
-
"description": "
|
|
7114
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 issue.def456",
|
|
7115
|
+
"description": "Get details of a specific issue"
|
|
6722
7116
|
},
|
|
6723
7117
|
{
|
|
6724
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6725
|
-
"description": "
|
|
7118
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 issue.def456 --json",
|
|
7119
|
+
"description": "Output the issue as JSON"
|
|
7120
|
+
}
|
|
7121
|
+
],
|
|
7122
|
+
"flags": {
|
|
7123
|
+
"json": {
|
|
7124
|
+
"description": "Format output as json.",
|
|
7125
|
+
"helpGroup": "GLOBAL",
|
|
7126
|
+
"name": "json",
|
|
7127
|
+
"allowNo": false,
|
|
7128
|
+
"type": "boolean"
|
|
7129
|
+
}
|
|
7130
|
+
},
|
|
7131
|
+
"hasDynamicHelp": false,
|
|
7132
|
+
"hiddenAliases": [],
|
|
7133
|
+
"id": "context:issues:get",
|
|
7134
|
+
"pluginAlias": "@sanity/cli",
|
|
7135
|
+
"pluginName": "@sanity/cli",
|
|
7136
|
+
"pluginType": "core",
|
|
7137
|
+
"strict": true,
|
|
7138
|
+
"enableJsonFlag": true,
|
|
7139
|
+
"isESM": true,
|
|
7140
|
+
"relativePath": [
|
|
7141
|
+
"dist",
|
|
7142
|
+
"commands",
|
|
7143
|
+
"context",
|
|
7144
|
+
"issues",
|
|
7145
|
+
"get.js"
|
|
7146
|
+
]
|
|
7147
|
+
},
|
|
7148
|
+
"context:issues:list": {
|
|
7149
|
+
"aliases": [],
|
|
7150
|
+
"args": {
|
|
7151
|
+
"knowledgeBaseId": {
|
|
7152
|
+
"description": "Knowledge base ID",
|
|
7153
|
+
"name": "knowledgeBaseId",
|
|
7154
|
+
"required": true
|
|
7155
|
+
}
|
|
7156
|
+
},
|
|
7157
|
+
"description": "List issues found by knowledge base builds",
|
|
7158
|
+
"examples": [
|
|
7159
|
+
{
|
|
7160
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123",
|
|
7161
|
+
"description": "List all issues for a knowledge base"
|
|
6726
7162
|
},
|
|
6727
7163
|
{
|
|
6728
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6729
|
-
"description": "
|
|
7164
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --status open",
|
|
7165
|
+
"description": "List issues awaiting triage"
|
|
7166
|
+
},
|
|
7167
|
+
{
|
|
7168
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --kind conflict --severity critical",
|
|
7169
|
+
"description": "List critical conflicts"
|
|
7170
|
+
},
|
|
7171
|
+
{
|
|
7172
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --scope billing",
|
|
7173
|
+
"description": "List issues about entries under billing/"
|
|
7174
|
+
},
|
|
7175
|
+
{
|
|
7176
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --json",
|
|
7177
|
+
"description": "Output issues as JSON"
|
|
6730
7178
|
}
|
|
6731
7179
|
],
|
|
6732
7180
|
"flags": {
|
|
6733
|
-
"
|
|
6734
|
-
"
|
|
6735
|
-
"
|
|
6736
|
-
"
|
|
6737
|
-
"
|
|
7181
|
+
"json": {
|
|
7182
|
+
"description": "Format output as json.",
|
|
7183
|
+
"helpGroup": "GLOBAL",
|
|
7184
|
+
"name": "json",
|
|
7185
|
+
"allowNo": false,
|
|
7186
|
+
"type": "boolean"
|
|
7187
|
+
},
|
|
7188
|
+
"kind": {
|
|
7189
|
+
"description": "Only list issues of this kind",
|
|
7190
|
+
"name": "kind",
|
|
6738
7191
|
"hasDynamicHelp": false,
|
|
6739
|
-
"helpValue": "<id>",
|
|
6740
7192
|
"multiple": false,
|
|
7193
|
+
"options": [
|
|
7194
|
+
"add_entry",
|
|
7195
|
+
"conflict",
|
|
7196
|
+
"gap",
|
|
7197
|
+
"merge_entry",
|
|
7198
|
+
"remove_entry",
|
|
7199
|
+
"split_entry",
|
|
7200
|
+
"update_required"
|
|
7201
|
+
],
|
|
6741
7202
|
"type": "option"
|
|
6742
7203
|
},
|
|
6743
|
-
"
|
|
6744
|
-
"description": "
|
|
6745
|
-
"name": "
|
|
6746
|
-
"required": false,
|
|
7204
|
+
"scope": {
|
|
7205
|
+
"description": "Only list issues about this entry path or anything under it (`*` for knowledge-base-wide issues)",
|
|
7206
|
+
"name": "scope",
|
|
6747
7207
|
"hasDynamicHelp": false,
|
|
7208
|
+
"helpValue": "<path>",
|
|
6748
7209
|
"multiple": false,
|
|
6749
7210
|
"type": "option"
|
|
6750
7211
|
},
|
|
6751
|
-
"
|
|
6752
|
-
"description": "
|
|
6753
|
-
"name": "
|
|
6754
|
-
"
|
|
6755
|
-
"
|
|
7212
|
+
"severity": {
|
|
7213
|
+
"description": "Only list issues of this severity",
|
|
7214
|
+
"name": "severity",
|
|
7215
|
+
"hasDynamicHelp": false,
|
|
7216
|
+
"multiple": false,
|
|
7217
|
+
"options": [
|
|
7218
|
+
"critical",
|
|
7219
|
+
"suggestion"
|
|
7220
|
+
],
|
|
7221
|
+
"type": "option"
|
|
7222
|
+
},
|
|
7223
|
+
"status": {
|
|
7224
|
+
"description": "Only list issues with this status (rejected = dismissed, accepted = resolved or applied)",
|
|
7225
|
+
"name": "status",
|
|
7226
|
+
"hasDynamicHelp": false,
|
|
7227
|
+
"multiple": false,
|
|
7228
|
+
"options": [
|
|
7229
|
+
"open",
|
|
7230
|
+
"accepted",
|
|
7231
|
+
"rejected"
|
|
7232
|
+
],
|
|
7233
|
+
"type": "option"
|
|
6756
7234
|
}
|
|
6757
7235
|
},
|
|
6758
7236
|
"hasDynamicHelp": false,
|
|
6759
|
-
"hiddenAliases": [
|
|
6760
|
-
|
|
7237
|
+
"hiddenAliases": [],
|
|
7238
|
+
"id": "context:issues:list",
|
|
7239
|
+
"pluginAlias": "@sanity/cli",
|
|
7240
|
+
"pluginName": "@sanity/cli",
|
|
7241
|
+
"pluginType": "core",
|
|
7242
|
+
"strict": true,
|
|
7243
|
+
"enableJsonFlag": true,
|
|
7244
|
+
"isESM": true,
|
|
7245
|
+
"relativePath": [
|
|
7246
|
+
"dist",
|
|
7247
|
+
"commands",
|
|
7248
|
+
"context",
|
|
7249
|
+
"issues",
|
|
7250
|
+
"list.js"
|
|
7251
|
+
]
|
|
7252
|
+
},
|
|
7253
|
+
"context:issues:reopen": {
|
|
7254
|
+
"aliases": [],
|
|
7255
|
+
"args": {
|
|
7256
|
+
"knowledgeBaseId": {
|
|
7257
|
+
"description": "Knowledge base ID",
|
|
7258
|
+
"name": "knowledgeBaseId",
|
|
7259
|
+
"required": true
|
|
7260
|
+
},
|
|
7261
|
+
"issueId": {
|
|
7262
|
+
"description": "Issue ID",
|
|
7263
|
+
"name": "issueId",
|
|
7264
|
+
"required": true
|
|
7265
|
+
}
|
|
7266
|
+
},
|
|
7267
|
+
"description": "Reopen a resolved conflict issue",
|
|
7268
|
+
"examples": [
|
|
7269
|
+
{
|
|
7270
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 issue.def456",
|
|
7271
|
+
"description": "Return a resolved conflict issue to triage"
|
|
7272
|
+
}
|
|
6761
7273
|
],
|
|
6762
|
-
"
|
|
7274
|
+
"flags": {},
|
|
7275
|
+
"hasDynamicHelp": false,
|
|
7276
|
+
"hiddenAliases": [],
|
|
7277
|
+
"id": "context:issues:reopen",
|
|
6763
7278
|
"pluginAlias": "@sanity/cli",
|
|
6764
7279
|
"pluginName": "@sanity/cli",
|
|
6765
7280
|
"pluginType": "core",
|
|
@@ -6768,44 +7283,58 @@
|
|
|
6768
7283
|
"relativePath": [
|
|
6769
7284
|
"dist",
|
|
6770
7285
|
"commands",
|
|
6771
|
-
"
|
|
6772
|
-
"
|
|
6773
|
-
"
|
|
7286
|
+
"context",
|
|
7287
|
+
"issues",
|
|
7288
|
+
"reopen.js"
|
|
6774
7289
|
]
|
|
6775
7290
|
},
|
|
6776
|
-
"
|
|
7291
|
+
"context:issues:resolve": {
|
|
6777
7292
|
"aliases": [],
|
|
6778
7293
|
"args": {
|
|
6779
|
-
"
|
|
6780
|
-
"description": "
|
|
6781
|
-
"name": "
|
|
6782
|
-
"required":
|
|
7294
|
+
"knowledgeBaseId": {
|
|
7295
|
+
"description": "Knowledge base ID",
|
|
7296
|
+
"name": "knowledgeBaseId",
|
|
7297
|
+
"required": true
|
|
7298
|
+
},
|
|
7299
|
+
"issueId": {
|
|
7300
|
+
"description": "Issue ID",
|
|
7301
|
+
"name": "issueId",
|
|
7302
|
+
"required": true
|
|
6783
7303
|
}
|
|
6784
7304
|
},
|
|
6785
|
-
"description": "
|
|
7305
|
+
"description": "Resolve a conflict issue by choosing the correct side\n\nResolving also creates a standing instruction that future builds follow. `sanity context issues reopen` removes it.",
|
|
6786
7306
|
"examples": [
|
|
6787
7307
|
{
|
|
6788
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6789
|
-
"description": "
|
|
7308
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 issue.def456",
|
|
7309
|
+
"description": "Interactively choose the correct side of a conflict"
|
|
7310
|
+
},
|
|
7311
|
+
{
|
|
7312
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 issue.def456 --side 1 --watch",
|
|
7313
|
+
"description": "Choose side 1 and wait for the entry to be rewritten"
|
|
7314
|
+
},
|
|
7315
|
+
{
|
|
7316
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 issue.def456 --side 0",
|
|
7317
|
+
"description": "Keep the entry as it is (for a conflict on a single entry)"
|
|
6790
7318
|
}
|
|
6791
7319
|
],
|
|
6792
7320
|
"flags": {
|
|
6793
|
-
"
|
|
6794
|
-
"
|
|
6795
|
-
"
|
|
6796
|
-
"helpGroup": "OVERRIDE",
|
|
6797
|
-
"name": "project-id",
|
|
7321
|
+
"side": {
|
|
7322
|
+
"description": "Index of the correct side, as listed by `sanity context issues get`",
|
|
7323
|
+
"name": "side",
|
|
6798
7324
|
"hasDynamicHelp": false,
|
|
6799
|
-
"helpValue": "<id>",
|
|
6800
7325
|
"multiple": false,
|
|
6801
7326
|
"type": "option"
|
|
7327
|
+
},
|
|
7328
|
+
"watch": {
|
|
7329
|
+
"description": "Wait for the entry rewrite to finish, exiting non-zero if it fails",
|
|
7330
|
+
"name": "watch",
|
|
7331
|
+
"allowNo": false,
|
|
7332
|
+
"type": "boolean"
|
|
6802
7333
|
}
|
|
6803
7334
|
},
|
|
6804
7335
|
"hasDynamicHelp": false,
|
|
6805
|
-
"hiddenAliases": [
|
|
6806
|
-
|
|
6807
|
-
],
|
|
6808
|
-
"id": "datasets:embeddings:status",
|
|
7336
|
+
"hiddenAliases": [],
|
|
7337
|
+
"id": "context:issues:resolve",
|
|
6809
7338
|
"pluginAlias": "@sanity/cli",
|
|
6810
7339
|
"pluginName": "@sanity/cli",
|
|
6811
7340
|
"pluginType": "core",
|
|
@@ -6814,9 +7343,9 @@
|
|
|
6814
7343
|
"relativePath": [
|
|
6815
7344
|
"dist",
|
|
6816
7345
|
"commands",
|
|
6817
|
-
"
|
|
6818
|
-
"
|
|
6819
|
-
"
|
|
7346
|
+
"context",
|
|
7347
|
+
"issues",
|
|
7348
|
+
"resolve.js"
|
|
6820
7349
|
]
|
|
6821
7350
|
},
|
|
6822
7351
|
"datasets:alias:create": {
|
|
@@ -7068,6 +7597,166 @@
|
|
|
7068
7597
|
"unlink.js"
|
|
7069
7598
|
]
|
|
7070
7599
|
},
|
|
7600
|
+
"datasets:embeddings:disable": {
|
|
7601
|
+
"aliases": [],
|
|
7602
|
+
"args": {
|
|
7603
|
+
"dataset": {
|
|
7604
|
+
"description": "Dataset name to disable embeddings for",
|
|
7605
|
+
"name": "dataset",
|
|
7606
|
+
"required": false
|
|
7607
|
+
}
|
|
7608
|
+
},
|
|
7609
|
+
"description": "Disable embeddings for a dataset",
|
|
7610
|
+
"examples": [
|
|
7611
|
+
{
|
|
7612
|
+
"command": "<%= config.bin %> <%= command.id %> production",
|
|
7613
|
+
"description": "Disable embeddings for the production dataset"
|
|
7614
|
+
}
|
|
7615
|
+
],
|
|
7616
|
+
"flags": {
|
|
7617
|
+
"project-id": {
|
|
7618
|
+
"char": "p",
|
|
7619
|
+
"description": "Project ID to disable embeddings for (overrides CLI configuration)",
|
|
7620
|
+
"helpGroup": "OVERRIDE",
|
|
7621
|
+
"name": "project-id",
|
|
7622
|
+
"hasDynamicHelp": false,
|
|
7623
|
+
"helpValue": "<id>",
|
|
7624
|
+
"multiple": false,
|
|
7625
|
+
"type": "option"
|
|
7626
|
+
}
|
|
7627
|
+
},
|
|
7628
|
+
"hasDynamicHelp": false,
|
|
7629
|
+
"hiddenAliases": [
|
|
7630
|
+
"dataset:embeddings:disable"
|
|
7631
|
+
],
|
|
7632
|
+
"id": "datasets:embeddings:disable",
|
|
7633
|
+
"pluginAlias": "@sanity/cli",
|
|
7634
|
+
"pluginName": "@sanity/cli",
|
|
7635
|
+
"pluginType": "core",
|
|
7636
|
+
"strict": true,
|
|
7637
|
+
"isESM": true,
|
|
7638
|
+
"relativePath": [
|
|
7639
|
+
"dist",
|
|
7640
|
+
"commands",
|
|
7641
|
+
"datasets",
|
|
7642
|
+
"embeddings",
|
|
7643
|
+
"disable.js"
|
|
7644
|
+
]
|
|
7645
|
+
},
|
|
7646
|
+
"datasets:embeddings:enable": {
|
|
7647
|
+
"aliases": [],
|
|
7648
|
+
"args": {
|
|
7649
|
+
"dataset": {
|
|
7650
|
+
"description": "Dataset name to enable embeddings for",
|
|
7651
|
+
"name": "dataset",
|
|
7652
|
+
"required": false
|
|
7653
|
+
}
|
|
7654
|
+
},
|
|
7655
|
+
"description": "Enable embeddings for a dataset",
|
|
7656
|
+
"examples": [
|
|
7657
|
+
{
|
|
7658
|
+
"command": "<%= config.bin %> <%= command.id %> production",
|
|
7659
|
+
"description": "Enable embeddings for the production dataset"
|
|
7660
|
+
},
|
|
7661
|
+
{
|
|
7662
|
+
"command": "<%= config.bin %> <%= command.id %> production --projection \"{ title, body }\"",
|
|
7663
|
+
"description": "Enable embeddings with a specific projection"
|
|
7664
|
+
},
|
|
7665
|
+
{
|
|
7666
|
+
"command": "<%= config.bin %> <%= command.id %> production --wait",
|
|
7667
|
+
"description": "Enable embeddings and wait for processing to complete"
|
|
7668
|
+
}
|
|
7669
|
+
],
|
|
7670
|
+
"flags": {
|
|
7671
|
+
"project-id": {
|
|
7672
|
+
"char": "p",
|
|
7673
|
+
"description": "Project ID to enable embeddings for (overrides CLI configuration)",
|
|
7674
|
+
"helpGroup": "OVERRIDE",
|
|
7675
|
+
"name": "project-id",
|
|
7676
|
+
"hasDynamicHelp": false,
|
|
7677
|
+
"helpValue": "<id>",
|
|
7678
|
+
"multiple": false,
|
|
7679
|
+
"type": "option"
|
|
7680
|
+
},
|
|
7681
|
+
"projection": {
|
|
7682
|
+
"description": "GROQ projection defining which fields to embed (e.g. \"{ title, body }\")",
|
|
7683
|
+
"name": "projection",
|
|
7684
|
+
"required": false,
|
|
7685
|
+
"hasDynamicHelp": false,
|
|
7686
|
+
"multiple": false,
|
|
7687
|
+
"type": "option"
|
|
7688
|
+
},
|
|
7689
|
+
"wait": {
|
|
7690
|
+
"description": "Wait for embeddings processing to complete before returning",
|
|
7691
|
+
"name": "wait",
|
|
7692
|
+
"allowNo": false,
|
|
7693
|
+
"type": "boolean"
|
|
7694
|
+
}
|
|
7695
|
+
},
|
|
7696
|
+
"hasDynamicHelp": false,
|
|
7697
|
+
"hiddenAliases": [
|
|
7698
|
+
"dataset:embeddings:enable"
|
|
7699
|
+
],
|
|
7700
|
+
"id": "datasets:embeddings:enable",
|
|
7701
|
+
"pluginAlias": "@sanity/cli",
|
|
7702
|
+
"pluginName": "@sanity/cli",
|
|
7703
|
+
"pluginType": "core",
|
|
7704
|
+
"strict": true,
|
|
7705
|
+
"isESM": true,
|
|
7706
|
+
"relativePath": [
|
|
7707
|
+
"dist",
|
|
7708
|
+
"commands",
|
|
7709
|
+
"datasets",
|
|
7710
|
+
"embeddings",
|
|
7711
|
+
"enable.js"
|
|
7712
|
+
]
|
|
7713
|
+
},
|
|
7714
|
+
"datasets:embeddings:status": {
|
|
7715
|
+
"aliases": [],
|
|
7716
|
+
"args": {
|
|
7717
|
+
"dataset": {
|
|
7718
|
+
"description": "The name of the dataset to check embeddings status for",
|
|
7719
|
+
"name": "dataset",
|
|
7720
|
+
"required": false
|
|
7721
|
+
}
|
|
7722
|
+
},
|
|
7723
|
+
"description": "Show embeddings settings and status for a dataset",
|
|
7724
|
+
"examples": [
|
|
7725
|
+
{
|
|
7726
|
+
"command": "<%= config.bin %> <%= command.id %> production",
|
|
7727
|
+
"description": "Show embeddings status for the production dataset"
|
|
7728
|
+
}
|
|
7729
|
+
],
|
|
7730
|
+
"flags": {
|
|
7731
|
+
"project-id": {
|
|
7732
|
+
"char": "p",
|
|
7733
|
+
"description": "Project ID to check embeddings status for (overrides CLI configuration)",
|
|
7734
|
+
"helpGroup": "OVERRIDE",
|
|
7735
|
+
"name": "project-id",
|
|
7736
|
+
"hasDynamicHelp": false,
|
|
7737
|
+
"helpValue": "<id>",
|
|
7738
|
+
"multiple": false,
|
|
7739
|
+
"type": "option"
|
|
7740
|
+
}
|
|
7741
|
+
},
|
|
7742
|
+
"hasDynamicHelp": false,
|
|
7743
|
+
"hiddenAliases": [
|
|
7744
|
+
"dataset:embeddings:status"
|
|
7745
|
+
],
|
|
7746
|
+
"id": "datasets:embeddings:status",
|
|
7747
|
+
"pluginAlias": "@sanity/cli",
|
|
7748
|
+
"pluginName": "@sanity/cli",
|
|
7749
|
+
"pluginType": "core",
|
|
7750
|
+
"strict": true,
|
|
7751
|
+
"isESM": true,
|
|
7752
|
+
"relativePath": [
|
|
7753
|
+
"dist",
|
|
7754
|
+
"commands",
|
|
7755
|
+
"datasets",
|
|
7756
|
+
"embeddings",
|
|
7757
|
+
"status.js"
|
|
7758
|
+
]
|
|
7759
|
+
},
|
|
7071
7760
|
"datasets:visibility:get": {
|
|
7072
7761
|
"aliases": [],
|
|
7073
7762
|
"args": {
|
|
@@ -7174,5 +7863,5 @@
|
|
|
7174
7863
|
]
|
|
7175
7864
|
}
|
|
7176
7865
|
},
|
|
7177
|
-
"version": "8.
|
|
7866
|
+
"version": "8.23.0"
|
|
7178
7867
|
}
|