@sanity/cli 8.11.0 → 8.13.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/README.md +79 -29
- package/dist/actions/assets/ingestAssetFromUrlWithProgress.js +21 -0
- package/dist/actions/assets/ingestAssetFromUrlWithProgress.js.map +1 -0
- package/dist/actions/assets/withUrlIngestProgress.js +45 -0
- package/dist/actions/assets/withUrlIngestProgress.js.map +1 -0
- package/dist/actions/auth/authServer.js +5 -8
- package/dist/actions/auth/authServer.js.map +1 -1
- package/dist/actions/deploy/deployApp.js +5 -2
- package/dist/actions/deploy/deployApp.js.map +1 -1
- package/dist/actions/deploy/deployChecks.js +3 -2
- package/dist/actions/deploy/deployChecks.js.map +1 -1
- package/dist/actions/deploy/findUserApplication.js +3 -2
- package/dist/actions/deploy/findUserApplication.js.map +1 -1
- package/dist/actions/deploy/resolveDeployTarget.js +6 -1
- package/dist/actions/deploy/resolveDeployTarget.js.map +1 -1
- package/dist/actions/documents/validateDocuments.worker.js +1 -4
- package/dist/actions/documents/validateDocuments.worker.js.map +1 -1
- package/dist/actions/media/importMedia.js.map +1 -1
- package/dist/actions/media/ingestMediaAssetFromUrlWithProgress.js +19 -0
- package/dist/actions/media/ingestMediaAssetFromUrlWithProgress.js.map +1 -0
- package/dist/commands/assets/upload.js +78 -52
- package/dist/commands/assets/upload.js.map +1 -1
- package/dist/commands/deploy.js +33 -1
- package/dist/commands/deploy.js.map +1 -1
- package/dist/commands/media/import.js +149 -13
- package/dist/commands/media/import.js.map +1 -1
- package/dist/commands/undeploy.js +41 -5
- package/dist/commands/undeploy.js.map +1 -1
- package/dist/exports/invokeSanityCli/commandPolicies/index.js +1 -4
- package/dist/exports/invokeSanityCli/commandPolicies/index.js.map +1 -1
- package/dist/exports/invokeSanityCli/commandPolicies/mcpPolicy.js +26 -6
- package/dist/exports/invokeSanityCli/commandPolicies/mcpPolicy.js.map +1 -1
- package/dist/exports/invokeSanityCli/commandPolicies/resolve.js +112 -0
- package/dist/exports/invokeSanityCli/commandPolicies/resolve.js.map +1 -0
- package/dist/exports/invokeSanityCli/help.js +8 -1
- package/dist/exports/invokeSanityCli/help.js.map +1 -1
- package/dist/exports/invokeSanityCli/index.d.ts +1 -2
- package/dist/exports/invokeSanityCli/index.js +37 -15
- package/dist/exports/invokeSanityCli/index.js.map +1 -1
- package/dist/generated/apiRoutes.js +12 -0
- package/dist/generated/apiRoutes.js.map +1 -1
- package/dist/services/assets.js +46 -1
- package/dist/services/assets.js.map +1 -1
- package/dist/services/mediaLibraries.js +39 -1
- package/dist/services/mediaLibraries.js.map +1 -1
- package/dist/util/assetSourceValidation.js +56 -0
- package/dist/util/assetSourceValidation.js.map +1 -0
- package/dist/util/assetUploadErrors.js +64 -0
- package/dist/util/assetUploadErrors.js.map +1 -0
- package/dist/util/isRemoteAssetSource.js +19 -0
- package/dist/util/isRemoteAssetSource.js.map +1 -0
- package/dist/util/parseAspectFlags.js +34 -0
- package/dist/util/parseAspectFlags.js.map +1 -0
- package/oclif.config.js +0 -1
- package/oclif.manifest.json +952 -864
- package/package.json +18 -18
- package/templates/app-quickstart/AGENTS.md +18 -0
- package/templates/app-sanity-ui/AGENTS.md +18 -0
- package/templates/shopify/.gitignore +26 -0
- package/dist/exports/invokeSanityCli/commandPolicies/policy.js +0 -46
- package/dist/exports/invokeSanityCli/commandPolicies/policy.js.map +0 -1
package/oclif.manifest.json
CHANGED
|
@@ -358,6 +358,18 @@
|
|
|
358
358
|
{
|
|
359
359
|
"command": "<%= config.bin %> <%= command.id %> --external",
|
|
360
360
|
"description": "Register an externally hosted studio (studioHost contains full URL)"
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"command": "<%= config.bin %> <%= command.id %> --create --title \"My App\" --yes --json",
|
|
364
|
+
"description": "Create and deploy an App SDK app without prompts. Save application.id as deployment.appId, then omit --create on later deploys"
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"command": "<%= config.bin %> <%= command.id %> --create --title \"My App\" --dry-run --json",
|
|
368
|
+
"description": "Preview a new App SDK deployment without creating or uploading anything"
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"command": "<%= config.bin %> <%= command.id %> --url my-studio --yes",
|
|
372
|
+
"description": "Deploy a studio without prompts using its hostname"
|
|
361
373
|
}
|
|
362
374
|
],
|
|
363
375
|
"flags": {
|
|
@@ -374,6 +386,16 @@
|
|
|
374
386
|
"allowNo": true,
|
|
375
387
|
"type": "boolean"
|
|
376
388
|
},
|
|
389
|
+
"create": {
|
|
390
|
+
"description": "Create a new App SDK app, even if the organization has other apps",
|
|
391
|
+
"exclusive": [
|
|
392
|
+
"external",
|
|
393
|
+
"url"
|
|
394
|
+
],
|
|
395
|
+
"name": "create",
|
|
396
|
+
"allowNo": false,
|
|
397
|
+
"type": "boolean"
|
|
398
|
+
},
|
|
377
399
|
"dry-run": {
|
|
378
400
|
"description": "Report what would be deployed without uploading or creating anything",
|
|
379
401
|
"name": "dry-run",
|
|
@@ -417,7 +439,7 @@
|
|
|
417
439
|
"type": "boolean"
|
|
418
440
|
},
|
|
419
441
|
"title": {
|
|
420
|
-
"description": "Title for a newly created application or studio. For apps
|
|
442
|
+
"description": "Title for a newly created application or studio. For apps, use --create to select creation when the organization already has apps",
|
|
421
443
|
"name": "title",
|
|
422
444
|
"hasDynamicHelp": false,
|
|
423
445
|
"multiple": false,
|
|
@@ -1279,13 +1301,22 @@
|
|
|
1279
1301
|
},
|
|
1280
1302
|
"undeploy": {
|
|
1281
1303
|
"aliases": [],
|
|
1282
|
-
"args": {
|
|
1304
|
+
"args": {
|
|
1305
|
+
"appId": {
|
|
1306
|
+
"description": "ID of the application to undeploy. Overrides `deployment.appId` in sanity.cli.ts",
|
|
1307
|
+
"name": "appId"
|
|
1308
|
+
}
|
|
1309
|
+
},
|
|
1283
1310
|
"description": "Removes the deployed Sanity Studio/App from Sanity hosting",
|
|
1284
1311
|
"examples": [
|
|
1285
1312
|
{
|
|
1286
1313
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
1287
1314
|
"description": "Undeploy the studio or application after confirming"
|
|
1288
1315
|
},
|
|
1316
|
+
{
|
|
1317
|
+
"command": "<%= config.bin %> <%= command.id %> abc123",
|
|
1318
|
+
"description": "Undeploy the studio or application with the given ID"
|
|
1319
|
+
},
|
|
1289
1320
|
{
|
|
1290
1321
|
"command": "<%= config.bin %> <%= command.id %> --dry-run",
|
|
1291
1322
|
"description": "Report what would be undeployed without deleting anything"
|
|
@@ -1356,7 +1387,7 @@
|
|
|
1356
1387
|
"assets:upload": {
|
|
1357
1388
|
"aliases": [],
|
|
1358
1389
|
"args": {},
|
|
1359
|
-
"description": "Upload one
|
|
1390
|
+
"description": "Upload one image or file to a Sanity dataset, from a local path or a URL, and print the asset document as JSON",
|
|
1360
1391
|
"examples": [
|
|
1361
1392
|
{
|
|
1362
1393
|
"command": "<%= config.bin %> <%= command.id %> --file ./hero.png --type image --dataset production",
|
|
@@ -1365,6 +1396,10 @@
|
|
|
1365
1396
|
{
|
|
1366
1397
|
"command": "<%= config.bin %> <%= command.id %> --file ./brief.pdf --type file --content-type application/pdf --project-id abc123 --dataset production",
|
|
1367
1398
|
"description": "Upload a file with explicit project, dataset, and MIME type"
|
|
1399
|
+
},
|
|
1400
|
+
{
|
|
1401
|
+
"command": "<%= config.bin %> <%= command.id %> --from-url 'https://example.com/hero.png' --type image --dataset production",
|
|
1402
|
+
"description": "Have Sanity fetch an image from a public URL"
|
|
1368
1403
|
}
|
|
1369
1404
|
],
|
|
1370
1405
|
"flags": {
|
|
@@ -1389,7 +1424,7 @@
|
|
|
1389
1424
|
"type": "option"
|
|
1390
1425
|
},
|
|
1391
1426
|
"content-type": {
|
|
1392
|
-
"description": "MIME type of the asset, such as image/png or application/pdf",
|
|
1427
|
+
"description": "MIME type of the asset, such as image/png or application/pdf. Only applies to --file",
|
|
1393
1428
|
"name": "content-type",
|
|
1394
1429
|
"hasDynamicHelp": false,
|
|
1395
1430
|
"helpValue": "<mime-type>",
|
|
@@ -1399,20 +1434,27 @@
|
|
|
1399
1434
|
"file": {
|
|
1400
1435
|
"description": "Path to the local file to upload",
|
|
1401
1436
|
"name": "file",
|
|
1402
|
-
"required": true,
|
|
1403
1437
|
"hasDynamicHelp": false,
|
|
1404
1438
|
"helpValue": "<path>",
|
|
1405
1439
|
"multiple": false,
|
|
1406
1440
|
"type": "option"
|
|
1407
1441
|
},
|
|
1408
1442
|
"filename": {
|
|
1409
|
-
"description": "Original filename stored on the asset document. Defaults to the local filename",
|
|
1443
|
+
"description": "Original filename stored on the asset document. Defaults to the local filename when using --file",
|
|
1410
1444
|
"name": "filename",
|
|
1411
1445
|
"hasDynamicHelp": false,
|
|
1412
1446
|
"helpValue": "<filename>",
|
|
1413
1447
|
"multiple": false,
|
|
1414
1448
|
"type": "option"
|
|
1415
1449
|
},
|
|
1450
|
+
"from-url": {
|
|
1451
|
+
"description": "https URL for Sanity to fetch the asset from, instead of uploading a local file. Must be reachable from the public internet without authentication",
|
|
1452
|
+
"name": "from-url",
|
|
1453
|
+
"hasDynamicHelp": false,
|
|
1454
|
+
"helpValue": "<url>",
|
|
1455
|
+
"multiple": false,
|
|
1456
|
+
"type": "option"
|
|
1457
|
+
},
|
|
1416
1458
|
"type": {
|
|
1417
1459
|
"description": "Asset type to create",
|
|
1418
1460
|
"name": "type",
|
|
@@ -1448,6 +1490,12 @@
|
|
|
1448
1490
|
"flags": [
|
|
1449
1491
|
"--filename"
|
|
1450
1492
|
]
|
|
1493
|
+
},
|
|
1494
|
+
{
|
|
1495
|
+
"canonical": "--from-url",
|
|
1496
|
+
"flags": [
|
|
1497
|
+
"--from-url"
|
|
1498
|
+
]
|
|
1451
1499
|
}
|
|
1452
1500
|
]
|
|
1453
1501
|
},
|
|
@@ -2270,156 +2318,69 @@
|
|
|
2270
2318
|
"list.js"
|
|
2271
2319
|
]
|
|
2272
2320
|
},
|
|
2273
|
-
"
|
|
2321
|
+
"docs:browse": {
|
|
2322
|
+
"aliases": [],
|
|
2323
|
+
"args": {},
|
|
2324
|
+
"description": "Open Sanity docs in your browser",
|
|
2325
|
+
"flags": {},
|
|
2326
|
+
"hasDynamicHelp": false,
|
|
2327
|
+
"hiddenAliases": [],
|
|
2328
|
+
"id": "docs:browse",
|
|
2329
|
+
"pluginAlias": "@sanity/cli",
|
|
2330
|
+
"pluginName": "@sanity/cli",
|
|
2331
|
+
"pluginType": "core",
|
|
2332
|
+
"strict": true,
|
|
2333
|
+
"enableJsonFlag": false,
|
|
2334
|
+
"isESM": true,
|
|
2335
|
+
"relativePath": [
|
|
2336
|
+
"dist",
|
|
2337
|
+
"commands",
|
|
2338
|
+
"docs",
|
|
2339
|
+
"browse.js"
|
|
2340
|
+
]
|
|
2341
|
+
},
|
|
2342
|
+
"docs:read": {
|
|
2274
2343
|
"aliases": [],
|
|
2275
2344
|
"args": {
|
|
2276
|
-
"
|
|
2277
|
-
"description": "
|
|
2278
|
-
"name": "
|
|
2279
|
-
"required":
|
|
2280
|
-
},
|
|
2281
|
-
"target": {
|
|
2282
|
-
"description": "Name of the dataset to copy to",
|
|
2283
|
-
"name": "target",
|
|
2284
|
-
"required": false
|
|
2345
|
+
"path": {
|
|
2346
|
+
"description": "Path or URL to article, found in search results and docs content as links",
|
|
2347
|
+
"name": "path",
|
|
2348
|
+
"required": true
|
|
2285
2349
|
}
|
|
2286
2350
|
},
|
|
2287
|
-
"description": "
|
|
2351
|
+
"description": "Read an article in terminal",
|
|
2288
2352
|
"examples": [
|
|
2289
2353
|
{
|
|
2290
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2291
|
-
"description": "
|
|
2292
|
-
},
|
|
2293
|
-
{
|
|
2294
|
-
"command": "<%= config.bin %> <%= command.id %> source-dataset",
|
|
2295
|
-
"description": "Copy from source-dataset (prompts for target)"
|
|
2296
|
-
},
|
|
2297
|
-
{
|
|
2298
|
-
"command": "<%= config.bin %> <%= command.id %> source-dataset target-dataset",
|
|
2299
|
-
"description": "Copy from source-dataset to target-dataset"
|
|
2300
|
-
},
|
|
2301
|
-
{
|
|
2302
|
-
"command": "<%= config.bin %> <%= command.id %> --skip-history source target",
|
|
2303
|
-
"description": "Copy without preserving document history (faster for large datasets)"
|
|
2304
|
-
},
|
|
2305
|
-
{
|
|
2306
|
-
"command": "<%= config.bin %> <%= command.id %> --skip-content-releases source target",
|
|
2307
|
-
"description": "Copy without content release documents"
|
|
2308
|
-
},
|
|
2309
|
-
{
|
|
2310
|
-
"command": "<%= config.bin %> <%= command.id %> --detach source target",
|
|
2311
|
-
"description": "Start copy job without waiting for completion"
|
|
2354
|
+
"command": "<%= config.bin %> <%= command.id %> /docs/studio/installation",
|
|
2355
|
+
"description": "Read as markdown in terminal"
|
|
2312
2356
|
},
|
|
2313
2357
|
{
|
|
2314
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2315
|
-
"description": "
|
|
2358
|
+
"command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation",
|
|
2359
|
+
"description": "Read using full URL"
|
|
2316
2360
|
},
|
|
2317
2361
|
{
|
|
2318
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
2319
|
-
"description": "
|
|
2362
|
+
"command": "<%= config.bin %> <%= command.id %> /docs/studio/installation --web",
|
|
2363
|
+
"description": "Open in web browser"
|
|
2320
2364
|
},
|
|
2321
2365
|
{
|
|
2322
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2323
|
-
"description": "
|
|
2366
|
+
"command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation -w",
|
|
2367
|
+
"description": "Open using full URL in web browser"
|
|
2324
2368
|
}
|
|
2325
2369
|
],
|
|
2326
2370
|
"flags": {
|
|
2327
|
-
"
|
|
2328
|
-
"
|
|
2329
|
-
|
|
2330
|
-
"helpGroup": "OVERRIDE",
|
|
2331
|
-
"name": "project-id",
|
|
2332
|
-
"hasDynamicHelp": false,
|
|
2333
|
-
"helpValue": "<id>",
|
|
2334
|
-
"multiple": false,
|
|
2335
|
-
"type": "option"
|
|
2336
|
-
},
|
|
2337
|
-
"attach": {
|
|
2338
|
-
"description": "Attach to the running copy process to show progress",
|
|
2339
|
-
"exclusive": [
|
|
2340
|
-
"list",
|
|
2341
|
-
"detach",
|
|
2342
|
-
"skip-history"
|
|
2343
|
-
],
|
|
2344
|
-
"name": "attach",
|
|
2345
|
-
"required": false,
|
|
2346
|
-
"hasDynamicHelp": false,
|
|
2347
|
-
"multiple": false,
|
|
2348
|
-
"type": "option"
|
|
2349
|
-
},
|
|
2350
|
-
"detach": {
|
|
2351
|
-
"description": "Start the copy without waiting for it to finish",
|
|
2352
|
-
"exclusive": [
|
|
2353
|
-
"list",
|
|
2354
|
-
"attach"
|
|
2355
|
-
],
|
|
2356
|
-
"name": "detach",
|
|
2357
|
-
"required": false,
|
|
2358
|
-
"allowNo": false,
|
|
2359
|
-
"type": "boolean"
|
|
2360
|
-
},
|
|
2361
|
-
"limit": {
|
|
2362
|
-
"dependsOn": [
|
|
2363
|
-
"list"
|
|
2364
|
-
],
|
|
2365
|
-
"description": "Maximum number of jobs returned (default 10, max 1000)",
|
|
2366
|
-
"name": "limit",
|
|
2367
|
-
"required": false,
|
|
2368
|
-
"hasDynamicHelp": false,
|
|
2369
|
-
"multiple": false,
|
|
2370
|
-
"type": "option"
|
|
2371
|
-
},
|
|
2372
|
-
"list": {
|
|
2373
|
-
"description": "Lists all dataset copy jobs",
|
|
2374
|
-
"exclusive": [
|
|
2375
|
-
"attach",
|
|
2376
|
-
"detach",
|
|
2377
|
-
"skip-history"
|
|
2378
|
-
],
|
|
2379
|
-
"name": "list",
|
|
2380
|
-
"required": false,
|
|
2381
|
-
"allowNo": false,
|
|
2382
|
-
"type": "boolean"
|
|
2383
|
-
},
|
|
2384
|
-
"offset": {
|
|
2385
|
-
"dependsOn": [
|
|
2386
|
-
"list"
|
|
2387
|
-
],
|
|
2388
|
-
"description": "Start position in the list of jobs (default 0)",
|
|
2389
|
-
"name": "offset",
|
|
2390
|
-
"required": false,
|
|
2391
|
-
"hasDynamicHelp": false,
|
|
2392
|
-
"multiple": false,
|
|
2393
|
-
"type": "option"
|
|
2394
|
-
},
|
|
2395
|
-
"skip-content-releases": {
|
|
2396
|
-
"description": "Don't copy content release documents to the target dataset",
|
|
2397
|
-
"exclusive": [
|
|
2398
|
-
"list",
|
|
2399
|
-
"attach"
|
|
2400
|
-
],
|
|
2401
|
-
"name": "skip-content-releases",
|
|
2402
|
-
"required": false,
|
|
2403
|
-
"allowNo": false,
|
|
2404
|
-
"type": "boolean"
|
|
2405
|
-
},
|
|
2406
|
-
"skip-history": {
|
|
2407
|
-
"description": "Don't preserve document history on copy",
|
|
2408
|
-
"exclusive": [
|
|
2409
|
-
"list",
|
|
2410
|
-
"attach"
|
|
2371
|
+
"web": {
|
|
2372
|
+
"aliases": [
|
|
2373
|
+
"w"
|
|
2411
2374
|
],
|
|
2412
|
-
"
|
|
2413
|
-
"
|
|
2375
|
+
"description": "Open in a web browser",
|
|
2376
|
+
"name": "web",
|
|
2414
2377
|
"allowNo": false,
|
|
2415
2378
|
"type": "boolean"
|
|
2416
2379
|
}
|
|
2417
2380
|
},
|
|
2418
2381
|
"hasDynamicHelp": false,
|
|
2419
|
-
"hiddenAliases": [
|
|
2420
|
-
|
|
2421
|
-
],
|
|
2422
|
-
"id": "datasets:copy",
|
|
2382
|
+
"hiddenAliases": [],
|
|
2383
|
+
"id": "docs:read",
|
|
2423
2384
|
"pluginAlias": "@sanity/cli",
|
|
2424
2385
|
"pluginName": "@sanity/cli",
|
|
2425
2386
|
"pluginType": "core",
|
|
@@ -2428,80 +2389,151 @@
|
|
|
2428
2389
|
"relativePath": [
|
|
2429
2390
|
"dist",
|
|
2430
2391
|
"commands",
|
|
2431
|
-
"
|
|
2432
|
-
"
|
|
2392
|
+
"docs",
|
|
2393
|
+
"read.js"
|
|
2433
2394
|
]
|
|
2434
2395
|
},
|
|
2435
|
-
"
|
|
2396
|
+
"docs:search": {
|
|
2436
2397
|
"aliases": [],
|
|
2437
2398
|
"args": {
|
|
2438
|
-
"
|
|
2439
|
-
"description": "
|
|
2440
|
-
"name": "
|
|
2441
|
-
"required":
|
|
2399
|
+
"query": {
|
|
2400
|
+
"description": "Search query for documentation",
|
|
2401
|
+
"name": "query",
|
|
2402
|
+
"required": true
|
|
2442
2403
|
}
|
|
2443
2404
|
},
|
|
2444
|
-
"description": "
|
|
2405
|
+
"description": "Search Sanity docs",
|
|
2445
2406
|
"examples": [
|
|
2446
2407
|
{
|
|
2447
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2448
|
-
"description": "
|
|
2408
|
+
"command": "<%= config.bin %> <%= command.id %> schema",
|
|
2409
|
+
"description": "Search for documentation about schemas"
|
|
2449
2410
|
},
|
|
2450
2411
|
{
|
|
2451
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2452
|
-
"description": "
|
|
2412
|
+
"command": "<%= config.bin %> <%= command.id %> \"groq functions\"",
|
|
2413
|
+
"description": "Search with phrase"
|
|
2453
2414
|
},
|
|
2454
2415
|
{
|
|
2455
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2456
|
-
"description": "
|
|
2416
|
+
"command": "<%= config.bin %> <%= command.id %> \"deployment\" --limit=5",
|
|
2417
|
+
"description": "Limit search results"
|
|
2457
2418
|
}
|
|
2458
2419
|
],
|
|
2459
2420
|
"flags": {
|
|
2460
|
-
"
|
|
2461
|
-
"
|
|
2462
|
-
"
|
|
2463
|
-
"
|
|
2464
|
-
"name": "project-id",
|
|
2465
|
-
"hasDynamicHelp": false,
|
|
2466
|
-
"helpValue": "<id>",
|
|
2467
|
-
"multiple": false,
|
|
2468
|
-
"type": "option"
|
|
2469
|
-
},
|
|
2470
|
-
"embeddings": {
|
|
2471
|
-
"description": "Enable embeddings for this dataset",
|
|
2472
|
-
"name": "embeddings",
|
|
2473
|
-
"allowNo": false,
|
|
2474
|
-
"type": "boolean"
|
|
2475
|
-
},
|
|
2476
|
-
"embeddings-projection": {
|
|
2477
|
-
"dependsOn": [
|
|
2478
|
-
"embeddings"
|
|
2479
|
-
],
|
|
2480
|
-
"description": "GROQ projection for embeddings indexing (e.g. \"{ title, body }\")",
|
|
2481
|
-
"name": "embeddings-projection",
|
|
2421
|
+
"limit": {
|
|
2422
|
+
"description": "Maximum number of results to return",
|
|
2423
|
+
"name": "limit",
|
|
2424
|
+
"default": 10,
|
|
2482
2425
|
"hasDynamicHelp": false,
|
|
2483
2426
|
"multiple": false,
|
|
2484
2427
|
"type": "option"
|
|
2485
|
-
}
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2428
|
+
}
|
|
2429
|
+
},
|
|
2430
|
+
"hasDynamicHelp": false,
|
|
2431
|
+
"hiddenAliases": [],
|
|
2432
|
+
"id": "docs:search",
|
|
2433
|
+
"pluginAlias": "@sanity/cli",
|
|
2434
|
+
"pluginName": "@sanity/cli",
|
|
2435
|
+
"pluginType": "core",
|
|
2436
|
+
"strict": true,
|
|
2437
|
+
"isESM": true,
|
|
2438
|
+
"relativePath": [
|
|
2439
|
+
"dist",
|
|
2440
|
+
"commands",
|
|
2441
|
+
"docs",
|
|
2442
|
+
"search.js"
|
|
2443
|
+
]
|
|
2444
|
+
},
|
|
2445
|
+
"graphql:deploy": {
|
|
2446
|
+
"aliases": [],
|
|
2447
|
+
"args": {},
|
|
2448
|
+
"description": "Deploy a GraphQL API from the current Sanity schema",
|
|
2449
|
+
"examples": [
|
|
2450
|
+
{
|
|
2451
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
2452
|
+
"description": "Deploy all defined GraphQL APIs"
|
|
2453
|
+
},
|
|
2454
|
+
{
|
|
2455
|
+
"command": "<%= config.bin %> <%= command.id %> --dry-run",
|
|
2456
|
+
"description": "Validate defined GraphQL APIs, check for breaking changes, skip deploy"
|
|
2457
|
+
},
|
|
2458
|
+
{
|
|
2459
|
+
"command": "<%= config.bin %> <%= command.id %> --api staging --api ios",
|
|
2460
|
+
"description": "Deploy only the GraphQL APIs with the IDs \"staging\" and \"ios\""
|
|
2461
|
+
},
|
|
2462
|
+
{
|
|
2463
|
+
"command": "<%= config.bin %> <%= command.id %> --playground",
|
|
2464
|
+
"description": "Deploy all defined GraphQL APIs, overriding any playground setting"
|
|
2465
|
+
}
|
|
2466
|
+
],
|
|
2467
|
+
"flags": {
|
|
2468
|
+
"api": {
|
|
2469
|
+
"description": "Only deploy API with this ID (can be specified multiple times)",
|
|
2470
|
+
"name": "api",
|
|
2471
|
+
"hasDynamicHelp": false,
|
|
2472
|
+
"multiple": true,
|
|
2473
|
+
"type": "option"
|
|
2474
|
+
},
|
|
2475
|
+
"dataset": {
|
|
2476
|
+
"char": "d",
|
|
2477
|
+
"description": "Deploy API for the given dataset",
|
|
2478
|
+
"name": "dataset",
|
|
2479
|
+
"hasDynamicHelp": false,
|
|
2480
|
+
"helpValue": "<name>",
|
|
2481
|
+
"multiple": false,
|
|
2482
|
+
"type": "option"
|
|
2483
|
+
},
|
|
2484
|
+
"dry-run": {
|
|
2485
|
+
"description": "Validate defined GraphQL APIs, check for breaking changes, skip deploy",
|
|
2486
|
+
"name": "dry-run",
|
|
2487
|
+
"allowNo": false,
|
|
2488
|
+
"type": "boolean"
|
|
2489
|
+
},
|
|
2490
|
+
"force": {
|
|
2491
|
+
"description": "Deploy API without confirming breaking changes",
|
|
2492
|
+
"name": "force",
|
|
2493
|
+
"allowNo": false,
|
|
2494
|
+
"type": "boolean"
|
|
2495
|
+
},
|
|
2496
|
+
"generation": {
|
|
2497
|
+
"description": "API generation to deploy (defaults to \"gen3\")",
|
|
2498
|
+
"name": "generation",
|
|
2490
2499
|
"hasDynamicHelp": false,
|
|
2491
2500
|
"multiple": false,
|
|
2492
2501
|
"options": [
|
|
2493
|
-
"
|
|
2494
|
-
"
|
|
2495
|
-
"
|
|
2502
|
+
"gen1",
|
|
2503
|
+
"gen2",
|
|
2504
|
+
"gen3"
|
|
2496
2505
|
],
|
|
2497
2506
|
"type": "option"
|
|
2507
|
+
},
|
|
2508
|
+
"non-null-document-fields": {
|
|
2509
|
+
"description": "Use non-null document fields (_id, _type etc)",
|
|
2510
|
+
"name": "non-null-document-fields",
|
|
2511
|
+
"allowNo": false,
|
|
2512
|
+
"type": "boolean"
|
|
2513
|
+
},
|
|
2514
|
+
"playground": {
|
|
2515
|
+
"description": "Enable GraphQL playground for easier debugging",
|
|
2516
|
+
"name": "playground",
|
|
2517
|
+
"allowNo": true,
|
|
2518
|
+
"type": "boolean"
|
|
2519
|
+
},
|
|
2520
|
+
"tag": {
|
|
2521
|
+
"description": "Deploy API(s) to given tag (defaults to \"default\")",
|
|
2522
|
+
"name": "tag",
|
|
2523
|
+
"hasDynamicHelp": false,
|
|
2524
|
+
"multiple": false,
|
|
2525
|
+
"type": "option"
|
|
2526
|
+
},
|
|
2527
|
+
"with-union-cache": {
|
|
2528
|
+
"description": "Cache union types (faster for schemas with many self-references)",
|
|
2529
|
+
"name": "with-union-cache",
|
|
2530
|
+
"allowNo": false,
|
|
2531
|
+
"type": "boolean"
|
|
2498
2532
|
}
|
|
2499
2533
|
},
|
|
2500
2534
|
"hasDynamicHelp": false,
|
|
2501
|
-
"hiddenAliases": [
|
|
2502
|
-
|
|
2503
|
-
],
|
|
2504
|
-
"id": "datasets:create",
|
|
2535
|
+
"hiddenAliases": [],
|
|
2536
|
+
"id": "graphql:deploy",
|
|
2505
2537
|
"pluginAlias": "@sanity/cli",
|
|
2506
2538
|
"pluginName": "@sanity/cli",
|
|
2507
2539
|
"pluginType": "core",
|
|
@@ -2510,53 +2542,39 @@
|
|
|
2510
2542
|
"relativePath": [
|
|
2511
2543
|
"dist",
|
|
2512
2544
|
"commands",
|
|
2513
|
-
"
|
|
2514
|
-
"
|
|
2545
|
+
"graphql",
|
|
2546
|
+
"deploy.js"
|
|
2515
2547
|
]
|
|
2516
2548
|
},
|
|
2517
|
-
"
|
|
2549
|
+
"graphql:list": {
|
|
2518
2550
|
"aliases": [],
|
|
2519
|
-
"args": {
|
|
2520
|
-
|
|
2521
|
-
"description": "Dataset name to delete",
|
|
2522
|
-
"name": "datasetName",
|
|
2523
|
-
"required": true
|
|
2524
|
-
}
|
|
2525
|
-
},
|
|
2526
|
-
"description": "Delete a dataset from the project",
|
|
2551
|
+
"args": {},
|
|
2552
|
+
"description": "List deployed GraphQL endpoints for the project",
|
|
2527
2553
|
"examples": [
|
|
2528
2554
|
{
|
|
2529
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2530
|
-
"description": "
|
|
2555
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
2556
|
+
"description": "List GraphQL endpoints for the project"
|
|
2531
2557
|
},
|
|
2532
2558
|
{
|
|
2533
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2534
|
-
"description": "
|
|
2559
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
2560
|
+
"description": "List GraphQL endpoints for a specific project"
|
|
2535
2561
|
}
|
|
2536
2562
|
],
|
|
2537
2563
|
"flags": {
|
|
2538
2564
|
"project-id": {
|
|
2539
2565
|
"char": "p",
|
|
2540
|
-
"description": "Project ID to
|
|
2566
|
+
"description": "Project ID to list GraphQL endpoints for (overrides CLI configuration)",
|
|
2541
2567
|
"helpGroup": "OVERRIDE",
|
|
2542
2568
|
"name": "project-id",
|
|
2543
2569
|
"hasDynamicHelp": false,
|
|
2544
2570
|
"helpValue": "<id>",
|
|
2545
2571
|
"multiple": false,
|
|
2546
2572
|
"type": "option"
|
|
2547
|
-
},
|
|
2548
|
-
"force": {
|
|
2549
|
-
"description": "Do not prompt for delete confirmation - forcefully delete",
|
|
2550
|
-
"name": "force",
|
|
2551
|
-
"allowNo": false,
|
|
2552
|
-
"type": "boolean"
|
|
2553
2573
|
}
|
|
2554
2574
|
},
|
|
2555
2575
|
"hasDynamicHelp": false,
|
|
2556
|
-
"hiddenAliases": [
|
|
2557
|
-
|
|
2558
|
-
],
|
|
2559
|
-
"id": "datasets:delete",
|
|
2576
|
+
"hiddenAliases": [],
|
|
2577
|
+
"id": "graphql:list",
|
|
2560
2578
|
"pluginAlias": "@sanity/cli",
|
|
2561
2579
|
"pluginName": "@sanity/cli",
|
|
2562
2580
|
"pluginType": "core",
|
|
@@ -2565,49 +2583,44 @@
|
|
|
2565
2583
|
"relativePath": [
|
|
2566
2584
|
"dist",
|
|
2567
2585
|
"commands",
|
|
2568
|
-
"
|
|
2569
|
-
"
|
|
2586
|
+
"graphql",
|
|
2587
|
+
"list.js"
|
|
2570
2588
|
]
|
|
2571
2589
|
},
|
|
2572
|
-
"
|
|
2590
|
+
"graphql:undeploy": {
|
|
2573
2591
|
"aliases": [],
|
|
2574
|
-
"args": {
|
|
2575
|
-
|
|
2576
|
-
"description": "Name of the dataset to export",
|
|
2577
|
-
"name": "name"
|
|
2578
|
-
},
|
|
2579
|
-
"destination": {
|
|
2580
|
-
"description": "Output destination file path",
|
|
2581
|
-
"name": "destination"
|
|
2582
|
-
}
|
|
2583
|
-
},
|
|
2584
|
-
"description": "Export a dataset to a local gzipped tarball. Assets returning 401, 403, or 404 are excluded from the export.",
|
|
2592
|
+
"args": {},
|
|
2593
|
+
"description": "Remove a deployed GraphQL API",
|
|
2585
2594
|
"examples": [
|
|
2586
2595
|
{
|
|
2587
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2588
|
-
"description": "
|
|
2596
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
2597
|
+
"description": "Undeploy GraphQL API for current project and dataset"
|
|
2589
2598
|
},
|
|
2590
2599
|
{
|
|
2591
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2592
|
-
"description": "
|
|
2600
|
+
"command": "<%= config.bin %> <%= command.id %> --api ios",
|
|
2601
|
+
"description": "Undeploy API with ID \"ios\""
|
|
2593
2602
|
},
|
|
2594
2603
|
{
|
|
2595
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2596
|
-
"description": "
|
|
2604
|
+
"command": "<%= config.bin %> <%= command.id %> --dataset staging",
|
|
2605
|
+
"description": "Undeploy GraphQL API for staging dataset"
|
|
2597
2606
|
},
|
|
2598
2607
|
{
|
|
2599
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2600
|
-
"description": "
|
|
2608
|
+
"command": "<%= config.bin %> <%= command.id %> --dataset staging --tag next",
|
|
2609
|
+
"description": "Undeploy GraphQL API for staging dataset with \"next\" tag"
|
|
2601
2610
|
},
|
|
2602
2611
|
{
|
|
2603
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2604
|
-
"description": "
|
|
2612
|
+
"command": "<%= config.bin %> <%= command.id %> --force",
|
|
2613
|
+
"description": "Undeploy GraphQL API without confirmation prompt"
|
|
2614
|
+
},
|
|
2615
|
+
{
|
|
2616
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123 --dataset production",
|
|
2617
|
+
"description": "Undeploy GraphQL API for a specific project and dataset"
|
|
2605
2618
|
}
|
|
2606
2619
|
],
|
|
2607
2620
|
"flags": {
|
|
2608
2621
|
"project-id": {
|
|
2609
2622
|
"char": "p",
|
|
2610
|
-
"description": "Project ID to
|
|
2623
|
+
"description": "Project ID to undeploy GraphQL API from (overrides CLI configuration)",
|
|
2611
2624
|
"helpGroup": "OVERRIDE",
|
|
2612
2625
|
"name": "project-id",
|
|
2613
2626
|
"hasDynamicHelp": false,
|
|
@@ -2615,75 +2628,59 @@
|
|
|
2615
2628
|
"multiple": false,
|
|
2616
2629
|
"type": "option"
|
|
2617
2630
|
},
|
|
2618
|
-
"
|
|
2619
|
-
"description": "
|
|
2620
|
-
"
|
|
2621
|
-
|
|
2631
|
+
"api": {
|
|
2632
|
+
"description": "Undeploy API with this ID",
|
|
2633
|
+
"exclusive": [
|
|
2634
|
+
"project-id",
|
|
2635
|
+
"project"
|
|
2636
|
+
],
|
|
2637
|
+
"name": "api",
|
|
2638
|
+
"required": false,
|
|
2622
2639
|
"hasDynamicHelp": false,
|
|
2623
2640
|
"multiple": false,
|
|
2624
2641
|
"type": "option"
|
|
2625
2642
|
},
|
|
2626
|
-
"
|
|
2627
|
-
"
|
|
2628
|
-
"
|
|
2629
|
-
"
|
|
2643
|
+
"dataset": {
|
|
2644
|
+
"char": "d",
|
|
2645
|
+
"description": "Dataset to undeploy GraphQL API from (overrides CLI configuration)",
|
|
2646
|
+
"helpGroup": "OVERRIDE",
|
|
2647
|
+
"name": "dataset",
|
|
2630
2648
|
"hasDynamicHelp": false,
|
|
2649
|
+
"helpValue": "<name>",
|
|
2631
2650
|
"multiple": false,
|
|
2632
|
-
"options": [
|
|
2633
|
-
"stream",
|
|
2634
|
-
"cursor"
|
|
2635
|
-
],
|
|
2636
2651
|
"type": "option"
|
|
2637
2652
|
},
|
|
2638
|
-
"
|
|
2639
|
-
"description": "
|
|
2640
|
-
"name": "
|
|
2641
|
-
"allowNo": false,
|
|
2642
|
-
"type": "boolean"
|
|
2643
|
-
},
|
|
2644
|
-
"no-compress": {
|
|
2645
|
-
"description": "Skips compressing tarball entries (still generates a gzip file)",
|
|
2646
|
-
"name": "no-compress",
|
|
2647
|
-
"allowNo": false,
|
|
2648
|
-
"type": "boolean"
|
|
2649
|
-
},
|
|
2650
|
-
"no-drafts": {
|
|
2651
|
-
"description": "Export only published versions of documents",
|
|
2652
|
-
"name": "no-drafts",
|
|
2653
|
-
"allowNo": false,
|
|
2654
|
-
"type": "boolean"
|
|
2655
|
-
},
|
|
2656
|
-
"no-strict-asset-verification": {
|
|
2657
|
-
"description": "Do not abort the export when an asset fails hash or content-length verification",
|
|
2658
|
-
"name": "no-strict-asset-verification",
|
|
2659
|
-
"allowNo": false,
|
|
2660
|
-
"type": "boolean"
|
|
2661
|
-
},
|
|
2662
|
-
"overwrite": {
|
|
2663
|
-
"description": "Overwrite any file with the same name",
|
|
2664
|
-
"name": "overwrite",
|
|
2653
|
+
"force": {
|
|
2654
|
+
"description": "Skip confirmation prompt",
|
|
2655
|
+
"name": "force",
|
|
2665
2656
|
"allowNo": false,
|
|
2666
2657
|
"type": "boolean"
|
|
2667
2658
|
},
|
|
2668
|
-
"
|
|
2669
|
-
"
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
"
|
|
2659
|
+
"project": {
|
|
2660
|
+
"deprecated": {
|
|
2661
|
+
"to": "project-id"
|
|
2662
|
+
},
|
|
2663
|
+
"description": "Project ID to delete GraphQL API for",
|
|
2664
|
+
"hidden": true,
|
|
2665
|
+
"name": "project",
|
|
2666
|
+
"required": false,
|
|
2667
|
+
"hasDynamicHelp": false,
|
|
2668
|
+
"multiple": false,
|
|
2669
|
+
"type": "option"
|
|
2673
2670
|
},
|
|
2674
|
-
"
|
|
2675
|
-
"description": "
|
|
2676
|
-
"name": "
|
|
2671
|
+
"tag": {
|
|
2672
|
+
"description": "Tag to undeploy GraphQL API from",
|
|
2673
|
+
"name": "tag",
|
|
2674
|
+
"required": false,
|
|
2675
|
+
"default": "default",
|
|
2677
2676
|
"hasDynamicHelp": false,
|
|
2678
2677
|
"multiple": false,
|
|
2679
2678
|
"type": "option"
|
|
2680
2679
|
}
|
|
2681
2680
|
},
|
|
2682
2681
|
"hasDynamicHelp": false,
|
|
2683
|
-
"hiddenAliases": [
|
|
2684
|
-
|
|
2685
|
-
],
|
|
2686
|
-
"id": "datasets:export",
|
|
2682
|
+
"hiddenAliases": [],
|
|
2683
|
+
"id": "graphql:undeploy",
|
|
2687
2684
|
"pluginAlias": "@sanity/cli",
|
|
2688
2685
|
"pluginName": "@sanity/cli",
|
|
2689
2686
|
"pluginType": "core",
|
|
@@ -2692,96 +2689,67 @@
|
|
|
2692
2689
|
"relativePath": [
|
|
2693
2690
|
"dist",
|
|
2694
2691
|
"commands",
|
|
2695
|
-
"
|
|
2696
|
-
"
|
|
2692
|
+
"graphql",
|
|
2693
|
+
"undeploy.js"
|
|
2697
2694
|
]
|
|
2698
2695
|
},
|
|
2699
|
-
"datasets:
|
|
2696
|
+
"datasets:copy": {
|
|
2700
2697
|
"aliases": [],
|
|
2701
2698
|
"args": {
|
|
2702
2699
|
"source": {
|
|
2703
|
-
"description": "
|
|
2700
|
+
"description": "Name of the dataset to copy from",
|
|
2704
2701
|
"name": "source",
|
|
2705
|
-
"required":
|
|
2702
|
+
"required": false
|
|
2706
2703
|
},
|
|
2707
|
-
"
|
|
2708
|
-
"description": "
|
|
2709
|
-
"name": "
|
|
2704
|
+
"target": {
|
|
2705
|
+
"description": "Name of the dataset to copy to",
|
|
2706
|
+
"name": "target",
|
|
2710
2707
|
"required": false
|
|
2711
2708
|
}
|
|
2712
2709
|
},
|
|
2713
|
-
"description": "
|
|
2710
|
+
"description": "Copy a dataset or manage copy jobs",
|
|
2714
2711
|
"examples": [
|
|
2715
2712
|
{
|
|
2716
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2717
|
-
"description": "
|
|
2713
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
2714
|
+
"description": "Interactively copy a dataset"
|
|
2718
2715
|
},
|
|
2719
2716
|
{
|
|
2720
|
-
"command": "
|
|
2721
|
-
"description": "
|
|
2717
|
+
"command": "<%= config.bin %> <%= command.id %> source-dataset",
|
|
2718
|
+
"description": "Copy from source-dataset (prompts for target)"
|
|
2722
2719
|
},
|
|
2723
2720
|
{
|
|
2724
|
-
"command": "<%= config.bin %> <%= command.id %> -
|
|
2725
|
-
"description": "
|
|
2721
|
+
"command": "<%= config.bin %> <%= command.id %> source-dataset target-dataset",
|
|
2722
|
+
"description": "Copy from source-dataset to target-dataset"
|
|
2726
2723
|
},
|
|
2727
2724
|
{
|
|
2728
|
-
"command": "<%= config.bin %> <%= command.id %> -
|
|
2729
|
-
"description": "
|
|
2730
|
-
}
|
|
2731
|
-
],
|
|
2732
|
-
"flags": {
|
|
2733
|
-
"allow-assets-in-different-dataset": {
|
|
2734
|
-
"description": "Allow asset documents to reference different project/dataset",
|
|
2735
|
-
"name": "allow-assets-in-different-dataset",
|
|
2736
|
-
"allowNo": false,
|
|
2737
|
-
"type": "boolean"
|
|
2738
|
-
},
|
|
2739
|
-
"allow-failing-assets": {
|
|
2740
|
-
"description": "Skip assets that cannot be fetched/uploaded",
|
|
2741
|
-
"name": "allow-failing-assets",
|
|
2742
|
-
"allowNo": false,
|
|
2743
|
-
"type": "boolean"
|
|
2744
|
-
},
|
|
2745
|
-
"allow-replacement-characters": {
|
|
2746
|
-
"description": "Allow unicode replacement characters in imported documents",
|
|
2747
|
-
"name": "allow-replacement-characters",
|
|
2748
|
-
"allowNo": false,
|
|
2749
|
-
"type": "boolean"
|
|
2725
|
+
"command": "<%= config.bin %> <%= command.id %> --skip-history source target",
|
|
2726
|
+
"description": "Copy without preserving document history (faster for large datasets)"
|
|
2750
2727
|
},
|
|
2751
|
-
|
|
2752
|
-
"
|
|
2753
|
-
"
|
|
2754
|
-
"allowNo": false,
|
|
2755
|
-
"type": "boolean"
|
|
2728
|
+
{
|
|
2729
|
+
"command": "<%= config.bin %> <%= command.id %> --skip-content-releases source target",
|
|
2730
|
+
"description": "Copy without content release documents"
|
|
2756
2731
|
},
|
|
2757
|
-
|
|
2758
|
-
"
|
|
2759
|
-
"
|
|
2760
|
-
"hasDynamicHelp": false,
|
|
2761
|
-
"multiple": false,
|
|
2762
|
-
"type": "option"
|
|
2732
|
+
{
|
|
2733
|
+
"command": "<%= config.bin %> <%= command.id %> --detach source target",
|
|
2734
|
+
"description": "Start copy job without waiting for completion"
|
|
2763
2735
|
},
|
|
2764
|
-
|
|
2765
|
-
"
|
|
2766
|
-
"description": "
|
|
2767
|
-
"name": "dataset",
|
|
2768
|
-
"hasDynamicHelp": false,
|
|
2769
|
-
"helpValue": "<name>",
|
|
2770
|
-
"multiple": false,
|
|
2771
|
-
"type": "option"
|
|
2736
|
+
{
|
|
2737
|
+
"command": "<%= config.bin %> <%= command.id %> --attach <job-id>",
|
|
2738
|
+
"description": "Attach to a running copy job to follow progress"
|
|
2772
2739
|
},
|
|
2773
|
-
|
|
2774
|
-
"
|
|
2775
|
-
"
|
|
2776
|
-
"replace"
|
|
2777
|
-
],
|
|
2778
|
-
"name": "missing",
|
|
2779
|
-
"allowNo": false,
|
|
2780
|
-
"type": "boolean"
|
|
2740
|
+
{
|
|
2741
|
+
"command": "<%= config.bin %> <%= command.id %> --list",
|
|
2742
|
+
"description": "List all dataset copy jobs"
|
|
2781
2743
|
},
|
|
2744
|
+
{
|
|
2745
|
+
"command": "<%= config.bin %> <%= command.id %> --list --offset 2 --limit 10",
|
|
2746
|
+
"description": "List copy jobs with pagination"
|
|
2747
|
+
}
|
|
2748
|
+
],
|
|
2749
|
+
"flags": {
|
|
2782
2750
|
"project-id": {
|
|
2783
2751
|
"char": "p",
|
|
2784
|
-
"description": "Project ID to
|
|
2752
|
+
"description": "Project ID to copy dataset in (overrides CLI configuration)",
|
|
2785
2753
|
"helpGroup": "OVERRIDE",
|
|
2786
2754
|
"name": "project-id",
|
|
2787
2755
|
"hasDynamicHelp": false,
|
|
@@ -2789,97 +2757,92 @@
|
|
|
2789
2757
|
"multiple": false,
|
|
2790
2758
|
"type": "option"
|
|
2791
2759
|
},
|
|
2792
|
-
"
|
|
2793
|
-
"
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2760
|
+
"attach": {
|
|
2761
|
+
"description": "Attach to the running copy process to show progress",
|
|
2762
|
+
"exclusive": [
|
|
2763
|
+
"list",
|
|
2764
|
+
"detach",
|
|
2765
|
+
"skip-history"
|
|
2766
|
+
],
|
|
2767
|
+
"name": "attach",
|
|
2768
|
+
"required": false,
|
|
2799
2769
|
"hasDynamicHelp": false,
|
|
2800
2770
|
"multiple": false,
|
|
2801
2771
|
"type": "option"
|
|
2802
2772
|
},
|
|
2803
|
-
"
|
|
2804
|
-
"description": "
|
|
2773
|
+
"detach": {
|
|
2774
|
+
"description": "Start the copy without waiting for it to finish",
|
|
2805
2775
|
"exclusive": [
|
|
2806
|
-
"
|
|
2776
|
+
"list",
|
|
2777
|
+
"attach"
|
|
2807
2778
|
],
|
|
2808
|
-
"name": "
|
|
2779
|
+
"name": "detach",
|
|
2780
|
+
"required": false,
|
|
2809
2781
|
"allowNo": false,
|
|
2810
2782
|
"type": "boolean"
|
|
2811
2783
|
},
|
|
2812
|
-
"
|
|
2813
|
-
"
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
"
|
|
2784
|
+
"limit": {
|
|
2785
|
+
"dependsOn": [
|
|
2786
|
+
"list"
|
|
2787
|
+
],
|
|
2788
|
+
"description": "Maximum number of jobs returned (default 10, max 1000)",
|
|
2789
|
+
"name": "limit",
|
|
2790
|
+
"required": false,
|
|
2791
|
+
"hasDynamicHelp": false,
|
|
2792
|
+
"multiple": false,
|
|
2793
|
+
"type": "option"
|
|
2817
2794
|
},
|
|
2818
|
-
"
|
|
2819
|
-
"description": "
|
|
2820
|
-
"
|
|
2795
|
+
"list": {
|
|
2796
|
+
"description": "Lists all dataset copy jobs",
|
|
2797
|
+
"exclusive": [
|
|
2798
|
+
"attach",
|
|
2799
|
+
"detach",
|
|
2800
|
+
"skip-history"
|
|
2801
|
+
],
|
|
2802
|
+
"name": "list",
|
|
2803
|
+
"required": false,
|
|
2821
2804
|
"allowNo": false,
|
|
2822
2805
|
"type": "boolean"
|
|
2823
2806
|
},
|
|
2824
|
-
"
|
|
2825
|
-
"
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
"
|
|
2807
|
+
"offset": {
|
|
2808
|
+
"dependsOn": [
|
|
2809
|
+
"list"
|
|
2810
|
+
],
|
|
2811
|
+
"description": "Start position in the list of jobs (default 0)",
|
|
2812
|
+
"name": "offset",
|
|
2829
2813
|
"required": false,
|
|
2830
2814
|
"hasDynamicHelp": false,
|
|
2831
2815
|
"multiple": false,
|
|
2832
2816
|
"type": "option"
|
|
2833
|
-
}
|
|
2834
|
-
},
|
|
2835
|
-
"hasDynamicHelp": false,
|
|
2836
|
-
"hiddenAliases": [
|
|
2837
|
-
"dataset:import"
|
|
2838
|
-
],
|
|
2839
|
-
"id": "datasets:import",
|
|
2840
|
-
"pluginAlias": "@sanity/cli",
|
|
2841
|
-
"pluginName": "@sanity/cli",
|
|
2842
|
-
"pluginType": "core",
|
|
2843
|
-
"strict": true,
|
|
2844
|
-
"isESM": true,
|
|
2845
|
-
"relativePath": [
|
|
2846
|
-
"dist",
|
|
2847
|
-
"commands",
|
|
2848
|
-
"datasets",
|
|
2849
|
-
"import.js"
|
|
2850
|
-
]
|
|
2851
|
-
},
|
|
2852
|
-
"datasets:list": {
|
|
2853
|
-
"aliases": [],
|
|
2854
|
-
"args": {},
|
|
2855
|
-
"description": "List datasets for the project",
|
|
2856
|
-
"examples": [
|
|
2857
|
-
{
|
|
2858
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2859
|
-
"description": "List datasets for the project"
|
|
2860
2817
|
},
|
|
2861
|
-
{
|
|
2862
|
-
"
|
|
2863
|
-
"
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
"
|
|
2869
|
-
"
|
|
2870
|
-
"
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
"
|
|
2874
|
-
"
|
|
2875
|
-
|
|
2818
|
+
"skip-content-releases": {
|
|
2819
|
+
"description": "Don't copy content release documents to the target dataset",
|
|
2820
|
+
"exclusive": [
|
|
2821
|
+
"list",
|
|
2822
|
+
"attach"
|
|
2823
|
+
],
|
|
2824
|
+
"name": "skip-content-releases",
|
|
2825
|
+
"required": false,
|
|
2826
|
+
"allowNo": false,
|
|
2827
|
+
"type": "boolean"
|
|
2828
|
+
},
|
|
2829
|
+
"skip-history": {
|
|
2830
|
+
"description": "Don't preserve document history on copy",
|
|
2831
|
+
"exclusive": [
|
|
2832
|
+
"list",
|
|
2833
|
+
"attach"
|
|
2834
|
+
],
|
|
2835
|
+
"name": "skip-history",
|
|
2836
|
+
"required": false,
|
|
2837
|
+
"allowNo": false,
|
|
2838
|
+
"type": "boolean"
|
|
2876
2839
|
}
|
|
2877
2840
|
},
|
|
2878
2841
|
"hasDynamicHelp": false,
|
|
2879
2842
|
"hiddenAliases": [
|
|
2880
|
-
"dataset:
|
|
2843
|
+
"dataset:copy"
|
|
2881
2844
|
],
|
|
2882
|
-
"id": "datasets:
|
|
2845
|
+
"id": "datasets:copy",
|
|
2883
2846
|
"pluginAlias": "@sanity/cli",
|
|
2884
2847
|
"pluginName": "@sanity/cli",
|
|
2885
2848
|
"pluginType": "core",
|
|
@@ -2889,72 +2852,79 @@
|
|
|
2889
2852
|
"dist",
|
|
2890
2853
|
"commands",
|
|
2891
2854
|
"datasets",
|
|
2892
|
-
"
|
|
2893
|
-
]
|
|
2894
|
-
},
|
|
2895
|
-
"docs:browse": {
|
|
2896
|
-
"aliases": [],
|
|
2897
|
-
"args": {},
|
|
2898
|
-
"description": "Open Sanity docs in your browser",
|
|
2899
|
-
"flags": {},
|
|
2900
|
-
"hasDynamicHelp": false,
|
|
2901
|
-
"hiddenAliases": [],
|
|
2902
|
-
"id": "docs:browse",
|
|
2903
|
-
"pluginAlias": "@sanity/cli",
|
|
2904
|
-
"pluginName": "@sanity/cli",
|
|
2905
|
-
"pluginType": "core",
|
|
2906
|
-
"strict": true,
|
|
2907
|
-
"enableJsonFlag": false,
|
|
2908
|
-
"isESM": true,
|
|
2909
|
-
"relativePath": [
|
|
2910
|
-
"dist",
|
|
2911
|
-
"commands",
|
|
2912
|
-
"docs",
|
|
2913
|
-
"browse.js"
|
|
2855
|
+
"copy.js"
|
|
2914
2856
|
]
|
|
2915
2857
|
},
|
|
2916
|
-
"
|
|
2858
|
+
"datasets:create": {
|
|
2917
2859
|
"aliases": [],
|
|
2918
2860
|
"args": {
|
|
2919
|
-
"
|
|
2920
|
-
"description": "
|
|
2921
|
-
"name": "
|
|
2922
|
-
"required":
|
|
2861
|
+
"name": {
|
|
2862
|
+
"description": "Name of the dataset to create",
|
|
2863
|
+
"name": "name",
|
|
2864
|
+
"required": false
|
|
2923
2865
|
}
|
|
2924
2866
|
},
|
|
2925
|
-
"description": "
|
|
2867
|
+
"description": "Create a new dataset for the project",
|
|
2926
2868
|
"examples": [
|
|
2927
2869
|
{
|
|
2928
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2929
|
-
"description": "
|
|
2930
|
-
},
|
|
2931
|
-
{
|
|
2932
|
-
"command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation",
|
|
2933
|
-
"description": "Read using full URL"
|
|
2870
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
2871
|
+
"description": "Interactively create a dataset"
|
|
2934
2872
|
},
|
|
2935
2873
|
{
|
|
2936
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2937
|
-
"description": "
|
|
2874
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset",
|
|
2875
|
+
"description": "Create a dataset named \"my-dataset\""
|
|
2938
2876
|
},
|
|
2939
2877
|
{
|
|
2940
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2941
|
-
"description": "
|
|
2878
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset --visibility private",
|
|
2879
|
+
"description": "Create a private dataset named \"my-dataset\""
|
|
2942
2880
|
}
|
|
2943
2881
|
],
|
|
2944
2882
|
"flags": {
|
|
2945
|
-
"
|
|
2946
|
-
"
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
"
|
|
2950
|
-
"
|
|
2883
|
+
"project-id": {
|
|
2884
|
+
"char": "p",
|
|
2885
|
+
"description": "Project ID to create dataset in (overrides CLI configuration)",
|
|
2886
|
+
"helpGroup": "OVERRIDE",
|
|
2887
|
+
"name": "project-id",
|
|
2888
|
+
"hasDynamicHelp": false,
|
|
2889
|
+
"helpValue": "<id>",
|
|
2890
|
+
"multiple": false,
|
|
2891
|
+
"type": "option"
|
|
2892
|
+
},
|
|
2893
|
+
"embeddings": {
|
|
2894
|
+
"description": "Enable embeddings for this dataset",
|
|
2895
|
+
"name": "embeddings",
|
|
2951
2896
|
"allowNo": false,
|
|
2952
2897
|
"type": "boolean"
|
|
2898
|
+
},
|
|
2899
|
+
"embeddings-projection": {
|
|
2900
|
+
"dependsOn": [
|
|
2901
|
+
"embeddings"
|
|
2902
|
+
],
|
|
2903
|
+
"description": "GROQ projection for embeddings indexing (e.g. \"{ title, body }\")",
|
|
2904
|
+
"name": "embeddings-projection",
|
|
2905
|
+
"hasDynamicHelp": false,
|
|
2906
|
+
"multiple": false,
|
|
2907
|
+
"type": "option"
|
|
2908
|
+
},
|
|
2909
|
+
"visibility": {
|
|
2910
|
+
"description": "Set visibility for this dataset (custom/private/public)",
|
|
2911
|
+
"name": "visibility",
|
|
2912
|
+
"required": false,
|
|
2913
|
+
"hasDynamicHelp": false,
|
|
2914
|
+
"multiple": false,
|
|
2915
|
+
"options": [
|
|
2916
|
+
"custom",
|
|
2917
|
+
"private",
|
|
2918
|
+
"public"
|
|
2919
|
+
],
|
|
2920
|
+
"type": "option"
|
|
2953
2921
|
}
|
|
2954
2922
|
},
|
|
2955
2923
|
"hasDynamicHelp": false,
|
|
2956
|
-
"hiddenAliases": [
|
|
2957
|
-
|
|
2924
|
+
"hiddenAliases": [
|
|
2925
|
+
"dataset:create"
|
|
2926
|
+
],
|
|
2927
|
+
"id": "datasets:create",
|
|
2958
2928
|
"pluginAlias": "@sanity/cli",
|
|
2959
2929
|
"pluginName": "@sanity/cli",
|
|
2960
2930
|
"pluginType": "core",
|
|
@@ -2963,47 +2933,53 @@
|
|
|
2963
2933
|
"relativePath": [
|
|
2964
2934
|
"dist",
|
|
2965
2935
|
"commands",
|
|
2966
|
-
"
|
|
2967
|
-
"
|
|
2936
|
+
"datasets",
|
|
2937
|
+
"create.js"
|
|
2968
2938
|
]
|
|
2969
2939
|
},
|
|
2970
|
-
"
|
|
2940
|
+
"datasets:delete": {
|
|
2971
2941
|
"aliases": [],
|
|
2972
2942
|
"args": {
|
|
2973
|
-
"
|
|
2974
|
-
"description": "
|
|
2975
|
-
"name": "
|
|
2943
|
+
"datasetName": {
|
|
2944
|
+
"description": "Dataset name to delete",
|
|
2945
|
+
"name": "datasetName",
|
|
2976
2946
|
"required": true
|
|
2977
2947
|
}
|
|
2978
2948
|
},
|
|
2979
|
-
"description": "
|
|
2949
|
+
"description": "Delete a dataset from the project",
|
|
2980
2950
|
"examples": [
|
|
2981
2951
|
{
|
|
2982
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2983
|
-
"description": "
|
|
2984
|
-
},
|
|
2985
|
-
{
|
|
2986
|
-
"command": "<%= config.bin %> <%= command.id %> \"groq functions\"",
|
|
2987
|
-
"description": "Search with phrase"
|
|
2952
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset",
|
|
2953
|
+
"description": "Delete a specific dataset"
|
|
2988
2954
|
},
|
|
2989
2955
|
{
|
|
2990
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2991
|
-
"description": "
|
|
2956
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset --force",
|
|
2957
|
+
"description": "Delete a specific dataset without confirmation"
|
|
2992
2958
|
}
|
|
2993
2959
|
],
|
|
2994
2960
|
"flags": {
|
|
2995
|
-
"
|
|
2996
|
-
"
|
|
2997
|
-
"
|
|
2998
|
-
"
|
|
2961
|
+
"project-id": {
|
|
2962
|
+
"char": "p",
|
|
2963
|
+
"description": "Project ID to delete dataset from (overrides CLI configuration)",
|
|
2964
|
+
"helpGroup": "OVERRIDE",
|
|
2965
|
+
"name": "project-id",
|
|
2999
2966
|
"hasDynamicHelp": false,
|
|
2967
|
+
"helpValue": "<id>",
|
|
3000
2968
|
"multiple": false,
|
|
3001
2969
|
"type": "option"
|
|
2970
|
+
},
|
|
2971
|
+
"force": {
|
|
2972
|
+
"description": "Do not prompt for delete confirmation - forcefully delete",
|
|
2973
|
+
"name": "force",
|
|
2974
|
+
"allowNo": false,
|
|
2975
|
+
"type": "boolean"
|
|
3002
2976
|
}
|
|
3003
2977
|
},
|
|
3004
2978
|
"hasDynamicHelp": false,
|
|
3005
|
-
"hiddenAliases": [
|
|
3006
|
-
|
|
2979
|
+
"hiddenAliases": [
|
|
2980
|
+
"dataset:delete"
|
|
2981
|
+
],
|
|
2982
|
+
"id": "datasets:delete",
|
|
3007
2983
|
"pluginAlias": "@sanity/cli",
|
|
3008
2984
|
"pluginName": "@sanity/cli",
|
|
3009
2985
|
"pluginType": "core",
|
|
@@ -3012,46 +2988,49 @@
|
|
|
3012
2988
|
"relativePath": [
|
|
3013
2989
|
"dist",
|
|
3014
2990
|
"commands",
|
|
3015
|
-
"
|
|
3016
|
-
"
|
|
2991
|
+
"datasets",
|
|
2992
|
+
"delete.js"
|
|
3017
2993
|
]
|
|
3018
2994
|
},
|
|
3019
|
-
"
|
|
2995
|
+
"datasets:export": {
|
|
3020
2996
|
"aliases": [],
|
|
3021
2997
|
"args": {
|
|
3022
|
-
"
|
|
3023
|
-
"description": "
|
|
3024
|
-
"name": "
|
|
3025
|
-
|
|
2998
|
+
"name": {
|
|
2999
|
+
"description": "Name of the dataset to export",
|
|
3000
|
+
"name": "name"
|
|
3001
|
+
},
|
|
3002
|
+
"destination": {
|
|
3003
|
+
"description": "Output destination file path",
|
|
3004
|
+
"name": "destination"
|
|
3026
3005
|
}
|
|
3027
3006
|
},
|
|
3028
|
-
"description": "
|
|
3007
|
+
"description": "Export a dataset to a local gzipped tarball. Assets returning 401, 403, or 404 are excluded from the export.",
|
|
3029
3008
|
"examples": [
|
|
3030
3009
|
{
|
|
3031
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3032
|
-
"description": "
|
|
3010
|
+
"command": "<%= config.bin %> <%= command.id %> moviedb localPath.tar.gz",
|
|
3011
|
+
"description": "Export dataset \"moviedb\" to localPath.tar.gz"
|
|
3033
3012
|
},
|
|
3034
3013
|
{
|
|
3035
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
3036
|
-
"description": "
|
|
3014
|
+
"command": "<%= config.bin %> <%= command.id %> moviedb assetless.tar.gz --no-assets",
|
|
3015
|
+
"description": "Export dataset without assets"
|
|
3037
3016
|
},
|
|
3038
3017
|
{
|
|
3039
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3040
|
-
"description": "
|
|
3018
|
+
"command": "<%= config.bin %> <%= command.id %> staging staging.tar.gz --raw",
|
|
3019
|
+
"description": "Export raw documents without asset reference rewriting"
|
|
3041
3020
|
},
|
|
3042
3021
|
{
|
|
3043
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3044
|
-
"description": "
|
|
3022
|
+
"command": "<%= config.bin %> <%= command.id %> staging staging.tar.gz --types products,shops",
|
|
3023
|
+
"description": "Export specific document types"
|
|
3045
3024
|
},
|
|
3046
3025
|
{
|
|
3047
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3048
|
-
"description": "
|
|
3026
|
+
"command": "<%= config.bin %> <%= command.id %> moviedb moviedb.tar.gz --no-strict-asset-verification",
|
|
3027
|
+
"description": "Export dataset without aborting on asset verification failures"
|
|
3049
3028
|
}
|
|
3050
3029
|
],
|
|
3051
3030
|
"flags": {
|
|
3052
3031
|
"project-id": {
|
|
3053
3032
|
"char": "p",
|
|
3054
|
-
"description": "Project ID to
|
|
3033
|
+
"description": "Project ID to export dataset from (overrides CLI configuration)",
|
|
3055
3034
|
"helpGroup": "OVERRIDE",
|
|
3056
3035
|
"name": "project-id",
|
|
3057
3036
|
"hasDynamicHelp": false,
|
|
@@ -3059,53 +3038,75 @@
|
|
|
3059
3038
|
"multiple": false,
|
|
3060
3039
|
"type": "option"
|
|
3061
3040
|
},
|
|
3062
|
-
"
|
|
3063
|
-
"
|
|
3064
|
-
"
|
|
3065
|
-
"
|
|
3066
|
-
"name": "dataset",
|
|
3041
|
+
"asset-concurrency": {
|
|
3042
|
+
"description": "Concurrent number of asset downloads",
|
|
3043
|
+
"name": "asset-concurrency",
|
|
3044
|
+
"default": 8,
|
|
3067
3045
|
"hasDynamicHelp": false,
|
|
3068
|
-
"helpValue": "<name>",
|
|
3069
3046
|
"multiple": false,
|
|
3070
3047
|
"type": "option"
|
|
3071
3048
|
},
|
|
3072
|
-
"
|
|
3073
|
-
"description": "
|
|
3074
|
-
"name": "
|
|
3049
|
+
"mode": {
|
|
3050
|
+
"description": "Export mode ('cursor' is faster for large datasets but may miss concurrent changes)",
|
|
3051
|
+
"name": "mode",
|
|
3052
|
+
"default": "stream",
|
|
3075
3053
|
"hasDynamicHelp": false,
|
|
3076
3054
|
"multiple": false,
|
|
3055
|
+
"options": [
|
|
3056
|
+
"stream",
|
|
3057
|
+
"cursor"
|
|
3058
|
+
],
|
|
3077
3059
|
"type": "option"
|
|
3078
3060
|
},
|
|
3079
|
-
"
|
|
3080
|
-
"description": "
|
|
3081
|
-
"name": "
|
|
3061
|
+
"no-assets": {
|
|
3062
|
+
"description": "Export only non-asset documents and remove references to image assets",
|
|
3063
|
+
"name": "no-assets",
|
|
3064
|
+
"allowNo": false,
|
|
3065
|
+
"type": "boolean"
|
|
3066
|
+
},
|
|
3067
|
+
"no-compress": {
|
|
3068
|
+
"description": "Skips compressing tarball entries (still generates a gzip file)",
|
|
3069
|
+
"name": "no-compress",
|
|
3070
|
+
"allowNo": false,
|
|
3071
|
+
"type": "boolean"
|
|
3072
|
+
},
|
|
3073
|
+
"no-drafts": {
|
|
3074
|
+
"description": "Export only published versions of documents",
|
|
3075
|
+
"name": "no-drafts",
|
|
3076
|
+
"allowNo": false,
|
|
3077
|
+
"type": "boolean"
|
|
3078
|
+
},
|
|
3079
|
+
"no-strict-asset-verification": {
|
|
3080
|
+
"description": "Do not abort the export when an asset fails hash or content-length verification",
|
|
3081
|
+
"name": "no-strict-asset-verification",
|
|
3082
3082
|
"allowNo": false,
|
|
3083
3083
|
"type": "boolean"
|
|
3084
3084
|
},
|
|
3085
|
-
"
|
|
3086
|
-
"description": "
|
|
3087
|
-
"name": "
|
|
3085
|
+
"overwrite": {
|
|
3086
|
+
"description": "Overwrite any file with the same name",
|
|
3087
|
+
"name": "overwrite",
|
|
3088
3088
|
"allowNo": false,
|
|
3089
3089
|
"type": "boolean"
|
|
3090
3090
|
},
|
|
3091
|
-
"
|
|
3092
|
-
"description": "
|
|
3093
|
-
"name": "
|
|
3091
|
+
"raw": {
|
|
3092
|
+
"description": "Extract only documents, without rewriting asset references",
|
|
3093
|
+
"name": "raw",
|
|
3094
3094
|
"allowNo": false,
|
|
3095
3095
|
"type": "boolean"
|
|
3096
3096
|
},
|
|
3097
|
-
"
|
|
3098
|
-
"description": "
|
|
3099
|
-
"name": "
|
|
3100
|
-
"
|
|
3101
|
-
"
|
|
3097
|
+
"types": {
|
|
3098
|
+
"description": "Defines which document types to export (comma-separated)",
|
|
3099
|
+
"name": "types",
|
|
3100
|
+
"hasDynamicHelp": false,
|
|
3101
|
+
"multiple": false,
|
|
3102
|
+
"type": "option"
|
|
3102
3103
|
}
|
|
3103
3104
|
},
|
|
3104
3105
|
"hasDynamicHelp": false,
|
|
3105
3106
|
"hiddenAliases": [
|
|
3106
|
-
"
|
|
3107
|
+
"dataset:export"
|
|
3107
3108
|
],
|
|
3108
|
-
"id": "
|
|
3109
|
+
"id": "datasets:export",
|
|
3109
3110
|
"pluginAlias": "@sanity/cli",
|
|
3110
3111
|
"pluginName": "@sanity/cli",
|
|
3111
3112
|
"pluginType": "core",
|
|
@@ -3114,51 +3115,96 @@
|
|
|
3114
3115
|
"relativePath": [
|
|
3115
3116
|
"dist",
|
|
3116
3117
|
"commands",
|
|
3117
|
-
"
|
|
3118
|
-
"
|
|
3118
|
+
"datasets",
|
|
3119
|
+
"export.js"
|
|
3119
3120
|
]
|
|
3120
3121
|
},
|
|
3121
|
-
"
|
|
3122
|
+
"datasets:import": {
|
|
3122
3123
|
"aliases": [],
|
|
3123
3124
|
"args": {
|
|
3124
|
-
"
|
|
3125
|
-
"description": "
|
|
3126
|
-
"name": "
|
|
3125
|
+
"source": {
|
|
3126
|
+
"description": "Source file (use \"-\" for stdin)",
|
|
3127
|
+
"name": "source",
|
|
3127
3128
|
"required": true
|
|
3128
3129
|
},
|
|
3129
|
-
"
|
|
3130
|
-
"description": "
|
|
3131
|
-
"name": "
|
|
3130
|
+
"targetDataset": {
|
|
3131
|
+
"description": "Target dataset (prefer --dataset flag instead)",
|
|
3132
|
+
"name": "targetDataset",
|
|
3132
3133
|
"required": false
|
|
3133
3134
|
}
|
|
3134
3135
|
},
|
|
3135
|
-
"description": "
|
|
3136
|
+
"description": "Import documents to a Sanity dataset",
|
|
3136
3137
|
"examples": [
|
|
3137
3138
|
{
|
|
3138
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3139
|
-
"description": "
|
|
3140
|
-
},
|
|
3141
|
-
{
|
|
3142
|
-
"command": "<%= config.bin %> <%= command.id %> 'myDocId'",
|
|
3143
|
-
"description": "ID wrapped in double or single quote works equally well"
|
|
3139
|
+
"command": "<%= config.bin %> <%= command.id %> -d staging my-dataset.ndjson",
|
|
3140
|
+
"description": "Import \"./my-dataset.ndjson\" into dataset \"staging\""
|
|
3144
3141
|
},
|
|
3145
3142
|
{
|
|
3146
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3147
|
-
"description": "
|
|
3143
|
+
"command": "cat my-dataset.ndjson | <%= config.bin %> <%= command.id %> -d test -",
|
|
3144
|
+
"description": "Import into dataset \"test\" from stdin"
|
|
3148
3145
|
},
|
|
3149
3146
|
{
|
|
3150
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3151
|
-
"description": "
|
|
3147
|
+
"command": "<%= config.bin %> <%= command.id %> -p projectId -d staging my-dataset.ndjson",
|
|
3148
|
+
"description": "Import with explicit project ID (overrides CLI configuration)"
|
|
3152
3149
|
},
|
|
3153
3150
|
{
|
|
3154
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3155
|
-
"description": "
|
|
3151
|
+
"command": "<%= config.bin %> <%= command.id %> -d staging -t someSecretToken my-dataset.ndjson",
|
|
3152
|
+
"description": "Import with an explicit token (e.g. for CI/CD)"
|
|
3156
3153
|
}
|
|
3157
3154
|
],
|
|
3158
3155
|
"flags": {
|
|
3156
|
+
"allow-assets-in-different-dataset": {
|
|
3157
|
+
"description": "Allow asset documents to reference different project/dataset",
|
|
3158
|
+
"name": "allow-assets-in-different-dataset",
|
|
3159
|
+
"allowNo": false,
|
|
3160
|
+
"type": "boolean"
|
|
3161
|
+
},
|
|
3162
|
+
"allow-failing-assets": {
|
|
3163
|
+
"description": "Skip assets that cannot be fetched/uploaded",
|
|
3164
|
+
"name": "allow-failing-assets",
|
|
3165
|
+
"allowNo": false,
|
|
3166
|
+
"type": "boolean"
|
|
3167
|
+
},
|
|
3168
|
+
"allow-replacement-characters": {
|
|
3169
|
+
"description": "Allow unicode replacement characters in imported documents",
|
|
3170
|
+
"name": "allow-replacement-characters",
|
|
3171
|
+
"allowNo": false,
|
|
3172
|
+
"type": "boolean"
|
|
3173
|
+
},
|
|
3174
|
+
"allow-system-documents": {
|
|
3175
|
+
"description": "Imports system documents",
|
|
3176
|
+
"name": "allow-system-documents",
|
|
3177
|
+
"allowNo": false,
|
|
3178
|
+
"type": "boolean"
|
|
3179
|
+
},
|
|
3180
|
+
"asset-concurrency": {
|
|
3181
|
+
"description": "Number of parallel asset imports",
|
|
3182
|
+
"name": "asset-concurrency",
|
|
3183
|
+
"hasDynamicHelp": false,
|
|
3184
|
+
"multiple": false,
|
|
3185
|
+
"type": "option"
|
|
3186
|
+
},
|
|
3187
|
+
"dataset": {
|
|
3188
|
+
"char": "d",
|
|
3189
|
+
"description": "Dataset to import to",
|
|
3190
|
+
"name": "dataset",
|
|
3191
|
+
"hasDynamicHelp": false,
|
|
3192
|
+
"helpValue": "<name>",
|
|
3193
|
+
"multiple": false,
|
|
3194
|
+
"type": "option"
|
|
3195
|
+
},
|
|
3196
|
+
"missing": {
|
|
3197
|
+
"description": "Skip documents that already exist",
|
|
3198
|
+
"exclusive": [
|
|
3199
|
+
"replace"
|
|
3200
|
+
],
|
|
3201
|
+
"name": "missing",
|
|
3202
|
+
"allowNo": false,
|
|
3203
|
+
"type": "boolean"
|
|
3204
|
+
},
|
|
3159
3205
|
"project-id": {
|
|
3160
3206
|
"char": "p",
|
|
3161
|
-
"description": "Project ID to
|
|
3207
|
+
"description": "Project ID to import to (overrides CLI configuration)",
|
|
3162
3208
|
"helpGroup": "OVERRIDE",
|
|
3163
3209
|
"name": "project-id",
|
|
3164
3210
|
"hasDynamicHelp": false,
|
|
@@ -3166,95 +3212,97 @@
|
|
|
3166
3212
|
"multiple": false,
|
|
3167
3213
|
"type": "option"
|
|
3168
3214
|
},
|
|
3169
|
-
"
|
|
3170
|
-
"
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
"
|
|
3215
|
+
"project": {
|
|
3216
|
+
"deprecated": {
|
|
3217
|
+
"to": "project-id"
|
|
3218
|
+
},
|
|
3219
|
+
"description": "Project ID to import to",
|
|
3220
|
+
"hidden": true,
|
|
3221
|
+
"name": "project",
|
|
3222
|
+
"hasDynamicHelp": false,
|
|
3223
|
+
"multiple": false,
|
|
3224
|
+
"type": "option"
|
|
3225
|
+
},
|
|
3226
|
+
"replace": {
|
|
3227
|
+
"description": "Replace documents with the same IDs",
|
|
3228
|
+
"exclusive": [
|
|
3229
|
+
"missing"
|
|
3230
|
+
],
|
|
3231
|
+
"name": "replace",
|
|
3232
|
+
"allowNo": false,
|
|
3233
|
+
"type": "boolean"
|
|
3234
|
+
},
|
|
3235
|
+
"replace-assets": {
|
|
3236
|
+
"description": "Skip reuse of existing assets",
|
|
3237
|
+
"name": "replace-assets",
|
|
3238
|
+
"allowNo": false,
|
|
3239
|
+
"type": "boolean"
|
|
3240
|
+
},
|
|
3241
|
+
"skip-cross-dataset-references": {
|
|
3242
|
+
"description": "Skips references to other datasets",
|
|
3243
|
+
"name": "skip-cross-dataset-references",
|
|
3244
|
+
"allowNo": false,
|
|
3245
|
+
"type": "boolean"
|
|
3246
|
+
},
|
|
3247
|
+
"token": {
|
|
3248
|
+
"char": "t",
|
|
3249
|
+
"description": "Token to authenticate with",
|
|
3250
|
+
"env": "SANITY_IMPORT_TOKEN",
|
|
3251
|
+
"name": "token",
|
|
3252
|
+
"required": false,
|
|
3174
3253
|
"hasDynamicHelp": false,
|
|
3175
|
-
"helpValue": "<name>",
|
|
3176
3254
|
"multiple": false,
|
|
3177
3255
|
"type": "option"
|
|
3178
3256
|
}
|
|
3179
3257
|
},
|
|
3180
3258
|
"hasDynamicHelp": false,
|
|
3181
3259
|
"hiddenAliases": [
|
|
3182
|
-
"
|
|
3260
|
+
"dataset:import"
|
|
3183
3261
|
],
|
|
3184
|
-
"id": "
|
|
3262
|
+
"id": "datasets:import",
|
|
3185
3263
|
"pluginAlias": "@sanity/cli",
|
|
3186
3264
|
"pluginName": "@sanity/cli",
|
|
3187
3265
|
"pluginType": "core",
|
|
3188
|
-
"strict":
|
|
3266
|
+
"strict": true,
|
|
3189
3267
|
"isESM": true,
|
|
3190
3268
|
"relativePath": [
|
|
3191
3269
|
"dist",
|
|
3192
3270
|
"commands",
|
|
3193
|
-
"
|
|
3194
|
-
"
|
|
3271
|
+
"datasets",
|
|
3272
|
+
"import.js"
|
|
3195
3273
|
]
|
|
3196
3274
|
},
|
|
3197
|
-
"
|
|
3275
|
+
"datasets:list": {
|
|
3198
3276
|
"aliases": [],
|
|
3199
|
-
"args": {
|
|
3200
|
-
|
|
3201
|
-
"description": "Document ID to retrieve",
|
|
3202
|
-
"name": "documentId",
|
|
3203
|
-
"required": true
|
|
3204
|
-
}
|
|
3205
|
-
},
|
|
3206
|
-
"description": "Get and print a document by ID",
|
|
3277
|
+
"args": {},
|
|
3278
|
+
"description": "List datasets for the project",
|
|
3207
3279
|
"examples": [
|
|
3208
3280
|
{
|
|
3209
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3210
|
-
"description": "
|
|
3211
|
-
},
|
|
3212
|
-
{
|
|
3213
|
-
"command": "<%= config.bin %> <%= command.id %> myDocId --pretty",
|
|
3214
|
-
"description": "Get document with colorized JSON output"
|
|
3215
|
-
},
|
|
3216
|
-
{
|
|
3217
|
-
"command": "<%= config.bin %> <%= command.id %> myDocId --dataset production",
|
|
3218
|
-
"description": "Get document from a specific dataset"
|
|
3281
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
3282
|
+
"description": "List datasets for the project"
|
|
3219
3283
|
},
|
|
3220
3284
|
{
|
|
3221
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3222
|
-
"description": "
|
|
3285
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
3286
|
+
"description": "List datasets for a specific project"
|
|
3223
3287
|
}
|
|
3224
3288
|
],
|
|
3225
3289
|
"flags": {
|
|
3226
3290
|
"project-id": {
|
|
3227
3291
|
"char": "p",
|
|
3228
|
-
"description": "Project ID to
|
|
3292
|
+
"description": "Project ID to list datasets for (overrides CLI configuration)",
|
|
3229
3293
|
"helpGroup": "OVERRIDE",
|
|
3230
3294
|
"name": "project-id",
|
|
3231
3295
|
"hasDynamicHelp": false,
|
|
3232
3296
|
"helpValue": "<id>",
|
|
3233
3297
|
"multiple": false,
|
|
3234
3298
|
"type": "option"
|
|
3235
|
-
},
|
|
3236
|
-
"dataset": {
|
|
3237
|
-
"char": "d",
|
|
3238
|
-
"description": "Dataset to get document from (overrides CLI configuration)",
|
|
3239
|
-
"helpGroup": "OVERRIDE",
|
|
3240
|
-
"name": "dataset",
|
|
3241
|
-
"hasDynamicHelp": false,
|
|
3242
|
-
"helpValue": "<name>",
|
|
3243
|
-
"multiple": false,
|
|
3244
|
-
"type": "option"
|
|
3245
|
-
},
|
|
3246
|
-
"pretty": {
|
|
3247
|
-
"description": "Colorize JSON output",
|
|
3248
|
-
"name": "pretty",
|
|
3249
|
-
"allowNo": false,
|
|
3250
|
-
"type": "boolean"
|
|
3251
3299
|
}
|
|
3252
3300
|
},
|
|
3253
3301
|
"hasDynamicHelp": false,
|
|
3254
3302
|
"hiddenAliases": [
|
|
3255
|
-
"
|
|
3303
|
+
"dataset:list"
|
|
3256
3304
|
],
|
|
3257
|
-
"id": "
|
|
3305
|
+
"id": "datasets:list",
|
|
3258
3306
|
"pluginAlias": "@sanity/cli",
|
|
3259
3307
|
"pluginName": "@sanity/cli",
|
|
3260
3308
|
"pluginType": "core",
|
|
@@ -3263,42 +3311,46 @@
|
|
|
3263
3311
|
"relativePath": [
|
|
3264
3312
|
"dist",
|
|
3265
3313
|
"commands",
|
|
3266
|
-
"
|
|
3267
|
-
"
|
|
3314
|
+
"datasets",
|
|
3315
|
+
"list.js"
|
|
3268
3316
|
]
|
|
3269
3317
|
},
|
|
3270
|
-
"documents:
|
|
3318
|
+
"documents:create": {
|
|
3271
3319
|
"aliases": [],
|
|
3272
3320
|
"args": {
|
|
3273
|
-
"
|
|
3274
|
-
"description": "
|
|
3275
|
-
"name": "
|
|
3276
|
-
"required":
|
|
3321
|
+
"file": {
|
|
3322
|
+
"description": "JSON file to create document(s) from",
|
|
3323
|
+
"name": "file",
|
|
3324
|
+
"required": false
|
|
3277
3325
|
}
|
|
3278
3326
|
},
|
|
3279
|
-
"description": "
|
|
3327
|
+
"description": "Create one or more documents",
|
|
3280
3328
|
"examples": [
|
|
3281
3329
|
{
|
|
3282
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3283
|
-
"description": "
|
|
3330
|
+
"command": "<%= config.bin %> <%= command.id %> myDocument.json",
|
|
3331
|
+
"description": "Create the document specified in \"myDocument.json\""
|
|
3284
3332
|
},
|
|
3285
3333
|
{
|
|
3286
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3287
|
-
"description": "
|
|
3334
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
3335
|
+
"description": "Open configured $EDITOR and create the specified document(s)"
|
|
3288
3336
|
},
|
|
3289
3337
|
{
|
|
3290
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3291
|
-
"description": "
|
|
3338
|
+
"command": "<%= config.bin %> <%= command.id %> --id myDocId --replace",
|
|
3339
|
+
"description": "Fetch document with the ID \"myDocId\" and open configured $EDITOR with the current document content (if any). Replace document with the edited version when the editor closes"
|
|
3292
3340
|
},
|
|
3293
3341
|
{
|
|
3294
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3295
|
-
"description": "
|
|
3342
|
+
"command": "<%= config.bin %> <%= command.id %> --id myDocId --watch --replace --json5",
|
|
3343
|
+
"description": "Open configured $EDITOR and replace the document with the given content on each save. Use JSON5 file extension and parser for simplified syntax."
|
|
3344
|
+
},
|
|
3345
|
+
{
|
|
3346
|
+
"command": "<%= config.bin %> <%= command.id %> myDocument.json --project-id abc123",
|
|
3347
|
+
"description": "Create documents in a specific project"
|
|
3296
3348
|
}
|
|
3297
3349
|
],
|
|
3298
3350
|
"flags": {
|
|
3299
3351
|
"project-id": {
|
|
3300
3352
|
"char": "p",
|
|
3301
|
-
"description": "Project ID to
|
|
3353
|
+
"description": "Project ID to create document(s) in (overrides CLI configuration)",
|
|
3302
3354
|
"helpGroup": "OVERRIDE",
|
|
3303
3355
|
"name": "project-id",
|
|
3304
3356
|
"hasDynamicHelp": false,
|
|
@@ -3308,7 +3360,7 @@
|
|
|
3308
3360
|
},
|
|
3309
3361
|
"dataset": {
|
|
3310
3362
|
"char": "d",
|
|
3311
|
-
"description": "Dataset to
|
|
3363
|
+
"description": "Dataset to create document(s) in (overrides CLI configuration)",
|
|
3312
3364
|
"helpGroup": "OVERRIDE",
|
|
3313
3365
|
"name": "dataset",
|
|
3314
3366
|
"hasDynamicHelp": false,
|
|
@@ -3316,42 +3368,43 @@
|
|
|
3316
3368
|
"multiple": false,
|
|
3317
3369
|
"type": "option"
|
|
3318
3370
|
},
|
|
3319
|
-
"
|
|
3320
|
-
"description": "
|
|
3321
|
-
"name": "
|
|
3322
|
-
"allowNo": false,
|
|
3323
|
-
"type": "boolean"
|
|
3324
|
-
},
|
|
3325
|
-
"api-version": {
|
|
3326
|
-
"description": "API version to use (defaults to 2025-08-15)",
|
|
3327
|
-
"name": "api-version",
|
|
3371
|
+
"id": {
|
|
3372
|
+
"description": "Specify a document ID to use. Will fetch remote document ID and populate editor.",
|
|
3373
|
+
"name": "id",
|
|
3328
3374
|
"hasDynamicHelp": false,
|
|
3329
3375
|
"multiple": false,
|
|
3330
3376
|
"type": "option"
|
|
3331
3377
|
},
|
|
3332
|
-
"
|
|
3333
|
-
"description": "
|
|
3334
|
-
"name": "
|
|
3378
|
+
"json5": {
|
|
3379
|
+
"description": "Use JSON5 file type to allow a \"simplified\" version of JSON",
|
|
3380
|
+
"name": "json5",
|
|
3335
3381
|
"allowNo": false,
|
|
3336
3382
|
"type": "boolean"
|
|
3337
3383
|
},
|
|
3338
|
-
"
|
|
3339
|
-
"
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
"
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
"
|
|
3346
|
-
"
|
|
3347
|
-
"
|
|
3384
|
+
"missing": {
|
|
3385
|
+
"description": "On duplicate document IDs, don't modify the target document(s)",
|
|
3386
|
+
"name": "missing",
|
|
3387
|
+
"allowNo": false,
|
|
3388
|
+
"type": "boolean"
|
|
3389
|
+
},
|
|
3390
|
+
"replace": {
|
|
3391
|
+
"description": "On duplicate document IDs, replace existing document with specified document(s)",
|
|
3392
|
+
"name": "replace",
|
|
3393
|
+
"allowNo": false,
|
|
3394
|
+
"type": "boolean"
|
|
3395
|
+
},
|
|
3396
|
+
"watch": {
|
|
3397
|
+
"description": "Write the documents whenever the target file or buffer changes",
|
|
3398
|
+
"name": "watch",
|
|
3399
|
+
"allowNo": false,
|
|
3400
|
+
"type": "boolean"
|
|
3348
3401
|
}
|
|
3349
3402
|
},
|
|
3350
3403
|
"hasDynamicHelp": false,
|
|
3351
3404
|
"hiddenAliases": [
|
|
3352
|
-
"document:
|
|
3405
|
+
"document:create"
|
|
3353
3406
|
],
|
|
3354
|
-
"id": "documents:
|
|
3407
|
+
"id": "documents:create",
|
|
3355
3408
|
"pluginAlias": "@sanity/cli",
|
|
3356
3409
|
"pluginName": "@sanity/cli",
|
|
3357
3410
|
"pluginType": "core",
|
|
@@ -3361,39 +3414,51 @@
|
|
|
3361
3414
|
"dist",
|
|
3362
3415
|
"commands",
|
|
3363
3416
|
"documents",
|
|
3364
|
-
"
|
|
3417
|
+
"create.js"
|
|
3365
3418
|
]
|
|
3366
3419
|
},
|
|
3367
|
-
"documents:
|
|
3420
|
+
"documents:delete": {
|
|
3368
3421
|
"aliases": [],
|
|
3369
|
-
"args": {
|
|
3370
|
-
|
|
3422
|
+
"args": {
|
|
3423
|
+
"id": {
|
|
3424
|
+
"description": "Document ID to delete",
|
|
3425
|
+
"name": "id",
|
|
3426
|
+
"required": true
|
|
3427
|
+
},
|
|
3428
|
+
"ids": {
|
|
3429
|
+
"description": "Additional document IDs to delete",
|
|
3430
|
+
"name": "ids",
|
|
3431
|
+
"required": false
|
|
3432
|
+
}
|
|
3433
|
+
},
|
|
3434
|
+
"description": "Delete one or more documents from the project's configured dataset",
|
|
3371
3435
|
"examples": [
|
|
3372
3436
|
{
|
|
3373
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3374
|
-
"description": "
|
|
3437
|
+
"command": "<%= config.bin %> <%= command.id %> myDocId",
|
|
3438
|
+
"description": "Delete the document with the ID \"myDocId\""
|
|
3375
3439
|
},
|
|
3376
3440
|
{
|
|
3377
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3378
|
-
"description": "
|
|
3441
|
+
"command": "<%= config.bin %> <%= command.id %> 'myDocId'",
|
|
3442
|
+
"description": "ID wrapped in double or single quote works equally well"
|
|
3379
3443
|
},
|
|
3380
3444
|
{
|
|
3381
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
3382
|
-
"description": "
|
|
3445
|
+
"command": "<%= config.bin %> <%= command.id %> --dataset=blog someDocId",
|
|
3446
|
+
"description": "Delete document with ID \"someDocId\" from dataset \"blog\""
|
|
3383
3447
|
},
|
|
3384
3448
|
{
|
|
3385
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3386
|
-
"description": "
|
|
3449
|
+
"command": "<%= config.bin %> <%= command.id %> doc1 doc2",
|
|
3450
|
+
"description": "Delete the document with ID \"doc1\" and \"doc2\""
|
|
3387
3451
|
},
|
|
3388
3452
|
{
|
|
3389
|
-
"command": "<%= config.bin %> <%= command.id %> --project-id abc123
|
|
3390
|
-
"description": "
|
|
3453
|
+
"command": "<%= config.bin %> <%= command.id %> myDocId --project-id abc123",
|
|
3454
|
+
"description": "Delete a document from a specific project"
|
|
3391
3455
|
}
|
|
3392
3456
|
],
|
|
3393
3457
|
"flags": {
|
|
3394
3458
|
"project-id": {
|
|
3395
3459
|
"char": "p",
|
|
3396
|
-
"description": "
|
|
3460
|
+
"description": "Project ID to delete from (overrides CLI configuration)",
|
|
3461
|
+
"helpGroup": "OVERRIDE",
|
|
3397
3462
|
"name": "project-id",
|
|
3398
3463
|
"hasDynamicHelp": false,
|
|
3399
3464
|
"helpValue": "<id>",
|
|
@@ -3402,185 +3467,93 @@
|
|
|
3402
3467
|
},
|
|
3403
3468
|
"dataset": {
|
|
3404
3469
|
"char": "d",
|
|
3405
|
-
"description": "
|
|
3470
|
+
"description": "Dataset to delete from (overrides CLI configuration)",
|
|
3471
|
+
"helpGroup": "OVERRIDE",
|
|
3406
3472
|
"name": "dataset",
|
|
3407
3473
|
"hasDynamicHelp": false,
|
|
3408
3474
|
"helpValue": "<name>",
|
|
3409
3475
|
"multiple": false,
|
|
3410
3476
|
"type": "option"
|
|
3411
|
-
},
|
|
3412
|
-
"file": {
|
|
3413
|
-
"description": "Path to an NDJSON file or tar archive containing an NDJSON file (optionally gzip-compressed)",
|
|
3414
|
-
"name": "file",
|
|
3415
|
-
"hasDynamicHelp": false,
|
|
3416
|
-
"multiple": false,
|
|
3417
|
-
"type": "option"
|
|
3418
|
-
},
|
|
3419
|
-
"format": {
|
|
3420
|
-
"description": "The output format used to print the found validation markers and report progress",
|
|
3421
|
-
"name": "format",
|
|
3422
|
-
"hasDynamicHelp": false,
|
|
3423
|
-
"multiple": false,
|
|
3424
|
-
"options": [
|
|
3425
|
-
"json",
|
|
3426
|
-
"ndjson",
|
|
3427
|
-
"pretty"
|
|
3428
|
-
],
|
|
3429
|
-
"type": "option"
|
|
3430
|
-
},
|
|
3431
|
-
"level": {
|
|
3432
|
-
"description": "The minimum level reported. Defaults to warning",
|
|
3433
|
-
"name": "level",
|
|
3434
|
-
"default": "warning",
|
|
3435
|
-
"hasDynamicHelp": false,
|
|
3436
|
-
"multiple": false,
|
|
3437
|
-
"options": [
|
|
3438
|
-
"error",
|
|
3439
|
-
"warning",
|
|
3440
|
-
"info"
|
|
3441
|
-
],
|
|
3442
|
-
"type": "option"
|
|
3443
|
-
},
|
|
3444
|
-
"max-custom-validation-concurrency": {
|
|
3445
|
-
"description": "Specify how many custom validators can run concurrently",
|
|
3446
|
-
"name": "max-custom-validation-concurrency",
|
|
3447
|
-
"default": 5,
|
|
3448
|
-
"hasDynamicHelp": false,
|
|
3449
|
-
"multiple": false,
|
|
3450
|
-
"type": "option"
|
|
3451
|
-
},
|
|
3452
|
-
"max-fetch-concurrency": {
|
|
3453
|
-
"description": "Specify how many `client.fetch` requests are allowed to run concurrently",
|
|
3454
|
-
"name": "max-fetch-concurrency",
|
|
3455
|
-
"default": 25,
|
|
3456
|
-
"hasDynamicHelp": false,
|
|
3457
|
-
"multiple": false,
|
|
3458
|
-
"type": "option"
|
|
3459
|
-
},
|
|
3460
|
-
"workspace": {
|
|
3461
|
-
"description": "The name of the workspace to use when downloading and validating all documents",
|
|
3462
|
-
"name": "workspace",
|
|
3463
|
-
"hasDynamicHelp": false,
|
|
3464
|
-
"multiple": false,
|
|
3465
|
-
"type": "option"
|
|
3466
|
-
},
|
|
3467
|
-
"yes": {
|
|
3468
|
-
"char": "y",
|
|
3469
|
-
"description": "Skips the first confirmation prompt",
|
|
3470
|
-
"name": "yes",
|
|
3471
|
-
"allowNo": false,
|
|
3472
|
-
"type": "boolean"
|
|
3473
3477
|
}
|
|
3474
3478
|
},
|
|
3475
3479
|
"hasDynamicHelp": false,
|
|
3476
3480
|
"hiddenAliases": [
|
|
3477
|
-
"document:
|
|
3481
|
+
"document:delete"
|
|
3478
3482
|
],
|
|
3479
|
-
"id": "documents:
|
|
3483
|
+
"id": "documents:delete",
|
|
3480
3484
|
"pluginAlias": "@sanity/cli",
|
|
3481
3485
|
"pluginName": "@sanity/cli",
|
|
3482
3486
|
"pluginType": "core",
|
|
3483
|
-
"strict":
|
|
3487
|
+
"strict": false,
|
|
3484
3488
|
"isESM": true,
|
|
3485
3489
|
"relativePath": [
|
|
3486
3490
|
"dist",
|
|
3487
3491
|
"commands",
|
|
3488
3492
|
"documents",
|
|
3489
|
-
"
|
|
3493
|
+
"delete.js"
|
|
3490
3494
|
]
|
|
3491
3495
|
},
|
|
3492
|
-
"
|
|
3496
|
+
"documents:get": {
|
|
3493
3497
|
"aliases": [],
|
|
3494
|
-
"args": {
|
|
3495
|
-
|
|
3498
|
+
"args": {
|
|
3499
|
+
"documentId": {
|
|
3500
|
+
"description": "Document ID to retrieve",
|
|
3501
|
+
"name": "documentId",
|
|
3502
|
+
"required": true
|
|
3503
|
+
}
|
|
3504
|
+
},
|
|
3505
|
+
"description": "Get and print a document by ID",
|
|
3496
3506
|
"examples": [
|
|
3497
3507
|
{
|
|
3498
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
3499
|
-
"description": "
|
|
3508
|
+
"command": "<%= config.bin %> <%= command.id %> myDocId",
|
|
3509
|
+
"description": "Get the document with ID \"myDocId\""
|
|
3500
3510
|
},
|
|
3501
3511
|
{
|
|
3502
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
3503
|
-
"description": "
|
|
3512
|
+
"command": "<%= config.bin %> <%= command.id %> myDocId --pretty",
|
|
3513
|
+
"description": "Get document with colorized JSON output"
|
|
3504
3514
|
},
|
|
3505
3515
|
{
|
|
3506
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3507
|
-
"description": "
|
|
3516
|
+
"command": "<%= config.bin %> <%= command.id %> myDocId --dataset production",
|
|
3517
|
+
"description": "Get document from a specific dataset"
|
|
3508
3518
|
},
|
|
3509
3519
|
{
|
|
3510
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
3511
|
-
"description": "
|
|
3520
|
+
"command": "<%= config.bin %> <%= command.id %> myDocId --project-id abc123",
|
|
3521
|
+
"description": "Get a document from a specific project"
|
|
3512
3522
|
}
|
|
3513
3523
|
],
|
|
3514
3524
|
"flags": {
|
|
3515
|
-
"
|
|
3516
|
-
"
|
|
3517
|
-
"
|
|
3518
|
-
"
|
|
3519
|
-
"
|
|
3520
|
-
"type": "option"
|
|
3521
|
-
},
|
|
3522
|
-
"dataset": {
|
|
3523
|
-
"char": "d",
|
|
3524
|
-
"description": "Deploy API for the given dataset",
|
|
3525
|
-
"name": "dataset",
|
|
3526
|
-
"hasDynamicHelp": false,
|
|
3527
|
-
"helpValue": "<name>",
|
|
3528
|
-
"multiple": false,
|
|
3529
|
-
"type": "option"
|
|
3530
|
-
},
|
|
3531
|
-
"dry-run": {
|
|
3532
|
-
"description": "Validate defined GraphQL APIs, check for breaking changes, skip deploy",
|
|
3533
|
-
"name": "dry-run",
|
|
3534
|
-
"allowNo": false,
|
|
3535
|
-
"type": "boolean"
|
|
3536
|
-
},
|
|
3537
|
-
"force": {
|
|
3538
|
-
"description": "Deploy API without confirming breaking changes",
|
|
3539
|
-
"name": "force",
|
|
3540
|
-
"allowNo": false,
|
|
3541
|
-
"type": "boolean"
|
|
3542
|
-
},
|
|
3543
|
-
"generation": {
|
|
3544
|
-
"description": "API generation to deploy (defaults to \"gen3\")",
|
|
3545
|
-
"name": "generation",
|
|
3525
|
+
"project-id": {
|
|
3526
|
+
"char": "p",
|
|
3527
|
+
"description": "Project ID to get document from (overrides CLI configuration)",
|
|
3528
|
+
"helpGroup": "OVERRIDE",
|
|
3529
|
+
"name": "project-id",
|
|
3546
3530
|
"hasDynamicHelp": false,
|
|
3531
|
+
"helpValue": "<id>",
|
|
3547
3532
|
"multiple": false,
|
|
3548
|
-
"options": [
|
|
3549
|
-
"gen1",
|
|
3550
|
-
"gen2",
|
|
3551
|
-
"gen3"
|
|
3552
|
-
],
|
|
3553
3533
|
"type": "option"
|
|
3554
3534
|
},
|
|
3555
|
-
"
|
|
3556
|
-
"
|
|
3557
|
-
"
|
|
3558
|
-
"
|
|
3559
|
-
"
|
|
3560
|
-
},
|
|
3561
|
-
"playground": {
|
|
3562
|
-
"description": "Enable GraphQL playground for easier debugging",
|
|
3563
|
-
"name": "playground",
|
|
3564
|
-
"allowNo": true,
|
|
3565
|
-
"type": "boolean"
|
|
3566
|
-
},
|
|
3567
|
-
"tag": {
|
|
3568
|
-
"description": "Deploy API(s) to given tag (defaults to \"default\")",
|
|
3569
|
-
"name": "tag",
|
|
3535
|
+
"dataset": {
|
|
3536
|
+
"char": "d",
|
|
3537
|
+
"description": "Dataset to get document from (overrides CLI configuration)",
|
|
3538
|
+
"helpGroup": "OVERRIDE",
|
|
3539
|
+
"name": "dataset",
|
|
3570
3540
|
"hasDynamicHelp": false,
|
|
3541
|
+
"helpValue": "<name>",
|
|
3571
3542
|
"multiple": false,
|
|
3572
3543
|
"type": "option"
|
|
3573
3544
|
},
|
|
3574
|
-
"
|
|
3575
|
-
"description": "
|
|
3576
|
-
"name": "
|
|
3545
|
+
"pretty": {
|
|
3546
|
+
"description": "Colorize JSON output",
|
|
3547
|
+
"name": "pretty",
|
|
3577
3548
|
"allowNo": false,
|
|
3578
3549
|
"type": "boolean"
|
|
3579
3550
|
}
|
|
3580
3551
|
},
|
|
3581
3552
|
"hasDynamicHelp": false,
|
|
3582
|
-
"hiddenAliases": [
|
|
3583
|
-
|
|
3553
|
+
"hiddenAliases": [
|
|
3554
|
+
"document:get"
|
|
3555
|
+
],
|
|
3556
|
+
"id": "documents:get",
|
|
3584
3557
|
"pluginAlias": "@sanity/cli",
|
|
3585
3558
|
"pluginName": "@sanity/cli",
|
|
3586
3559
|
"pluginType": "core",
|
|
@@ -3589,39 +3562,95 @@
|
|
|
3589
3562
|
"relativePath": [
|
|
3590
3563
|
"dist",
|
|
3591
3564
|
"commands",
|
|
3592
|
-
"
|
|
3593
|
-
"
|
|
3565
|
+
"documents",
|
|
3566
|
+
"get.js"
|
|
3594
3567
|
]
|
|
3595
3568
|
},
|
|
3596
|
-
"
|
|
3569
|
+
"documents:query": {
|
|
3597
3570
|
"aliases": [],
|
|
3598
|
-
"args": {
|
|
3599
|
-
|
|
3571
|
+
"args": {
|
|
3572
|
+
"query": {
|
|
3573
|
+
"description": "GROQ query to run against the dataset",
|
|
3574
|
+
"name": "query",
|
|
3575
|
+
"required": true
|
|
3576
|
+
}
|
|
3577
|
+
},
|
|
3578
|
+
"description": "Query for documents",
|
|
3600
3579
|
"examples": [
|
|
3601
3580
|
{
|
|
3602
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
3603
|
-
"description": "
|
|
3581
|
+
"command": "<%= config.bin %> <%= command.id %> '*[_type == \"movie\"][0..4]'",
|
|
3582
|
+
"description": "Fetch 5 documents of type \"movie\""
|
|
3604
3583
|
},
|
|
3605
3584
|
{
|
|
3606
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
3607
|
-
"description": "
|
|
3585
|
+
"command": "<%= config.bin %> <%= command.id %> '*[_type == \"movie\"]|order(releaseDate asc)[0]{title}' --dataset staging",
|
|
3586
|
+
"description": "Fetch title of the oldest movie in the dataset named \"staging\""
|
|
3587
|
+
},
|
|
3588
|
+
{
|
|
3589
|
+
"command": "<%= config.bin %> <%= command.id %> '*[_id == \"header\"] { \"headerText\": pt::text(body) }' --api-version v2021-06-07",
|
|
3590
|
+
"description": "Use API version v2021-06-07 and do a query"
|
|
3591
|
+
},
|
|
3592
|
+
{
|
|
3593
|
+
"command": "<%= config.bin %> <%= command.id %> '*[_type == \"post\"]' --project-id abc123 --dataset production",
|
|
3594
|
+
"description": "Query documents in a specific project and dataset"
|
|
3608
3595
|
}
|
|
3609
3596
|
],
|
|
3610
3597
|
"flags": {
|
|
3611
3598
|
"project-id": {
|
|
3612
3599
|
"char": "p",
|
|
3613
|
-
"description": "Project ID to
|
|
3600
|
+
"description": "Project ID to query (overrides CLI configuration)",
|
|
3614
3601
|
"helpGroup": "OVERRIDE",
|
|
3615
3602
|
"name": "project-id",
|
|
3616
3603
|
"hasDynamicHelp": false,
|
|
3617
3604
|
"helpValue": "<id>",
|
|
3618
3605
|
"multiple": false,
|
|
3619
3606
|
"type": "option"
|
|
3607
|
+
},
|
|
3608
|
+
"dataset": {
|
|
3609
|
+
"char": "d",
|
|
3610
|
+
"description": "Dataset to query (overrides CLI configuration)",
|
|
3611
|
+
"helpGroup": "OVERRIDE",
|
|
3612
|
+
"name": "dataset",
|
|
3613
|
+
"hasDynamicHelp": false,
|
|
3614
|
+
"helpValue": "<name>",
|
|
3615
|
+
"multiple": false,
|
|
3616
|
+
"type": "option"
|
|
3617
|
+
},
|
|
3618
|
+
"anonymous": {
|
|
3619
|
+
"description": "Send the query without any authorization token",
|
|
3620
|
+
"name": "anonymous",
|
|
3621
|
+
"allowNo": false,
|
|
3622
|
+
"type": "boolean"
|
|
3623
|
+
},
|
|
3624
|
+
"api-version": {
|
|
3625
|
+
"description": "API version to use (defaults to 2025-08-15)",
|
|
3626
|
+
"name": "api-version",
|
|
3627
|
+
"hasDynamicHelp": false,
|
|
3628
|
+
"multiple": false,
|
|
3629
|
+
"type": "option"
|
|
3630
|
+
},
|
|
3631
|
+
"pretty": {
|
|
3632
|
+
"description": "Colorize JSON output",
|
|
3633
|
+
"name": "pretty",
|
|
3634
|
+
"allowNo": false,
|
|
3635
|
+
"type": "boolean"
|
|
3636
|
+
},
|
|
3637
|
+
"project": {
|
|
3638
|
+
"deprecated": {
|
|
3639
|
+
"to": "project-id"
|
|
3640
|
+
},
|
|
3641
|
+
"description": "Project ID to query",
|
|
3642
|
+
"hidden": true,
|
|
3643
|
+
"name": "project",
|
|
3644
|
+
"hasDynamicHelp": false,
|
|
3645
|
+
"multiple": false,
|
|
3646
|
+
"type": "option"
|
|
3620
3647
|
}
|
|
3621
3648
|
},
|
|
3622
3649
|
"hasDynamicHelp": false,
|
|
3623
|
-
"hiddenAliases": [
|
|
3624
|
-
|
|
3650
|
+
"hiddenAliases": [
|
|
3651
|
+
"document:query"
|
|
3652
|
+
],
|
|
3653
|
+
"id": "documents:query",
|
|
3625
3654
|
"pluginAlias": "@sanity/cli",
|
|
3626
3655
|
"pluginName": "@sanity/cli",
|
|
3627
3656
|
"pluginType": "core",
|
|
@@ -3630,104 +3659,123 @@
|
|
|
3630
3659
|
"relativePath": [
|
|
3631
3660
|
"dist",
|
|
3632
3661
|
"commands",
|
|
3633
|
-
"
|
|
3634
|
-
"
|
|
3662
|
+
"documents",
|
|
3663
|
+
"query.js"
|
|
3635
3664
|
]
|
|
3636
3665
|
},
|
|
3637
|
-
"
|
|
3666
|
+
"documents:validate": {
|
|
3638
3667
|
"aliases": [],
|
|
3639
3668
|
"args": {},
|
|
3640
|
-
"description": "
|
|
3669
|
+
"description": "Validate documents in a dataset against the studio schema",
|
|
3641
3670
|
"examples": [
|
|
3642
3671
|
{
|
|
3643
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
3644
|
-
"description": "
|
|
3645
|
-
},
|
|
3646
|
-
{
|
|
3647
|
-
"command": "<%= config.bin %> <%= command.id %> --api ios",
|
|
3648
|
-
"description": "Undeploy API with ID \"ios\""
|
|
3672
|
+
"command": "<%= config.bin %> <%= command.id %> --workspace default",
|
|
3673
|
+
"description": "Validates all documents in a Sanity project with more than one workspace"
|
|
3649
3674
|
},
|
|
3650
3675
|
{
|
|
3651
|
-
"command": "<%= config.bin %> <%= command.id %> --dataset staging",
|
|
3652
|
-
"description": "
|
|
3676
|
+
"command": "<%= config.bin %> <%= command.id %> --workspace default --dataset staging",
|
|
3677
|
+
"description": "Override the dataset specified in the workspace"
|
|
3653
3678
|
},
|
|
3654
3679
|
{
|
|
3655
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
3656
|
-
"description": "
|
|
3680
|
+
"command": "<%= config.bin %> <%= command.id %> --yes > report.txt",
|
|
3681
|
+
"description": "Save the results of the report into a file"
|
|
3657
3682
|
},
|
|
3658
3683
|
{
|
|
3659
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
3660
|
-
"description": "
|
|
3684
|
+
"command": "<%= config.bin %> <%= command.id %> --level info",
|
|
3685
|
+
"description": "Report out info level validation markers too"
|
|
3661
3686
|
},
|
|
3662
3687
|
{
|
|
3663
3688
|
"command": "<%= config.bin %> <%= command.id %> --project-id abc123 --dataset production",
|
|
3664
|
-
"description": "
|
|
3689
|
+
"description": "Validate documents in a specific project and dataset"
|
|
3665
3690
|
}
|
|
3666
3691
|
],
|
|
3667
3692
|
"flags": {
|
|
3668
3693
|
"project-id": {
|
|
3669
3694
|
"char": "p",
|
|
3670
|
-
"description": "
|
|
3671
|
-
"helpGroup": "OVERRIDE",
|
|
3695
|
+
"description": "Override the project ID used. By default, this is derived from the given workspace",
|
|
3672
3696
|
"name": "project-id",
|
|
3673
3697
|
"hasDynamicHelp": false,
|
|
3674
3698
|
"helpValue": "<id>",
|
|
3675
3699
|
"multiple": false,
|
|
3676
3700
|
"type": "option"
|
|
3677
3701
|
},
|
|
3678
|
-
"api": {
|
|
3679
|
-
"description": "Undeploy API with this ID",
|
|
3680
|
-
"exclusive": [
|
|
3681
|
-
"project-id",
|
|
3682
|
-
"project"
|
|
3683
|
-
],
|
|
3684
|
-
"name": "api",
|
|
3685
|
-
"required": false,
|
|
3686
|
-
"hasDynamicHelp": false,
|
|
3687
|
-
"multiple": false,
|
|
3688
|
-
"type": "option"
|
|
3689
|
-
},
|
|
3690
3702
|
"dataset": {
|
|
3691
3703
|
"char": "d",
|
|
3692
|
-
"description": "
|
|
3693
|
-
"helpGroup": "OVERRIDE",
|
|
3704
|
+
"description": "Override the dataset used. By default, this is derived from the given workspace",
|
|
3694
3705
|
"name": "dataset",
|
|
3695
3706
|
"hasDynamicHelp": false,
|
|
3696
3707
|
"helpValue": "<name>",
|
|
3697
3708
|
"multiple": false,
|
|
3698
3709
|
"type": "option"
|
|
3699
3710
|
},
|
|
3700
|
-
"
|
|
3701
|
-
"description": "
|
|
3702
|
-
"name": "
|
|
3703
|
-
"
|
|
3704
|
-
"
|
|
3711
|
+
"file": {
|
|
3712
|
+
"description": "Path to an NDJSON file or tar archive containing an NDJSON file (optionally gzip-compressed)",
|
|
3713
|
+
"name": "file",
|
|
3714
|
+
"hasDynamicHelp": false,
|
|
3715
|
+
"multiple": false,
|
|
3716
|
+
"type": "option"
|
|
3705
3717
|
},
|
|
3706
|
-
"
|
|
3707
|
-
"
|
|
3708
|
-
|
|
3709
|
-
},
|
|
3710
|
-
"description": "Project ID to delete GraphQL API for",
|
|
3711
|
-
"hidden": true,
|
|
3712
|
-
"name": "project",
|
|
3713
|
-
"required": false,
|
|
3718
|
+
"format": {
|
|
3719
|
+
"description": "The output format used to print the found validation markers and report progress",
|
|
3720
|
+
"name": "format",
|
|
3714
3721
|
"hasDynamicHelp": false,
|
|
3715
3722
|
"multiple": false,
|
|
3723
|
+
"options": [
|
|
3724
|
+
"json",
|
|
3725
|
+
"ndjson",
|
|
3726
|
+
"pretty"
|
|
3727
|
+
],
|
|
3716
3728
|
"type": "option"
|
|
3717
3729
|
},
|
|
3718
|
-
"
|
|
3719
|
-
"description": "
|
|
3720
|
-
"name": "
|
|
3721
|
-
"
|
|
3722
|
-
"
|
|
3730
|
+
"level": {
|
|
3731
|
+
"description": "The minimum level reported. Defaults to warning",
|
|
3732
|
+
"name": "level",
|
|
3733
|
+
"default": "warning",
|
|
3734
|
+
"hasDynamicHelp": false,
|
|
3735
|
+
"multiple": false,
|
|
3736
|
+
"options": [
|
|
3737
|
+
"error",
|
|
3738
|
+
"warning",
|
|
3739
|
+
"info"
|
|
3740
|
+
],
|
|
3741
|
+
"type": "option"
|
|
3742
|
+
},
|
|
3743
|
+
"max-custom-validation-concurrency": {
|
|
3744
|
+
"description": "Specify how many custom validators can run concurrently",
|
|
3745
|
+
"name": "max-custom-validation-concurrency",
|
|
3746
|
+
"default": 5,
|
|
3747
|
+
"hasDynamicHelp": false,
|
|
3748
|
+
"multiple": false,
|
|
3749
|
+
"type": "option"
|
|
3750
|
+
},
|
|
3751
|
+
"max-fetch-concurrency": {
|
|
3752
|
+
"description": "Specify how many `client.fetch` requests are allowed to run concurrently",
|
|
3753
|
+
"name": "max-fetch-concurrency",
|
|
3754
|
+
"default": 25,
|
|
3755
|
+
"hasDynamicHelp": false,
|
|
3756
|
+
"multiple": false,
|
|
3757
|
+
"type": "option"
|
|
3758
|
+
},
|
|
3759
|
+
"workspace": {
|
|
3760
|
+
"description": "The name of the workspace to use when downloading and validating all documents",
|
|
3761
|
+
"name": "workspace",
|
|
3723
3762
|
"hasDynamicHelp": false,
|
|
3724
3763
|
"multiple": false,
|
|
3725
3764
|
"type": "option"
|
|
3765
|
+
},
|
|
3766
|
+
"yes": {
|
|
3767
|
+
"char": "y",
|
|
3768
|
+
"description": "Skips the first confirmation prompt",
|
|
3769
|
+
"name": "yes",
|
|
3770
|
+
"allowNo": false,
|
|
3771
|
+
"type": "boolean"
|
|
3726
3772
|
}
|
|
3727
3773
|
},
|
|
3728
3774
|
"hasDynamicHelp": false,
|
|
3729
|
-
"hiddenAliases": [
|
|
3730
|
-
|
|
3775
|
+
"hiddenAliases": [
|
|
3776
|
+
"document:validate"
|
|
3777
|
+
],
|
|
3778
|
+
"id": "documents:validate",
|
|
3731
3779
|
"pluginAlias": "@sanity/cli",
|
|
3732
3780
|
"pluginName": "@sanity/cli",
|
|
3733
3781
|
"pluginType": "core",
|
|
@@ -3736,8 +3784,8 @@
|
|
|
3736
3784
|
"relativePath": [
|
|
3737
3785
|
"dist",
|
|
3738
3786
|
"commands",
|
|
3739
|
-
"
|
|
3740
|
-
"
|
|
3787
|
+
"documents",
|
|
3788
|
+
"validate.js"
|
|
3741
3789
|
]
|
|
3742
3790
|
},
|
|
3743
3791
|
"hooks:attempt": {
|
|
@@ -4293,7 +4341,7 @@
|
|
|
4293
4341
|
"aliases": [],
|
|
4294
4342
|
"args": {
|
|
4295
4343
|
"source": {
|
|
4296
|
-
"description": "
|
|
4344
|
+
"description": "Directory, archive, or asset URL to import from. An https URL imports one asset that Sanity fetches itself",
|
|
4297
4345
|
"name": "source",
|
|
4298
4346
|
"required": true
|
|
4299
4347
|
}
|
|
@@ -4311,6 +4359,14 @@
|
|
|
4311
4359
|
{
|
|
4312
4360
|
"command": "<%= config.bin %> <%= command.id %> products --replace-aspects",
|
|
4313
4361
|
"description": "Import all assets from the \"products\" directory and replace aspects"
|
|
4362
|
+
},
|
|
4363
|
+
{
|
|
4364
|
+
"command": "<%= config.bin %> <%= command.id %> https://example.com/hero.png",
|
|
4365
|
+
"description": "Have Sanity fetch a single asset from a public URL"
|
|
4366
|
+
},
|
|
4367
|
+
{
|
|
4368
|
+
"command": "<%= config.bin %> <%= command.id %> https://example.com/hero.png --aspect department=Brand",
|
|
4369
|
+
"description": "Fetch an asset from a URL and set aspect data on it"
|
|
4314
4370
|
}
|
|
4315
4371
|
],
|
|
4316
4372
|
"flags": {
|
|
@@ -4324,6 +4380,22 @@
|
|
|
4324
4380
|
"multiple": false,
|
|
4325
4381
|
"type": "option"
|
|
4326
4382
|
},
|
|
4383
|
+
"aspect": {
|
|
4384
|
+
"description": "Aspect value to set on the imported asset, as key=value. Repeatable. Only applies when the source is a URL - directory and archive imports read aspects from their data.ndjson",
|
|
4385
|
+
"name": "aspect",
|
|
4386
|
+
"hasDynamicHelp": false,
|
|
4387
|
+
"helpValue": "<key=value>",
|
|
4388
|
+
"multiple": true,
|
|
4389
|
+
"type": "option"
|
|
4390
|
+
},
|
|
4391
|
+
"filename": {
|
|
4392
|
+
"description": "Original filename to store on the asset. Only applies when the source is a URL. Defaults to a name derived from the URL",
|
|
4393
|
+
"name": "filename",
|
|
4394
|
+
"hasDynamicHelp": false,
|
|
4395
|
+
"helpValue": "<filename>",
|
|
4396
|
+
"multiple": false,
|
|
4397
|
+
"type": "option"
|
|
4398
|
+
},
|
|
4327
4399
|
"media-library-id": {
|
|
4328
4400
|
"description": "The id of the target media library",
|
|
4329
4401
|
"name": "media-library-id",
|
|
@@ -4332,7 +4404,7 @@
|
|
|
4332
4404
|
"type": "option"
|
|
4333
4405
|
},
|
|
4334
4406
|
"replace-aspects": {
|
|
4335
|
-
"description": "Replace existing aspect data. All versions will be replaced (e.g. published and draft aspect data)",
|
|
4407
|
+
"description": "Replace existing aspect data. All versions will be replaced (e.g. published and draft aspect data). Only applies to directory and archive imports",
|
|
4336
4408
|
"name": "replace-aspects",
|
|
4337
4409
|
"allowNo": false,
|
|
4338
4410
|
"type": "boolean"
|
|
@@ -4345,6 +4417,22 @@
|
|
|
4345
4417
|
"pluginName": "@sanity/cli",
|
|
4346
4418
|
"pluginType": "core",
|
|
4347
4419
|
"strict": true,
|
|
4420
|
+
"telemetry": {
|
|
4421
|
+
"redactedFlags": [
|
|
4422
|
+
{
|
|
4423
|
+
"canonical": "--aspect",
|
|
4424
|
+
"flags": [
|
|
4425
|
+
"--aspect"
|
|
4426
|
+
]
|
|
4427
|
+
},
|
|
4428
|
+
{
|
|
4429
|
+
"canonical": "--filename",
|
|
4430
|
+
"flags": [
|
|
4431
|
+
"--filename"
|
|
4432
|
+
]
|
|
4433
|
+
}
|
|
4434
|
+
]
|
|
4435
|
+
},
|
|
4348
4436
|
"isESM": true,
|
|
4349
4437
|
"relativePath": [
|
|
4350
4438
|
"dist",
|
|
@@ -6964,5 +7052,5 @@
|
|
|
6964
7052
|
]
|
|
6965
7053
|
}
|
|
6966
7054
|
},
|
|
6967
|
-
"version": "8.
|
|
7055
|
+
"version": "8.13.0"
|
|
6968
7056
|
}
|