@sanity/cli 8.4.2 → 8.6.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.
Files changed (33) hide show
  1. package/README.md +1 -1
  2. package/dist/SanityHelp.js +37 -1
  3. package/dist/SanityHelp.js.map +1 -1
  4. package/dist/actions/auth/login/login.js +0 -1
  5. package/dist/actions/auth/login/login.js.map +1 -1
  6. package/dist/actions/deploy/deployApp.js +1 -0
  7. package/dist/actions/deploy/deployApp.js.map +1 -1
  8. package/dist/actions/deploy/deployStudio.js +3 -1
  9. package/dist/actions/deploy/deployStudio.js.map +1 -1
  10. package/dist/actions/deploy/deployStudioSchemasAndManifests.js +2 -1
  11. package/dist/actions/deploy/deployStudioSchemasAndManifests.js.map +1 -1
  12. package/dist/actions/deploy/deployStudioSchemasAndManifests.worker.js +2 -113
  13. package/dist/actions/deploy/deployStudioSchemasAndManifests.worker.js.map +1 -1
  14. package/dist/actions/deploy/deployStudioSchemasAndManifestsWorker.js +52 -0
  15. package/dist/actions/deploy/deployStudioSchemasAndManifestsWorker.js.map +1 -0
  16. package/dist/actions/deploy/types.js.map +1 -1
  17. package/dist/actions/manifest/extractManifest.js +2 -1
  18. package/dist/actions/manifest/extractManifest.js.map +1 -1
  19. package/dist/actions/manifest/extractStudioManifest.js +1 -0
  20. package/dist/actions/manifest/extractStudioManifest.js.map +1 -1
  21. package/dist/commands/init.js +1 -1
  22. package/dist/commands/init.js.map +1 -1
  23. package/dist/commands/media/delete-aspect.js +1 -3
  24. package/dist/commands/media/delete-aspect.js.map +1 -1
  25. package/dist/commands/tokens/delete.js +1 -3
  26. package/dist/commands/tokens/delete.js.map +1 -1
  27. package/dist/generated/apiRoutes.js +15 -1
  28. package/dist/generated/apiRoutes.js.map +1 -1
  29. package/dist/topicAliases.js +3 -0
  30. package/dist/topicAliases.js.map +1 -1
  31. package/oclif.config.js +2 -1
  32. package/oclif.manifest.json +360 -364
  33. package/package.json +15 -13
@@ -775,7 +775,7 @@
775
775
  "type": "boolean"
776
776
  },
777
777
  "organization": {
778
- "description": "Organization ID to use for the project",
778
+ "description": "Organization ID to use for the project (required for unattended project creation)",
779
779
  "name": "organization",
780
780
  "hasDynamicHelp": false,
781
781
  "helpValue": "<id>",
@@ -2497,6 +2497,130 @@
2497
2497
  "list.js"
2498
2498
  ]
2499
2499
  },
2500
+ "docs:browse": {
2501
+ "aliases": [],
2502
+ "args": {},
2503
+ "description": "Open Sanity docs in your browser",
2504
+ "flags": {},
2505
+ "hasDynamicHelp": false,
2506
+ "hiddenAliases": [],
2507
+ "id": "docs:browse",
2508
+ "pluginAlias": "@sanity/cli",
2509
+ "pluginName": "@sanity/cli",
2510
+ "pluginType": "core",
2511
+ "strict": true,
2512
+ "enableJsonFlag": false,
2513
+ "isESM": true,
2514
+ "relativePath": [
2515
+ "dist",
2516
+ "commands",
2517
+ "docs",
2518
+ "browse.js"
2519
+ ]
2520
+ },
2521
+ "docs:read": {
2522
+ "aliases": [],
2523
+ "args": {
2524
+ "path": {
2525
+ "description": "Path or URL to article, found in search results and docs content as links",
2526
+ "name": "path",
2527
+ "required": true
2528
+ }
2529
+ },
2530
+ "description": "Read an article in terminal",
2531
+ "examples": [
2532
+ {
2533
+ "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation",
2534
+ "description": "Read as markdown in terminal"
2535
+ },
2536
+ {
2537
+ "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation",
2538
+ "description": "Read using full URL"
2539
+ },
2540
+ {
2541
+ "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation --web",
2542
+ "description": "Open in web browser"
2543
+ },
2544
+ {
2545
+ "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation -w",
2546
+ "description": "Open using full URL in web browser"
2547
+ }
2548
+ ],
2549
+ "flags": {
2550
+ "web": {
2551
+ "aliases": [
2552
+ "w"
2553
+ ],
2554
+ "description": "Open in a web browser",
2555
+ "name": "web",
2556
+ "allowNo": false,
2557
+ "type": "boolean"
2558
+ }
2559
+ },
2560
+ "hasDynamicHelp": false,
2561
+ "hiddenAliases": [],
2562
+ "id": "docs:read",
2563
+ "pluginAlias": "@sanity/cli",
2564
+ "pluginName": "@sanity/cli",
2565
+ "pluginType": "core",
2566
+ "strict": true,
2567
+ "isESM": true,
2568
+ "relativePath": [
2569
+ "dist",
2570
+ "commands",
2571
+ "docs",
2572
+ "read.js"
2573
+ ]
2574
+ },
2575
+ "docs:search": {
2576
+ "aliases": [],
2577
+ "args": {
2578
+ "query": {
2579
+ "description": "Search query for documentation",
2580
+ "name": "query",
2581
+ "required": true
2582
+ }
2583
+ },
2584
+ "description": "Search Sanity docs",
2585
+ "examples": [
2586
+ {
2587
+ "command": "<%= config.bin %> <%= command.id %> schema",
2588
+ "description": "Search for documentation about schemas"
2589
+ },
2590
+ {
2591
+ "command": "<%= config.bin %> <%= command.id %> \"groq functions\"",
2592
+ "description": "Search with phrase"
2593
+ },
2594
+ {
2595
+ "command": "<%= config.bin %> <%= command.id %> \"deployment\" --limit=5",
2596
+ "description": "Limit search results"
2597
+ }
2598
+ ],
2599
+ "flags": {
2600
+ "limit": {
2601
+ "description": "Maximum number of results to return",
2602
+ "name": "limit",
2603
+ "default": 10,
2604
+ "hasDynamicHelp": false,
2605
+ "multiple": false,
2606
+ "type": "option"
2607
+ }
2608
+ },
2609
+ "hasDynamicHelp": false,
2610
+ "hiddenAliases": [],
2611
+ "id": "docs:search",
2612
+ "pluginAlias": "@sanity/cli",
2613
+ "pluginName": "@sanity/cli",
2614
+ "pluginType": "core",
2615
+ "strict": true,
2616
+ "isESM": true,
2617
+ "relativePath": [
2618
+ "dist",
2619
+ "commands",
2620
+ "docs",
2621
+ "search.js"
2622
+ ]
2623
+ },
2500
2624
  "documents:create": {
2501
2625
  "aliases": [],
2502
2626
  "args": {
@@ -2970,130 +3094,6 @@
2970
3094
  "validate.js"
2971
3095
  ]
2972
3096
  },
2973
- "docs:browse": {
2974
- "aliases": [],
2975
- "args": {},
2976
- "description": "Open Sanity docs in your browser",
2977
- "flags": {},
2978
- "hasDynamicHelp": false,
2979
- "hiddenAliases": [],
2980
- "id": "docs:browse",
2981
- "pluginAlias": "@sanity/cli",
2982
- "pluginName": "@sanity/cli",
2983
- "pluginType": "core",
2984
- "strict": true,
2985
- "enableJsonFlag": false,
2986
- "isESM": true,
2987
- "relativePath": [
2988
- "dist",
2989
- "commands",
2990
- "docs",
2991
- "browse.js"
2992
- ]
2993
- },
2994
- "docs:read": {
2995
- "aliases": [],
2996
- "args": {
2997
- "path": {
2998
- "description": "Path or URL to article, found in search results and docs content as links",
2999
- "name": "path",
3000
- "required": true
3001
- }
3002
- },
3003
- "description": "Read an article in terminal",
3004
- "examples": [
3005
- {
3006
- "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation",
3007
- "description": "Read as markdown in terminal"
3008
- },
3009
- {
3010
- "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation",
3011
- "description": "Read using full URL"
3012
- },
3013
- {
3014
- "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation --web",
3015
- "description": "Open in web browser"
3016
- },
3017
- {
3018
- "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation -w",
3019
- "description": "Open using full URL in web browser"
3020
- }
3021
- ],
3022
- "flags": {
3023
- "web": {
3024
- "aliases": [
3025
- "w"
3026
- ],
3027
- "description": "Open in a web browser",
3028
- "name": "web",
3029
- "allowNo": false,
3030
- "type": "boolean"
3031
- }
3032
- },
3033
- "hasDynamicHelp": false,
3034
- "hiddenAliases": [],
3035
- "id": "docs:read",
3036
- "pluginAlias": "@sanity/cli",
3037
- "pluginName": "@sanity/cli",
3038
- "pluginType": "core",
3039
- "strict": true,
3040
- "isESM": true,
3041
- "relativePath": [
3042
- "dist",
3043
- "commands",
3044
- "docs",
3045
- "read.js"
3046
- ]
3047
- },
3048
- "docs:search": {
3049
- "aliases": [],
3050
- "args": {
3051
- "query": {
3052
- "description": "Search query for documentation",
3053
- "name": "query",
3054
- "required": true
3055
- }
3056
- },
3057
- "description": "Search Sanity docs",
3058
- "examples": [
3059
- {
3060
- "command": "<%= config.bin %> <%= command.id %> schema",
3061
- "description": "Search for documentation about schemas"
3062
- },
3063
- {
3064
- "command": "<%= config.bin %> <%= command.id %> \"groq functions\"",
3065
- "description": "Search with phrase"
3066
- },
3067
- {
3068
- "command": "<%= config.bin %> <%= command.id %> \"deployment\" --limit=5",
3069
- "description": "Limit search results"
3070
- }
3071
- ],
3072
- "flags": {
3073
- "limit": {
3074
- "description": "Maximum number of results to return",
3075
- "name": "limit",
3076
- "default": 10,
3077
- "hasDynamicHelp": false,
3078
- "multiple": false,
3079
- "type": "option"
3080
- }
3081
- },
3082
- "hasDynamicHelp": false,
3083
- "hiddenAliases": [],
3084
- "id": "docs:search",
3085
- "pluginAlias": "@sanity/cli",
3086
- "pluginName": "@sanity/cli",
3087
- "pluginType": "core",
3088
- "strict": true,
3089
- "isESM": true,
3090
- "relativePath": [
3091
- "dist",
3092
- "commands",
3093
- "docs",
3094
- "search.js"
3095
- ]
3096
- },
3097
3097
  "graphql:deploy": {
3098
3098
  "aliases": [],
3099
3099
  "args": {},
@@ -3594,17 +3594,56 @@
3594
3594
  "logs.js"
3595
3595
  ]
3596
3596
  },
3597
- "mcp:configure": {
3597
+ "manifest:extract": {
3598
3598
  "aliases": [],
3599
3599
  "args": {},
3600
- "description": "Configure Sanity MCP server for AI editors (Antigravity, Claude Code, Cline, Cline CLI, Codex CLI, Cursor, Gemini CLI, GitHub Copilot CLI, MCPorter, OpenCode, VS Code, VS Code Insiders, Zed)",
3600
+ "description": "Extract studio configuration as JSON manifest files.\n\nNote: This command is experimental and subject to change. It is currently intended for use with Create only.",
3601
3601
  "examples": [
3602
3602
  {
3603
3603
  "command": "<%= config.bin %> <%= command.id %>",
3604
- "description": "Configure Sanity MCP server for detected AI editors"
3605
- }
3606
- ],
3607
- "flags": {},
3604
+ "description": "Extracts manifests"
3605
+ },
3606
+ {
3607
+ "command": "<%= config.bin %> <%= command.id %> --path /public/static",
3608
+ "description": "Extracts manifests into /public/static"
3609
+ }
3610
+ ],
3611
+ "flags": {
3612
+ "path": {
3613
+ "description": "Optional path to specify destination directory of the manifest files",
3614
+ "name": "path",
3615
+ "default": "dist/static",
3616
+ "hasDynamicHelp": false,
3617
+ "multiple": false,
3618
+ "type": "option"
3619
+ }
3620
+ },
3621
+ "hasDynamicHelp": false,
3622
+ "hiddenAliases": [],
3623
+ "id": "manifest:extract",
3624
+ "pluginAlias": "@sanity/cli",
3625
+ "pluginName": "@sanity/cli",
3626
+ "pluginType": "core",
3627
+ "strict": true,
3628
+ "isESM": true,
3629
+ "relativePath": [
3630
+ "dist",
3631
+ "commands",
3632
+ "manifest",
3633
+ "extract.js"
3634
+ ]
3635
+ },
3636
+ "mcp:configure": {
3637
+ "aliases": [],
3638
+ "args": {},
3639
+ "description": "Configure Sanity MCP server for AI editors (Antigravity, Claude Code, Cline, Cline CLI, Codex CLI, Cursor, Gemini CLI, GitHub Copilot CLI, MCPorter, OpenCode, VS Code, VS Code Insiders, Zed)",
3640
+ "examples": [
3641
+ {
3642
+ "command": "<%= config.bin %> <%= command.id %>",
3643
+ "description": "Configure Sanity MCP server for detected AI editors"
3644
+ }
3645
+ ],
3646
+ "flags": {},
3608
3647
  "hasDynamicHelp": false,
3609
3648
  "hiddenAliases": [],
3610
3649
  "id": "mcp:configure",
@@ -3697,9 +3736,7 @@
3697
3736
  "type": "option"
3698
3737
  },
3699
3738
  "yes": {
3700
- "aliases": [
3701
- "y"
3702
- ],
3739
+ "char": "y",
3703
3740
  "description": "Run without prompts and confirm deletion",
3704
3741
  "name": "yes",
3705
3742
  "required": false,
@@ -4448,45 +4485,6 @@
4448
4485
  "update.js"
4449
4486
  ]
4450
4487
  },
4451
- "manifest:extract": {
4452
- "aliases": [],
4453
- "args": {},
4454
- "description": "Extract studio configuration as JSON manifest files.\n\nNote: This command is experimental and subject to change. It is currently intended for use with Create only.",
4455
- "examples": [
4456
- {
4457
- "command": "<%= config.bin %> <%= command.id %>",
4458
- "description": "Extracts manifests"
4459
- },
4460
- {
4461
- "command": "<%= config.bin %> <%= command.id %> --path /public/static",
4462
- "description": "Extracts manifests into /public/static"
4463
- }
4464
- ],
4465
- "flags": {
4466
- "path": {
4467
- "description": "Optional path to specify destination directory of the manifest files",
4468
- "name": "path",
4469
- "default": "dist/static",
4470
- "hasDynamicHelp": false,
4471
- "multiple": false,
4472
- "type": "option"
4473
- }
4474
- },
4475
- "hasDynamicHelp": false,
4476
- "hiddenAliases": [],
4477
- "id": "manifest:extract",
4478
- "pluginAlias": "@sanity/cli",
4479
- "pluginName": "@sanity/cli",
4480
- "pluginType": "core",
4481
- "strict": true,
4482
- "isESM": true,
4483
- "relativePath": [
4484
- "dist",
4485
- "commands",
4486
- "manifest",
4487
- "extract.js"
4488
- ]
4489
- },
4490
4488
  "projects:create": {
4491
4489
  "aliases": [],
4492
4490
  "args": {
@@ -4677,32 +4675,6 @@
4677
4675
  "unclaimed.js"
4678
4676
  ]
4679
4677
  },
4680
- "skills:install": {
4681
- "aliases": [],
4682
- "args": {},
4683
- "description": "Install Sanity agent skills for detected AI editors (Antigravity, Claude Code, Cline, Cline CLI, Codex CLI, Cursor, Gemini CLI, GitHub Copilot CLI, OpenCode, VS Code, VS Code Insiders)",
4684
- "examples": [
4685
- {
4686
- "command": "<%= config.bin %> <%= command.id %>",
4687
- "description": "Install Sanity agent skills for detected AI editors"
4688
- }
4689
- ],
4690
- "flags": {},
4691
- "hasDynamicHelp": false,
4692
- "hiddenAliases": [],
4693
- "id": "skills:install",
4694
- "pluginAlias": "@sanity/cli",
4695
- "pluginName": "@sanity/cli",
4696
- "pluginType": "core",
4697
- "strict": true,
4698
- "isESM": true,
4699
- "relativePath": [
4700
- "dist",
4701
- "commands",
4702
- "skills",
4703
- "install.js"
4704
- ]
4705
- },
4706
4678
  "schemas:delete": {
4707
4679
  "aliases": [],
4708
4680
  "args": {},
@@ -5102,6 +5074,32 @@
5102
5074
  "validate.js"
5103
5075
  ]
5104
5076
  },
5077
+ "skills:install": {
5078
+ "aliases": [],
5079
+ "args": {},
5080
+ "description": "Install Sanity agent skills for detected AI editors (Antigravity, Claude Code, Cline, Cline CLI, Codex CLI, Cursor, Gemini CLI, GitHub Copilot CLI, OpenCode, VS Code, VS Code Insiders)",
5081
+ "examples": [
5082
+ {
5083
+ "command": "<%= config.bin %> <%= command.id %>",
5084
+ "description": "Install Sanity agent skills for detected AI editors"
5085
+ }
5086
+ ],
5087
+ "flags": {},
5088
+ "hasDynamicHelp": false,
5089
+ "hiddenAliases": [],
5090
+ "id": "skills:install",
5091
+ "pluginAlias": "@sanity/cli",
5092
+ "pluginName": "@sanity/cli",
5093
+ "pluginType": "core",
5094
+ "strict": true,
5095
+ "isESM": true,
5096
+ "relativePath": [
5097
+ "dist",
5098
+ "commands",
5099
+ "skills",
5100
+ "install.js"
5101
+ ]
5102
+ },
5105
5103
  "telemetry:disable": {
5106
5104
  "aliases": [],
5107
5105
  "args": {},
@@ -5316,9 +5314,7 @@
5316
5314
  "type": "option"
5317
5315
  },
5318
5316
  "yes": {
5319
- "aliases": [
5320
- "y"
5321
- ],
5317
+ "char": "y",
5322
5318
  "description": "Skip confirmation prompt (unattended mode)",
5323
5319
  "name": "yes",
5324
5320
  "required": false,
@@ -5448,170 +5444,10 @@
5448
5444
  "rotate.js"
5449
5445
  ]
5450
5446
  },
5451
- "datasets:embeddings:disable": {
5452
- "aliases": [],
5453
- "args": {
5454
- "dataset": {
5455
- "description": "Dataset name to disable embeddings for",
5456
- "name": "dataset",
5457
- "required": false
5458
- }
5459
- },
5460
- "description": "Disable embeddings for a dataset",
5461
- "examples": [
5462
- {
5463
- "command": "<%= config.bin %> <%= command.id %> production",
5464
- "description": "Disable embeddings for the production dataset"
5465
- }
5466
- ],
5467
- "flags": {
5468
- "project-id": {
5469
- "char": "p",
5470
- "description": "Project ID to disable embeddings for (overrides CLI configuration)",
5471
- "helpGroup": "OVERRIDE",
5472
- "name": "project-id",
5473
- "hasDynamicHelp": false,
5474
- "helpValue": "<id>",
5475
- "multiple": false,
5476
- "type": "option"
5477
- }
5478
- },
5479
- "hasDynamicHelp": false,
5480
- "hiddenAliases": [
5481
- "dataset:embeddings:disable"
5482
- ],
5483
- "id": "datasets:embeddings:disable",
5484
- "pluginAlias": "@sanity/cli",
5485
- "pluginName": "@sanity/cli",
5486
- "pluginType": "core",
5487
- "strict": true,
5488
- "isESM": true,
5489
- "relativePath": [
5490
- "dist",
5491
- "commands",
5492
- "datasets",
5493
- "embeddings",
5494
- "disable.js"
5495
- ]
5496
- },
5497
- "datasets:embeddings:enable": {
5498
- "aliases": [],
5499
- "args": {
5500
- "dataset": {
5501
- "description": "Dataset name to enable embeddings for",
5502
- "name": "dataset",
5503
- "required": false
5504
- }
5505
- },
5506
- "description": "Enable embeddings for a dataset",
5507
- "examples": [
5508
- {
5509
- "command": "<%= config.bin %> <%= command.id %> production",
5510
- "description": "Enable embeddings for the production dataset"
5511
- },
5512
- {
5513
- "command": "<%= config.bin %> <%= command.id %> production --projection \"{ title, body }\"",
5514
- "description": "Enable embeddings with a specific projection"
5515
- },
5516
- {
5517
- "command": "<%= config.bin %> <%= command.id %> production --wait",
5518
- "description": "Enable embeddings and wait for processing to complete"
5519
- }
5520
- ],
5521
- "flags": {
5522
- "project-id": {
5523
- "char": "p",
5524
- "description": "Project ID to enable embeddings for (overrides CLI configuration)",
5525
- "helpGroup": "OVERRIDE",
5526
- "name": "project-id",
5527
- "hasDynamicHelp": false,
5528
- "helpValue": "<id>",
5529
- "multiple": false,
5530
- "type": "option"
5531
- },
5532
- "projection": {
5533
- "description": "GROQ projection defining which fields to embed (e.g. \"{ title, body }\")",
5534
- "name": "projection",
5535
- "required": false,
5536
- "hasDynamicHelp": false,
5537
- "multiple": false,
5538
- "type": "option"
5539
- },
5540
- "wait": {
5541
- "description": "Wait for embeddings processing to complete before returning",
5542
- "name": "wait",
5543
- "allowNo": false,
5544
- "type": "boolean"
5545
- }
5546
- },
5547
- "hasDynamicHelp": false,
5548
- "hiddenAliases": [
5549
- "dataset:embeddings:enable"
5550
- ],
5551
- "id": "datasets:embeddings:enable",
5552
- "pluginAlias": "@sanity/cli",
5553
- "pluginName": "@sanity/cli",
5554
- "pluginType": "core",
5555
- "strict": true,
5556
- "isESM": true,
5557
- "relativePath": [
5558
- "dist",
5559
- "commands",
5560
- "datasets",
5561
- "embeddings",
5562
- "enable.js"
5563
- ]
5564
- },
5565
- "datasets:embeddings:status": {
5566
- "aliases": [],
5567
- "args": {
5568
- "dataset": {
5569
- "description": "The name of the dataset to check embeddings status for",
5570
- "name": "dataset",
5571
- "required": false
5572
- }
5573
- },
5574
- "description": "Show embeddings settings and status for a dataset",
5575
- "examples": [
5576
- {
5577
- "command": "<%= config.bin %> <%= command.id %> production",
5578
- "description": "Show embeddings status for the production dataset"
5579
- }
5580
- ],
5581
- "flags": {
5582
- "project-id": {
5583
- "char": "p",
5584
- "description": "Project ID to check embeddings status for (overrides CLI configuration)",
5585
- "helpGroup": "OVERRIDE",
5586
- "name": "project-id",
5587
- "hasDynamicHelp": false,
5588
- "helpValue": "<id>",
5589
- "multiple": false,
5590
- "type": "option"
5591
- }
5592
- },
5593
- "hasDynamicHelp": false,
5594
- "hiddenAliases": [
5595
- "dataset:embeddings:status"
5596
- ],
5597
- "id": "datasets:embeddings:status",
5598
- "pluginAlias": "@sanity/cli",
5599
- "pluginName": "@sanity/cli",
5600
- "pluginType": "core",
5601
- "strict": true,
5602
- "isESM": true,
5603
- "relativePath": [
5604
- "dist",
5605
- "commands",
5606
- "datasets",
5607
- "embeddings",
5608
- "status.js"
5609
- ]
5610
- },
5611
5447
  "typegen:generate": {
5612
5448
  "aliases": [],
5613
5449
  "args": {},
5614
- "description": "Sanity TypeGen\n\n\u001b[1mConfiguration:\u001b[22m\nThis command can utilize configuration settings defined in a `sanity-typegen.json` file. These settings include:\n\n- \"path\": Specifies a glob pattern to locate your TypeScript or JavaScript files.\n Default: \"./src/**/*.{ts,tsx,js,jsx}\"\n\n- \"schema\": Defines the path to your Sanity schema file. This file should be generated using the `sanity schema extract` command.\n Default: \"schema.json\"\n\n- \"generates\": Indicates the path where the generated TypeScript type definitions will be saved.\n Default: \"./sanity.types.ts\"\n\nThe default configuration values listed above are used if not overridden in your `sanity-typegen.json` configuration file. To customize the behavior of the type generation, adjust these properties in the configuration file according to your project's needs.\n\n\u001b[1mNote:\u001b[22m\n- The `sanity schema extract` command is a prerequisite for extracting your Sanity Studio schema into a `schema.json` file, which is then used by the `sanity typegen generate` command to generate type definitions.",
5450
+ "description": "Sanity TypeGen\n\nConfiguration:\nThis command can utilize configuration settings defined in a `sanity-typegen.json` file. These settings include:\n\n- \"path\": Specifies a glob pattern to locate your TypeScript or JavaScript files.\n Default: \"./src/**/*.{ts,tsx,js,jsx}\"\n\n- \"schema\": Defines the path to your Sanity schema file. This file should be generated using the `sanity schema extract` command.\n Default: \"schema.json\"\n\n- \"generates\": Indicates the path where the generated TypeScript type definitions will be saved.\n Default: \"./sanity.types.ts\"\n\nThe default configuration values listed above are used if not overridden in your `sanity-typegen.json` configuration file. To customize the behavior of the type generation, adjust these properties in the configuration file according to your project's needs.\n\nNote:\n- The `sanity schema extract` command is a prerequisite for extracting your Sanity Studio schema into a `schema.json` file, which is then used by the `sanity typegen generate` command to generate type definitions.",
5615
5451
  "examples": [
5616
5452
  {
5617
5453
  "command": "<%= config.bin %> <%= command.id %>",
@@ -6055,6 +5891,166 @@
6055
5891
  "unlink.js"
6056
5892
  ]
6057
5893
  },
5894
+ "datasets:embeddings:disable": {
5895
+ "aliases": [],
5896
+ "args": {
5897
+ "dataset": {
5898
+ "description": "Dataset name to disable embeddings for",
5899
+ "name": "dataset",
5900
+ "required": false
5901
+ }
5902
+ },
5903
+ "description": "Disable embeddings for a dataset",
5904
+ "examples": [
5905
+ {
5906
+ "command": "<%= config.bin %> <%= command.id %> production",
5907
+ "description": "Disable embeddings for the production dataset"
5908
+ }
5909
+ ],
5910
+ "flags": {
5911
+ "project-id": {
5912
+ "char": "p",
5913
+ "description": "Project ID to disable embeddings for (overrides CLI configuration)",
5914
+ "helpGroup": "OVERRIDE",
5915
+ "name": "project-id",
5916
+ "hasDynamicHelp": false,
5917
+ "helpValue": "<id>",
5918
+ "multiple": false,
5919
+ "type": "option"
5920
+ }
5921
+ },
5922
+ "hasDynamicHelp": false,
5923
+ "hiddenAliases": [
5924
+ "dataset:embeddings:disable"
5925
+ ],
5926
+ "id": "datasets:embeddings:disable",
5927
+ "pluginAlias": "@sanity/cli",
5928
+ "pluginName": "@sanity/cli",
5929
+ "pluginType": "core",
5930
+ "strict": true,
5931
+ "isESM": true,
5932
+ "relativePath": [
5933
+ "dist",
5934
+ "commands",
5935
+ "datasets",
5936
+ "embeddings",
5937
+ "disable.js"
5938
+ ]
5939
+ },
5940
+ "datasets:embeddings:enable": {
5941
+ "aliases": [],
5942
+ "args": {
5943
+ "dataset": {
5944
+ "description": "Dataset name to enable embeddings for",
5945
+ "name": "dataset",
5946
+ "required": false
5947
+ }
5948
+ },
5949
+ "description": "Enable embeddings for a dataset",
5950
+ "examples": [
5951
+ {
5952
+ "command": "<%= config.bin %> <%= command.id %> production",
5953
+ "description": "Enable embeddings for the production dataset"
5954
+ },
5955
+ {
5956
+ "command": "<%= config.bin %> <%= command.id %> production --projection \"{ title, body }\"",
5957
+ "description": "Enable embeddings with a specific projection"
5958
+ },
5959
+ {
5960
+ "command": "<%= config.bin %> <%= command.id %> production --wait",
5961
+ "description": "Enable embeddings and wait for processing to complete"
5962
+ }
5963
+ ],
5964
+ "flags": {
5965
+ "project-id": {
5966
+ "char": "p",
5967
+ "description": "Project ID to enable embeddings for (overrides CLI configuration)",
5968
+ "helpGroup": "OVERRIDE",
5969
+ "name": "project-id",
5970
+ "hasDynamicHelp": false,
5971
+ "helpValue": "<id>",
5972
+ "multiple": false,
5973
+ "type": "option"
5974
+ },
5975
+ "projection": {
5976
+ "description": "GROQ projection defining which fields to embed (e.g. \"{ title, body }\")",
5977
+ "name": "projection",
5978
+ "required": false,
5979
+ "hasDynamicHelp": false,
5980
+ "multiple": false,
5981
+ "type": "option"
5982
+ },
5983
+ "wait": {
5984
+ "description": "Wait for embeddings processing to complete before returning",
5985
+ "name": "wait",
5986
+ "allowNo": false,
5987
+ "type": "boolean"
5988
+ }
5989
+ },
5990
+ "hasDynamicHelp": false,
5991
+ "hiddenAliases": [
5992
+ "dataset:embeddings:enable"
5993
+ ],
5994
+ "id": "datasets:embeddings:enable",
5995
+ "pluginAlias": "@sanity/cli",
5996
+ "pluginName": "@sanity/cli",
5997
+ "pluginType": "core",
5998
+ "strict": true,
5999
+ "isESM": true,
6000
+ "relativePath": [
6001
+ "dist",
6002
+ "commands",
6003
+ "datasets",
6004
+ "embeddings",
6005
+ "enable.js"
6006
+ ]
6007
+ },
6008
+ "datasets:embeddings:status": {
6009
+ "aliases": [],
6010
+ "args": {
6011
+ "dataset": {
6012
+ "description": "The name of the dataset to check embeddings status for",
6013
+ "name": "dataset",
6014
+ "required": false
6015
+ }
6016
+ },
6017
+ "description": "Show embeddings settings and status for a dataset",
6018
+ "examples": [
6019
+ {
6020
+ "command": "<%= config.bin %> <%= command.id %> production",
6021
+ "description": "Show embeddings status for the production dataset"
6022
+ }
6023
+ ],
6024
+ "flags": {
6025
+ "project-id": {
6026
+ "char": "p",
6027
+ "description": "Project ID to check embeddings status for (overrides CLI configuration)",
6028
+ "helpGroup": "OVERRIDE",
6029
+ "name": "project-id",
6030
+ "hasDynamicHelp": false,
6031
+ "helpValue": "<id>",
6032
+ "multiple": false,
6033
+ "type": "option"
6034
+ }
6035
+ },
6036
+ "hasDynamicHelp": false,
6037
+ "hiddenAliases": [
6038
+ "dataset:embeddings:status"
6039
+ ],
6040
+ "id": "datasets:embeddings:status",
6041
+ "pluginAlias": "@sanity/cli",
6042
+ "pluginName": "@sanity/cli",
6043
+ "pluginType": "core",
6044
+ "strict": true,
6045
+ "isESM": true,
6046
+ "relativePath": [
6047
+ "dist",
6048
+ "commands",
6049
+ "datasets",
6050
+ "embeddings",
6051
+ "status.js"
6052
+ ]
6053
+ },
6058
6054
  "datasets:visibility:get": {
6059
6055
  "aliases": [],
6060
6056
  "args": {
@@ -6161,5 +6157,5 @@
6161
6157
  ]
6162
6158
  }
6163
6159
  },
6164
- "version": "8.4.2"
6160
+ "version": "8.6.0"
6165
6161
  }