@sanity/cli 8.13.0 → 8.14.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 +6 -5
- package/dist/actions/init/bootstrapLocalTemplate.js +5 -0
- package/dist/actions/init/bootstrapLocalTemplate.js.map +1 -1
- package/dist/actions/init/initAction.js +11 -3
- package/dist/actions/init/initAction.js.map +1 -1
- package/dist/actions/init/sdkAppDependencies.js +4 -4
- package/dist/actions/init/sdkAppDependencies.js.map +1 -1
- package/dist/actions/init/studioDependencies.js +2 -1
- package/dist/actions/init/studioDependencies.js.map +1 -1
- package/dist/actions/init/templates/appSanityUi.js +1 -1
- package/dist/actions/init/templates/appSanityUi.js.map +1 -1
- package/dist/actions/init/types.js +1 -1
- package/dist/actions/init/types.js.map +1 -1
- package/dist/commands/dev.js +1 -1
- package/dist/commands/dev.js.map +1 -1
- package/dist/commands/init.js +7 -7
- package/dist/commands/init.js.map +1 -1
- package/dist/generated/apiRoutes.js +2 -0
- package/dist/generated/apiRoutes.js.map +1 -1
- package/dist/util/update/resolveRunnerPackage.js +1 -1
- package/dist/util/update/resolveRunnerPackage.js.map +1 -1
- package/dist/util/update/resolveUpdateTarget.js +1 -1
- package/dist/util/update/resolveUpdateTarget.js.map +1 -1
- package/dist/util/update/updateChecker.js +7 -2
- package/dist/util/update/updateChecker.js.map +1 -1
- package/dist/util/update/updateCheckerDebug.js +1 -1
- package/dist/util/update/updateCheckerDebug.js.map +1 -1
- package/oclif.manifest.json +570 -567
- package/package.json +7 -7
- package/templates/app-sanity-ui/src/App.tsx +8 -8
- package/templates/app-sanity-ui/src/ExampleComponent.tsx +1 -1
- package/templates/app-sanity-ui/src/SanityUI.tsx +3 -1
- package/templates/shared/dashboard/app-quickstart/.claude/skills/sanity-app-sdk/SKILL.md +66 -0
- package/templates/shared/dashboard/app-quickstart/AGENTS.md +61 -0
- package/templates/shared/dashboard/app-quickstart/README.md +30 -0
- package/templates/shared/dashboard/app-sanity-ui/.claude/skills/sanity-app-sdk/SKILL.md +70 -0
- package/templates/shared/dashboard/app-sanity-ui/AGENTS.md +65 -0
- package/templates/shared/dashboard/app-sanity-ui/README.md +31 -0
- package/templates/shared/tsconfig.json +1 -0
package/oclif.manifest.json
CHANGED
|
@@ -706,6 +706,16 @@
|
|
|
706
706
|
"multiple": false,
|
|
707
707
|
"type": "option"
|
|
708
708
|
},
|
|
709
|
+
"dashboard": {
|
|
710
|
+
"description": "Set up the project to run in the Sanity Dashboard (beta)",
|
|
711
|
+
"exclusive": [
|
|
712
|
+
"bare",
|
|
713
|
+
"env"
|
|
714
|
+
],
|
|
715
|
+
"name": "dashboard",
|
|
716
|
+
"allowNo": false,
|
|
717
|
+
"type": "boolean"
|
|
718
|
+
},
|
|
709
719
|
"dataset": {
|
|
710
720
|
"description": "Dataset name for the studio",
|
|
711
721
|
"exclusive": [
|
|
@@ -942,13 +952,6 @@
|
|
|
942
952
|
"allowNo": true,
|
|
943
953
|
"type": "boolean"
|
|
944
954
|
},
|
|
945
|
-
"unstable--workbench": {
|
|
946
|
-
"description": "Opt into workbench: scaffolds the CLI config with defineApplication",
|
|
947
|
-
"hidden": true,
|
|
948
|
-
"name": "unstable--workbench",
|
|
949
|
-
"allowNo": true,
|
|
950
|
-
"type": "boolean"
|
|
951
|
-
},
|
|
952
955
|
"visibility": {
|
|
953
956
|
"description": "Visibility mode for dataset",
|
|
954
957
|
"name": "visibility",
|
|
@@ -2318,69 +2321,156 @@
|
|
|
2318
2321
|
"list.js"
|
|
2319
2322
|
]
|
|
2320
2323
|
},
|
|
2321
|
-
"
|
|
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": {
|
|
2324
|
+
"datasets:copy": {
|
|
2343
2325
|
"aliases": [],
|
|
2344
2326
|
"args": {
|
|
2345
|
-
"
|
|
2346
|
-
"description": "
|
|
2347
|
-
"name": "
|
|
2348
|
-
"required":
|
|
2327
|
+
"source": {
|
|
2328
|
+
"description": "Name of the dataset to copy from",
|
|
2329
|
+
"name": "source",
|
|
2330
|
+
"required": false
|
|
2331
|
+
},
|
|
2332
|
+
"target": {
|
|
2333
|
+
"description": "Name of the dataset to copy to",
|
|
2334
|
+
"name": "target",
|
|
2335
|
+
"required": false
|
|
2349
2336
|
}
|
|
2350
2337
|
},
|
|
2351
|
-
"description": "
|
|
2338
|
+
"description": "Copy a dataset or manage copy jobs",
|
|
2352
2339
|
"examples": [
|
|
2353
2340
|
{
|
|
2354
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2355
|
-
"description": "
|
|
2341
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
2342
|
+
"description": "Interactively copy a dataset"
|
|
2356
2343
|
},
|
|
2357
2344
|
{
|
|
2358
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2359
|
-
"description": "
|
|
2345
|
+
"command": "<%= config.bin %> <%= command.id %> source-dataset",
|
|
2346
|
+
"description": "Copy from source-dataset (prompts for target)"
|
|
2360
2347
|
},
|
|
2361
2348
|
{
|
|
2362
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2363
|
-
"description": "
|
|
2349
|
+
"command": "<%= config.bin %> <%= command.id %> source-dataset target-dataset",
|
|
2350
|
+
"description": "Copy from source-dataset to target-dataset"
|
|
2364
2351
|
},
|
|
2365
2352
|
{
|
|
2366
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2367
|
-
"description": "
|
|
2353
|
+
"command": "<%= config.bin %> <%= command.id %> --skip-history source target",
|
|
2354
|
+
"description": "Copy without preserving document history (faster for large datasets)"
|
|
2355
|
+
},
|
|
2356
|
+
{
|
|
2357
|
+
"command": "<%= config.bin %> <%= command.id %> --skip-content-releases source target",
|
|
2358
|
+
"description": "Copy without content release documents"
|
|
2359
|
+
},
|
|
2360
|
+
{
|
|
2361
|
+
"command": "<%= config.bin %> <%= command.id %> --detach source target",
|
|
2362
|
+
"description": "Start copy job without waiting for completion"
|
|
2363
|
+
},
|
|
2364
|
+
{
|
|
2365
|
+
"command": "<%= config.bin %> <%= command.id %> --attach <job-id>",
|
|
2366
|
+
"description": "Attach to a running copy job to follow progress"
|
|
2367
|
+
},
|
|
2368
|
+
{
|
|
2369
|
+
"command": "<%= config.bin %> <%= command.id %> --list",
|
|
2370
|
+
"description": "List all dataset copy jobs"
|
|
2371
|
+
},
|
|
2372
|
+
{
|
|
2373
|
+
"command": "<%= config.bin %> <%= command.id %> --list --offset 2 --limit 10",
|
|
2374
|
+
"description": "List copy jobs with pagination"
|
|
2368
2375
|
}
|
|
2369
2376
|
],
|
|
2370
2377
|
"flags": {
|
|
2371
|
-
"
|
|
2372
|
-
"
|
|
2373
|
-
|
|
2378
|
+
"project-id": {
|
|
2379
|
+
"char": "p",
|
|
2380
|
+
"description": "Project ID to copy dataset in (overrides CLI configuration)",
|
|
2381
|
+
"helpGroup": "OVERRIDE",
|
|
2382
|
+
"name": "project-id",
|
|
2383
|
+
"hasDynamicHelp": false,
|
|
2384
|
+
"helpValue": "<id>",
|
|
2385
|
+
"multiple": false,
|
|
2386
|
+
"type": "option"
|
|
2387
|
+
},
|
|
2388
|
+
"attach": {
|
|
2389
|
+
"description": "Attach to the running copy process to show progress",
|
|
2390
|
+
"exclusive": [
|
|
2391
|
+
"list",
|
|
2392
|
+
"detach",
|
|
2393
|
+
"skip-history"
|
|
2374
2394
|
],
|
|
2375
|
-
"
|
|
2376
|
-
"
|
|
2395
|
+
"name": "attach",
|
|
2396
|
+
"required": false,
|
|
2397
|
+
"hasDynamicHelp": false,
|
|
2398
|
+
"multiple": false,
|
|
2399
|
+
"type": "option"
|
|
2400
|
+
},
|
|
2401
|
+
"detach": {
|
|
2402
|
+
"description": "Start the copy without waiting for it to finish",
|
|
2403
|
+
"exclusive": [
|
|
2404
|
+
"list",
|
|
2405
|
+
"attach"
|
|
2406
|
+
],
|
|
2407
|
+
"name": "detach",
|
|
2408
|
+
"required": false,
|
|
2409
|
+
"allowNo": false,
|
|
2410
|
+
"type": "boolean"
|
|
2411
|
+
},
|
|
2412
|
+
"limit": {
|
|
2413
|
+
"dependsOn": [
|
|
2414
|
+
"list"
|
|
2415
|
+
],
|
|
2416
|
+
"description": "Maximum number of jobs returned (default 10, max 1000)",
|
|
2417
|
+
"name": "limit",
|
|
2418
|
+
"required": false,
|
|
2419
|
+
"hasDynamicHelp": false,
|
|
2420
|
+
"multiple": false,
|
|
2421
|
+
"type": "option"
|
|
2422
|
+
},
|
|
2423
|
+
"list": {
|
|
2424
|
+
"description": "Lists all dataset copy jobs",
|
|
2425
|
+
"exclusive": [
|
|
2426
|
+
"attach",
|
|
2427
|
+
"detach",
|
|
2428
|
+
"skip-history"
|
|
2429
|
+
],
|
|
2430
|
+
"name": "list",
|
|
2431
|
+
"required": false,
|
|
2432
|
+
"allowNo": false,
|
|
2433
|
+
"type": "boolean"
|
|
2434
|
+
},
|
|
2435
|
+
"offset": {
|
|
2436
|
+
"dependsOn": [
|
|
2437
|
+
"list"
|
|
2438
|
+
],
|
|
2439
|
+
"description": "Start position in the list of jobs (default 0)",
|
|
2440
|
+
"name": "offset",
|
|
2441
|
+
"required": false,
|
|
2442
|
+
"hasDynamicHelp": false,
|
|
2443
|
+
"multiple": false,
|
|
2444
|
+
"type": "option"
|
|
2445
|
+
},
|
|
2446
|
+
"skip-content-releases": {
|
|
2447
|
+
"description": "Don't copy content release documents to the target dataset",
|
|
2448
|
+
"exclusive": [
|
|
2449
|
+
"list",
|
|
2450
|
+
"attach"
|
|
2451
|
+
],
|
|
2452
|
+
"name": "skip-content-releases",
|
|
2453
|
+
"required": false,
|
|
2454
|
+
"allowNo": false,
|
|
2455
|
+
"type": "boolean"
|
|
2456
|
+
},
|
|
2457
|
+
"skip-history": {
|
|
2458
|
+
"description": "Don't preserve document history on copy",
|
|
2459
|
+
"exclusive": [
|
|
2460
|
+
"list",
|
|
2461
|
+
"attach"
|
|
2462
|
+
],
|
|
2463
|
+
"name": "skip-history",
|
|
2464
|
+
"required": false,
|
|
2377
2465
|
"allowNo": false,
|
|
2378
2466
|
"type": "boolean"
|
|
2379
2467
|
}
|
|
2380
2468
|
},
|
|
2381
2469
|
"hasDynamicHelp": false,
|
|
2382
|
-
"hiddenAliases": [
|
|
2383
|
-
|
|
2470
|
+
"hiddenAliases": [
|
|
2471
|
+
"dataset:copy"
|
|
2472
|
+
],
|
|
2473
|
+
"id": "datasets:copy",
|
|
2384
2474
|
"pluginAlias": "@sanity/cli",
|
|
2385
2475
|
"pluginName": "@sanity/cli",
|
|
2386
2476
|
"pluginType": "core",
|
|
@@ -2389,542 +2479,80 @@
|
|
|
2389
2479
|
"relativePath": [
|
|
2390
2480
|
"dist",
|
|
2391
2481
|
"commands",
|
|
2392
|
-
"
|
|
2393
|
-
"
|
|
2482
|
+
"datasets",
|
|
2483
|
+
"copy.js"
|
|
2394
2484
|
]
|
|
2395
2485
|
},
|
|
2396
|
-
"
|
|
2486
|
+
"datasets:create": {
|
|
2397
2487
|
"aliases": [],
|
|
2398
2488
|
"args": {
|
|
2399
|
-
"
|
|
2400
|
-
"description": "
|
|
2401
|
-
"name": "
|
|
2402
|
-
"required":
|
|
2489
|
+
"name": {
|
|
2490
|
+
"description": "Name of the dataset to create",
|
|
2491
|
+
"name": "name",
|
|
2492
|
+
"required": false
|
|
2403
2493
|
}
|
|
2404
2494
|
},
|
|
2405
|
-
"description": "
|
|
2495
|
+
"description": "Create a new dataset for the project",
|
|
2406
2496
|
"examples": [
|
|
2407
2497
|
{
|
|
2408
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2409
|
-
"description": "
|
|
2498
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
2499
|
+
"description": "Interactively create a dataset"
|
|
2410
2500
|
},
|
|
2411
2501
|
{
|
|
2412
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2413
|
-
"description": "
|
|
2502
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset",
|
|
2503
|
+
"description": "Create a dataset named \"my-dataset\""
|
|
2414
2504
|
},
|
|
2415
2505
|
{
|
|
2416
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2417
|
-
"description": "
|
|
2506
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset --visibility private",
|
|
2507
|
+
"description": "Create a private dataset named \"my-dataset\""
|
|
2418
2508
|
}
|
|
2419
2509
|
],
|
|
2420
2510
|
"flags": {
|
|
2421
|
-
"
|
|
2422
|
-
"
|
|
2423
|
-
"
|
|
2424
|
-
"
|
|
2511
|
+
"project-id": {
|
|
2512
|
+
"char": "p",
|
|
2513
|
+
"description": "Project ID to create dataset in (overrides CLI configuration)",
|
|
2514
|
+
"helpGroup": "OVERRIDE",
|
|
2515
|
+
"name": "project-id",
|
|
2516
|
+
"hasDynamicHelp": false,
|
|
2517
|
+
"helpValue": "<id>",
|
|
2518
|
+
"multiple": false,
|
|
2519
|
+
"type": "option"
|
|
2520
|
+
},
|
|
2521
|
+
"embeddings": {
|
|
2522
|
+
"description": "Enable embeddings for this dataset",
|
|
2523
|
+
"name": "embeddings",
|
|
2524
|
+
"allowNo": false,
|
|
2525
|
+
"type": "boolean"
|
|
2526
|
+
},
|
|
2527
|
+
"embeddings-projection": {
|
|
2528
|
+
"dependsOn": [
|
|
2529
|
+
"embeddings"
|
|
2530
|
+
],
|
|
2531
|
+
"description": "GROQ projection for embeddings indexing (e.g. \"{ title, body }\")",
|
|
2532
|
+
"name": "embeddings-projection",
|
|
2533
|
+
"hasDynamicHelp": false,
|
|
2534
|
+
"multiple": false,
|
|
2535
|
+
"type": "option"
|
|
2536
|
+
},
|
|
2537
|
+
"visibility": {
|
|
2538
|
+
"description": "Set visibility for this dataset (custom/private/public)",
|
|
2539
|
+
"name": "visibility",
|
|
2540
|
+
"required": false,
|
|
2425
2541
|
"hasDynamicHelp": false,
|
|
2426
2542
|
"multiple": false,
|
|
2543
|
+
"options": [
|
|
2544
|
+
"custom",
|
|
2545
|
+
"private",
|
|
2546
|
+
"public"
|
|
2547
|
+
],
|
|
2427
2548
|
"type": "option"
|
|
2428
2549
|
}
|
|
2429
2550
|
},
|
|
2430
2551
|
"hasDynamicHelp": false,
|
|
2431
|
-
"hiddenAliases": [
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
"
|
|
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",
|
|
2499
|
-
"hasDynamicHelp": false,
|
|
2500
|
-
"multiple": false,
|
|
2501
|
-
"options": [
|
|
2502
|
-
"gen1",
|
|
2503
|
-
"gen2",
|
|
2504
|
-
"gen3"
|
|
2505
|
-
],
|
|
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"
|
|
2532
|
-
}
|
|
2533
|
-
},
|
|
2534
|
-
"hasDynamicHelp": false,
|
|
2535
|
-
"hiddenAliases": [],
|
|
2536
|
-
"id": "graphql:deploy",
|
|
2537
|
-
"pluginAlias": "@sanity/cli",
|
|
2538
|
-
"pluginName": "@sanity/cli",
|
|
2539
|
-
"pluginType": "core",
|
|
2540
|
-
"strict": true,
|
|
2541
|
-
"isESM": true,
|
|
2542
|
-
"relativePath": [
|
|
2543
|
-
"dist",
|
|
2544
|
-
"commands",
|
|
2545
|
-
"graphql",
|
|
2546
|
-
"deploy.js"
|
|
2547
|
-
]
|
|
2548
|
-
},
|
|
2549
|
-
"graphql:list": {
|
|
2550
|
-
"aliases": [],
|
|
2551
|
-
"args": {},
|
|
2552
|
-
"description": "List deployed GraphQL endpoints for the project",
|
|
2553
|
-
"examples": [
|
|
2554
|
-
{
|
|
2555
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2556
|
-
"description": "List GraphQL endpoints for the project"
|
|
2557
|
-
},
|
|
2558
|
-
{
|
|
2559
|
-
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
2560
|
-
"description": "List GraphQL endpoints for a specific project"
|
|
2561
|
-
}
|
|
2562
|
-
],
|
|
2563
|
-
"flags": {
|
|
2564
|
-
"project-id": {
|
|
2565
|
-
"char": "p",
|
|
2566
|
-
"description": "Project ID to list GraphQL endpoints for (overrides CLI configuration)",
|
|
2567
|
-
"helpGroup": "OVERRIDE",
|
|
2568
|
-
"name": "project-id",
|
|
2569
|
-
"hasDynamicHelp": false,
|
|
2570
|
-
"helpValue": "<id>",
|
|
2571
|
-
"multiple": false,
|
|
2572
|
-
"type": "option"
|
|
2573
|
-
}
|
|
2574
|
-
},
|
|
2575
|
-
"hasDynamicHelp": false,
|
|
2576
|
-
"hiddenAliases": [],
|
|
2577
|
-
"id": "graphql:list",
|
|
2578
|
-
"pluginAlias": "@sanity/cli",
|
|
2579
|
-
"pluginName": "@sanity/cli",
|
|
2580
|
-
"pluginType": "core",
|
|
2581
|
-
"strict": true,
|
|
2582
|
-
"isESM": true,
|
|
2583
|
-
"relativePath": [
|
|
2584
|
-
"dist",
|
|
2585
|
-
"commands",
|
|
2586
|
-
"graphql",
|
|
2587
|
-
"list.js"
|
|
2588
|
-
]
|
|
2589
|
-
},
|
|
2590
|
-
"graphql:undeploy": {
|
|
2591
|
-
"aliases": [],
|
|
2592
|
-
"args": {},
|
|
2593
|
-
"description": "Remove a deployed GraphQL API",
|
|
2594
|
-
"examples": [
|
|
2595
|
-
{
|
|
2596
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2597
|
-
"description": "Undeploy GraphQL API for current project and dataset"
|
|
2598
|
-
},
|
|
2599
|
-
{
|
|
2600
|
-
"command": "<%= config.bin %> <%= command.id %> --api ios",
|
|
2601
|
-
"description": "Undeploy API with ID \"ios\""
|
|
2602
|
-
},
|
|
2603
|
-
{
|
|
2604
|
-
"command": "<%= config.bin %> <%= command.id %> --dataset staging",
|
|
2605
|
-
"description": "Undeploy GraphQL API for staging dataset"
|
|
2606
|
-
},
|
|
2607
|
-
{
|
|
2608
|
-
"command": "<%= config.bin %> <%= command.id %> --dataset staging --tag next",
|
|
2609
|
-
"description": "Undeploy GraphQL API for staging dataset with \"next\" tag"
|
|
2610
|
-
},
|
|
2611
|
-
{
|
|
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"
|
|
2618
|
-
}
|
|
2619
|
-
],
|
|
2620
|
-
"flags": {
|
|
2621
|
-
"project-id": {
|
|
2622
|
-
"char": "p",
|
|
2623
|
-
"description": "Project ID to undeploy GraphQL API from (overrides CLI configuration)",
|
|
2624
|
-
"helpGroup": "OVERRIDE",
|
|
2625
|
-
"name": "project-id",
|
|
2626
|
-
"hasDynamicHelp": false,
|
|
2627
|
-
"helpValue": "<id>",
|
|
2628
|
-
"multiple": false,
|
|
2629
|
-
"type": "option"
|
|
2630
|
-
},
|
|
2631
|
-
"api": {
|
|
2632
|
-
"description": "Undeploy API with this ID",
|
|
2633
|
-
"exclusive": [
|
|
2634
|
-
"project-id",
|
|
2635
|
-
"project"
|
|
2636
|
-
],
|
|
2637
|
-
"name": "api",
|
|
2638
|
-
"required": false,
|
|
2639
|
-
"hasDynamicHelp": false,
|
|
2640
|
-
"multiple": false,
|
|
2641
|
-
"type": "option"
|
|
2642
|
-
},
|
|
2643
|
-
"dataset": {
|
|
2644
|
-
"char": "d",
|
|
2645
|
-
"description": "Dataset to undeploy GraphQL API from (overrides CLI configuration)",
|
|
2646
|
-
"helpGroup": "OVERRIDE",
|
|
2647
|
-
"name": "dataset",
|
|
2648
|
-
"hasDynamicHelp": false,
|
|
2649
|
-
"helpValue": "<name>",
|
|
2650
|
-
"multiple": false,
|
|
2651
|
-
"type": "option"
|
|
2652
|
-
},
|
|
2653
|
-
"force": {
|
|
2654
|
-
"description": "Skip confirmation prompt",
|
|
2655
|
-
"name": "force",
|
|
2656
|
-
"allowNo": false,
|
|
2657
|
-
"type": "boolean"
|
|
2658
|
-
},
|
|
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"
|
|
2670
|
-
},
|
|
2671
|
-
"tag": {
|
|
2672
|
-
"description": "Tag to undeploy GraphQL API from",
|
|
2673
|
-
"name": "tag",
|
|
2674
|
-
"required": false,
|
|
2675
|
-
"default": "default",
|
|
2676
|
-
"hasDynamicHelp": false,
|
|
2677
|
-
"multiple": false,
|
|
2678
|
-
"type": "option"
|
|
2679
|
-
}
|
|
2680
|
-
},
|
|
2681
|
-
"hasDynamicHelp": false,
|
|
2682
|
-
"hiddenAliases": [],
|
|
2683
|
-
"id": "graphql:undeploy",
|
|
2684
|
-
"pluginAlias": "@sanity/cli",
|
|
2685
|
-
"pluginName": "@sanity/cli",
|
|
2686
|
-
"pluginType": "core",
|
|
2687
|
-
"strict": true,
|
|
2688
|
-
"isESM": true,
|
|
2689
|
-
"relativePath": [
|
|
2690
|
-
"dist",
|
|
2691
|
-
"commands",
|
|
2692
|
-
"graphql",
|
|
2693
|
-
"undeploy.js"
|
|
2694
|
-
]
|
|
2695
|
-
},
|
|
2696
|
-
"datasets:copy": {
|
|
2697
|
-
"aliases": [],
|
|
2698
|
-
"args": {
|
|
2699
|
-
"source": {
|
|
2700
|
-
"description": "Name of the dataset to copy from",
|
|
2701
|
-
"name": "source",
|
|
2702
|
-
"required": false
|
|
2703
|
-
},
|
|
2704
|
-
"target": {
|
|
2705
|
-
"description": "Name of the dataset to copy to",
|
|
2706
|
-
"name": "target",
|
|
2707
|
-
"required": false
|
|
2708
|
-
}
|
|
2709
|
-
},
|
|
2710
|
-
"description": "Copy a dataset or manage copy jobs",
|
|
2711
|
-
"examples": [
|
|
2712
|
-
{
|
|
2713
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2714
|
-
"description": "Interactively copy a dataset"
|
|
2715
|
-
},
|
|
2716
|
-
{
|
|
2717
|
-
"command": "<%= config.bin %> <%= command.id %> source-dataset",
|
|
2718
|
-
"description": "Copy from source-dataset (prompts for target)"
|
|
2719
|
-
},
|
|
2720
|
-
{
|
|
2721
|
-
"command": "<%= config.bin %> <%= command.id %> source-dataset target-dataset",
|
|
2722
|
-
"description": "Copy from source-dataset to target-dataset"
|
|
2723
|
-
},
|
|
2724
|
-
{
|
|
2725
|
-
"command": "<%= config.bin %> <%= command.id %> --skip-history source target",
|
|
2726
|
-
"description": "Copy without preserving document history (faster for large datasets)"
|
|
2727
|
-
},
|
|
2728
|
-
{
|
|
2729
|
-
"command": "<%= config.bin %> <%= command.id %> --skip-content-releases source target",
|
|
2730
|
-
"description": "Copy without content release documents"
|
|
2731
|
-
},
|
|
2732
|
-
{
|
|
2733
|
-
"command": "<%= config.bin %> <%= command.id %> --detach source target",
|
|
2734
|
-
"description": "Start copy job without waiting for completion"
|
|
2735
|
-
},
|
|
2736
|
-
{
|
|
2737
|
-
"command": "<%= config.bin %> <%= command.id %> --attach <job-id>",
|
|
2738
|
-
"description": "Attach to a running copy job to follow progress"
|
|
2739
|
-
},
|
|
2740
|
-
{
|
|
2741
|
-
"command": "<%= config.bin %> <%= command.id %> --list",
|
|
2742
|
-
"description": "List all dataset copy jobs"
|
|
2743
|
-
},
|
|
2744
|
-
{
|
|
2745
|
-
"command": "<%= config.bin %> <%= command.id %> --list --offset 2 --limit 10",
|
|
2746
|
-
"description": "List copy jobs with pagination"
|
|
2747
|
-
}
|
|
2748
|
-
],
|
|
2749
|
-
"flags": {
|
|
2750
|
-
"project-id": {
|
|
2751
|
-
"char": "p",
|
|
2752
|
-
"description": "Project ID to copy dataset in (overrides CLI configuration)",
|
|
2753
|
-
"helpGroup": "OVERRIDE",
|
|
2754
|
-
"name": "project-id",
|
|
2755
|
-
"hasDynamicHelp": false,
|
|
2756
|
-
"helpValue": "<id>",
|
|
2757
|
-
"multiple": false,
|
|
2758
|
-
"type": "option"
|
|
2759
|
-
},
|
|
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,
|
|
2769
|
-
"hasDynamicHelp": false,
|
|
2770
|
-
"multiple": false,
|
|
2771
|
-
"type": "option"
|
|
2772
|
-
},
|
|
2773
|
-
"detach": {
|
|
2774
|
-
"description": "Start the copy without waiting for it to finish",
|
|
2775
|
-
"exclusive": [
|
|
2776
|
-
"list",
|
|
2777
|
-
"attach"
|
|
2778
|
-
],
|
|
2779
|
-
"name": "detach",
|
|
2780
|
-
"required": false,
|
|
2781
|
-
"allowNo": false,
|
|
2782
|
-
"type": "boolean"
|
|
2783
|
-
},
|
|
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"
|
|
2794
|
-
},
|
|
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,
|
|
2804
|
-
"allowNo": false,
|
|
2805
|
-
"type": "boolean"
|
|
2806
|
-
},
|
|
2807
|
-
"offset": {
|
|
2808
|
-
"dependsOn": [
|
|
2809
|
-
"list"
|
|
2810
|
-
],
|
|
2811
|
-
"description": "Start position in the list of jobs (default 0)",
|
|
2812
|
-
"name": "offset",
|
|
2813
|
-
"required": false,
|
|
2814
|
-
"hasDynamicHelp": false,
|
|
2815
|
-
"multiple": false,
|
|
2816
|
-
"type": "option"
|
|
2817
|
-
},
|
|
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"
|
|
2839
|
-
}
|
|
2840
|
-
},
|
|
2841
|
-
"hasDynamicHelp": false,
|
|
2842
|
-
"hiddenAliases": [
|
|
2843
|
-
"dataset:copy"
|
|
2844
|
-
],
|
|
2845
|
-
"id": "datasets:copy",
|
|
2846
|
-
"pluginAlias": "@sanity/cli",
|
|
2847
|
-
"pluginName": "@sanity/cli",
|
|
2848
|
-
"pluginType": "core",
|
|
2849
|
-
"strict": true,
|
|
2850
|
-
"isESM": true,
|
|
2851
|
-
"relativePath": [
|
|
2852
|
-
"dist",
|
|
2853
|
-
"commands",
|
|
2854
|
-
"datasets",
|
|
2855
|
-
"copy.js"
|
|
2856
|
-
]
|
|
2857
|
-
},
|
|
2858
|
-
"datasets:create": {
|
|
2859
|
-
"aliases": [],
|
|
2860
|
-
"args": {
|
|
2861
|
-
"name": {
|
|
2862
|
-
"description": "Name of the dataset to create",
|
|
2863
|
-
"name": "name",
|
|
2864
|
-
"required": false
|
|
2865
|
-
}
|
|
2866
|
-
},
|
|
2867
|
-
"description": "Create a new dataset for the project",
|
|
2868
|
-
"examples": [
|
|
2869
|
-
{
|
|
2870
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2871
|
-
"description": "Interactively create a dataset"
|
|
2872
|
-
},
|
|
2873
|
-
{
|
|
2874
|
-
"command": "<%= config.bin %> <%= command.id %> my-dataset",
|
|
2875
|
-
"description": "Create a dataset named \"my-dataset\""
|
|
2876
|
-
},
|
|
2877
|
-
{
|
|
2878
|
-
"command": "<%= config.bin %> <%= command.id %> my-dataset --visibility private",
|
|
2879
|
-
"description": "Create a private dataset named \"my-dataset\""
|
|
2880
|
-
}
|
|
2881
|
-
],
|
|
2882
|
-
"flags": {
|
|
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",
|
|
2896
|
-
"allowNo": false,
|
|
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"
|
|
2921
|
-
}
|
|
2922
|
-
},
|
|
2923
|
-
"hasDynamicHelp": false,
|
|
2924
|
-
"hiddenAliases": [
|
|
2925
|
-
"dataset:create"
|
|
2926
|
-
],
|
|
2927
|
-
"id": "datasets:create",
|
|
2552
|
+
"hiddenAliases": [
|
|
2553
|
+
"dataset:create"
|
|
2554
|
+
],
|
|
2555
|
+
"id": "datasets:create",
|
|
2928
2556
|
"pluginAlias": "@sanity/cli",
|
|
2929
2557
|
"pluginName": "@sanity/cli",
|
|
2930
2558
|
"pluginType": "core",
|
|
@@ -3311,8 +2939,132 @@
|
|
|
3311
2939
|
"relativePath": [
|
|
3312
2940
|
"dist",
|
|
3313
2941
|
"commands",
|
|
3314
|
-
"datasets",
|
|
3315
|
-
"list.js"
|
|
2942
|
+
"datasets",
|
|
2943
|
+
"list.js"
|
|
2944
|
+
]
|
|
2945
|
+
},
|
|
2946
|
+
"docs:browse": {
|
|
2947
|
+
"aliases": [],
|
|
2948
|
+
"args": {},
|
|
2949
|
+
"description": "Open Sanity docs in your browser",
|
|
2950
|
+
"flags": {},
|
|
2951
|
+
"hasDynamicHelp": false,
|
|
2952
|
+
"hiddenAliases": [],
|
|
2953
|
+
"id": "docs:browse",
|
|
2954
|
+
"pluginAlias": "@sanity/cli",
|
|
2955
|
+
"pluginName": "@sanity/cli",
|
|
2956
|
+
"pluginType": "core",
|
|
2957
|
+
"strict": true,
|
|
2958
|
+
"enableJsonFlag": false,
|
|
2959
|
+
"isESM": true,
|
|
2960
|
+
"relativePath": [
|
|
2961
|
+
"dist",
|
|
2962
|
+
"commands",
|
|
2963
|
+
"docs",
|
|
2964
|
+
"browse.js"
|
|
2965
|
+
]
|
|
2966
|
+
},
|
|
2967
|
+
"docs:read": {
|
|
2968
|
+
"aliases": [],
|
|
2969
|
+
"args": {
|
|
2970
|
+
"path": {
|
|
2971
|
+
"description": "Path or URL to article, found in search results and docs content as links",
|
|
2972
|
+
"name": "path",
|
|
2973
|
+
"required": true
|
|
2974
|
+
}
|
|
2975
|
+
},
|
|
2976
|
+
"description": "Read an article in terminal",
|
|
2977
|
+
"examples": [
|
|
2978
|
+
{
|
|
2979
|
+
"command": "<%= config.bin %> <%= command.id %> /docs/studio/installation",
|
|
2980
|
+
"description": "Read as markdown in terminal"
|
|
2981
|
+
},
|
|
2982
|
+
{
|
|
2983
|
+
"command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation",
|
|
2984
|
+
"description": "Read using full URL"
|
|
2985
|
+
},
|
|
2986
|
+
{
|
|
2987
|
+
"command": "<%= config.bin %> <%= command.id %> /docs/studio/installation --web",
|
|
2988
|
+
"description": "Open in web browser"
|
|
2989
|
+
},
|
|
2990
|
+
{
|
|
2991
|
+
"command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation -w",
|
|
2992
|
+
"description": "Open using full URL in web browser"
|
|
2993
|
+
}
|
|
2994
|
+
],
|
|
2995
|
+
"flags": {
|
|
2996
|
+
"web": {
|
|
2997
|
+
"aliases": [
|
|
2998
|
+
"w"
|
|
2999
|
+
],
|
|
3000
|
+
"description": "Open in a web browser",
|
|
3001
|
+
"name": "web",
|
|
3002
|
+
"allowNo": false,
|
|
3003
|
+
"type": "boolean"
|
|
3004
|
+
}
|
|
3005
|
+
},
|
|
3006
|
+
"hasDynamicHelp": false,
|
|
3007
|
+
"hiddenAliases": [],
|
|
3008
|
+
"id": "docs:read",
|
|
3009
|
+
"pluginAlias": "@sanity/cli",
|
|
3010
|
+
"pluginName": "@sanity/cli",
|
|
3011
|
+
"pluginType": "core",
|
|
3012
|
+
"strict": true,
|
|
3013
|
+
"isESM": true,
|
|
3014
|
+
"relativePath": [
|
|
3015
|
+
"dist",
|
|
3016
|
+
"commands",
|
|
3017
|
+
"docs",
|
|
3018
|
+
"read.js"
|
|
3019
|
+
]
|
|
3020
|
+
},
|
|
3021
|
+
"docs:search": {
|
|
3022
|
+
"aliases": [],
|
|
3023
|
+
"args": {
|
|
3024
|
+
"query": {
|
|
3025
|
+
"description": "Search query for documentation",
|
|
3026
|
+
"name": "query",
|
|
3027
|
+
"required": true
|
|
3028
|
+
}
|
|
3029
|
+
},
|
|
3030
|
+
"description": "Search Sanity docs",
|
|
3031
|
+
"examples": [
|
|
3032
|
+
{
|
|
3033
|
+
"command": "<%= config.bin %> <%= command.id %> schema",
|
|
3034
|
+
"description": "Search for documentation about schemas"
|
|
3035
|
+
},
|
|
3036
|
+
{
|
|
3037
|
+
"command": "<%= config.bin %> <%= command.id %> \"groq functions\"",
|
|
3038
|
+
"description": "Search with phrase"
|
|
3039
|
+
},
|
|
3040
|
+
{
|
|
3041
|
+
"command": "<%= config.bin %> <%= command.id %> \"deployment\" --limit=5",
|
|
3042
|
+
"description": "Limit search results"
|
|
3043
|
+
}
|
|
3044
|
+
],
|
|
3045
|
+
"flags": {
|
|
3046
|
+
"limit": {
|
|
3047
|
+
"description": "Maximum number of results to return",
|
|
3048
|
+
"name": "limit",
|
|
3049
|
+
"default": 10,
|
|
3050
|
+
"hasDynamicHelp": false,
|
|
3051
|
+
"multiple": false,
|
|
3052
|
+
"type": "option"
|
|
3053
|
+
}
|
|
3054
|
+
},
|
|
3055
|
+
"hasDynamicHelp": false,
|
|
3056
|
+
"hiddenAliases": [],
|
|
3057
|
+
"id": "docs:search",
|
|
3058
|
+
"pluginAlias": "@sanity/cli",
|
|
3059
|
+
"pluginName": "@sanity/cli",
|
|
3060
|
+
"pluginType": "core",
|
|
3061
|
+
"strict": true,
|
|
3062
|
+
"isESM": true,
|
|
3063
|
+
"relativePath": [
|
|
3064
|
+
"dist",
|
|
3065
|
+
"commands",
|
|
3066
|
+
"docs",
|
|
3067
|
+
"search.js"
|
|
3316
3068
|
]
|
|
3317
3069
|
},
|
|
3318
3070
|
"documents:create": {
|
|
@@ -3788,6 +3540,257 @@
|
|
|
3788
3540
|
"validate.js"
|
|
3789
3541
|
]
|
|
3790
3542
|
},
|
|
3543
|
+
"graphql:deploy": {
|
|
3544
|
+
"aliases": [],
|
|
3545
|
+
"args": {},
|
|
3546
|
+
"description": "Deploy a GraphQL API from the current Sanity schema",
|
|
3547
|
+
"examples": [
|
|
3548
|
+
{
|
|
3549
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
3550
|
+
"description": "Deploy all defined GraphQL APIs"
|
|
3551
|
+
},
|
|
3552
|
+
{
|
|
3553
|
+
"command": "<%= config.bin %> <%= command.id %> --dry-run",
|
|
3554
|
+
"description": "Validate defined GraphQL APIs, check for breaking changes, skip deploy"
|
|
3555
|
+
},
|
|
3556
|
+
{
|
|
3557
|
+
"command": "<%= config.bin %> <%= command.id %> --api staging --api ios",
|
|
3558
|
+
"description": "Deploy only the GraphQL APIs with the IDs \"staging\" and \"ios\""
|
|
3559
|
+
},
|
|
3560
|
+
{
|
|
3561
|
+
"command": "<%= config.bin %> <%= command.id %> --playground",
|
|
3562
|
+
"description": "Deploy all defined GraphQL APIs, overriding any playground setting"
|
|
3563
|
+
}
|
|
3564
|
+
],
|
|
3565
|
+
"flags": {
|
|
3566
|
+
"api": {
|
|
3567
|
+
"description": "Only deploy API with this ID (can be specified multiple times)",
|
|
3568
|
+
"name": "api",
|
|
3569
|
+
"hasDynamicHelp": false,
|
|
3570
|
+
"multiple": true,
|
|
3571
|
+
"type": "option"
|
|
3572
|
+
},
|
|
3573
|
+
"dataset": {
|
|
3574
|
+
"char": "d",
|
|
3575
|
+
"description": "Deploy API for the given dataset",
|
|
3576
|
+
"name": "dataset",
|
|
3577
|
+
"hasDynamicHelp": false,
|
|
3578
|
+
"helpValue": "<name>",
|
|
3579
|
+
"multiple": false,
|
|
3580
|
+
"type": "option"
|
|
3581
|
+
},
|
|
3582
|
+
"dry-run": {
|
|
3583
|
+
"description": "Validate defined GraphQL APIs, check for breaking changes, skip deploy",
|
|
3584
|
+
"name": "dry-run",
|
|
3585
|
+
"allowNo": false,
|
|
3586
|
+
"type": "boolean"
|
|
3587
|
+
},
|
|
3588
|
+
"force": {
|
|
3589
|
+
"description": "Deploy API without confirming breaking changes",
|
|
3590
|
+
"name": "force",
|
|
3591
|
+
"allowNo": false,
|
|
3592
|
+
"type": "boolean"
|
|
3593
|
+
},
|
|
3594
|
+
"generation": {
|
|
3595
|
+
"description": "API generation to deploy (defaults to \"gen3\")",
|
|
3596
|
+
"name": "generation",
|
|
3597
|
+
"hasDynamicHelp": false,
|
|
3598
|
+
"multiple": false,
|
|
3599
|
+
"options": [
|
|
3600
|
+
"gen1",
|
|
3601
|
+
"gen2",
|
|
3602
|
+
"gen3"
|
|
3603
|
+
],
|
|
3604
|
+
"type": "option"
|
|
3605
|
+
},
|
|
3606
|
+
"non-null-document-fields": {
|
|
3607
|
+
"description": "Use non-null document fields (_id, _type etc)",
|
|
3608
|
+
"name": "non-null-document-fields",
|
|
3609
|
+
"allowNo": false,
|
|
3610
|
+
"type": "boolean"
|
|
3611
|
+
},
|
|
3612
|
+
"playground": {
|
|
3613
|
+
"description": "Enable GraphQL playground for easier debugging",
|
|
3614
|
+
"name": "playground",
|
|
3615
|
+
"allowNo": true,
|
|
3616
|
+
"type": "boolean"
|
|
3617
|
+
},
|
|
3618
|
+
"tag": {
|
|
3619
|
+
"description": "Deploy API(s) to given tag (defaults to \"default\")",
|
|
3620
|
+
"name": "tag",
|
|
3621
|
+
"hasDynamicHelp": false,
|
|
3622
|
+
"multiple": false,
|
|
3623
|
+
"type": "option"
|
|
3624
|
+
},
|
|
3625
|
+
"with-union-cache": {
|
|
3626
|
+
"description": "Cache union types (faster for schemas with many self-references)",
|
|
3627
|
+
"name": "with-union-cache",
|
|
3628
|
+
"allowNo": false,
|
|
3629
|
+
"type": "boolean"
|
|
3630
|
+
}
|
|
3631
|
+
},
|
|
3632
|
+
"hasDynamicHelp": false,
|
|
3633
|
+
"hiddenAliases": [],
|
|
3634
|
+
"id": "graphql:deploy",
|
|
3635
|
+
"pluginAlias": "@sanity/cli",
|
|
3636
|
+
"pluginName": "@sanity/cli",
|
|
3637
|
+
"pluginType": "core",
|
|
3638
|
+
"strict": true,
|
|
3639
|
+
"isESM": true,
|
|
3640
|
+
"relativePath": [
|
|
3641
|
+
"dist",
|
|
3642
|
+
"commands",
|
|
3643
|
+
"graphql",
|
|
3644
|
+
"deploy.js"
|
|
3645
|
+
]
|
|
3646
|
+
},
|
|
3647
|
+
"graphql:list": {
|
|
3648
|
+
"aliases": [],
|
|
3649
|
+
"args": {},
|
|
3650
|
+
"description": "List deployed GraphQL endpoints for the project",
|
|
3651
|
+
"examples": [
|
|
3652
|
+
{
|
|
3653
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
3654
|
+
"description": "List GraphQL endpoints for the project"
|
|
3655
|
+
},
|
|
3656
|
+
{
|
|
3657
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
3658
|
+
"description": "List GraphQL endpoints for a specific project"
|
|
3659
|
+
}
|
|
3660
|
+
],
|
|
3661
|
+
"flags": {
|
|
3662
|
+
"project-id": {
|
|
3663
|
+
"char": "p",
|
|
3664
|
+
"description": "Project ID to list GraphQL endpoints for (overrides CLI configuration)",
|
|
3665
|
+
"helpGroup": "OVERRIDE",
|
|
3666
|
+
"name": "project-id",
|
|
3667
|
+
"hasDynamicHelp": false,
|
|
3668
|
+
"helpValue": "<id>",
|
|
3669
|
+
"multiple": false,
|
|
3670
|
+
"type": "option"
|
|
3671
|
+
}
|
|
3672
|
+
},
|
|
3673
|
+
"hasDynamicHelp": false,
|
|
3674
|
+
"hiddenAliases": [],
|
|
3675
|
+
"id": "graphql:list",
|
|
3676
|
+
"pluginAlias": "@sanity/cli",
|
|
3677
|
+
"pluginName": "@sanity/cli",
|
|
3678
|
+
"pluginType": "core",
|
|
3679
|
+
"strict": true,
|
|
3680
|
+
"isESM": true,
|
|
3681
|
+
"relativePath": [
|
|
3682
|
+
"dist",
|
|
3683
|
+
"commands",
|
|
3684
|
+
"graphql",
|
|
3685
|
+
"list.js"
|
|
3686
|
+
]
|
|
3687
|
+
},
|
|
3688
|
+
"graphql:undeploy": {
|
|
3689
|
+
"aliases": [],
|
|
3690
|
+
"args": {},
|
|
3691
|
+
"description": "Remove a deployed GraphQL API",
|
|
3692
|
+
"examples": [
|
|
3693
|
+
{
|
|
3694
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
3695
|
+
"description": "Undeploy GraphQL API for current project and dataset"
|
|
3696
|
+
},
|
|
3697
|
+
{
|
|
3698
|
+
"command": "<%= config.bin %> <%= command.id %> --api ios",
|
|
3699
|
+
"description": "Undeploy API with ID \"ios\""
|
|
3700
|
+
},
|
|
3701
|
+
{
|
|
3702
|
+
"command": "<%= config.bin %> <%= command.id %> --dataset staging",
|
|
3703
|
+
"description": "Undeploy GraphQL API for staging dataset"
|
|
3704
|
+
},
|
|
3705
|
+
{
|
|
3706
|
+
"command": "<%= config.bin %> <%= command.id %> --dataset staging --tag next",
|
|
3707
|
+
"description": "Undeploy GraphQL API for staging dataset with \"next\" tag"
|
|
3708
|
+
},
|
|
3709
|
+
{
|
|
3710
|
+
"command": "<%= config.bin %> <%= command.id %> --force",
|
|
3711
|
+
"description": "Undeploy GraphQL API without confirmation prompt"
|
|
3712
|
+
},
|
|
3713
|
+
{
|
|
3714
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123 --dataset production",
|
|
3715
|
+
"description": "Undeploy GraphQL API for a specific project and dataset"
|
|
3716
|
+
}
|
|
3717
|
+
],
|
|
3718
|
+
"flags": {
|
|
3719
|
+
"project-id": {
|
|
3720
|
+
"char": "p",
|
|
3721
|
+
"description": "Project ID to undeploy GraphQL API from (overrides CLI configuration)",
|
|
3722
|
+
"helpGroup": "OVERRIDE",
|
|
3723
|
+
"name": "project-id",
|
|
3724
|
+
"hasDynamicHelp": false,
|
|
3725
|
+
"helpValue": "<id>",
|
|
3726
|
+
"multiple": false,
|
|
3727
|
+
"type": "option"
|
|
3728
|
+
},
|
|
3729
|
+
"api": {
|
|
3730
|
+
"description": "Undeploy API with this ID",
|
|
3731
|
+
"exclusive": [
|
|
3732
|
+
"project-id",
|
|
3733
|
+
"project"
|
|
3734
|
+
],
|
|
3735
|
+
"name": "api",
|
|
3736
|
+
"required": false,
|
|
3737
|
+
"hasDynamicHelp": false,
|
|
3738
|
+
"multiple": false,
|
|
3739
|
+
"type": "option"
|
|
3740
|
+
},
|
|
3741
|
+
"dataset": {
|
|
3742
|
+
"char": "d",
|
|
3743
|
+
"description": "Dataset to undeploy GraphQL API from (overrides CLI configuration)",
|
|
3744
|
+
"helpGroup": "OVERRIDE",
|
|
3745
|
+
"name": "dataset",
|
|
3746
|
+
"hasDynamicHelp": false,
|
|
3747
|
+
"helpValue": "<name>",
|
|
3748
|
+
"multiple": false,
|
|
3749
|
+
"type": "option"
|
|
3750
|
+
},
|
|
3751
|
+
"force": {
|
|
3752
|
+
"description": "Skip confirmation prompt",
|
|
3753
|
+
"name": "force",
|
|
3754
|
+
"allowNo": false,
|
|
3755
|
+
"type": "boolean"
|
|
3756
|
+
},
|
|
3757
|
+
"project": {
|
|
3758
|
+
"deprecated": {
|
|
3759
|
+
"to": "project-id"
|
|
3760
|
+
},
|
|
3761
|
+
"description": "Project ID to delete GraphQL API for",
|
|
3762
|
+
"hidden": true,
|
|
3763
|
+
"name": "project",
|
|
3764
|
+
"required": false,
|
|
3765
|
+
"hasDynamicHelp": false,
|
|
3766
|
+
"multiple": false,
|
|
3767
|
+
"type": "option"
|
|
3768
|
+
},
|
|
3769
|
+
"tag": {
|
|
3770
|
+
"description": "Tag to undeploy GraphQL API from",
|
|
3771
|
+
"name": "tag",
|
|
3772
|
+
"required": false,
|
|
3773
|
+
"default": "default",
|
|
3774
|
+
"hasDynamicHelp": false,
|
|
3775
|
+
"multiple": false,
|
|
3776
|
+
"type": "option"
|
|
3777
|
+
}
|
|
3778
|
+
},
|
|
3779
|
+
"hasDynamicHelp": false,
|
|
3780
|
+
"hiddenAliases": [],
|
|
3781
|
+
"id": "graphql:undeploy",
|
|
3782
|
+
"pluginAlias": "@sanity/cli",
|
|
3783
|
+
"pluginName": "@sanity/cli",
|
|
3784
|
+
"pluginType": "core",
|
|
3785
|
+
"strict": true,
|
|
3786
|
+
"isESM": true,
|
|
3787
|
+
"relativePath": [
|
|
3788
|
+
"dist",
|
|
3789
|
+
"commands",
|
|
3790
|
+
"graphql",
|
|
3791
|
+
"undeploy.js"
|
|
3792
|
+
]
|
|
3793
|
+
},
|
|
3791
3794
|
"hooks:attempt": {
|
|
3792
3795
|
"aliases": [],
|
|
3793
3796
|
"args": {
|
|
@@ -7052,5 +7055,5 @@
|
|
|
7052
7055
|
]
|
|
7053
7056
|
}
|
|
7054
7057
|
},
|
|
7055
|
-
"version": "8.
|
|
7058
|
+
"version": "8.14.0"
|
|
7056
7059
|
}
|