@sanity/cli 8.28.2 → 8.29.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.
@@ -1967,179 +1967,6 @@
1967
1967
  "list.js"
1968
1968
  ]
1969
1969
  },
1970
- "cors:add": {
1971
- "aliases": [],
1972
- "args": {
1973
- "origin": {
1974
- "description": "Origin to allow (e.g., https://example.com)",
1975
- "name": "origin",
1976
- "required": true
1977
- }
1978
- },
1979
- "description": "Add a CORS origin to the project",
1980
- "examples": [
1981
- {
1982
- "command": "<%= config.bin %> <%= command.id %>",
1983
- "description": "Interactively add a CORS origin"
1984
- },
1985
- {
1986
- "command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
1987
- "description": "Add a localhost origin without credentials"
1988
- },
1989
- {
1990
- "command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
1991
- "description": "Add a production origin with credentials allowed"
1992
- },
1993
- {
1994
- "command": "<%= config.bin %> <%= command.id %> https://myapp.com --project abc123",
1995
- "description": "Add a CORS origin for a specific project"
1996
- }
1997
- ],
1998
- "flags": {
1999
- "project": {
2000
- "aliases": [
2001
- "project-id"
2002
- ],
2003
- "char": "p",
2004
- "deprecateAliases": true,
2005
- "description": "Project ID to add CORS origin to (overrides CLI configuration)",
2006
- "helpGroup": "OVERRIDE",
2007
- "name": "project",
2008
- "hasDynamicHelp": false,
2009
- "helpValue": "<id>",
2010
- "multiple": false,
2011
- "type": "option"
2012
- },
2013
- "credentials": {
2014
- "description": "Allow credentials (token/cookie) to be sent from this origin",
2015
- "name": "credentials",
2016
- "required": false,
2017
- "allowNo": true,
2018
- "type": "boolean"
2019
- },
2020
- "yes": {
2021
- "char": "y",
2022
- "description": "Confirm risky wildcard origins without prompting",
2023
- "name": "yes",
2024
- "allowNo": false,
2025
- "type": "boolean"
2026
- }
2027
- },
2028
- "hasDynamicHelp": false,
2029
- "hiddenAliases": [],
2030
- "id": "cors:add",
2031
- "pluginAlias": "@sanity/cli",
2032
- "pluginName": "@sanity/cli",
2033
- "pluginType": "core",
2034
- "strict": true,
2035
- "isESM": true,
2036
- "relativePath": [
2037
- "dist",
2038
- "commands",
2039
- "cors",
2040
- "add.js"
2041
- ]
2042
- },
2043
- "cors:delete": {
2044
- "aliases": [],
2045
- "args": {
2046
- "origin": {
2047
- "description": "Origin to delete (will prompt if not provided)",
2048
- "name": "origin",
2049
- "required": false
2050
- }
2051
- },
2052
- "description": "Delete a CORS origin from the project",
2053
- "examples": [
2054
- {
2055
- "command": "<%= config.bin %> <%= command.id %>",
2056
- "description": "Interactively select and delete a CORS origin"
2057
- },
2058
- {
2059
- "command": "<%= config.bin %> <%= command.id %> https://example.com",
2060
- "description": "Delete a specific CORS origin"
2061
- },
2062
- {
2063
- "command": "<%= config.bin %> <%= command.id %> --project abc123",
2064
- "description": "Delete a CORS origin from a specific project"
2065
- }
2066
- ],
2067
- "flags": {
2068
- "project": {
2069
- "aliases": [
2070
- "project-id"
2071
- ],
2072
- "char": "p",
2073
- "deprecateAliases": true,
2074
- "description": "Project ID to delete CORS origin from (overrides CLI configuration)",
2075
- "helpGroup": "OVERRIDE",
2076
- "name": "project",
2077
- "hasDynamicHelp": false,
2078
- "helpValue": "<id>",
2079
- "multiple": false,
2080
- "type": "option"
2081
- }
2082
- },
2083
- "hasDynamicHelp": false,
2084
- "hiddenAliases": [],
2085
- "id": "cors:delete",
2086
- "pluginAlias": "@sanity/cli",
2087
- "pluginName": "@sanity/cli",
2088
- "pluginType": "core",
2089
- "strict": true,
2090
- "isESM": true,
2091
- "relativePath": [
2092
- "dist",
2093
- "commands",
2094
- "cors",
2095
- "delete.js"
2096
- ]
2097
- },
2098
- "cors:list": {
2099
- "aliases": [],
2100
- "args": {},
2101
- "description": "List CORS origins for the project",
2102
- "examples": [
2103
- {
2104
- "command": "<%= config.bin %> <%= command.id %>",
2105
- "description": "List CORS origins for the project"
2106
- },
2107
- {
2108
- "command": "<%= config.bin %> <%= command.id %> --project abc123",
2109
- "description": "List CORS origins for a specific project"
2110
- }
2111
- ],
2112
- "flags": {
2113
- "project": {
2114
- "aliases": [
2115
- "project-id"
2116
- ],
2117
- "char": "p",
2118
- "deprecateAliases": true,
2119
- "description": "Project ID to list CORS origins for (overrides CLI configuration)",
2120
- "helpGroup": "OVERRIDE",
2121
- "name": "project",
2122
- "hasDynamicHelp": false,
2123
- "helpValue": "<id>",
2124
- "multiple": false,
2125
- "type": "option"
2126
- }
2127
- },
2128
- "hasDynamicHelp": false,
2129
- "hiddenAliases": [],
2130
- "id": "cors:list",
2131
- "pluginAlias": "@sanity/cli",
2132
- "pluginName": "@sanity/cli",
2133
- "pluginType": "core",
2134
- "strict": true,
2135
- "isESM": true,
2136
- "relativePath": [
2137
- "dist",
2138
- "commands",
2139
- "cors",
2140
- "list.js"
2141
- ]
2142
- },
2143
1970
  "context:build": {
2144
1971
  "aliases": [],
2145
1972
  "args": {
@@ -2665,57 +2492,32 @@
2665
2492
  "update.js"
2666
2493
  ]
2667
2494
  },
2668
- "datasets:copy": {
2495
+ "cors:add": {
2669
2496
  "aliases": [],
2670
2497
  "args": {
2671
- "source": {
2672
- "description": "Name of the dataset to copy from",
2673
- "name": "source",
2674
- "required": false
2675
- },
2676
- "target": {
2677
- "description": "Name of the dataset to copy to",
2678
- "name": "target",
2679
- "required": false
2498
+ "origin": {
2499
+ "description": "Origin to allow (e.g., https://example.com)",
2500
+ "name": "origin",
2501
+ "required": true
2680
2502
  }
2681
2503
  },
2682
- "description": "Copy a dataset or manage copy jobs",
2504
+ "description": "Add a CORS origin to the project",
2683
2505
  "examples": [
2684
2506
  {
2685
2507
  "command": "<%= config.bin %> <%= command.id %>",
2686
- "description": "Interactively copy a dataset"
2687
- },
2688
- {
2689
- "command": "<%= config.bin %> <%= command.id %> source-dataset",
2690
- "description": "Copy from source-dataset (prompts for target)"
2691
- },
2692
- {
2693
- "command": "<%= config.bin %> <%= command.id %> source-dataset target-dataset",
2694
- "description": "Copy from source-dataset to target-dataset"
2695
- },
2696
- {
2697
- "command": "<%= config.bin %> <%= command.id %> --skip-history source target",
2698
- "description": "Copy without preserving document history (faster for large datasets)"
2699
- },
2700
- {
2701
- "command": "<%= config.bin %> <%= command.id %> --skip-content-releases source target",
2702
- "description": "Copy without content release documents"
2703
- },
2704
- {
2705
- "command": "<%= config.bin %> <%= command.id %> --detach source target",
2706
- "description": "Start copy job without waiting for completion"
2508
+ "description": "Interactively add a CORS origin"
2707
2509
  },
2708
2510
  {
2709
- "command": "<%= config.bin %> <%= command.id %> --attach <job-id>",
2710
- "description": "Attach to a running copy job to follow progress"
2511
+ "command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
2512
+ "description": "Add a localhost origin without credentials"
2711
2513
  },
2712
2514
  {
2713
- "command": "<%= config.bin %> <%= command.id %> --list",
2714
- "description": "List all dataset copy jobs"
2515
+ "command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
2516
+ "description": "Add a production origin with credentials allowed"
2715
2517
  },
2716
2518
  {
2717
- "command": "<%= config.bin %> <%= command.id %> --list --offset 2 --limit 10",
2718
- "description": "List copy jobs with pagination"
2519
+ "command": "<%= config.bin %> <%= command.id %> https://myapp.com --project abc123",
2520
+ "description": "Add a CORS origin for a specific project"
2719
2521
  }
2720
2522
  ],
2721
2523
  "flags": {
@@ -2725,7 +2527,7 @@
2725
2527
  ],
2726
2528
  "char": "p",
2727
2529
  "deprecateAliases": true,
2728
- "description": "Project ID to copy dataset in (overrides CLI configuration)",
2530
+ "description": "Project ID to add CORS origin to (overrides CLI configuration)",
2729
2531
  "helpGroup": "OVERRIDE",
2730
2532
  "name": "project",
2731
2533
  "hasDynamicHelp": false,
@@ -2733,92 +2535,24 @@
2733
2535
  "multiple": false,
2734
2536
  "type": "option"
2735
2537
  },
2736
- "attach": {
2737
- "description": "Attach to the running copy process to show progress",
2738
- "exclusive": [
2739
- "list",
2740
- "detach",
2741
- "skip-history"
2742
- ],
2743
- "name": "attach",
2538
+ "credentials": {
2539
+ "description": "Allow credentials (token/cookie) to be sent from this origin",
2540
+ "name": "credentials",
2744
2541
  "required": false,
2745
- "hasDynamicHelp": false,
2746
- "multiple": false,
2747
- "type": "option"
2542
+ "allowNo": true,
2543
+ "type": "boolean"
2748
2544
  },
2749
- "detach": {
2750
- "description": "Start the copy without waiting for it to finish",
2751
- "exclusive": [
2752
- "list",
2753
- "attach"
2754
- ],
2755
- "name": "detach",
2756
- "required": false,
2757
- "allowNo": false,
2758
- "type": "boolean"
2759
- },
2760
- "limit": {
2761
- "dependsOn": [
2762
- "list"
2763
- ],
2764
- "description": "Maximum number of jobs returned (default 10, max 1000)",
2765
- "name": "limit",
2766
- "required": false,
2767
- "hasDynamicHelp": false,
2768
- "multiple": false,
2769
- "type": "option"
2770
- },
2771
- "list": {
2772
- "description": "Lists all dataset copy jobs",
2773
- "exclusive": [
2774
- "attach",
2775
- "detach",
2776
- "skip-history"
2777
- ],
2778
- "name": "list",
2779
- "required": false,
2780
- "allowNo": false,
2781
- "type": "boolean"
2782
- },
2783
- "offset": {
2784
- "dependsOn": [
2785
- "list"
2786
- ],
2787
- "description": "Start position in the list of jobs (default 0)",
2788
- "name": "offset",
2789
- "required": false,
2790
- "hasDynamicHelp": false,
2791
- "multiple": false,
2792
- "type": "option"
2793
- },
2794
- "skip-content-releases": {
2795
- "description": "Don't copy content release documents to the target dataset",
2796
- "exclusive": [
2797
- "list",
2798
- "attach"
2799
- ],
2800
- "name": "skip-content-releases",
2801
- "required": false,
2802
- "allowNo": false,
2803
- "type": "boolean"
2804
- },
2805
- "skip-history": {
2806
- "description": "Don't preserve document history on copy",
2807
- "exclusive": [
2808
- "list",
2809
- "attach"
2810
- ],
2811
- "name": "skip-history",
2812
- "required": false,
2545
+ "yes": {
2546
+ "char": "y",
2547
+ "description": "Confirm risky wildcard origins without prompting",
2548
+ "name": "yes",
2813
2549
  "allowNo": false,
2814
2550
  "type": "boolean"
2815
2551
  }
2816
2552
  },
2817
2553
  "hasDynamicHelp": false,
2818
- "hiddenAliases": [
2819
- "dataset:copy"
2820
- ],
2821
- "id": "datasets:copy",
2554
+ "hiddenAliases": [],
2555
+ "id": "cors:add",
2822
2556
  "pluginAlias": "@sanity/cli",
2823
2557
  "pluginName": "@sanity/cli",
2824
2558
  "pluginType": "core",
@@ -2827,32 +2561,32 @@
2827
2561
  "relativePath": [
2828
2562
  "dist",
2829
2563
  "commands",
2830
- "datasets",
2831
- "copy.js"
2564
+ "cors",
2565
+ "add.js"
2832
2566
  ]
2833
2567
  },
2834
- "datasets:create": {
2568
+ "cors:delete": {
2835
2569
  "aliases": [],
2836
2570
  "args": {
2837
- "name": {
2838
- "description": "Name of the dataset to create",
2839
- "name": "name",
2571
+ "origin": {
2572
+ "description": "Origin to delete (will prompt if not provided)",
2573
+ "name": "origin",
2840
2574
  "required": false
2841
2575
  }
2842
2576
  },
2843
- "description": "Create a new dataset for the project",
2577
+ "description": "Delete a CORS origin from the project",
2844
2578
  "examples": [
2845
2579
  {
2846
2580
  "command": "<%= config.bin %> <%= command.id %>",
2847
- "description": "Interactively create a dataset"
2581
+ "description": "Interactively select and delete a CORS origin"
2848
2582
  },
2849
2583
  {
2850
- "command": "<%= config.bin %> <%= command.id %> my-dataset",
2851
- "description": "Create a dataset named \"my-dataset\""
2584
+ "command": "<%= config.bin %> <%= command.id %> https://example.com",
2585
+ "description": "Delete a specific CORS origin"
2852
2586
  },
2853
2587
  {
2854
- "command": "<%= config.bin %> <%= command.id %> my-dataset --visibility private",
2855
- "description": "Create a private dataset named \"my-dataset\""
2588
+ "command": "<%= config.bin %> <%= command.id %> --project abc123",
2589
+ "description": "Delete a CORS origin from a specific project"
2856
2590
  }
2857
2591
  ],
2858
2592
  "flags": {
@@ -2862,89 +2596,42 @@
2862
2596
  ],
2863
2597
  "char": "p",
2864
2598
  "deprecateAliases": true,
2865
- "description": "Project ID to create dataset in (overrides CLI configuration)",
2599
+ "description": "Project ID to delete CORS origin from (overrides CLI configuration)",
2866
2600
  "helpGroup": "OVERRIDE",
2867
2601
  "name": "project",
2868
2602
  "hasDynamicHelp": false,
2869
2603
  "helpValue": "<id>",
2870
2604
  "multiple": false,
2871
2605
  "type": "option"
2872
- },
2873
- "embeddings": {
2874
- "description": "Enable embeddings for this dataset",
2875
- "name": "embeddings",
2876
- "allowNo": false,
2877
- "type": "boolean"
2878
- },
2879
- "embeddings-projection": {
2880
- "dependsOn": [
2881
- "embeddings"
2882
- ],
2883
- "description": "GROQ projection for embeddings indexing (e.g. \"{ title, body }\")",
2884
- "name": "embeddings-projection",
2885
- "hasDynamicHelp": false,
2886
- "multiple": false,
2887
- "type": "option"
2888
- },
2889
- "visibility": {
2890
- "description": "Set visibility for this dataset (custom/private/public)",
2891
- "name": "visibility",
2892
- "required": false,
2893
- "hasDynamicHelp": false,
2894
- "multiple": false,
2895
- "options": [
2896
- "custom",
2897
- "private",
2898
- "public"
2899
- ],
2900
- "type": "option"
2901
2606
  }
2902
2607
  },
2903
2608
  "hasDynamicHelp": false,
2904
- "hiddenAliases": [
2905
- "dataset:create"
2906
- ],
2907
- "id": "datasets:create",
2609
+ "hiddenAliases": [],
2610
+ "id": "cors:delete",
2908
2611
  "pluginAlias": "@sanity/cli",
2909
2612
  "pluginName": "@sanity/cli",
2910
2613
  "pluginType": "core",
2911
2614
  "strict": true,
2912
- "telemetry": {
2913
- "redactedFlags": [
2914
- {
2915
- "canonical": "--embeddings-projection",
2916
- "flags": [
2917
- "--embeddings-projection"
2918
- ]
2919
- }
2920
- ]
2921
- },
2922
2615
  "isESM": true,
2923
2616
  "relativePath": [
2924
2617
  "dist",
2925
2618
  "commands",
2926
- "datasets",
2927
- "create.js"
2619
+ "cors",
2620
+ "delete.js"
2928
2621
  ]
2929
2622
  },
2930
- "datasets:delete": {
2623
+ "cors:list": {
2931
2624
  "aliases": [],
2932
- "args": {
2933
- "datasetName": {
2934
- "description": "Dataset name to delete",
2935
- "name": "datasetName",
2936
- "required": true
2937
- }
2938
- },
2939
- "description": "Delete a dataset from the project",
2625
+ "args": {},
2626
+ "description": "List CORS origins for the project",
2940
2627
  "examples": [
2941
2628
  {
2942
- "command": "<%= config.bin %> <%= command.id %> my-dataset",
2943
- "description": "Delete a specific dataset"
2629
+ "command": "<%= config.bin %> <%= command.id %>",
2630
+ "description": "List CORS origins for the project"
2944
2631
  },
2945
2632
  {
2946
- "command": "<%= config.bin %> <%= command.id %> my-dataset --force",
2947
- "description": "Delete a specific dataset without confirmation"
2633
+ "command": "<%= config.bin %> <%= command.id %> --project abc123",
2634
+ "description": "List CORS origins for a specific project"
2948
2635
  }
2949
2636
  ],
2950
2637
  "flags": {
@@ -2954,26 +2641,18 @@
2954
2641
  ],
2955
2642
  "char": "p",
2956
2643
  "deprecateAliases": true,
2957
- "description": "Project ID to delete dataset from (overrides CLI configuration)",
2644
+ "description": "Project ID to list CORS origins for (overrides CLI configuration)",
2958
2645
  "helpGroup": "OVERRIDE",
2959
2646
  "name": "project",
2960
2647
  "hasDynamicHelp": false,
2961
2648
  "helpValue": "<id>",
2962
2649
  "multiple": false,
2963
2650
  "type": "option"
2964
- },
2965
- "force": {
2966
- "description": "Do not prompt for delete confirmation - forcefully delete",
2967
- "name": "force",
2968
- "allowNo": false,
2969
- "type": "boolean"
2970
2651
  }
2971
2652
  },
2972
2653
  "hasDynamicHelp": false,
2973
- "hiddenAliases": [
2974
- "dataset:delete"
2975
- ],
2976
- "id": "datasets:delete",
2654
+ "hiddenAliases": [],
2655
+ "id": "cors:list",
2977
2656
  "pluginAlias": "@sanity/cli",
2978
2657
  "pluginName": "@sanity/cli",
2979
2658
  "pluginType": "core",
@@ -2982,129 +2661,385 @@
2982
2661
  "relativePath": [
2983
2662
  "dist",
2984
2663
  "commands",
2985
- "datasets",
2986
- "delete.js"
2664
+ "cors",
2665
+ "list.js"
2987
2666
  ]
2988
2667
  },
2989
- "datasets:export": {
2668
+ "docs:browse": {
2669
+ "aliases": [],
2670
+ "args": {},
2671
+ "description": "Open Sanity docs in your browser",
2672
+ "flags": {},
2673
+ "hasDynamicHelp": false,
2674
+ "hiddenAliases": [],
2675
+ "id": "docs:browse",
2676
+ "pluginAlias": "@sanity/cli",
2677
+ "pluginName": "@sanity/cli",
2678
+ "pluginType": "core",
2679
+ "strict": true,
2680
+ "enableJsonFlag": false,
2681
+ "isESM": true,
2682
+ "relativePath": [
2683
+ "dist",
2684
+ "commands",
2685
+ "docs",
2686
+ "browse.js"
2687
+ ]
2688
+ },
2689
+ "docs:read": {
2990
2690
  "aliases": [],
2991
2691
  "args": {
2992
- "name": {
2993
- "description": "Name of the dataset to export",
2994
- "name": "name"
2995
- },
2996
- "destination": {
2997
- "description": "Output destination file path",
2998
- "name": "destination"
2692
+ "path": {
2693
+ "description": "Path or URL to article, found in search results and docs content as links",
2694
+ "name": "path",
2695
+ "required": true
2999
2696
  }
3000
2697
  },
3001
- "description": "Export a dataset to a local gzipped tarball. Assets returning 401, 403, or 404 are excluded from the export.",
2698
+ "description": "Read an article in terminal",
3002
2699
  "examples": [
3003
2700
  {
3004
- "command": "<%= config.bin %> <%= command.id %> moviedb localPath.tar.gz",
3005
- "description": "Export dataset \"moviedb\" to localPath.tar.gz"
3006
- },
3007
- {
3008
- "command": "<%= config.bin %> <%= command.id %> moviedb assetless.tar.gz --no-assets",
3009
- "description": "Export dataset without assets"
2701
+ "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation",
2702
+ "description": "Read as markdown in terminal"
3010
2703
  },
3011
2704
  {
3012
- "command": "<%= config.bin %> <%= command.id %> staging staging.tar.gz --raw",
3013
- "description": "Export raw documents without asset reference rewriting"
2705
+ "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation",
2706
+ "description": "Read using full URL"
3014
2707
  },
3015
2708
  {
3016
- "command": "<%= config.bin %> <%= command.id %> staging staging.tar.gz --types products,shops",
3017
- "description": "Export specific document types"
2709
+ "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation --web",
2710
+ "description": "Open in web browser"
3018
2711
  },
3019
2712
  {
3020
- "command": "<%= config.bin %> <%= command.id %> moviedb moviedb.tar.gz --no-strict-asset-verification",
3021
- "description": "Export dataset without aborting on asset verification failures"
2713
+ "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation -w",
2714
+ "description": "Open using full URL in web browser"
3022
2715
  }
3023
2716
  ],
3024
2717
  "flags": {
3025
- "project": {
2718
+ "web": {
3026
2719
  "aliases": [
3027
- "project-id"
2720
+ "w"
3028
2721
  ],
3029
- "char": "p",
3030
- "deprecateAliases": true,
3031
- "description": "Project ID to export dataset from (overrides CLI configuration)",
3032
- "helpGroup": "OVERRIDE",
3033
- "name": "project",
3034
- "hasDynamicHelp": false,
3035
- "helpValue": "<id>",
3036
- "multiple": false,
3037
- "type": "option"
3038
- },
3039
- "asset-concurrency": {
3040
- "description": "Concurrent number of asset downloads",
3041
- "name": "asset-concurrency",
3042
- "default": 8,
3043
- "hasDynamicHelp": false,
3044
- "multiple": false,
3045
- "type": "option"
3046
- },
3047
- "mode": {
3048
- "description": "Export mode ('cursor' is faster for large datasets but may miss concurrent changes)",
3049
- "name": "mode",
3050
- "default": "stream",
3051
- "hasDynamicHelp": false,
2722
+ "description": "Open in a web browser",
2723
+ "name": "web",
2724
+ "allowNo": false,
2725
+ "type": "boolean"
2726
+ }
2727
+ },
2728
+ "hasDynamicHelp": false,
2729
+ "hiddenAliases": [],
2730
+ "id": "docs:read",
2731
+ "pluginAlias": "@sanity/cli",
2732
+ "pluginName": "@sanity/cli",
2733
+ "pluginType": "core",
2734
+ "strict": true,
2735
+ "isESM": true,
2736
+ "relativePath": [
2737
+ "dist",
2738
+ "commands",
2739
+ "docs",
2740
+ "read.js"
2741
+ ]
2742
+ },
2743
+ "docs:search": {
2744
+ "aliases": [],
2745
+ "args": {
2746
+ "query": {
2747
+ "description": "Search query for documentation",
2748
+ "name": "query",
2749
+ "required": true
2750
+ }
2751
+ },
2752
+ "description": "Search Sanity docs",
2753
+ "examples": [
2754
+ {
2755
+ "command": "<%= config.bin %> <%= command.id %> schema",
2756
+ "description": "Search for documentation about schemas"
2757
+ },
2758
+ {
2759
+ "command": "<%= config.bin %> <%= command.id %> \"groq functions\"",
2760
+ "description": "Search with phrase"
2761
+ },
2762
+ {
2763
+ "command": "<%= config.bin %> <%= command.id %> \"deployment\" --limit=5",
2764
+ "description": "Limit search results"
2765
+ }
2766
+ ],
2767
+ "flags": {
2768
+ "limit": {
2769
+ "description": "Maximum number of results to return",
2770
+ "name": "limit",
2771
+ "default": 10,
2772
+ "hasDynamicHelp": false,
3052
2773
  "multiple": false,
3053
- "options": [
3054
- "stream",
3055
- "cursor"
2774
+ "type": "option"
2775
+ }
2776
+ },
2777
+ "hasDynamicHelp": false,
2778
+ "hiddenAliases": [],
2779
+ "id": "docs:search",
2780
+ "pluginAlias": "@sanity/cli",
2781
+ "pluginName": "@sanity/cli",
2782
+ "pluginType": "core",
2783
+ "strict": true,
2784
+ "isESM": true,
2785
+ "relativePath": [
2786
+ "dist",
2787
+ "commands",
2788
+ "docs",
2789
+ "search.js"
2790
+ ]
2791
+ },
2792
+ "documents:create": {
2793
+ "aliases": [],
2794
+ "args": {
2795
+ "file": {
2796
+ "description": "JSON file to create document(s) from",
2797
+ "name": "file",
2798
+ "required": false
2799
+ }
2800
+ },
2801
+ "description": "Create one or more documents",
2802
+ "examples": [
2803
+ {
2804
+ "command": "<%= config.bin %> <%= command.id %> myDocument.json",
2805
+ "description": "Create the document specified in \"myDocument.json\""
2806
+ },
2807
+ {
2808
+ "command": "<%= config.bin %> <%= command.id %>",
2809
+ "description": "Open configured $EDITOR and create the specified document(s)"
2810
+ },
2811
+ {
2812
+ "command": "<%= config.bin %> <%= command.id %> --id myDocId --replace",
2813
+ "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"
2814
+ },
2815
+ {
2816
+ "command": "<%= config.bin %> <%= command.id %> --id myDocId --watch --replace --json5",
2817
+ "description": "Open configured $EDITOR and replace the document with the given content on each save. Use JSON5 file extension and parser for simplified syntax."
2818
+ },
2819
+ {
2820
+ "command": "<%= config.bin %> <%= command.id %> myDocument.json --project abc123",
2821
+ "description": "Create documents in a specific project"
2822
+ }
2823
+ ],
2824
+ "flags": {
2825
+ "project": {
2826
+ "aliases": [
2827
+ "project-id"
3056
2828
  ],
2829
+ "char": "p",
2830
+ "deprecateAliases": true,
2831
+ "description": "Project ID to create document(s) in (overrides CLI configuration)",
2832
+ "helpGroup": "OVERRIDE",
2833
+ "name": "project",
2834
+ "hasDynamicHelp": false,
2835
+ "helpValue": "<id>",
2836
+ "multiple": false,
3057
2837
  "type": "option"
3058
2838
  },
3059
- "no-assets": {
3060
- "description": "Export only non-asset documents and remove references to image assets",
3061
- "name": "no-assets",
3062
- "allowNo": false,
3063
- "type": "boolean"
2839
+ "dataset": {
2840
+ "char": "d",
2841
+ "description": "Dataset to create document(s) in (overrides CLI configuration)",
2842
+ "helpGroup": "OVERRIDE",
2843
+ "name": "dataset",
2844
+ "hasDynamicHelp": false,
2845
+ "helpValue": "<name>",
2846
+ "multiple": false,
2847
+ "type": "option"
3064
2848
  },
3065
- "no-compress": {
3066
- "description": "Skips compressing tarball entries (still generates a gzip file)",
3067
- "name": "no-compress",
3068
- "allowNo": false,
3069
- "type": "boolean"
2849
+ "id": {
2850
+ "description": "Specify a document ID to use. Will fetch remote document ID and populate editor.",
2851
+ "name": "id",
2852
+ "hasDynamicHelp": false,
2853
+ "multiple": false,
2854
+ "type": "option"
3070
2855
  },
3071
- "no-drafts": {
3072
- "description": "Export only published versions of documents",
3073
- "name": "no-drafts",
2856
+ "json5": {
2857
+ "description": "Use JSON5 file type to allow a \"simplified\" version of JSON",
2858
+ "name": "json5",
3074
2859
  "allowNo": false,
3075
2860
  "type": "boolean"
3076
2861
  },
3077
- "no-strict-asset-verification": {
3078
- "description": "Do not abort the export when an asset fails hash or content-length verification",
3079
- "name": "no-strict-asset-verification",
2862
+ "missing": {
2863
+ "description": "On duplicate document IDs, don't modify the target document(s)",
2864
+ "name": "missing",
3080
2865
  "allowNo": false,
3081
2866
  "type": "boolean"
3082
2867
  },
3083
- "overwrite": {
3084
- "description": "Overwrite any file with the same name",
3085
- "name": "overwrite",
2868
+ "replace": {
2869
+ "description": "On duplicate document IDs, replace existing document with specified document(s)",
2870
+ "name": "replace",
3086
2871
  "allowNo": false,
3087
2872
  "type": "boolean"
3088
2873
  },
3089
- "raw": {
3090
- "description": "Extract only documents, without rewriting asset references",
3091
- "name": "raw",
2874
+ "watch": {
2875
+ "description": "Write the documents whenever the target file or buffer changes",
2876
+ "name": "watch",
3092
2877
  "allowNo": false,
3093
2878
  "type": "boolean"
2879
+ }
2880
+ },
2881
+ "hasDynamicHelp": false,
2882
+ "hiddenAliases": [
2883
+ "document:create"
2884
+ ],
2885
+ "id": "documents:create",
2886
+ "pluginAlias": "@sanity/cli",
2887
+ "pluginName": "@sanity/cli",
2888
+ "pluginType": "core",
2889
+ "strict": true,
2890
+ "isESM": true,
2891
+ "relativePath": [
2892
+ "dist",
2893
+ "commands",
2894
+ "documents",
2895
+ "create.js"
2896
+ ]
2897
+ },
2898
+ "documents:delete": {
2899
+ "aliases": [],
2900
+ "args": {
2901
+ "id": {
2902
+ "description": "Document ID to delete",
2903
+ "name": "id",
2904
+ "required": true
3094
2905
  },
3095
- "types": {
3096
- "description": "Defines which document types to export (comma-separated)",
3097
- "name": "types",
2906
+ "ids": {
2907
+ "description": "Additional document IDs to delete",
2908
+ "name": "ids",
2909
+ "required": false
2910
+ }
2911
+ },
2912
+ "description": "Delete one or more documents from the project's configured dataset",
2913
+ "examples": [
2914
+ {
2915
+ "command": "<%= config.bin %> <%= command.id %> myDocId",
2916
+ "description": "Delete the document with the ID \"myDocId\""
2917
+ },
2918
+ {
2919
+ "command": "<%= config.bin %> <%= command.id %> 'myDocId'",
2920
+ "description": "ID wrapped in double or single quote works equally well"
2921
+ },
2922
+ {
2923
+ "command": "<%= config.bin %> <%= command.id %> --dataset=blog someDocId",
2924
+ "description": "Delete document with ID \"someDocId\" from dataset \"blog\""
2925
+ },
2926
+ {
2927
+ "command": "<%= config.bin %> <%= command.id %> doc1 doc2",
2928
+ "description": "Delete the document with ID \"doc1\" and \"doc2\""
2929
+ },
2930
+ {
2931
+ "command": "<%= config.bin %> <%= command.id %> myDocId --project abc123",
2932
+ "description": "Delete a document from a specific project"
2933
+ }
2934
+ ],
2935
+ "flags": {
2936
+ "project": {
2937
+ "aliases": [
2938
+ "project-id"
2939
+ ],
2940
+ "char": "p",
2941
+ "deprecateAliases": true,
2942
+ "description": "Project ID to delete from (overrides CLI configuration)",
2943
+ "helpGroup": "OVERRIDE",
2944
+ "name": "project",
2945
+ "hasDynamicHelp": false,
2946
+ "helpValue": "<id>",
2947
+ "multiple": false,
2948
+ "type": "option"
2949
+ },
2950
+ "dataset": {
2951
+ "char": "d",
2952
+ "description": "Dataset to delete from (overrides CLI configuration)",
2953
+ "helpGroup": "OVERRIDE",
2954
+ "name": "dataset",
3098
2955
  "hasDynamicHelp": false,
2956
+ "helpValue": "<name>",
3099
2957
  "multiple": false,
3100
2958
  "type": "option"
3101
2959
  }
3102
2960
  },
3103
2961
  "hasDynamicHelp": false,
3104
2962
  "hiddenAliases": [
3105
- "dataset:export"
2963
+ "document:delete"
2964
+ ],
2965
+ "id": "documents:delete",
2966
+ "pluginAlias": "@sanity/cli",
2967
+ "pluginName": "@sanity/cli",
2968
+ "pluginType": "core",
2969
+ "strict": false,
2970
+ "isESM": true,
2971
+ "relativePath": [
2972
+ "dist",
2973
+ "commands",
2974
+ "documents",
2975
+ "delete.js"
2976
+ ]
2977
+ },
2978
+ "documents:get": {
2979
+ "aliases": [],
2980
+ "args": {
2981
+ "documentId": {
2982
+ "description": "Document ID to retrieve",
2983
+ "name": "documentId",
2984
+ "required": true
2985
+ }
2986
+ },
2987
+ "description": "Get and print a document by ID",
2988
+ "examples": [
2989
+ {
2990
+ "command": "<%= config.bin %> <%= command.id %> myDocId",
2991
+ "description": "Get the document with ID \"myDocId\""
2992
+ },
2993
+ {
2994
+ "command": "<%= config.bin %> <%= command.id %> myDocId --pretty",
2995
+ "description": "Get document with colorized JSON output"
2996
+ },
2997
+ {
2998
+ "command": "<%= config.bin %> <%= command.id %> myDocId --dataset production",
2999
+ "description": "Get document from a specific dataset"
3000
+ },
3001
+ {
3002
+ "command": "<%= config.bin %> <%= command.id %> myDocId --project abc123",
3003
+ "description": "Get a document from a specific project"
3004
+ }
3005
+ ],
3006
+ "flags": {
3007
+ "project": {
3008
+ "aliases": [
3009
+ "project-id"
3010
+ ],
3011
+ "char": "p",
3012
+ "deprecateAliases": true,
3013
+ "description": "Project ID to get document from (overrides CLI configuration)",
3014
+ "helpGroup": "OVERRIDE",
3015
+ "name": "project",
3016
+ "hasDynamicHelp": false,
3017
+ "helpValue": "<id>",
3018
+ "multiple": false,
3019
+ "type": "option"
3020
+ },
3021
+ "dataset": {
3022
+ "char": "d",
3023
+ "description": "Dataset to get document from (overrides CLI configuration)",
3024
+ "helpGroup": "OVERRIDE",
3025
+ "name": "dataset",
3026
+ "hasDynamicHelp": false,
3027
+ "helpValue": "<name>",
3028
+ "multiple": false,
3029
+ "type": "option"
3030
+ },
3031
+ "pretty": {
3032
+ "description": "Colorize JSON output",
3033
+ "name": "pretty",
3034
+ "allowNo": false,
3035
+ "type": "boolean"
3036
+ }
3037
+ },
3038
+ "hasDynamicHelp": false,
3039
+ "hiddenAliases": [
3040
+ "document:get"
3106
3041
  ],
3107
- "id": "datasets:export",
3042
+ "id": "documents:get",
3108
3043
  "pluginAlias": "@sanity/cli",
3109
3044
  "pluginName": "@sanity/cli",
3110
3045
  "pluginType": "core",
@@ -3113,179 +3048,124 @@
3113
3048
  "relativePath": [
3114
3049
  "dist",
3115
3050
  "commands",
3116
- "datasets",
3117
- "export.js"
3051
+ "documents",
3052
+ "get.js"
3118
3053
  ]
3119
3054
  },
3120
- "datasets:import": {
3055
+ "documents:query": {
3121
3056
  "aliases": [],
3122
3057
  "args": {
3123
- "source": {
3124
- "description": "Source file (use \"-\" for stdin)",
3125
- "name": "source",
3058
+ "query": {
3059
+ "description": "GROQ query to run against the dataset",
3060
+ "name": "query",
3126
3061
  "required": true
3127
- },
3128
- "targetDataset": {
3129
- "description": "Target dataset (prefer --dataset flag instead)",
3130
- "name": "targetDataset",
3131
- "required": false
3132
3062
  }
3133
3063
  },
3134
- "description": "Import documents to a Sanity dataset",
3064
+ "description": "Query for documents",
3135
3065
  "examples": [
3136
3066
  {
3137
- "command": "<%= config.bin %> <%= command.id %> -d staging my-dataset.ndjson",
3138
- "description": "Import \"./my-dataset.ndjson\" into dataset \"staging\""
3067
+ "command": "<%= config.bin %> <%= command.id %> '*[_type == \"movie\"][0..4]'",
3068
+ "description": "Fetch 5 documents of type \"movie\""
3139
3069
  },
3140
3070
  {
3141
- "command": "cat my-dataset.ndjson | <%= config.bin %> <%= command.id %> -d test -",
3142
- "description": "Import into dataset \"test\" from stdin"
3071
+ "command": "<%= config.bin %> <%= command.id %> '*[_type == \"movie\"]|order(releaseDate asc)[0]{title}' --dataset staging",
3072
+ "description": "Fetch title of the oldest movie in the dataset named \"staging\""
3143
3073
  },
3144
3074
  {
3145
- "command": "<%= config.bin %> <%= command.id %> -p projectId -d staging my-dataset.ndjson",
3146
- "description": "Import with explicit project ID (overrides CLI configuration)"
3075
+ "command": "<%= config.bin %> <%= command.id %> '*[_id == \"header\"] { \"headerText\": pt::text(body) }' --api-version v2021-06-07",
3076
+ "description": "Use API version v2021-06-07 and do a query"
3147
3077
  },
3148
3078
  {
3149
- "command": "<%= config.bin %> <%= command.id %> -d staging -t someSecretToken my-dataset.ndjson",
3150
- "description": "Import with an explicit token (e.g. for CI/CD)"
3079
+ "command": "<%= config.bin %> <%= command.id %> '*[_type == \"post\"]' --project abc123 --dataset production",
3080
+ "description": "Query documents in a specific project and dataset"
3151
3081
  }
3152
3082
  ],
3153
3083
  "flags": {
3154
- "allow-assets-in-different-dataset": {
3155
- "description": "Allow asset documents to reference different project/dataset",
3156
- "name": "allow-assets-in-different-dataset",
3157
- "allowNo": false,
3158
- "type": "boolean"
3159
- },
3160
- "allow-failing-assets": {
3161
- "description": "Skip assets that cannot be fetched/uploaded",
3162
- "name": "allow-failing-assets",
3163
- "allowNo": false,
3164
- "type": "boolean"
3165
- },
3166
- "allow-replacement-characters": {
3167
- "description": "Allow unicode replacement characters in imported documents",
3168
- "name": "allow-replacement-characters",
3169
- "allowNo": false,
3170
- "type": "boolean"
3171
- },
3172
- "allow-system-documents": {
3173
- "description": "Imports system documents",
3174
- "name": "allow-system-documents",
3175
- "allowNo": false,
3176
- "type": "boolean"
3177
- },
3178
- "asset-concurrency": {
3179
- "description": "Number of parallel asset imports",
3180
- "name": "asset-concurrency",
3084
+ "project": {
3085
+ "aliases": [
3086
+ "project-id"
3087
+ ],
3088
+ "char": "p",
3089
+ "deprecateAliases": true,
3090
+ "description": "Project ID to query (overrides CLI configuration)",
3091
+ "helpGroup": "OVERRIDE",
3092
+ "name": "project",
3181
3093
  "hasDynamicHelp": false,
3094
+ "helpValue": "<id>",
3182
3095
  "multiple": false,
3183
3096
  "type": "option"
3184
3097
  },
3185
3098
  "dataset": {
3186
3099
  "char": "d",
3187
- "description": "Dataset to import to",
3100
+ "description": "Dataset to query (overrides CLI configuration)",
3101
+ "helpGroup": "OVERRIDE",
3188
3102
  "name": "dataset",
3189
3103
  "hasDynamicHelp": false,
3190
3104
  "helpValue": "<name>",
3191
3105
  "multiple": false,
3192
3106
  "type": "option"
3193
3107
  },
3194
- "missing": {
3195
- "description": "Skip documents that already exist",
3196
- "exclusive": [
3197
- "replace"
3198
- ],
3199
- "name": "missing",
3108
+ "anonymous": {
3109
+ "description": "Send the query without any authorization token",
3110
+ "name": "anonymous",
3200
3111
  "allowNo": false,
3201
3112
  "type": "boolean"
3202
3113
  },
3203
- "project": {
3204
- "aliases": [
3205
- "project-id"
3206
- ],
3207
- "char": "p",
3208
- "deprecateAliases": true,
3209
- "description": "Project ID to import to (overrides CLI configuration)",
3210
- "helpGroup": "OVERRIDE",
3211
- "name": "project",
3114
+ "api-version": {
3115
+ "description": "API version to use (defaults to 2025-08-15)",
3116
+ "name": "api-version",
3212
3117
  "hasDynamicHelp": false,
3213
- "helpValue": "<id>",
3214
3118
  "multiple": false,
3215
3119
  "type": "option"
3216
3120
  },
3217
- "replace": {
3218
- "description": "Replace documents with the same IDs",
3219
- "exclusive": [
3220
- "missing"
3221
- ],
3222
- "name": "replace",
3223
- "allowNo": false,
3224
- "type": "boolean"
3225
- },
3226
- "replace-assets": {
3227
- "description": "Skip reuse of existing assets",
3228
- "name": "replace-assets",
3229
- "allowNo": false,
3230
- "type": "boolean"
3231
- },
3232
- "skip-cross-dataset-references": {
3233
- "description": "Skips references to other datasets",
3234
- "name": "skip-cross-dataset-references",
3121
+ "pretty": {
3122
+ "description": "Colorize JSON output",
3123
+ "name": "pretty",
3235
3124
  "allowNo": false,
3236
3125
  "type": "boolean"
3237
- },
3238
- "token": {
3239
- "char": "t",
3240
- "description": "Token to authenticate with",
3241
- "env": "SANITY_IMPORT_TOKEN",
3242
- "name": "token",
3243
- "required": false,
3244
- "hasDynamicHelp": false,
3245
- "multiple": false,
3246
- "type": "option"
3247
3126
  }
3248
3127
  },
3249
3128
  "hasDynamicHelp": false,
3250
3129
  "hiddenAliases": [
3251
- "dataset:import"
3130
+ "document:query"
3252
3131
  ],
3253
- "id": "datasets:import",
3132
+ "id": "documents:query",
3254
3133
  "pluginAlias": "@sanity/cli",
3255
3134
  "pluginName": "@sanity/cli",
3256
3135
  "pluginType": "core",
3257
3136
  "strict": true,
3258
- "telemetry": {
3259
- "redactedFlags": [
3260
- {
3261
- "canonical": "--token",
3262
- "flags": [
3263
- "--token",
3264
- "-t"
3265
- ]
3266
- }
3267
- ]
3268
- },
3269
3137
  "isESM": true,
3270
3138
  "relativePath": [
3271
3139
  "dist",
3272
3140
  "commands",
3273
- "datasets",
3274
- "import.js"
3141
+ "documents",
3142
+ "query.js"
3275
3143
  ]
3276
3144
  },
3277
- "datasets:list": {
3145
+ "documents:validate": {
3278
3146
  "aliases": [],
3279
3147
  "args": {},
3280
- "description": "List datasets for the project",
3148
+ "description": "Validate documents in a dataset against the studio schema",
3281
3149
  "examples": [
3282
3150
  {
3283
- "command": "<%= config.bin %> <%= command.id %>",
3284
- "description": "List datasets for the project"
3151
+ "command": "<%= config.bin %> <%= command.id %> --workspace default",
3152
+ "description": "Validates all documents in a Sanity project with more than one workspace"
3285
3153
  },
3286
3154
  {
3287
- "command": "<%= config.bin %> <%= command.id %> --project abc123",
3288
- "description": "List datasets for a specific project"
3155
+ "command": "<%= config.bin %> <%= command.id %> --workspace default --dataset staging",
3156
+ "description": "Override the dataset specified in the workspace"
3157
+ },
3158
+ {
3159
+ "command": "<%= config.bin %> <%= command.id %> --yes > report.txt",
3160
+ "description": "Save the results of the report into a file"
3161
+ },
3162
+ {
3163
+ "command": "<%= config.bin %> <%= command.id %> --level info",
3164
+ "description": "Report out info level validation markers too"
3165
+ },
3166
+ {
3167
+ "command": "<%= config.bin %> <%= command.id %> --project abc123 --dataset production",
3168
+ "description": "Validate documents in a specific project and dataset"
3289
3169
  }
3290
3170
  ],
3291
3171
  "flags": {
@@ -3295,95 +3175,204 @@
3295
3175
  ],
3296
3176
  "char": "p",
3297
3177
  "deprecateAliases": true,
3298
- "description": "Project ID to list datasets for (overrides CLI configuration)",
3299
- "helpGroup": "OVERRIDE",
3178
+ "description": "Override the project ID used. By default, this is derived from the given workspace",
3300
3179
  "name": "project",
3301
3180
  "hasDynamicHelp": false,
3302
3181
  "helpValue": "<id>",
3303
3182
  "multiple": false,
3304
3183
  "type": "option"
3184
+ },
3185
+ "dataset": {
3186
+ "char": "d",
3187
+ "description": "Override the dataset used. By default, this is derived from the given workspace",
3188
+ "name": "dataset",
3189
+ "hasDynamicHelp": false,
3190
+ "helpValue": "<name>",
3191
+ "multiple": false,
3192
+ "type": "option"
3193
+ },
3194
+ "file": {
3195
+ "description": "Path to an NDJSON file or tar archive containing an NDJSON file (optionally gzip-compressed)",
3196
+ "name": "file",
3197
+ "hasDynamicHelp": false,
3198
+ "multiple": false,
3199
+ "type": "option"
3200
+ },
3201
+ "format": {
3202
+ "description": "The output format used to print the found validation markers and report progress",
3203
+ "name": "format",
3204
+ "hasDynamicHelp": false,
3205
+ "multiple": false,
3206
+ "options": [
3207
+ "json",
3208
+ "ndjson",
3209
+ "pretty"
3210
+ ],
3211
+ "type": "option"
3212
+ },
3213
+ "level": {
3214
+ "description": "The minimum level reported. Defaults to warning",
3215
+ "name": "level",
3216
+ "default": "warning",
3217
+ "hasDynamicHelp": false,
3218
+ "multiple": false,
3219
+ "options": [
3220
+ "error",
3221
+ "warning",
3222
+ "info"
3223
+ ],
3224
+ "type": "option"
3225
+ },
3226
+ "max-custom-validation-concurrency": {
3227
+ "description": "Specify how many custom validators can run concurrently",
3228
+ "name": "max-custom-validation-concurrency",
3229
+ "default": 5,
3230
+ "hasDynamicHelp": false,
3231
+ "multiple": false,
3232
+ "type": "option"
3233
+ },
3234
+ "max-fetch-concurrency": {
3235
+ "description": "Specify how many `client.fetch` requests are allowed to run concurrently",
3236
+ "name": "max-fetch-concurrency",
3237
+ "default": 25,
3238
+ "hasDynamicHelp": false,
3239
+ "multiple": false,
3240
+ "type": "option"
3241
+ },
3242
+ "workspace": {
3243
+ "description": "The name of the workspace to use when downloading and validating all documents",
3244
+ "name": "workspace",
3245
+ "hasDynamicHelp": false,
3246
+ "multiple": false,
3247
+ "type": "option"
3248
+ },
3249
+ "yes": {
3250
+ "char": "y",
3251
+ "description": "Skips the first confirmation prompt",
3252
+ "name": "yes",
3253
+ "allowNo": false,
3254
+ "type": "boolean"
3305
3255
  }
3306
3256
  },
3307
3257
  "hasDynamicHelp": false,
3308
3258
  "hiddenAliases": [
3309
- "dataset:list"
3259
+ "document:validate"
3310
3260
  ],
3311
- "id": "datasets:list",
3261
+ "id": "documents:validate",
3312
3262
  "pluginAlias": "@sanity/cli",
3313
3263
  "pluginName": "@sanity/cli",
3314
3264
  "pluginType": "core",
3315
3265
  "strict": true,
3266
+ "telemetry": {
3267
+ "redactedFlags": [
3268
+ {
3269
+ "canonical": "--file",
3270
+ "flags": [
3271
+ "--file"
3272
+ ]
3273
+ }
3274
+ ]
3275
+ },
3316
3276
  "isESM": true,
3317
3277
  "relativePath": [
3318
3278
  "dist",
3319
3279
  "commands",
3320
- "datasets",
3321
- "list.js"
3280
+ "documents",
3281
+ "validate.js"
3322
3282
  ]
3323
3283
  },
3324
- "docs:browse": {
3284
+ "graphql:deploy": {
3325
3285
  "aliases": [],
3326
3286
  "args": {},
3327
- "description": "Open Sanity docs in your browser",
3328
- "flags": {},
3329
- "hasDynamicHelp": false,
3330
- "hiddenAliases": [],
3331
- "id": "docs:browse",
3332
- "pluginAlias": "@sanity/cli",
3333
- "pluginName": "@sanity/cli",
3334
- "pluginType": "core",
3335
- "strict": true,
3336
- "enableJsonFlag": false,
3337
- "isESM": true,
3338
- "relativePath": [
3339
- "dist",
3340
- "commands",
3341
- "docs",
3342
- "browse.js"
3343
- ]
3344
- },
3345
- "docs:read": {
3346
- "aliases": [],
3347
- "args": {
3348
- "path": {
3349
- "description": "Path or URL to article, found in search results and docs content as links",
3350
- "name": "path",
3351
- "required": true
3352
- }
3353
- },
3354
- "description": "Read an article in terminal",
3287
+ "description": "Deploy a GraphQL API from the current Sanity schema",
3355
3288
  "examples": [
3356
3289
  {
3357
- "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation",
3358
- "description": "Read as markdown in terminal"
3290
+ "command": "<%= config.bin %> <%= command.id %>",
3291
+ "description": "Deploy all defined GraphQL APIs"
3359
3292
  },
3360
3293
  {
3361
- "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation",
3362
- "description": "Read using full URL"
3294
+ "command": "<%= config.bin %> <%= command.id %> --dry-run",
3295
+ "description": "Validate defined GraphQL APIs, check for breaking changes, skip deploy"
3363
3296
  },
3364
3297
  {
3365
- "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation --web",
3366
- "description": "Open in web browser"
3298
+ "command": "<%= config.bin %> <%= command.id %> --api staging --api ios",
3299
+ "description": "Deploy only the GraphQL APIs with the IDs \"staging\" and \"ios\""
3367
3300
  },
3368
3301
  {
3369
- "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation -w",
3370
- "description": "Open using full URL in web browser"
3302
+ "command": "<%= config.bin %> <%= command.id %> --playground",
3303
+ "description": "Deploy all defined GraphQL APIs, overriding any playground setting"
3371
3304
  }
3372
3305
  ],
3373
3306
  "flags": {
3374
- "web": {
3375
- "aliases": [
3376
- "w"
3307
+ "api": {
3308
+ "description": "Only deploy API with this ID (can be specified multiple times)",
3309
+ "name": "api",
3310
+ "hasDynamicHelp": false,
3311
+ "multiple": true,
3312
+ "type": "option"
3313
+ },
3314
+ "dataset": {
3315
+ "char": "d",
3316
+ "description": "Deploy API for the given dataset",
3317
+ "name": "dataset",
3318
+ "hasDynamicHelp": false,
3319
+ "helpValue": "<name>",
3320
+ "multiple": false,
3321
+ "type": "option"
3322
+ },
3323
+ "dry-run": {
3324
+ "description": "Validate defined GraphQL APIs, check for breaking changes, skip deploy",
3325
+ "name": "dry-run",
3326
+ "allowNo": false,
3327
+ "type": "boolean"
3328
+ },
3329
+ "force": {
3330
+ "description": "Deploy API without confirming breaking changes",
3331
+ "name": "force",
3332
+ "allowNo": false,
3333
+ "type": "boolean"
3334
+ },
3335
+ "generation": {
3336
+ "description": "API generation to deploy (defaults to \"gen3\")",
3337
+ "name": "generation",
3338
+ "hasDynamicHelp": false,
3339
+ "multiple": false,
3340
+ "options": [
3341
+ "gen1",
3342
+ "gen2",
3343
+ "gen3"
3377
3344
  ],
3378
- "description": "Open in a web browser",
3379
- "name": "web",
3345
+ "type": "option"
3346
+ },
3347
+ "non-null-document-fields": {
3348
+ "description": "Use non-null document fields (_id, _type etc)",
3349
+ "name": "non-null-document-fields",
3350
+ "allowNo": false,
3351
+ "type": "boolean"
3352
+ },
3353
+ "playground": {
3354
+ "description": "Enable GraphQL playground for easier debugging",
3355
+ "name": "playground",
3356
+ "allowNo": true,
3357
+ "type": "boolean"
3358
+ },
3359
+ "tag": {
3360
+ "description": "Deploy API(s) to given tag (defaults to \"default\")",
3361
+ "name": "tag",
3362
+ "hasDynamicHelp": false,
3363
+ "multiple": false,
3364
+ "type": "option"
3365
+ },
3366
+ "with-union-cache": {
3367
+ "description": "Cache union types (faster for schemas with many self-references)",
3368
+ "name": "with-union-cache",
3380
3369
  "allowNo": false,
3381
3370
  "type": "boolean"
3382
3371
  }
3383
3372
  },
3384
3373
  "hasDynamicHelp": false,
3385
3374
  "hiddenAliases": [],
3386
- "id": "docs:read",
3375
+ "id": "graphql:deploy",
3387
3376
  "pluginAlias": "@sanity/cli",
3388
3377
  "pluginName": "@sanity/cli",
3389
3378
  "pluginType": "core",
@@ -3392,47 +3381,43 @@
3392
3381
  "relativePath": [
3393
3382
  "dist",
3394
3383
  "commands",
3395
- "docs",
3396
- "read.js"
3384
+ "graphql",
3385
+ "deploy.js"
3397
3386
  ]
3398
3387
  },
3399
- "docs:search": {
3388
+ "graphql:list": {
3400
3389
  "aliases": [],
3401
- "args": {
3402
- "query": {
3403
- "description": "Search query for documentation",
3404
- "name": "query",
3405
- "required": true
3406
- }
3407
- },
3408
- "description": "Search Sanity docs",
3390
+ "args": {},
3391
+ "description": "List deployed GraphQL endpoints for the project",
3409
3392
  "examples": [
3410
3393
  {
3411
- "command": "<%= config.bin %> <%= command.id %> schema",
3412
- "description": "Search for documentation about schemas"
3413
- },
3414
- {
3415
- "command": "<%= config.bin %> <%= command.id %> \"groq functions\"",
3416
- "description": "Search with phrase"
3394
+ "command": "<%= config.bin %> <%= command.id %>",
3395
+ "description": "List GraphQL endpoints for the project"
3417
3396
  },
3418
3397
  {
3419
- "command": "<%= config.bin %> <%= command.id %> \"deployment\" --limit=5",
3420
- "description": "Limit search results"
3398
+ "command": "<%= config.bin %> <%= command.id %> --project abc123",
3399
+ "description": "List GraphQL endpoints for a specific project"
3421
3400
  }
3422
3401
  ],
3423
3402
  "flags": {
3424
- "limit": {
3425
- "description": "Maximum number of results to return",
3426
- "name": "limit",
3427
- "default": 10,
3403
+ "project": {
3404
+ "aliases": [
3405
+ "project-id"
3406
+ ],
3407
+ "char": "p",
3408
+ "deprecateAliases": true,
3409
+ "description": "Project ID to list GraphQL endpoints for (overrides CLI configuration)",
3410
+ "helpGroup": "OVERRIDE",
3411
+ "name": "project",
3428
3412
  "hasDynamicHelp": false,
3413
+ "helpValue": "<id>",
3429
3414
  "multiple": false,
3430
3415
  "type": "option"
3431
3416
  }
3432
3417
  },
3433
3418
  "hasDynamicHelp": false,
3434
3419
  "hiddenAliases": [],
3435
- "id": "docs:search",
3420
+ "id": "graphql:list",
3436
3421
  "pluginAlias": "@sanity/cli",
3437
3422
  "pluginName": "@sanity/cli",
3438
3423
  "pluginType": "core",
@@ -3441,40 +3426,38 @@
3441
3426
  "relativePath": [
3442
3427
  "dist",
3443
3428
  "commands",
3444
- "docs",
3445
- "search.js"
3429
+ "graphql",
3430
+ "list.js"
3446
3431
  ]
3447
3432
  },
3448
- "documents:create": {
3433
+ "graphql:undeploy": {
3449
3434
  "aliases": [],
3450
- "args": {
3451
- "file": {
3452
- "description": "JSON file to create document(s) from",
3453
- "name": "file",
3454
- "required": false
3455
- }
3456
- },
3457
- "description": "Create one or more documents",
3435
+ "args": {},
3436
+ "description": "Remove a deployed GraphQL API",
3458
3437
  "examples": [
3459
3438
  {
3460
- "command": "<%= config.bin %> <%= command.id %> myDocument.json",
3461
- "description": "Create the document specified in \"myDocument.json\""
3439
+ "command": "<%= config.bin %> <%= command.id %>",
3440
+ "description": "Undeploy GraphQL API for current project and dataset"
3462
3441
  },
3463
3442
  {
3464
- "command": "<%= config.bin %> <%= command.id %>",
3465
- "description": "Open configured $EDITOR and create the specified document(s)"
3443
+ "command": "<%= config.bin %> <%= command.id %> --api ios",
3444
+ "description": "Undeploy API with ID \"ios\""
3466
3445
  },
3467
3446
  {
3468
- "command": "<%= config.bin %> <%= command.id %> --id myDocId --replace",
3469
- "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"
3447
+ "command": "<%= config.bin %> <%= command.id %> --dataset staging",
3448
+ "description": "Undeploy GraphQL API for staging dataset"
3470
3449
  },
3471
3450
  {
3472
- "command": "<%= config.bin %> <%= command.id %> --id myDocId --watch --replace --json5",
3473
- "description": "Open configured $EDITOR and replace the document with the given content on each save. Use JSON5 file extension and parser for simplified syntax."
3451
+ "command": "<%= config.bin %> <%= command.id %> --dataset staging --tag next",
3452
+ "description": "Undeploy GraphQL API for staging dataset with \"next\" tag"
3474
3453
  },
3475
3454
  {
3476
- "command": "<%= config.bin %> <%= command.id %> myDocument.json --project abc123",
3477
- "description": "Create documents in a specific project"
3455
+ "command": "<%= config.bin %> <%= command.id %> --force",
3456
+ "description": "Undeploy GraphQL API without confirmation prompt"
3457
+ },
3458
+ {
3459
+ "command": "<%= config.bin %> <%= command.id %> --project abc123 --dataset production",
3460
+ "description": "Undeploy GraphQL API for a specific project and dataset"
3478
3461
  }
3479
3462
  ],
3480
3463
  "flags": {
@@ -3484,7 +3467,7 @@
3484
3467
  ],
3485
3468
  "char": "p",
3486
3469
  "deprecateAliases": true,
3487
- "description": "Project ID to create document(s) in (overrides CLI configuration)",
3470
+ "description": "Project ID to undeploy GraphQL API from (overrides CLI configuration)",
3488
3471
  "helpGroup": "OVERRIDE",
3489
3472
  "name": "project",
3490
3473
  "hasDynamicHelp": false,
@@ -3492,53 +3475,46 @@
3492
3475
  "multiple": false,
3493
3476
  "type": "option"
3494
3477
  },
3478
+ "api": {
3479
+ "description": "Undeploy API with this ID",
3480
+ "exclusive": [
3481
+ "project"
3482
+ ],
3483
+ "name": "api",
3484
+ "required": false,
3485
+ "hasDynamicHelp": false,
3486
+ "multiple": false,
3487
+ "type": "option"
3488
+ },
3495
3489
  "dataset": {
3496
3490
  "char": "d",
3497
- "description": "Dataset to create document(s) in (overrides CLI configuration)",
3491
+ "description": "Dataset to undeploy GraphQL API from (overrides CLI configuration)",
3498
3492
  "helpGroup": "OVERRIDE",
3499
3493
  "name": "dataset",
3500
3494
  "hasDynamicHelp": false,
3501
3495
  "helpValue": "<name>",
3502
3496
  "multiple": false,
3503
- "type": "option"
3504
- },
3505
- "id": {
3506
- "description": "Specify a document ID to use. Will fetch remote document ID and populate editor.",
3507
- "name": "id",
3508
- "hasDynamicHelp": false,
3509
- "multiple": false,
3510
- "type": "option"
3511
- },
3512
- "json5": {
3513
- "description": "Use JSON5 file type to allow a \"simplified\" version of JSON",
3514
- "name": "json5",
3515
- "allowNo": false,
3516
- "type": "boolean"
3517
- },
3518
- "missing": {
3519
- "description": "On duplicate document IDs, don't modify the target document(s)",
3520
- "name": "missing",
3521
- "allowNo": false,
3522
- "type": "boolean"
3523
- },
3524
- "replace": {
3525
- "description": "On duplicate document IDs, replace existing document with specified document(s)",
3526
- "name": "replace",
3527
- "allowNo": false,
3528
- "type": "boolean"
3497
+ "type": "option"
3529
3498
  },
3530
- "watch": {
3531
- "description": "Write the documents whenever the target file or buffer changes",
3532
- "name": "watch",
3499
+ "force": {
3500
+ "description": "Skip confirmation prompt",
3501
+ "name": "force",
3533
3502
  "allowNo": false,
3534
3503
  "type": "boolean"
3504
+ },
3505
+ "tag": {
3506
+ "description": "Tag to undeploy GraphQL API from",
3507
+ "name": "tag",
3508
+ "required": false,
3509
+ "default": "default",
3510
+ "hasDynamicHelp": false,
3511
+ "multiple": false,
3512
+ "type": "option"
3535
3513
  }
3536
3514
  },
3537
3515
  "hasDynamicHelp": false,
3538
- "hiddenAliases": [
3539
- "document:create"
3540
- ],
3541
- "id": "documents:create",
3516
+ "hiddenAliases": [],
3517
+ "id": "graphql:undeploy",
3542
3518
  "pluginAlias": "@sanity/cli",
3543
3519
  "pluginName": "@sanity/cli",
3544
3520
  "pluginType": "core",
@@ -3547,45 +3523,61 @@
3547
3523
  "relativePath": [
3548
3524
  "dist",
3549
3525
  "commands",
3550
- "documents",
3551
- "create.js"
3526
+ "graphql",
3527
+ "undeploy.js"
3552
3528
  ]
3553
3529
  },
3554
- "documents:delete": {
3530
+ "datasets:copy": {
3555
3531
  "aliases": [],
3556
3532
  "args": {
3557
- "id": {
3558
- "description": "Document ID to delete",
3559
- "name": "id",
3560
- "required": true
3533
+ "source": {
3534
+ "description": "Name of the dataset to copy from",
3535
+ "name": "source",
3536
+ "required": false
3561
3537
  },
3562
- "ids": {
3563
- "description": "Additional document IDs to delete",
3564
- "name": "ids",
3538
+ "target": {
3539
+ "description": "Name of the dataset to copy to",
3540
+ "name": "target",
3565
3541
  "required": false
3566
3542
  }
3567
3543
  },
3568
- "description": "Delete one or more documents from the project's configured dataset",
3544
+ "description": "Copy a dataset or manage copy jobs",
3569
3545
  "examples": [
3570
3546
  {
3571
- "command": "<%= config.bin %> <%= command.id %> myDocId",
3572
- "description": "Delete the document with the ID \"myDocId\""
3547
+ "command": "<%= config.bin %> <%= command.id %>",
3548
+ "description": "Interactively copy a dataset"
3573
3549
  },
3574
3550
  {
3575
- "command": "<%= config.bin %> <%= command.id %> 'myDocId'",
3576
- "description": "ID wrapped in double or single quote works equally well"
3551
+ "command": "<%= config.bin %> <%= command.id %> source-dataset",
3552
+ "description": "Copy from source-dataset (prompts for target)"
3577
3553
  },
3578
3554
  {
3579
- "command": "<%= config.bin %> <%= command.id %> --dataset=blog someDocId",
3580
- "description": "Delete document with ID \"someDocId\" from dataset \"blog\""
3555
+ "command": "<%= config.bin %> <%= command.id %> source-dataset target-dataset",
3556
+ "description": "Copy from source-dataset to target-dataset"
3581
3557
  },
3582
3558
  {
3583
- "command": "<%= config.bin %> <%= command.id %> doc1 doc2",
3584
- "description": "Delete the document with ID \"doc1\" and \"doc2\""
3559
+ "command": "<%= config.bin %> <%= command.id %> --skip-history source target",
3560
+ "description": "Copy without preserving document history (faster for large datasets)"
3585
3561
  },
3586
3562
  {
3587
- "command": "<%= config.bin %> <%= command.id %> myDocId --project abc123",
3588
- "description": "Delete a document from a specific project"
3563
+ "command": "<%= config.bin %> <%= command.id %> --skip-content-releases source target",
3564
+ "description": "Copy without content release documents"
3565
+ },
3566
+ {
3567
+ "command": "<%= config.bin %> <%= command.id %> --detach source target",
3568
+ "description": "Start copy job without waiting for completion"
3569
+ },
3570
+ {
3571
+ "command": "<%= config.bin %> <%= command.id %> --attach <job-id>",
3572
+ "description": "Attach to a running copy job to follow progress"
3573
+ },
3574
+ {
3575
+ "command": "<%= config.bin %> <%= command.id %> --list",
3576
+ "description": "List all dataset copy jobs"
3577
+ },
3578
+ {
3579
+ "command": "<%= config.bin %> <%= command.id %> --list --offset 2 --limit 10",
3580
+ "description": "List copy jobs with pagination"
3589
3581
  }
3590
3582
  ],
3591
3583
  "flags": {
@@ -3595,7 +3587,7 @@
3595
3587
  ],
3596
3588
  "char": "p",
3597
3589
  "deprecateAliases": true,
3598
- "description": "Project ID to delete from (overrides CLI configuration)",
3590
+ "description": "Project ID to copy dataset in (overrides CLI configuration)",
3599
3591
  "helpGroup": "OVERRIDE",
3600
3592
  "name": "project",
3601
3593
  "hasDynamicHelp": false,
@@ -3603,60 +3595,126 @@
3603
3595
  "multiple": false,
3604
3596
  "type": "option"
3605
3597
  },
3606
- "dataset": {
3607
- "char": "d",
3608
- "description": "Dataset to delete from (overrides CLI configuration)",
3609
- "helpGroup": "OVERRIDE",
3610
- "name": "dataset",
3598
+ "attach": {
3599
+ "description": "Attach to the running copy process to show progress",
3600
+ "exclusive": [
3601
+ "list",
3602
+ "detach",
3603
+ "skip-history"
3604
+ ],
3605
+ "name": "attach",
3606
+ "required": false,
3607
+ "hasDynamicHelp": false,
3608
+ "multiple": false,
3609
+ "type": "option"
3610
+ },
3611
+ "detach": {
3612
+ "description": "Start the copy without waiting for it to finish",
3613
+ "exclusive": [
3614
+ "list",
3615
+ "attach"
3616
+ ],
3617
+ "name": "detach",
3618
+ "required": false,
3619
+ "allowNo": false,
3620
+ "type": "boolean"
3621
+ },
3622
+ "limit": {
3623
+ "dependsOn": [
3624
+ "list"
3625
+ ],
3626
+ "description": "Maximum number of jobs returned (default 10, max 1000)",
3627
+ "name": "limit",
3628
+ "required": false,
3629
+ "hasDynamicHelp": false,
3630
+ "multiple": false,
3631
+ "type": "option"
3632
+ },
3633
+ "list": {
3634
+ "description": "Lists all dataset copy jobs",
3635
+ "exclusive": [
3636
+ "attach",
3637
+ "detach",
3638
+ "skip-history"
3639
+ ],
3640
+ "name": "list",
3641
+ "required": false,
3642
+ "allowNo": false,
3643
+ "type": "boolean"
3644
+ },
3645
+ "offset": {
3646
+ "dependsOn": [
3647
+ "list"
3648
+ ],
3649
+ "description": "Start position in the list of jobs (default 0)",
3650
+ "name": "offset",
3651
+ "required": false,
3611
3652
  "hasDynamicHelp": false,
3612
- "helpValue": "<name>",
3613
3653
  "multiple": false,
3614
3654
  "type": "option"
3655
+ },
3656
+ "skip-content-releases": {
3657
+ "description": "Don't copy content release documents to the target dataset",
3658
+ "exclusive": [
3659
+ "list",
3660
+ "attach"
3661
+ ],
3662
+ "name": "skip-content-releases",
3663
+ "required": false,
3664
+ "allowNo": false,
3665
+ "type": "boolean"
3666
+ },
3667
+ "skip-history": {
3668
+ "description": "Don't preserve document history on copy",
3669
+ "exclusive": [
3670
+ "list",
3671
+ "attach"
3672
+ ],
3673
+ "name": "skip-history",
3674
+ "required": false,
3675
+ "allowNo": false,
3676
+ "type": "boolean"
3615
3677
  }
3616
3678
  },
3617
3679
  "hasDynamicHelp": false,
3618
3680
  "hiddenAliases": [
3619
- "document:delete"
3681
+ "dataset:copy"
3620
3682
  ],
3621
- "id": "documents:delete",
3683
+ "id": "datasets:copy",
3622
3684
  "pluginAlias": "@sanity/cli",
3623
3685
  "pluginName": "@sanity/cli",
3624
3686
  "pluginType": "core",
3625
- "strict": false,
3687
+ "strict": true,
3626
3688
  "isESM": true,
3627
3689
  "relativePath": [
3628
3690
  "dist",
3629
3691
  "commands",
3630
- "documents",
3631
- "delete.js"
3692
+ "datasets",
3693
+ "copy.js"
3632
3694
  ]
3633
3695
  },
3634
- "documents:get": {
3696
+ "datasets:create": {
3635
3697
  "aliases": [],
3636
3698
  "args": {
3637
- "documentId": {
3638
- "description": "Document ID to retrieve",
3639
- "name": "documentId",
3640
- "required": true
3699
+ "name": {
3700
+ "description": "Name of the dataset to create",
3701
+ "name": "name",
3702
+ "required": false
3641
3703
  }
3642
3704
  },
3643
- "description": "Get and print a document by ID",
3705
+ "description": "Create a new dataset for the project",
3644
3706
  "examples": [
3645
3707
  {
3646
- "command": "<%= config.bin %> <%= command.id %> myDocId",
3647
- "description": "Get the document with ID \"myDocId\""
3648
- },
3649
- {
3650
- "command": "<%= config.bin %> <%= command.id %> myDocId --pretty",
3651
- "description": "Get document with colorized JSON output"
3708
+ "command": "<%= config.bin %> <%= command.id %>",
3709
+ "description": "Interactively create a dataset"
3652
3710
  },
3653
3711
  {
3654
- "command": "<%= config.bin %> <%= command.id %> myDocId --dataset production",
3655
- "description": "Get document from a specific dataset"
3712
+ "command": "<%= config.bin %> <%= command.id %> my-dataset",
3713
+ "description": "Create a dataset named \"my-dataset\""
3656
3714
  },
3657
3715
  {
3658
- "command": "<%= config.bin %> <%= command.id %> myDocId --project abc123",
3659
- "description": "Get a document from a specific project"
3716
+ "command": "<%= config.bin %> <%= command.id %> my-dataset --visibility private",
3717
+ "description": "Create a private dataset named \"my-dataset\""
3660
3718
  }
3661
3719
  ],
3662
3720
  "flags": {
@@ -3666,7 +3724,7 @@
3666
3724
  ],
3667
3725
  "char": "p",
3668
3726
  "deprecateAliases": true,
3669
- "description": "Project ID to get document from (overrides CLI configuration)",
3727
+ "description": "Project ID to create dataset in (overrides CLI configuration)",
3670
3728
  "helpGroup": "OVERRIDE",
3671
3729
  "name": "project",
3672
3730
  "hasDynamicHelp": false,
@@ -3674,66 +3732,81 @@
3674
3732
  "multiple": false,
3675
3733
  "type": "option"
3676
3734
  },
3677
- "dataset": {
3678
- "char": "d",
3679
- "description": "Dataset to get document from (overrides CLI configuration)",
3680
- "helpGroup": "OVERRIDE",
3681
- "name": "dataset",
3735
+ "embeddings": {
3736
+ "description": "Enable embeddings for this dataset",
3737
+ "name": "embeddings",
3738
+ "allowNo": false,
3739
+ "type": "boolean"
3740
+ },
3741
+ "embeddings-projection": {
3742
+ "dependsOn": [
3743
+ "embeddings"
3744
+ ],
3745
+ "description": "GROQ projection for embeddings indexing (e.g. \"{ title, body }\")",
3746
+ "name": "embeddings-projection",
3682
3747
  "hasDynamicHelp": false,
3683
- "helpValue": "<name>",
3684
3748
  "multiple": false,
3685
3749
  "type": "option"
3686
3750
  },
3687
- "pretty": {
3688
- "description": "Colorize JSON output",
3689
- "name": "pretty",
3690
- "allowNo": false,
3691
- "type": "boolean"
3751
+ "visibility": {
3752
+ "description": "Set visibility for this dataset (custom/private/public)",
3753
+ "name": "visibility",
3754
+ "required": false,
3755
+ "hasDynamicHelp": false,
3756
+ "multiple": false,
3757
+ "options": [
3758
+ "custom",
3759
+ "private",
3760
+ "public"
3761
+ ],
3762
+ "type": "option"
3692
3763
  }
3693
3764
  },
3694
3765
  "hasDynamicHelp": false,
3695
3766
  "hiddenAliases": [
3696
- "document:get"
3767
+ "dataset:create"
3697
3768
  ],
3698
- "id": "documents:get",
3769
+ "id": "datasets:create",
3699
3770
  "pluginAlias": "@sanity/cli",
3700
3771
  "pluginName": "@sanity/cli",
3701
3772
  "pluginType": "core",
3702
3773
  "strict": true,
3774
+ "telemetry": {
3775
+ "redactedFlags": [
3776
+ {
3777
+ "canonical": "--embeddings-projection",
3778
+ "flags": [
3779
+ "--embeddings-projection"
3780
+ ]
3781
+ }
3782
+ ]
3783
+ },
3703
3784
  "isESM": true,
3704
3785
  "relativePath": [
3705
3786
  "dist",
3706
3787
  "commands",
3707
- "documents",
3708
- "get.js"
3788
+ "datasets",
3789
+ "create.js"
3709
3790
  ]
3710
3791
  },
3711
- "documents:query": {
3792
+ "datasets:delete": {
3712
3793
  "aliases": [],
3713
3794
  "args": {
3714
- "query": {
3715
- "description": "GROQ query to run against the dataset",
3716
- "name": "query",
3795
+ "datasetName": {
3796
+ "description": "Dataset name to delete",
3797
+ "name": "datasetName",
3717
3798
  "required": true
3718
3799
  }
3719
3800
  },
3720
- "description": "Query for documents",
3801
+ "description": "Delete a dataset from the project",
3721
3802
  "examples": [
3722
3803
  {
3723
- "command": "<%= config.bin %> <%= command.id %> '*[_type == \"movie\"][0..4]'",
3724
- "description": "Fetch 5 documents of type \"movie\""
3725
- },
3726
- {
3727
- "command": "<%= config.bin %> <%= command.id %> '*[_type == \"movie\"]|order(releaseDate asc)[0]{title}' --dataset staging",
3728
- "description": "Fetch title of the oldest movie in the dataset named \"staging\""
3729
- },
3730
- {
3731
- "command": "<%= config.bin %> <%= command.id %> '*[_id == \"header\"] { \"headerText\": pt::text(body) }' --api-version v2021-06-07",
3732
- "description": "Use API version v2021-06-07 and do a query"
3804
+ "command": "<%= config.bin %> <%= command.id %> my-dataset",
3805
+ "description": "Delete a specific dataset"
3733
3806
  },
3734
3807
  {
3735
- "command": "<%= config.bin %> <%= command.id %> '*[_type == \"post\"]' --project abc123 --dataset production",
3736
- "description": "Query documents in a specific project and dataset"
3808
+ "command": "<%= config.bin %> <%= command.id %> my-dataset --force",
3809
+ "description": "Delete a specific dataset without confirmation"
3737
3810
  }
3738
3811
  ],
3739
3812
  "flags": {
@@ -3743,7 +3816,7 @@
3743
3816
  ],
3744
3817
  "char": "p",
3745
3818
  "deprecateAliases": true,
3746
- "description": "Project ID to query (overrides CLI configuration)",
3819
+ "description": "Project ID to delete dataset from (overrides CLI configuration)",
3747
3820
  "helpGroup": "OVERRIDE",
3748
3821
  "name": "project",
3749
3822
  "hasDynamicHelp": false,
@@ -3751,41 +3824,18 @@
3751
3824
  "multiple": false,
3752
3825
  "type": "option"
3753
3826
  },
3754
- "dataset": {
3755
- "char": "d",
3756
- "description": "Dataset to query (overrides CLI configuration)",
3757
- "helpGroup": "OVERRIDE",
3758
- "name": "dataset",
3759
- "hasDynamicHelp": false,
3760
- "helpValue": "<name>",
3761
- "multiple": false,
3762
- "type": "option"
3763
- },
3764
- "anonymous": {
3765
- "description": "Send the query without any authorization token",
3766
- "name": "anonymous",
3767
- "allowNo": false,
3768
- "type": "boolean"
3769
- },
3770
- "api-version": {
3771
- "description": "API version to use (defaults to 2025-08-15)",
3772
- "name": "api-version",
3773
- "hasDynamicHelp": false,
3774
- "multiple": false,
3775
- "type": "option"
3776
- },
3777
- "pretty": {
3778
- "description": "Colorize JSON output",
3779
- "name": "pretty",
3827
+ "force": {
3828
+ "description": "Do not prompt for delete confirmation - forcefully delete",
3829
+ "name": "force",
3780
3830
  "allowNo": false,
3781
3831
  "type": "boolean"
3782
3832
  }
3783
3833
  },
3784
3834
  "hasDynamicHelp": false,
3785
3835
  "hiddenAliases": [
3786
- "document:query"
3836
+ "dataset:delete"
3787
3837
  ],
3788
- "id": "documents:query",
3838
+ "id": "datasets:delete",
3789
3839
  "pluginAlias": "@sanity/cli",
3790
3840
  "pluginName": "@sanity/cli",
3791
3841
  "pluginType": "core",
@@ -3794,34 +3844,43 @@
3794
3844
  "relativePath": [
3795
3845
  "dist",
3796
3846
  "commands",
3797
- "documents",
3798
- "query.js"
3847
+ "datasets",
3848
+ "delete.js"
3799
3849
  ]
3800
3850
  },
3801
- "documents:validate": {
3851
+ "datasets:export": {
3802
3852
  "aliases": [],
3803
- "args": {},
3804
- "description": "Validate documents in a dataset against the studio schema",
3853
+ "args": {
3854
+ "name": {
3855
+ "description": "Name of the dataset to export",
3856
+ "name": "name"
3857
+ },
3858
+ "destination": {
3859
+ "description": "Output destination file path",
3860
+ "name": "destination"
3861
+ }
3862
+ },
3863
+ "description": "Export a dataset to a local gzipped tarball. Assets returning 401, 403, or 404 are excluded from the export.",
3805
3864
  "examples": [
3806
3865
  {
3807
- "command": "<%= config.bin %> <%= command.id %> --workspace default",
3808
- "description": "Validates all documents in a Sanity project with more than one workspace"
3866
+ "command": "<%= config.bin %> <%= command.id %> moviedb localPath.tar.gz",
3867
+ "description": "Export dataset \"moviedb\" to localPath.tar.gz"
3809
3868
  },
3810
3869
  {
3811
- "command": "<%= config.bin %> <%= command.id %> --workspace default --dataset staging",
3812
- "description": "Override the dataset specified in the workspace"
3870
+ "command": "<%= config.bin %> <%= command.id %> moviedb assetless.tar.gz --no-assets",
3871
+ "description": "Export dataset without assets"
3813
3872
  },
3814
3873
  {
3815
- "command": "<%= config.bin %> <%= command.id %> --yes > report.txt",
3816
- "description": "Save the results of the report into a file"
3874
+ "command": "<%= config.bin %> <%= command.id %> staging staging.tar.gz --raw",
3875
+ "description": "Export raw documents without asset reference rewriting"
3817
3876
  },
3818
3877
  {
3819
- "command": "<%= config.bin %> <%= command.id %> --level info",
3820
- "description": "Report out info level validation markers too"
3878
+ "command": "<%= config.bin %> <%= command.id %> staging staging.tar.gz --types products,shops",
3879
+ "description": "Export specific document types"
3821
3880
  },
3822
3881
  {
3823
- "command": "<%= config.bin %> <%= command.id %> --project abc123 --dataset production",
3824
- "description": "Validate documents in a specific project and dataset"
3882
+ "command": "<%= config.bin %> <%= command.id %> moviedb moviedb.tar.gz --no-strict-asset-verification",
3883
+ "description": "Export dataset without aborting on asset verification failures"
3825
3884
  }
3826
3885
  ],
3827
3886
  "flags": {
@@ -3831,204 +3890,83 @@
3831
3890
  ],
3832
3891
  "char": "p",
3833
3892
  "deprecateAliases": true,
3834
- "description": "Override the project ID used. By default, this is derived from the given workspace",
3893
+ "description": "Project ID to export dataset from (overrides CLI configuration)",
3894
+ "helpGroup": "OVERRIDE",
3835
3895
  "name": "project",
3836
3896
  "hasDynamicHelp": false,
3837
3897
  "helpValue": "<id>",
3838
3898
  "multiple": false,
3839
3899
  "type": "option"
3840
3900
  },
3841
- "dataset": {
3842
- "char": "d",
3843
- "description": "Override the dataset used. By default, this is derived from the given workspace",
3844
- "name": "dataset",
3845
- "hasDynamicHelp": false,
3846
- "helpValue": "<name>",
3847
- "multiple": false,
3848
- "type": "option"
3849
- },
3850
- "file": {
3851
- "description": "Path to an NDJSON file or tar archive containing an NDJSON file (optionally gzip-compressed)",
3852
- "name": "file",
3853
- "hasDynamicHelp": false,
3854
- "multiple": false,
3855
- "type": "option"
3856
- },
3857
- "format": {
3858
- "description": "The output format used to print the found validation markers and report progress",
3859
- "name": "format",
3901
+ "asset-concurrency": {
3902
+ "description": "Concurrent number of asset downloads",
3903
+ "name": "asset-concurrency",
3904
+ "default": 8,
3860
3905
  "hasDynamicHelp": false,
3861
3906
  "multiple": false,
3862
- "options": [
3863
- "json",
3864
- "ndjson",
3865
- "pretty"
3866
- ],
3867
3907
  "type": "option"
3868
3908
  },
3869
- "level": {
3870
- "description": "The minimum level reported. Defaults to warning",
3871
- "name": "level",
3872
- "default": "warning",
3909
+ "mode": {
3910
+ "description": "Export mode ('cursor' is faster for large datasets but may miss concurrent changes)",
3911
+ "name": "mode",
3912
+ "default": "stream",
3873
3913
  "hasDynamicHelp": false,
3874
3914
  "multiple": false,
3875
3915
  "options": [
3876
- "error",
3877
- "warning",
3878
- "info"
3916
+ "stream",
3917
+ "cursor"
3879
3918
  ],
3880
3919
  "type": "option"
3881
3920
  },
3882
- "max-custom-validation-concurrency": {
3883
- "description": "Specify how many custom validators can run concurrently",
3884
- "name": "max-custom-validation-concurrency",
3885
- "default": 5,
3886
- "hasDynamicHelp": false,
3887
- "multiple": false,
3888
- "type": "option"
3889
- },
3890
- "max-fetch-concurrency": {
3891
- "description": "Specify how many `client.fetch` requests are allowed to run concurrently",
3892
- "name": "max-fetch-concurrency",
3893
- "default": 25,
3894
- "hasDynamicHelp": false,
3895
- "multiple": false,
3896
- "type": "option"
3897
- },
3898
- "workspace": {
3899
- "description": "The name of the workspace to use when downloading and validating all documents",
3900
- "name": "workspace",
3901
- "hasDynamicHelp": false,
3902
- "multiple": false,
3903
- "type": "option"
3904
- },
3905
- "yes": {
3906
- "char": "y",
3907
- "description": "Skips the first confirmation prompt",
3908
- "name": "yes",
3921
+ "no-assets": {
3922
+ "description": "Export only non-asset documents and remove references to image assets",
3923
+ "name": "no-assets",
3909
3924
  "allowNo": false,
3910
3925
  "type": "boolean"
3911
- }
3912
- },
3913
- "hasDynamicHelp": false,
3914
- "hiddenAliases": [
3915
- "document:validate"
3916
- ],
3917
- "id": "documents:validate",
3918
- "pluginAlias": "@sanity/cli",
3919
- "pluginName": "@sanity/cli",
3920
- "pluginType": "core",
3921
- "strict": true,
3922
- "telemetry": {
3923
- "redactedFlags": [
3924
- {
3925
- "canonical": "--file",
3926
- "flags": [
3927
- "--file"
3928
- ]
3929
- }
3930
- ]
3931
- },
3932
- "isESM": true,
3933
- "relativePath": [
3934
- "dist",
3935
- "commands",
3936
- "documents",
3937
- "validate.js"
3938
- ]
3939
- },
3940
- "graphql:deploy": {
3941
- "aliases": [],
3942
- "args": {},
3943
- "description": "Deploy a GraphQL API from the current Sanity schema",
3944
- "examples": [
3945
- {
3946
- "command": "<%= config.bin %> <%= command.id %>",
3947
- "description": "Deploy all defined GraphQL APIs"
3948
- },
3949
- {
3950
- "command": "<%= config.bin %> <%= command.id %> --dry-run",
3951
- "description": "Validate defined GraphQL APIs, check for breaking changes, skip deploy"
3952
- },
3953
- {
3954
- "command": "<%= config.bin %> <%= command.id %> --api staging --api ios",
3955
- "description": "Deploy only the GraphQL APIs with the IDs \"staging\" and \"ios\""
3956
- },
3957
- {
3958
- "command": "<%= config.bin %> <%= command.id %> --playground",
3959
- "description": "Deploy all defined GraphQL APIs, overriding any playground setting"
3960
- }
3961
- ],
3962
- "flags": {
3963
- "api": {
3964
- "description": "Only deploy API with this ID (can be specified multiple times)",
3965
- "name": "api",
3966
- "hasDynamicHelp": false,
3967
- "multiple": true,
3968
- "type": "option"
3969
3926
  },
3970
- "dataset": {
3971
- "char": "d",
3972
- "description": "Deploy API for the given dataset",
3973
- "name": "dataset",
3974
- "hasDynamicHelp": false,
3975
- "helpValue": "<name>",
3976
- "multiple": false,
3977
- "type": "option"
3927
+ "no-compress": {
3928
+ "description": "Skips compressing tarball entries (still generates a gzip file)",
3929
+ "name": "no-compress",
3930
+ "allowNo": false,
3931
+ "type": "boolean"
3978
3932
  },
3979
- "dry-run": {
3980
- "description": "Validate defined GraphQL APIs, check for breaking changes, skip deploy",
3981
- "name": "dry-run",
3933
+ "no-drafts": {
3934
+ "description": "Export only published versions of documents",
3935
+ "name": "no-drafts",
3982
3936
  "allowNo": false,
3983
3937
  "type": "boolean"
3984
3938
  },
3985
- "force": {
3986
- "description": "Deploy API without confirming breaking changes",
3987
- "name": "force",
3939
+ "no-strict-asset-verification": {
3940
+ "description": "Do not abort the export when an asset fails hash or content-length verification",
3941
+ "name": "no-strict-asset-verification",
3988
3942
  "allowNo": false,
3989
3943
  "type": "boolean"
3990
3944
  },
3991
- "generation": {
3992
- "description": "API generation to deploy (defaults to \"gen3\")",
3993
- "name": "generation",
3994
- "hasDynamicHelp": false,
3995
- "multiple": false,
3996
- "options": [
3997
- "gen1",
3998
- "gen2",
3999
- "gen3"
4000
- ],
4001
- "type": "option"
4002
- },
4003
- "non-null-document-fields": {
4004
- "description": "Use non-null document fields (_id, _type etc)",
4005
- "name": "non-null-document-fields",
3945
+ "overwrite": {
3946
+ "description": "Overwrite any file with the same name",
3947
+ "name": "overwrite",
4006
3948
  "allowNo": false,
4007
3949
  "type": "boolean"
4008
3950
  },
4009
- "playground": {
4010
- "description": "Enable GraphQL playground for easier debugging",
4011
- "name": "playground",
4012
- "allowNo": true,
3951
+ "raw": {
3952
+ "description": "Extract only documents, without rewriting asset references",
3953
+ "name": "raw",
3954
+ "allowNo": false,
4013
3955
  "type": "boolean"
4014
3956
  },
4015
- "tag": {
4016
- "description": "Deploy API(s) to given tag (defaults to \"default\")",
4017
- "name": "tag",
3957
+ "types": {
3958
+ "description": "Defines which document types to export (comma-separated)",
3959
+ "name": "types",
4018
3960
  "hasDynamicHelp": false,
4019
3961
  "multiple": false,
4020
3962
  "type": "option"
4021
- },
4022
- "with-union-cache": {
4023
- "description": "Cache union types (faster for schemas with many self-references)",
4024
- "name": "with-union-cache",
4025
- "allowNo": false,
4026
- "type": "boolean"
4027
3963
  }
4028
3964
  },
4029
3965
  "hasDynamicHelp": false,
4030
- "hiddenAliases": [],
4031
- "id": "graphql:deploy",
3966
+ "hiddenAliases": [
3967
+ "dataset:export"
3968
+ ],
3969
+ "id": "datasets:export",
4032
3970
  "pluginAlias": "@sanity/cli",
4033
3971
  "pluginName": "@sanity/cli",
4034
3972
  "pluginType": "core",
@@ -4037,83 +3975,179 @@
4037
3975
  "relativePath": [
4038
3976
  "dist",
4039
3977
  "commands",
4040
- "graphql",
4041
- "deploy.js"
3978
+ "datasets",
3979
+ "export.js"
4042
3980
  ]
4043
3981
  },
4044
- "graphql:list": {
3982
+ "datasets:import": {
4045
3983
  "aliases": [],
4046
- "args": {},
4047
- "description": "List deployed GraphQL endpoints for the project",
3984
+ "args": {
3985
+ "source": {
3986
+ "description": "Source file (use \"-\" for stdin)",
3987
+ "name": "source",
3988
+ "required": true
3989
+ },
3990
+ "targetDataset": {
3991
+ "description": "Target dataset (prefer --dataset flag instead)",
3992
+ "name": "targetDataset",
3993
+ "required": false
3994
+ }
3995
+ },
3996
+ "description": "Import documents to a Sanity dataset",
4048
3997
  "examples": [
4049
3998
  {
4050
- "command": "<%= config.bin %> <%= command.id %>",
4051
- "description": "List GraphQL endpoints for the project"
3999
+ "command": "<%= config.bin %> <%= command.id %> -d staging my-dataset.ndjson",
4000
+ "description": "Import \"./my-dataset.ndjson\" into dataset \"staging\""
4052
4001
  },
4053
4002
  {
4054
- "command": "<%= config.bin %> <%= command.id %> --project abc123",
4055
- "description": "List GraphQL endpoints for a specific project"
4003
+ "command": "cat my-dataset.ndjson | <%= config.bin %> <%= command.id %> -d test -",
4004
+ "description": "Import into dataset \"test\" from stdin"
4005
+ },
4006
+ {
4007
+ "command": "<%= config.bin %> <%= command.id %> -p projectId -d staging my-dataset.ndjson",
4008
+ "description": "Import with explicit project ID (overrides CLI configuration)"
4009
+ },
4010
+ {
4011
+ "command": "<%= config.bin %> <%= command.id %> -d staging -t someSecretToken my-dataset.ndjson",
4012
+ "description": "Import with an explicit token (e.g. for CI/CD)"
4056
4013
  }
4057
4014
  ],
4058
4015
  "flags": {
4016
+ "allow-assets-in-different-dataset": {
4017
+ "description": "Allow asset documents to reference different project/dataset",
4018
+ "name": "allow-assets-in-different-dataset",
4019
+ "allowNo": false,
4020
+ "type": "boolean"
4021
+ },
4022
+ "allow-failing-assets": {
4023
+ "description": "Skip assets that cannot be fetched/uploaded",
4024
+ "name": "allow-failing-assets",
4025
+ "allowNo": false,
4026
+ "type": "boolean"
4027
+ },
4028
+ "allow-replacement-characters": {
4029
+ "description": "Allow unicode replacement characters in imported documents",
4030
+ "name": "allow-replacement-characters",
4031
+ "allowNo": false,
4032
+ "type": "boolean"
4033
+ },
4034
+ "allow-system-documents": {
4035
+ "description": "Imports system documents",
4036
+ "name": "allow-system-documents",
4037
+ "allowNo": false,
4038
+ "type": "boolean"
4039
+ },
4040
+ "asset-concurrency": {
4041
+ "description": "Number of parallel asset imports",
4042
+ "name": "asset-concurrency",
4043
+ "hasDynamicHelp": false,
4044
+ "multiple": false,
4045
+ "type": "option"
4046
+ },
4047
+ "dataset": {
4048
+ "char": "d",
4049
+ "description": "Dataset to import to",
4050
+ "name": "dataset",
4051
+ "hasDynamicHelp": false,
4052
+ "helpValue": "<name>",
4053
+ "multiple": false,
4054
+ "type": "option"
4055
+ },
4056
+ "missing": {
4057
+ "description": "Skip documents that already exist",
4058
+ "exclusive": [
4059
+ "replace"
4060
+ ],
4061
+ "name": "missing",
4062
+ "allowNo": false,
4063
+ "type": "boolean"
4064
+ },
4059
4065
  "project": {
4060
4066
  "aliases": [
4061
4067
  "project-id"
4062
4068
  ],
4063
4069
  "char": "p",
4064
4070
  "deprecateAliases": true,
4065
- "description": "Project ID to list GraphQL endpoints for (overrides CLI configuration)",
4071
+ "description": "Project ID to import to (overrides CLI configuration)",
4066
4072
  "helpGroup": "OVERRIDE",
4067
4073
  "name": "project",
4068
4074
  "hasDynamicHelp": false,
4069
4075
  "helpValue": "<id>",
4070
4076
  "multiple": false,
4071
4077
  "type": "option"
4078
+ },
4079
+ "replace": {
4080
+ "description": "Replace documents with the same IDs",
4081
+ "exclusive": [
4082
+ "missing"
4083
+ ],
4084
+ "name": "replace",
4085
+ "allowNo": false,
4086
+ "type": "boolean"
4087
+ },
4088
+ "replace-assets": {
4089
+ "description": "Skip reuse of existing assets",
4090
+ "name": "replace-assets",
4091
+ "allowNo": false,
4092
+ "type": "boolean"
4093
+ },
4094
+ "skip-cross-dataset-references": {
4095
+ "description": "Skips references to other datasets",
4096
+ "name": "skip-cross-dataset-references",
4097
+ "allowNo": false,
4098
+ "type": "boolean"
4099
+ },
4100
+ "token": {
4101
+ "char": "t",
4102
+ "description": "Token to authenticate with",
4103
+ "env": "SANITY_IMPORT_TOKEN",
4104
+ "name": "token",
4105
+ "required": false,
4106
+ "hasDynamicHelp": false,
4107
+ "multiple": false,
4108
+ "type": "option"
4072
4109
  }
4073
4110
  },
4074
4111
  "hasDynamicHelp": false,
4075
- "hiddenAliases": [],
4076
- "id": "graphql:list",
4112
+ "hiddenAliases": [
4113
+ "dataset:import"
4114
+ ],
4115
+ "id": "datasets:import",
4077
4116
  "pluginAlias": "@sanity/cli",
4078
4117
  "pluginName": "@sanity/cli",
4079
4118
  "pluginType": "core",
4080
4119
  "strict": true,
4120
+ "telemetry": {
4121
+ "redactedFlags": [
4122
+ {
4123
+ "canonical": "--token",
4124
+ "flags": [
4125
+ "--token",
4126
+ "-t"
4127
+ ]
4128
+ }
4129
+ ]
4130
+ },
4081
4131
  "isESM": true,
4082
4132
  "relativePath": [
4083
4133
  "dist",
4084
4134
  "commands",
4085
- "graphql",
4086
- "list.js"
4135
+ "datasets",
4136
+ "import.js"
4087
4137
  ]
4088
4138
  },
4089
- "graphql:undeploy": {
4139
+ "datasets:list": {
4090
4140
  "aliases": [],
4091
4141
  "args": {},
4092
- "description": "Remove a deployed GraphQL API",
4142
+ "description": "List datasets for the project",
4093
4143
  "examples": [
4094
4144
  {
4095
4145
  "command": "<%= config.bin %> <%= command.id %>",
4096
- "description": "Undeploy GraphQL API for current project and dataset"
4097
- },
4098
- {
4099
- "command": "<%= config.bin %> <%= command.id %> --api ios",
4100
- "description": "Undeploy API with ID \"ios\""
4101
- },
4102
- {
4103
- "command": "<%= config.bin %> <%= command.id %> --dataset staging",
4104
- "description": "Undeploy GraphQL API for staging dataset"
4105
- },
4106
- {
4107
- "command": "<%= config.bin %> <%= command.id %> --dataset staging --tag next",
4108
- "description": "Undeploy GraphQL API for staging dataset with \"next\" tag"
4109
- },
4110
- {
4111
- "command": "<%= config.bin %> <%= command.id %> --force",
4112
- "description": "Undeploy GraphQL API without confirmation prompt"
4146
+ "description": "List datasets for the project"
4113
4147
  },
4114
4148
  {
4115
- "command": "<%= config.bin %> <%= command.id %> --project abc123 --dataset production",
4116
- "description": "Undeploy GraphQL API for a specific project and dataset"
4149
+ "command": "<%= config.bin %> <%= command.id %> --project abc123",
4150
+ "description": "List datasets for a specific project"
4117
4151
  }
4118
4152
  ],
4119
4153
  "flags": {
@@ -4123,54 +4157,20 @@
4123
4157
  ],
4124
4158
  "char": "p",
4125
4159
  "deprecateAliases": true,
4126
- "description": "Project ID to undeploy GraphQL API from (overrides CLI configuration)",
4160
+ "description": "Project ID to list datasets for (overrides CLI configuration)",
4127
4161
  "helpGroup": "OVERRIDE",
4128
4162
  "name": "project",
4129
4163
  "hasDynamicHelp": false,
4130
4164
  "helpValue": "<id>",
4131
4165
  "multiple": false,
4132
4166
  "type": "option"
4133
- },
4134
- "api": {
4135
- "description": "Undeploy API with this ID",
4136
- "exclusive": [
4137
- "project"
4138
- ],
4139
- "name": "api",
4140
- "required": false,
4141
- "hasDynamicHelp": false,
4142
- "multiple": false,
4143
- "type": "option"
4144
- },
4145
- "dataset": {
4146
- "char": "d",
4147
- "description": "Dataset to undeploy GraphQL API from (overrides CLI configuration)",
4148
- "helpGroup": "OVERRIDE",
4149
- "name": "dataset",
4150
- "hasDynamicHelp": false,
4151
- "helpValue": "<name>",
4152
- "multiple": false,
4153
- "type": "option"
4154
- },
4155
- "force": {
4156
- "description": "Skip confirmation prompt",
4157
- "name": "force",
4158
- "allowNo": false,
4159
- "type": "boolean"
4160
- },
4161
- "tag": {
4162
- "description": "Tag to undeploy GraphQL API from",
4163
- "name": "tag",
4164
- "required": false,
4165
- "default": "default",
4166
- "hasDynamicHelp": false,
4167
- "multiple": false,
4168
- "type": "option"
4169
4167
  }
4170
4168
  },
4171
4169
  "hasDynamicHelp": false,
4172
- "hiddenAliases": [],
4173
- "id": "graphql:undeploy",
4170
+ "hiddenAliases": [
4171
+ "dataset:list"
4172
+ ],
4173
+ "id": "datasets:list",
4174
4174
  "pluginAlias": "@sanity/cli",
4175
4175
  "pluginName": "@sanity/cli",
4176
4176
  "pluginType": "core",
@@ -4179,8 +4179,8 @@
4179
4179
  "relativePath": [
4180
4180
  "dist",
4181
4181
  "commands",
4182
- "graphql",
4183
- "undeploy.js"
4182
+ "datasets",
4183
+ "list.js"
4184
4184
  ]
4185
4185
  },
4186
4186
  "hooks:attempt": {
@@ -5778,6 +5778,32 @@
5778
5778
  "unclaimed.js"
5779
5779
  ]
5780
5780
  },
5781
+ "skills:install": {
5782
+ "aliases": [],
5783
+ "args": {},
5784
+ "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)",
5785
+ "examples": [
5786
+ {
5787
+ "command": "<%= config.bin %> <%= command.id %>",
5788
+ "description": "Install Sanity agent skills for detected AI editors"
5789
+ }
5790
+ ],
5791
+ "flags": {},
5792
+ "hasDynamicHelp": false,
5793
+ "hiddenAliases": [],
5794
+ "id": "skills:install",
5795
+ "pluginAlias": "@sanity/cli",
5796
+ "pluginName": "@sanity/cli",
5797
+ "pluginType": "core",
5798
+ "strict": true,
5799
+ "isESM": true,
5800
+ "relativePath": [
5801
+ "dist",
5802
+ "commands",
5803
+ "skills",
5804
+ "install.js"
5805
+ ]
5806
+ },
5781
5807
  "schemas:delete": {
5782
5808
  "aliases": [],
5783
5809
  "args": {},
@@ -6253,32 +6279,6 @@
6253
6279
  "validate.js"
6254
6280
  ]
6255
6281
  },
6256
- "skills:install": {
6257
- "aliases": [],
6258
- "args": {},
6259
- "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)",
6260
- "examples": [
6261
- {
6262
- "command": "<%= config.bin %> <%= command.id %>",
6263
- "description": "Install Sanity agent skills for detected AI editors"
6264
- }
6265
- ],
6266
- "flags": {},
6267
- "hasDynamicHelp": false,
6268
- "hiddenAliases": [],
6269
- "id": "skills:install",
6270
- "pluginAlias": "@sanity/cli",
6271
- "pluginName": "@sanity/cli",
6272
- "pluginType": "core",
6273
- "strict": true,
6274
- "isESM": true,
6275
- "relativePath": [
6276
- "dist",
6277
- "commands",
6278
- "skills",
6279
- "install.js"
6280
- ]
6281
- },
6282
6282
  "telemetry:disable": {
6283
6283
  "aliases": [],
6284
6284
  "args": {},
@@ -7222,218 +7222,20 @@
7222
7222
  "aliases": [],
7223
7223
  "args": {
7224
7224
  "knowledgeBaseId": {
7225
- "description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
7226
- "name": "knowledgeBaseId",
7227
- "required": true
7228
- }
7229
- },
7230
- "description": "Lists the documents in a knowledge base: the pages, dataset documents and files its sources yield, which builds read and cite. Results are cursor-paginated, and you can filter them by `source` and `state`.",
7231
- "examples": [
7232
- {
7233
- "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId>",
7234
- "description": "List documents"
7235
- },
7236
- {
7237
- "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> --json",
7238
- "description": "List documents, as JSON"
7239
- }
7240
- ],
7241
- "flags": {
7242
- "json": {
7243
- "description": "Format output as json.",
7244
- "helpGroup": "GLOBAL",
7245
- "name": "json",
7246
- "allowNo": false,
7247
- "type": "boolean"
7248
- },
7249
- "limit": {
7250
- "description": "The maximum number of items to return.",
7251
- "name": "limit",
7252
- "hasDynamicHelp": false,
7253
- "multiple": false,
7254
- "type": "option"
7255
- },
7256
- "source": {
7257
- "description": "Return only the documents of this source.",
7258
- "name": "source",
7259
- "hasDynamicHelp": false,
7260
- "multiple": false,
7261
- "type": "option"
7262
- },
7263
- "state": {
7264
- "description": "Return only documents in this state. Without it, `deleted` documents are left out.",
7265
- "name": "state",
7266
- "hasDynamicHelp": false,
7267
- "multiple": false,
7268
- "options": [
7269
- "active",
7270
- "missing",
7271
- "deleted"
7272
- ],
7273
- "type": "option"
7274
- },
7275
- "ids": {
7276
- "description": "Comma-separated IDs of the documents to return, up to 200, in any state. Use it to look up the documents entry citations point at.",
7277
- "name": "ids",
7278
- "hasDynamicHelp": false,
7279
- "multiple": false,
7280
- "type": "option"
7281
- }
7282
- },
7283
- "hasDynamicHelp": false,
7284
- "hiddenAliases": [],
7285
- "id": "context:documents:list",
7286
- "pluginAlias": "@sanity/cli",
7287
- "pluginName": "@sanity/cli",
7288
- "pluginType": "core",
7289
- "strict": true,
7290
- "summary": "List documents",
7291
- "enableJsonFlag": true,
7292
- "telemetry": {
7293
- "redactedFlags": [
7294
- {
7295
- "canonical": "--source",
7296
- "flags": [
7297
- "--source"
7298
- ]
7299
- },
7300
- {
7301
- "canonical": "--ids",
7302
- "flags": [
7303
- "--ids"
7304
- ]
7305
- }
7306
- ]
7307
- },
7308
- "isESM": true,
7309
- "relativePath": [
7310
- "dist",
7311
- "commands",
7312
- "context",
7313
- "documents",
7314
- "list.js"
7315
- ]
7316
- },
7317
- "context:entries:get": {
7318
- "aliases": [],
7319
- "args": {
7320
- "knowledgeBaseId": {
7321
- "description": "Knowledge base ID",
7322
- "name": "knowledgeBaseId",
7323
- "required": true
7324
- },
7325
- "path": {
7326
- "description": "Entry path, as listed by `sanity context entries list`",
7327
- "name": "path",
7328
- "required": true
7329
- }
7330
- },
7331
- "description": "Get an entry and its content",
7332
- "examples": [
7333
- {
7334
- "command": "<%= config.bin %> <%= command.id %> kb-abc123 billing/refunds",
7335
- "description": "Print an entry and its content"
7336
- },
7337
- {
7338
- "command": "<%= config.bin %> <%= command.id %> kb-abc123 billing/refunds --json",
7339
- "description": "Output the entry, including citations, as JSON"
7340
- }
7341
- ],
7342
- "flags": {
7343
- "json": {
7344
- "description": "Format output as json.",
7345
- "helpGroup": "GLOBAL",
7346
- "name": "json",
7347
- "allowNo": false,
7348
- "type": "boolean"
7349
- }
7350
- },
7351
- "hasDynamicHelp": false,
7352
- "hiddenAliases": [],
7353
- "id": "context:entries:get",
7354
- "pluginAlias": "@sanity/cli",
7355
- "pluginName": "@sanity/cli",
7356
- "pluginType": "core",
7357
- "strict": true,
7358
- "enableJsonFlag": true,
7359
- "isESM": true,
7360
- "relativePath": [
7361
- "dist",
7362
- "commands",
7363
- "context",
7364
- "entries",
7365
- "get.js"
7366
- ]
7367
- },
7368
- "context:entries:list": {
7369
- "aliases": [],
7370
- "args": {
7371
- "knowledgeBaseId": {
7372
- "description": "Knowledge base ID",
7373
- "name": "knowledgeBaseId",
7374
- "required": true
7375
- }
7376
- },
7377
- "description": "List the entries a knowledge base build produced",
7378
- "examples": [
7379
- {
7380
- "command": "<%= config.bin %> <%= command.id %> kb-abc123",
7381
- "description": "List all entries for a knowledge base"
7382
- },
7383
- {
7384
- "command": "<%= config.bin %> <%= command.id %> kb-abc123 --json",
7385
- "description": "Output entries as JSON"
7386
- }
7387
- ],
7388
- "flags": {
7389
- "json": {
7390
- "description": "Format output as json.",
7391
- "helpGroup": "GLOBAL",
7392
- "name": "json",
7393
- "allowNo": false,
7394
- "type": "boolean"
7395
- }
7396
- },
7397
- "hasDynamicHelp": false,
7398
- "hiddenAliases": [],
7399
- "id": "context:entries:list",
7400
- "pluginAlias": "@sanity/cli",
7401
- "pluginName": "@sanity/cli",
7402
- "pluginType": "core",
7403
- "strict": true,
7404
- "enableJsonFlag": true,
7405
- "isESM": true,
7406
- "relativePath": [
7407
- "dist",
7408
- "commands",
7409
- "context",
7410
- "entries",
7411
- "list.js"
7412
- ]
7413
- },
7414
- "context:entries:rebuild": {
7415
- "aliases": [],
7416
- "args": {
7417
- "knowledgeBaseId": {
7418
- "description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
7419
- "name": "knowledgeBaseId",
7420
- "required": true
7421
- },
7422
- "entryPath": {
7423
- "description": "The entry's slash-delimited path, such as `pricing/plans/free`, URL-encoded.",
7424
- "name": "entryPath",
7225
+ "description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
7226
+ "name": "knowledgeBaseId",
7425
7227
  "required": true
7426
7228
  }
7427
7229
  },
7428
- "description": "Queues a rewrite of the entry at `entryPath` from its cited sources and the active instructions, and returns a job ID immediately. The response also lists the other entries built from any of the same sources. An instruction applies to every entry built from its sources, so those entries can change too. Returns `422` with code `entryDocumentInvalid` if the entry document was edited into a shape the API cannot read.",
7230
+ "description": "Lists the documents in a knowledge base: the pages, dataset documents and files its sources yield, which builds read and cite. Results are cursor-paginated, and you can filter them by `source` and `state`.",
7429
7231
  "examples": [
7430
7232
  {
7431
- "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <entryPath>",
7432
- "description": "Rebuild an entry from its sources"
7233
+ "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId>",
7234
+ "description": "List documents"
7433
7235
  },
7434
7236
  {
7435
- "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <entryPath> --json",
7436
- "description": "Rebuild an entry from its sources, as JSON"
7237
+ "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> --json",
7238
+ "description": "List documents, as JSON"
7437
7239
  }
7438
7240
  ],
7439
7241
  "flags": {
@@ -7444,32 +7246,72 @@
7444
7246
  "allowNo": false,
7445
7247
  "type": "boolean"
7446
7248
  },
7447
- "watch": {
7448
- "description": "Wait for the job to finish, exiting non-zero if it fails",
7449
- "name": "watch",
7450
- "allowNo": false,
7451
- "type": "boolean"
7249
+ "limit": {
7250
+ "description": "The maximum number of items to return.",
7251
+ "name": "limit",
7252
+ "hasDynamicHelp": false,
7253
+ "multiple": false,
7254
+ "type": "option"
7255
+ },
7256
+ "source": {
7257
+ "description": "Return only the documents of this source.",
7258
+ "name": "source",
7259
+ "hasDynamicHelp": false,
7260
+ "multiple": false,
7261
+ "type": "option"
7262
+ },
7263
+ "state": {
7264
+ "description": "Return only documents in this state. Without it, `deleted` documents are left out.",
7265
+ "name": "state",
7266
+ "hasDynamicHelp": false,
7267
+ "multiple": false,
7268
+ "options": [
7269
+ "active",
7270
+ "missing",
7271
+ "deleted"
7272
+ ],
7273
+ "type": "option"
7274
+ },
7275
+ "ids": {
7276
+ "description": "Comma-separated IDs of the documents to return, up to 200, in any state. Use it to look up the documents entry citations point at.",
7277
+ "name": "ids",
7278
+ "hasDynamicHelp": false,
7279
+ "multiple": false,
7280
+ "type": "option"
7452
7281
  }
7453
7282
  },
7454
7283
  "hasDynamicHelp": false,
7455
7284
  "hiddenAliases": [],
7456
- "id": "context:entries:rebuild",
7285
+ "id": "context:documents:list",
7457
7286
  "pluginAlias": "@sanity/cli",
7458
7287
  "pluginName": "@sanity/cli",
7459
7288
  "pluginType": "core",
7460
7289
  "strict": true,
7461
- "summary": "Rebuild an entry from its sources",
7290
+ "summary": "List documents",
7462
7291
  "enableJsonFlag": true,
7463
7292
  "telemetry": {
7464
- "redactedFlags": []
7293
+ "redactedFlags": [
7294
+ {
7295
+ "canonical": "--source",
7296
+ "flags": [
7297
+ "--source"
7298
+ ]
7299
+ },
7300
+ {
7301
+ "canonical": "--ids",
7302
+ "flags": [
7303
+ "--ids"
7304
+ ]
7305
+ }
7306
+ ]
7465
7307
  },
7466
7308
  "isESM": true,
7467
7309
  "relativePath": [
7468
7310
  "dist",
7469
7311
  "commands",
7470
7312
  "context",
7471
- "entries",
7472
- "rebuild.js"
7313
+ "documents",
7314
+ "list.js"
7473
7315
  ]
7474
7316
  },
7475
7317
  "context:instructions:create": {
@@ -8110,6 +7952,67 @@
8110
7952
  "resolve.js"
8111
7953
  ]
8112
7954
  },
7955
+ "context:jobs:get": {
7956
+ "aliases": [],
7957
+ "args": {
7958
+ "knowledgeBaseId": {
7959
+ "description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
7960
+ "name": "knowledgeBaseId",
7961
+ "required": true
7962
+ },
7963
+ "jobId": {
7964
+ "description": "The job ID returned by the endpoint that started the work.",
7965
+ "name": "jobId",
7966
+ "required": true
7967
+ }
7968
+ },
7969
+ "description": "Returns the status of a background job, such as a build, sync, or refresh. The endpoint that starts the work returns the job ID.",
7970
+ "examples": [
7971
+ {
7972
+ "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <jobId>",
7973
+ "description": "Get a job"
7974
+ },
7975
+ {
7976
+ "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <jobId> --json",
7977
+ "description": "Get a job, as JSON"
7978
+ }
7979
+ ],
7980
+ "flags": {
7981
+ "json": {
7982
+ "description": "Format output as json.",
7983
+ "helpGroup": "GLOBAL",
7984
+ "name": "json",
7985
+ "allowNo": false,
7986
+ "type": "boolean"
7987
+ },
7988
+ "watch": {
7989
+ "description": "Wait for the job to finish, exiting non-zero if it fails",
7990
+ "name": "watch",
7991
+ "allowNo": false,
7992
+ "type": "boolean"
7993
+ }
7994
+ },
7995
+ "hasDynamicHelp": false,
7996
+ "hiddenAliases": [],
7997
+ "id": "context:jobs:get",
7998
+ "pluginAlias": "@sanity/cli",
7999
+ "pluginName": "@sanity/cli",
8000
+ "pluginType": "core",
8001
+ "strict": true,
8002
+ "summary": "Get a job",
8003
+ "enableJsonFlag": true,
8004
+ "telemetry": {
8005
+ "redactedFlags": []
8006
+ },
8007
+ "isESM": true,
8008
+ "relativePath": [
8009
+ "dist",
8010
+ "commands",
8011
+ "context",
8012
+ "jobs",
8013
+ "get.js"
8014
+ ]
8015
+ },
8113
8016
  "context:mcp:create": {
8114
8017
  "aliases": [],
8115
8018
  "args": {
@@ -9483,7 +9386,104 @@
9483
9386
  "upload.js"
9484
9387
  ]
9485
9388
  },
9486
- "context:jobs:get": {
9389
+ "context:entries:get": {
9390
+ "aliases": [],
9391
+ "args": {
9392
+ "knowledgeBaseId": {
9393
+ "description": "Knowledge base ID",
9394
+ "name": "knowledgeBaseId",
9395
+ "required": true
9396
+ },
9397
+ "path": {
9398
+ "description": "Entry path, as listed by `sanity context entries list`",
9399
+ "name": "path",
9400
+ "required": true
9401
+ }
9402
+ },
9403
+ "description": "Get an entry and its content",
9404
+ "examples": [
9405
+ {
9406
+ "command": "<%= config.bin %> <%= command.id %> kb-abc123 billing/refunds",
9407
+ "description": "Print an entry and its content"
9408
+ },
9409
+ {
9410
+ "command": "<%= config.bin %> <%= command.id %> kb-abc123 billing/refunds --json",
9411
+ "description": "Output the entry, including citations, as JSON"
9412
+ }
9413
+ ],
9414
+ "flags": {
9415
+ "json": {
9416
+ "description": "Format output as json.",
9417
+ "helpGroup": "GLOBAL",
9418
+ "name": "json",
9419
+ "allowNo": false,
9420
+ "type": "boolean"
9421
+ }
9422
+ },
9423
+ "hasDynamicHelp": false,
9424
+ "hiddenAliases": [],
9425
+ "id": "context:entries:get",
9426
+ "pluginAlias": "@sanity/cli",
9427
+ "pluginName": "@sanity/cli",
9428
+ "pluginType": "core",
9429
+ "strict": true,
9430
+ "enableJsonFlag": true,
9431
+ "isESM": true,
9432
+ "relativePath": [
9433
+ "dist",
9434
+ "commands",
9435
+ "context",
9436
+ "entries",
9437
+ "get.js"
9438
+ ]
9439
+ },
9440
+ "context:entries:list": {
9441
+ "aliases": [],
9442
+ "args": {
9443
+ "knowledgeBaseId": {
9444
+ "description": "Knowledge base ID",
9445
+ "name": "knowledgeBaseId",
9446
+ "required": true
9447
+ }
9448
+ },
9449
+ "description": "List the entries a knowledge base build produced",
9450
+ "examples": [
9451
+ {
9452
+ "command": "<%= config.bin %> <%= command.id %> kb-abc123",
9453
+ "description": "List all entries for a knowledge base"
9454
+ },
9455
+ {
9456
+ "command": "<%= config.bin %> <%= command.id %> kb-abc123 --json",
9457
+ "description": "Output entries as JSON"
9458
+ }
9459
+ ],
9460
+ "flags": {
9461
+ "json": {
9462
+ "description": "Format output as json.",
9463
+ "helpGroup": "GLOBAL",
9464
+ "name": "json",
9465
+ "allowNo": false,
9466
+ "type": "boolean"
9467
+ }
9468
+ },
9469
+ "hasDynamicHelp": false,
9470
+ "hiddenAliases": [],
9471
+ "id": "context:entries:list",
9472
+ "pluginAlias": "@sanity/cli",
9473
+ "pluginName": "@sanity/cli",
9474
+ "pluginType": "core",
9475
+ "strict": true,
9476
+ "enableJsonFlag": true,
9477
+ "isESM": true,
9478
+ "relativePath": [
9479
+ "dist",
9480
+ "commands",
9481
+ "context",
9482
+ "entries",
9483
+ "list.js"
9484
+ ]
9485
+ },
9486
+ "context:entries:rebuild": {
9487
9487
  "aliases": [],
9488
9488
  "args": {
9489
9489
  "knowledgeBaseId": {
@@ -9491,21 +9491,21 @@
9491
9491
  "name": "knowledgeBaseId",
9492
9492
  "required": true
9493
9493
  },
9494
- "jobId": {
9495
- "description": "The job ID returned by the endpoint that started the work.",
9496
- "name": "jobId",
9494
+ "entryPath": {
9495
+ "description": "The entry's slash-delimited path, such as `pricing/plans/free`, URL-encoded.",
9496
+ "name": "entryPath",
9497
9497
  "required": true
9498
9498
  }
9499
9499
  },
9500
- "description": "Returns the status of a background job, such as a build, sync, or refresh. The endpoint that starts the work returns the job ID.",
9500
+ "description": "Queues a rewrite of the entry at `entryPath` from its cited sources and the active instructions, and returns a job ID immediately. The response also lists the other entries built from any of the same sources. An instruction applies to every entry built from its sources, so those entries can change too. Returns `422` with code `entryDocumentInvalid` if the entry document was edited into a shape the API cannot read.",
9501
9501
  "examples": [
9502
9502
  {
9503
- "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <jobId>",
9504
- "description": "Get a job"
9503
+ "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <entryPath>",
9504
+ "description": "Rebuild an entry from its sources"
9505
9505
  },
9506
9506
  {
9507
- "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <jobId> --json",
9508
- "description": "Get a job, as JSON"
9507
+ "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <entryPath> --json",
9508
+ "description": "Rebuild an entry from its sources, as JSON"
9509
9509
  }
9510
9510
  ],
9511
9511
  "flags": {
@@ -9525,12 +9525,12 @@
9525
9525
  },
9526
9526
  "hasDynamicHelp": false,
9527
9527
  "hiddenAliases": [],
9528
- "id": "context:jobs:get",
9528
+ "id": "context:entries:rebuild",
9529
9529
  "pluginAlias": "@sanity/cli",
9530
9530
  "pluginName": "@sanity/cli",
9531
9531
  "pluginType": "core",
9532
9532
  "strict": true,
9533
- "summary": "Get a job",
9533
+ "summary": "Rebuild an entry from its sources",
9534
9534
  "enableJsonFlag": true,
9535
9535
  "telemetry": {
9536
9536
  "redactedFlags": []
@@ -9540,8 +9540,8 @@
9540
9540
  "dist",
9541
9541
  "commands",
9542
9542
  "context",
9543
- "jobs",
9544
- "get.js"
9543
+ "entries",
9544
+ "rebuild.js"
9545
9545
  ]
9546
9546
  },
9547
9547
  "datasets:alias:create": {
@@ -10351,5 +10351,5 @@
10351
10351
  ]
10352
10352
  }
10353
10353
  },
10354
- "version": "8.28.2"
10354
+ "version": "8.29.0"
10355
10355
  }