@sanity/cli 8.9.0 → 8.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/oclif.manifest.json +771 -771
  2. package/package.json +7 -7
@@ -1713,6 +1713,167 @@
1713
1713
  "list.js"
1714
1714
  ]
1715
1715
  },
1716
+ "cors:add": {
1717
+ "aliases": [],
1718
+ "args": {
1719
+ "origin": {
1720
+ "description": "Origin to allow (e.g., https://example.com)",
1721
+ "name": "origin",
1722
+ "required": true
1723
+ }
1724
+ },
1725
+ "description": "Add a CORS origin to the project",
1726
+ "examples": [
1727
+ {
1728
+ "command": "<%= config.bin %> <%= command.id %>",
1729
+ "description": "Interactively add a CORS origin"
1730
+ },
1731
+ {
1732
+ "command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
1733
+ "description": "Add a localhost origin without credentials"
1734
+ },
1735
+ {
1736
+ "command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
1737
+ "description": "Add a production origin with credentials allowed"
1738
+ },
1739
+ {
1740
+ "command": "<%= config.bin %> <%= command.id %> https://myapp.com --project-id abc123",
1741
+ "description": "Add a CORS origin for a specific project"
1742
+ }
1743
+ ],
1744
+ "flags": {
1745
+ "project-id": {
1746
+ "char": "p",
1747
+ "description": "Project ID to add CORS origin to (overrides CLI configuration)",
1748
+ "helpGroup": "OVERRIDE",
1749
+ "name": "project-id",
1750
+ "hasDynamicHelp": false,
1751
+ "helpValue": "<id>",
1752
+ "multiple": false,
1753
+ "type": "option"
1754
+ },
1755
+ "credentials": {
1756
+ "description": "Allow credentials (token/cookie) to be sent from this origin",
1757
+ "name": "credentials",
1758
+ "required": false,
1759
+ "allowNo": true,
1760
+ "type": "boolean"
1761
+ },
1762
+ "yes": {
1763
+ "char": "y",
1764
+ "description": "Confirm risky wildcard origins without prompting",
1765
+ "name": "yes",
1766
+ "allowNo": false,
1767
+ "type": "boolean"
1768
+ }
1769
+ },
1770
+ "hasDynamicHelp": false,
1771
+ "hiddenAliases": [],
1772
+ "id": "cors:add",
1773
+ "pluginAlias": "@sanity/cli",
1774
+ "pluginName": "@sanity/cli",
1775
+ "pluginType": "core",
1776
+ "strict": true,
1777
+ "isESM": true,
1778
+ "relativePath": [
1779
+ "dist",
1780
+ "commands",
1781
+ "cors",
1782
+ "add.js"
1783
+ ]
1784
+ },
1785
+ "cors:delete": {
1786
+ "aliases": [],
1787
+ "args": {
1788
+ "origin": {
1789
+ "description": "Origin to delete (will prompt if not provided)",
1790
+ "name": "origin",
1791
+ "required": false
1792
+ }
1793
+ },
1794
+ "description": "Delete a CORS origin from the project",
1795
+ "examples": [
1796
+ {
1797
+ "command": "<%= config.bin %> <%= command.id %>",
1798
+ "description": "Interactively select and delete a CORS origin"
1799
+ },
1800
+ {
1801
+ "command": "<%= config.bin %> <%= command.id %> https://example.com",
1802
+ "description": "Delete a specific CORS origin"
1803
+ },
1804
+ {
1805
+ "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
1806
+ "description": "Delete a CORS origin from a specific project"
1807
+ }
1808
+ ],
1809
+ "flags": {
1810
+ "project-id": {
1811
+ "char": "p",
1812
+ "description": "Project ID to delete CORS origin from (overrides CLI configuration)",
1813
+ "helpGroup": "OVERRIDE",
1814
+ "name": "project-id",
1815
+ "hasDynamicHelp": false,
1816
+ "helpValue": "<id>",
1817
+ "multiple": false,
1818
+ "type": "option"
1819
+ }
1820
+ },
1821
+ "hasDynamicHelp": false,
1822
+ "hiddenAliases": [],
1823
+ "id": "cors:delete",
1824
+ "pluginAlias": "@sanity/cli",
1825
+ "pluginName": "@sanity/cli",
1826
+ "pluginType": "core",
1827
+ "strict": true,
1828
+ "isESM": true,
1829
+ "relativePath": [
1830
+ "dist",
1831
+ "commands",
1832
+ "cors",
1833
+ "delete.js"
1834
+ ]
1835
+ },
1836
+ "cors:list": {
1837
+ "aliases": [],
1838
+ "args": {},
1839
+ "description": "List CORS origins for the project",
1840
+ "examples": [
1841
+ {
1842
+ "command": "<%= config.bin %> <%= command.id %>",
1843
+ "description": "List CORS origins for the project"
1844
+ },
1845
+ {
1846
+ "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
1847
+ "description": "List CORS origins for a specific project"
1848
+ }
1849
+ ],
1850
+ "flags": {
1851
+ "project-id": {
1852
+ "char": "p",
1853
+ "description": "Project ID to list CORS origins for (overrides CLI configuration)",
1854
+ "helpGroup": "OVERRIDE",
1855
+ "name": "project-id",
1856
+ "hasDynamicHelp": false,
1857
+ "helpValue": "<id>",
1858
+ "multiple": false,
1859
+ "type": "option"
1860
+ }
1861
+ },
1862
+ "hasDynamicHelp": false,
1863
+ "hiddenAliases": [],
1864
+ "id": "cors:list",
1865
+ "pluginAlias": "@sanity/cli",
1866
+ "pluginName": "@sanity/cli",
1867
+ "pluginType": "core",
1868
+ "strict": true,
1869
+ "isESM": true,
1870
+ "relativePath": [
1871
+ "dist",
1872
+ "commands",
1873
+ "cors",
1874
+ "list.js"
1875
+ ]
1876
+ },
1716
1877
  "context:build": {
1717
1878
  "aliases": [],
1718
1879
  "args": {
@@ -2100,38 +2261,63 @@
2100
2261
  "update.js"
2101
2262
  ]
2102
2263
  },
2103
- "cors:add": {
2264
+ "datasets:copy": {
2104
2265
  "aliases": [],
2105
2266
  "args": {
2106
- "origin": {
2107
- "description": "Origin to allow (e.g., https://example.com)",
2108
- "name": "origin",
2109
- "required": true
2267
+ "source": {
2268
+ "description": "Name of the dataset to copy from",
2269
+ "name": "source",
2270
+ "required": false
2271
+ },
2272
+ "target": {
2273
+ "description": "Name of the dataset to copy to",
2274
+ "name": "target",
2275
+ "required": false
2110
2276
  }
2111
2277
  },
2112
- "description": "Add a CORS origin to the project",
2278
+ "description": "Copy a dataset or manage copy jobs",
2113
2279
  "examples": [
2114
2280
  {
2115
2281
  "command": "<%= config.bin %> <%= command.id %>",
2116
- "description": "Interactively add a CORS origin"
2282
+ "description": "Interactively copy a dataset"
2117
2283
  },
2118
2284
  {
2119
- "command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
2120
- "description": "Add a localhost origin without credentials"
2285
+ "command": "<%= config.bin %> <%= command.id %> source-dataset",
2286
+ "description": "Copy from source-dataset (prompts for target)"
2121
2287
  },
2122
2288
  {
2123
- "command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
2124
- "description": "Add a production origin with credentials allowed"
2289
+ "command": "<%= config.bin %> <%= command.id %> source-dataset target-dataset",
2290
+ "description": "Copy from source-dataset to target-dataset"
2125
2291
  },
2126
2292
  {
2127
- "command": "<%= config.bin %> <%= command.id %> https://myapp.com --project-id abc123",
2128
- "description": "Add a CORS origin for a specific project"
2293
+ "command": "<%= config.bin %> <%= command.id %> --skip-history source target",
2294
+ "description": "Copy without preserving document history (faster for large datasets)"
2295
+ },
2296
+ {
2297
+ "command": "<%= config.bin %> <%= command.id %> --skip-content-releases source target",
2298
+ "description": "Copy without content release documents"
2299
+ },
2300
+ {
2301
+ "command": "<%= config.bin %> <%= command.id %> --detach source target",
2302
+ "description": "Start copy job without waiting for completion"
2303
+ },
2304
+ {
2305
+ "command": "<%= config.bin %> <%= command.id %> --attach <job-id>",
2306
+ "description": "Attach to a running copy job to follow progress"
2307
+ },
2308
+ {
2309
+ "command": "<%= config.bin %> <%= command.id %> --list",
2310
+ "description": "List all dataset copy jobs"
2311
+ },
2312
+ {
2313
+ "command": "<%= config.bin %> <%= command.id %> --list --offset 2 --limit 10",
2314
+ "description": "List copy jobs with pagination"
2129
2315
  }
2130
2316
  ],
2131
2317
  "flags": {
2132
2318
  "project-id": {
2133
2319
  "char": "p",
2134
- "description": "Project ID to add CORS origin to (overrides CLI configuration)",
2320
+ "description": "Project ID to copy dataset in (overrides CLI configuration)",
2135
2321
  "helpGroup": "OVERRIDE",
2136
2322
  "name": "project-id",
2137
2323
  "hasDynamicHelp": false,
@@ -2139,213 +2325,27 @@
2139
2325
  "multiple": false,
2140
2326
  "type": "option"
2141
2327
  },
2142
- "credentials": {
2143
- "description": "Allow credentials (token/cookie) to be sent from this origin",
2144
- "name": "credentials",
2328
+ "attach": {
2329
+ "description": "Attach to the running copy process to show progress",
2330
+ "exclusive": [
2331
+ "list",
2332
+ "detach",
2333
+ "skip-history"
2334
+ ],
2335
+ "name": "attach",
2145
2336
  "required": false,
2146
- "allowNo": true,
2147
- "type": "boolean"
2337
+ "hasDynamicHelp": false,
2338
+ "multiple": false,
2339
+ "type": "option"
2148
2340
  },
2149
- "yes": {
2150
- "char": "y",
2151
- "description": "Confirm risky wildcard origins without prompting",
2152
- "name": "yes",
2153
- "allowNo": false,
2154
- "type": "boolean"
2155
- }
2156
- },
2157
- "hasDynamicHelp": false,
2158
- "hiddenAliases": [],
2159
- "id": "cors:add",
2160
- "pluginAlias": "@sanity/cli",
2161
- "pluginName": "@sanity/cli",
2162
- "pluginType": "core",
2163
- "strict": true,
2164
- "isESM": true,
2165
- "relativePath": [
2166
- "dist",
2167
- "commands",
2168
- "cors",
2169
- "add.js"
2170
- ]
2171
- },
2172
- "cors:delete": {
2173
- "aliases": [],
2174
- "args": {
2175
- "origin": {
2176
- "description": "Origin to delete (will prompt if not provided)",
2177
- "name": "origin",
2178
- "required": false
2179
- }
2180
- },
2181
- "description": "Delete a CORS origin from the project",
2182
- "examples": [
2183
- {
2184
- "command": "<%= config.bin %> <%= command.id %>",
2185
- "description": "Interactively select and delete a CORS origin"
2186
- },
2187
- {
2188
- "command": "<%= config.bin %> <%= command.id %> https://example.com",
2189
- "description": "Delete a specific CORS origin"
2190
- },
2191
- {
2192
- "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
2193
- "description": "Delete a CORS origin from a specific project"
2194
- }
2195
- ],
2196
- "flags": {
2197
- "project-id": {
2198
- "char": "p",
2199
- "description": "Project ID to delete CORS origin from (overrides CLI configuration)",
2200
- "helpGroup": "OVERRIDE",
2201
- "name": "project-id",
2202
- "hasDynamicHelp": false,
2203
- "helpValue": "<id>",
2204
- "multiple": false,
2205
- "type": "option"
2206
- }
2207
- },
2208
- "hasDynamicHelp": false,
2209
- "hiddenAliases": [],
2210
- "id": "cors:delete",
2211
- "pluginAlias": "@sanity/cli",
2212
- "pluginName": "@sanity/cli",
2213
- "pluginType": "core",
2214
- "strict": true,
2215
- "isESM": true,
2216
- "relativePath": [
2217
- "dist",
2218
- "commands",
2219
- "cors",
2220
- "delete.js"
2221
- ]
2222
- },
2223
- "cors:list": {
2224
- "aliases": [],
2225
- "args": {},
2226
- "description": "List CORS origins for the project",
2227
- "examples": [
2228
- {
2229
- "command": "<%= config.bin %> <%= command.id %>",
2230
- "description": "List CORS origins for the project"
2231
- },
2232
- {
2233
- "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
2234
- "description": "List CORS origins for a specific project"
2235
- }
2236
- ],
2237
- "flags": {
2238
- "project-id": {
2239
- "char": "p",
2240
- "description": "Project ID to list CORS origins for (overrides CLI configuration)",
2241
- "helpGroup": "OVERRIDE",
2242
- "name": "project-id",
2243
- "hasDynamicHelp": false,
2244
- "helpValue": "<id>",
2245
- "multiple": false,
2246
- "type": "option"
2247
- }
2248
- },
2249
- "hasDynamicHelp": false,
2250
- "hiddenAliases": [],
2251
- "id": "cors:list",
2252
- "pluginAlias": "@sanity/cli",
2253
- "pluginName": "@sanity/cli",
2254
- "pluginType": "core",
2255
- "strict": true,
2256
- "isESM": true,
2257
- "relativePath": [
2258
- "dist",
2259
- "commands",
2260
- "cors",
2261
- "list.js"
2262
- ]
2263
- },
2264
- "datasets:copy": {
2265
- "aliases": [],
2266
- "args": {
2267
- "source": {
2268
- "description": "Name of the dataset to copy from",
2269
- "name": "source",
2270
- "required": false
2271
- },
2272
- "target": {
2273
- "description": "Name of the dataset to copy to",
2274
- "name": "target",
2275
- "required": false
2276
- }
2277
- },
2278
- "description": "Copy a dataset or manage copy jobs",
2279
- "examples": [
2280
- {
2281
- "command": "<%= config.bin %> <%= command.id %>",
2282
- "description": "Interactively copy a dataset"
2283
- },
2284
- {
2285
- "command": "<%= config.bin %> <%= command.id %> source-dataset",
2286
- "description": "Copy from source-dataset (prompts for target)"
2287
- },
2288
- {
2289
- "command": "<%= config.bin %> <%= command.id %> source-dataset target-dataset",
2290
- "description": "Copy from source-dataset to target-dataset"
2291
- },
2292
- {
2293
- "command": "<%= config.bin %> <%= command.id %> --skip-history source target",
2294
- "description": "Copy without preserving document history (faster for large datasets)"
2295
- },
2296
- {
2297
- "command": "<%= config.bin %> <%= command.id %> --skip-content-releases source target",
2298
- "description": "Copy without content release documents"
2299
- },
2300
- {
2301
- "command": "<%= config.bin %> <%= command.id %> --detach source target",
2302
- "description": "Start copy job without waiting for completion"
2303
- },
2304
- {
2305
- "command": "<%= config.bin %> <%= command.id %> --attach <job-id>",
2306
- "description": "Attach to a running copy job to follow progress"
2307
- },
2308
- {
2309
- "command": "<%= config.bin %> <%= command.id %> --list",
2310
- "description": "List all dataset copy jobs"
2311
- },
2312
- {
2313
- "command": "<%= config.bin %> <%= command.id %> --list --offset 2 --limit 10",
2314
- "description": "List copy jobs with pagination"
2315
- }
2316
- ],
2317
- "flags": {
2318
- "project-id": {
2319
- "char": "p",
2320
- "description": "Project ID to copy dataset in (overrides CLI configuration)",
2321
- "helpGroup": "OVERRIDE",
2322
- "name": "project-id",
2323
- "hasDynamicHelp": false,
2324
- "helpValue": "<id>",
2325
- "multiple": false,
2326
- "type": "option"
2327
- },
2328
- "attach": {
2329
- "description": "Attach to the running copy process to show progress",
2330
- "exclusive": [
2331
- "list",
2332
- "detach",
2333
- "skip-history"
2334
- ],
2335
- "name": "attach",
2336
- "required": false,
2337
- "hasDynamicHelp": false,
2338
- "multiple": false,
2339
- "type": "option"
2340
- },
2341
- "detach": {
2342
- "description": "Start the copy without waiting for it to finish",
2343
- "exclusive": [
2344
- "list",
2345
- "attach"
2346
- ],
2347
- "name": "detach",
2348
- "required": false,
2341
+ "detach": {
2342
+ "description": "Start the copy without waiting for it to finish",
2343
+ "exclusive": [
2344
+ "list",
2345
+ "attach"
2346
+ ],
2347
+ "name": "detach",
2348
+ "required": false,
2349
2349
  "allowNo": false,
2350
2350
  "type": "boolean"
2351
2351
  },
@@ -2883,160 +2883,36 @@
2883
2883
  "list.js"
2884
2884
  ]
2885
2885
  },
2886
- "docs:browse": {
2887
- "aliases": [],
2888
- "args": {},
2889
- "description": "Open Sanity docs in your browser",
2890
- "flags": {},
2891
- "hasDynamicHelp": false,
2892
- "hiddenAliases": [],
2893
- "id": "docs:browse",
2894
- "pluginAlias": "@sanity/cli",
2895
- "pluginName": "@sanity/cli",
2896
- "pluginType": "core",
2897
- "strict": true,
2898
- "enableJsonFlag": false,
2899
- "isESM": true,
2900
- "relativePath": [
2901
- "dist",
2902
- "commands",
2903
- "docs",
2904
- "browse.js"
2905
- ]
2906
- },
2907
- "docs:read": {
2886
+ "documents:create": {
2908
2887
  "aliases": [],
2909
2888
  "args": {
2910
- "path": {
2911
- "description": "Path or URL to article, found in search results and docs content as links",
2912
- "name": "path",
2913
- "required": true
2889
+ "file": {
2890
+ "description": "JSON file to create document(s) from",
2891
+ "name": "file",
2892
+ "required": false
2914
2893
  }
2915
2894
  },
2916
- "description": "Read an article in terminal",
2895
+ "description": "Create one or more documents",
2917
2896
  "examples": [
2918
2897
  {
2919
- "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation",
2920
- "description": "Read as markdown in terminal"
2898
+ "command": "<%= config.bin %> <%= command.id %> myDocument.json",
2899
+ "description": "Create the document specified in \"myDocument.json\""
2921
2900
  },
2922
2901
  {
2923
- "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation",
2924
- "description": "Read using full URL"
2902
+ "command": "<%= config.bin %> <%= command.id %>",
2903
+ "description": "Open configured $EDITOR and create the specified document(s)"
2925
2904
  },
2926
2905
  {
2927
- "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation --web",
2928
- "description": "Open in web browser"
2906
+ "command": "<%= config.bin %> <%= command.id %> --id myDocId --replace",
2907
+ "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"
2929
2908
  },
2930
2909
  {
2931
- "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation -w",
2932
- "description": "Open using full URL in web browser"
2933
- }
2934
- ],
2935
- "flags": {
2936
- "web": {
2937
- "aliases": [
2938
- "w"
2939
- ],
2940
- "description": "Open in a web browser",
2941
- "name": "web",
2942
- "allowNo": false,
2943
- "type": "boolean"
2944
- }
2945
- },
2946
- "hasDynamicHelp": false,
2947
- "hiddenAliases": [],
2948
- "id": "docs:read",
2949
- "pluginAlias": "@sanity/cli",
2950
- "pluginName": "@sanity/cli",
2951
- "pluginType": "core",
2952
- "strict": true,
2953
- "isESM": true,
2954
- "relativePath": [
2955
- "dist",
2956
- "commands",
2957
- "docs",
2958
- "read.js"
2959
- ]
2960
- },
2961
- "docs:search": {
2962
- "aliases": [],
2963
- "args": {
2964
- "query": {
2965
- "description": "Search query for documentation",
2966
- "name": "query",
2967
- "required": true
2968
- }
2969
- },
2970
- "description": "Search Sanity docs",
2971
- "examples": [
2972
- {
2973
- "command": "<%= config.bin %> <%= command.id %> schema",
2974
- "description": "Search for documentation about schemas"
2975
- },
2976
- {
2977
- "command": "<%= config.bin %> <%= command.id %> \"groq functions\"",
2978
- "description": "Search with phrase"
2979
- },
2980
- {
2981
- "command": "<%= config.bin %> <%= command.id %> \"deployment\" --limit=5",
2982
- "description": "Limit search results"
2983
- }
2984
- ],
2985
- "flags": {
2986
- "limit": {
2987
- "description": "Maximum number of results to return",
2988
- "name": "limit",
2989
- "default": 10,
2990
- "hasDynamicHelp": false,
2991
- "multiple": false,
2992
- "type": "option"
2993
- }
2994
- },
2995
- "hasDynamicHelp": false,
2996
- "hiddenAliases": [],
2997
- "id": "docs:search",
2998
- "pluginAlias": "@sanity/cli",
2999
- "pluginName": "@sanity/cli",
3000
- "pluginType": "core",
3001
- "strict": true,
3002
- "isESM": true,
3003
- "relativePath": [
3004
- "dist",
3005
- "commands",
3006
- "docs",
3007
- "search.js"
3008
- ]
3009
- },
3010
- "documents:create": {
3011
- "aliases": [],
3012
- "args": {
3013
- "file": {
3014
- "description": "JSON file to create document(s) from",
3015
- "name": "file",
3016
- "required": false
3017
- }
3018
- },
3019
- "description": "Create one or more documents",
3020
- "examples": [
3021
- {
3022
- "command": "<%= config.bin %> <%= command.id %> myDocument.json",
3023
- "description": "Create the document specified in \"myDocument.json\""
3024
- },
3025
- {
3026
- "command": "<%= config.bin %> <%= command.id %>",
3027
- "description": "Open configured $EDITOR and create the specified document(s)"
3028
- },
3029
- {
3030
- "command": "<%= config.bin %> <%= command.id %> --id myDocId --replace",
3031
- "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"
3032
- },
3033
- {
3034
- "command": "<%= config.bin %> <%= command.id %> --id myDocId --watch --replace --json5",
3035
- "description": "Open configured $EDITOR and replace the document with the given content on each save. Use JSON5 file extension and parser for simplified syntax."
3036
- },
3037
- {
3038
- "command": "<%= config.bin %> <%= command.id %> myDocument.json --project-id abc123",
3039
- "description": "Create documents in a specific project"
2910
+ "command": "<%= config.bin %> <%= command.id %> --id myDocId --watch --replace --json5",
2911
+ "description": "Open configured $EDITOR and replace the document with the given content on each save. Use JSON5 file extension and parser for simplified syntax."
2912
+ },
2913
+ {
2914
+ "command": "<%= config.bin %> <%= command.id %> myDocument.json --project-id abc123",
2915
+ "description": "Create documents in a specific project"
3040
2916
  }
3041
2917
  ],
3042
2918
  "flags": {
@@ -3480,6 +3356,130 @@
3480
3356
  "validate.js"
3481
3357
  ]
3482
3358
  },
3359
+ "docs:browse": {
3360
+ "aliases": [],
3361
+ "args": {},
3362
+ "description": "Open Sanity docs in your browser",
3363
+ "flags": {},
3364
+ "hasDynamicHelp": false,
3365
+ "hiddenAliases": [],
3366
+ "id": "docs:browse",
3367
+ "pluginAlias": "@sanity/cli",
3368
+ "pluginName": "@sanity/cli",
3369
+ "pluginType": "core",
3370
+ "strict": true,
3371
+ "enableJsonFlag": false,
3372
+ "isESM": true,
3373
+ "relativePath": [
3374
+ "dist",
3375
+ "commands",
3376
+ "docs",
3377
+ "browse.js"
3378
+ ]
3379
+ },
3380
+ "docs:read": {
3381
+ "aliases": [],
3382
+ "args": {
3383
+ "path": {
3384
+ "description": "Path or URL to article, found in search results and docs content as links",
3385
+ "name": "path",
3386
+ "required": true
3387
+ }
3388
+ },
3389
+ "description": "Read an article in terminal",
3390
+ "examples": [
3391
+ {
3392
+ "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation",
3393
+ "description": "Read as markdown in terminal"
3394
+ },
3395
+ {
3396
+ "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation",
3397
+ "description": "Read using full URL"
3398
+ },
3399
+ {
3400
+ "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation --web",
3401
+ "description": "Open in web browser"
3402
+ },
3403
+ {
3404
+ "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation -w",
3405
+ "description": "Open using full URL in web browser"
3406
+ }
3407
+ ],
3408
+ "flags": {
3409
+ "web": {
3410
+ "aliases": [
3411
+ "w"
3412
+ ],
3413
+ "description": "Open in a web browser",
3414
+ "name": "web",
3415
+ "allowNo": false,
3416
+ "type": "boolean"
3417
+ }
3418
+ },
3419
+ "hasDynamicHelp": false,
3420
+ "hiddenAliases": [],
3421
+ "id": "docs:read",
3422
+ "pluginAlias": "@sanity/cli",
3423
+ "pluginName": "@sanity/cli",
3424
+ "pluginType": "core",
3425
+ "strict": true,
3426
+ "isESM": true,
3427
+ "relativePath": [
3428
+ "dist",
3429
+ "commands",
3430
+ "docs",
3431
+ "read.js"
3432
+ ]
3433
+ },
3434
+ "docs:search": {
3435
+ "aliases": [],
3436
+ "args": {
3437
+ "query": {
3438
+ "description": "Search query for documentation",
3439
+ "name": "query",
3440
+ "required": true
3441
+ }
3442
+ },
3443
+ "description": "Search Sanity docs",
3444
+ "examples": [
3445
+ {
3446
+ "command": "<%= config.bin %> <%= command.id %> schema",
3447
+ "description": "Search for documentation about schemas"
3448
+ },
3449
+ {
3450
+ "command": "<%= config.bin %> <%= command.id %> \"groq functions\"",
3451
+ "description": "Search with phrase"
3452
+ },
3453
+ {
3454
+ "command": "<%= config.bin %> <%= command.id %> \"deployment\" --limit=5",
3455
+ "description": "Limit search results"
3456
+ }
3457
+ ],
3458
+ "flags": {
3459
+ "limit": {
3460
+ "description": "Maximum number of results to return",
3461
+ "name": "limit",
3462
+ "default": 10,
3463
+ "hasDynamicHelp": false,
3464
+ "multiple": false,
3465
+ "type": "option"
3466
+ }
3467
+ },
3468
+ "hasDynamicHelp": false,
3469
+ "hiddenAliases": [],
3470
+ "id": "docs:search",
3471
+ "pluginAlias": "@sanity/cli",
3472
+ "pluginName": "@sanity/cli",
3473
+ "pluginType": "core",
3474
+ "strict": true,
3475
+ "isESM": true,
3476
+ "relativePath": [
3477
+ "dist",
3478
+ "commands",
3479
+ "docs",
3480
+ "search.js"
3481
+ ]
3482
+ },
3483
3483
  "graphql:deploy": {
3484
3484
  "aliases": [],
3485
3485
  "args": {},
@@ -3979,45 +3979,6 @@
3979
3979
  "logs.js"
3980
3980
  ]
3981
3981
  },
3982
- "manifest:extract": {
3983
- "aliases": [],
3984
- "args": {},
3985
- "description": "Extract studio configuration as JSON manifest files.\n\nNote: This command is experimental and subject to change. It is currently intended for use with Create only.",
3986
- "examples": [
3987
- {
3988
- "command": "<%= config.bin %> <%= command.id %>",
3989
- "description": "Extracts manifests"
3990
- },
3991
- {
3992
- "command": "<%= config.bin %> <%= command.id %> --path /public/static",
3993
- "description": "Extracts manifests into /public/static"
3994
- }
3995
- ],
3996
- "flags": {
3997
- "path": {
3998
- "description": "Optional path to specify destination directory of the manifest files",
3999
- "name": "path",
4000
- "default": "dist/static",
4001
- "hasDynamicHelp": false,
4002
- "multiple": false,
4003
- "type": "option"
4004
- }
4005
- },
4006
- "hasDynamicHelp": false,
4007
- "hiddenAliases": [],
4008
- "id": "manifest:extract",
4009
- "pluginAlias": "@sanity/cli",
4010
- "pluginName": "@sanity/cli",
4011
- "pluginType": "core",
4012
- "strict": true,
4013
- "isESM": true,
4014
- "relativePath": [
4015
- "dist",
4016
- "commands",
4017
- "manifest",
4018
- "extract.js"
4019
- ]
4020
- },
4021
3982
  "mcp:configure": {
4022
3983
  "aliases": [],
4023
3984
  "args": {},
@@ -4507,13 +4468,52 @@
4507
4468
  "run.js"
4508
4469
  ]
4509
4470
  },
4510
- "openapi:get": {
4471
+ "manifest:extract": {
4511
4472
  "aliases": [],
4512
- "args": {
4513
- "slug": {
4514
- "description": "Slug of the OpenAPI specification to retrieve",
4515
- "name": "slug",
4516
- "required": true
4473
+ "args": {},
4474
+ "description": "Extract studio configuration as JSON manifest files.\n\nNote: This command is experimental and subject to change. It is currently intended for use with Create only.",
4475
+ "examples": [
4476
+ {
4477
+ "command": "<%= config.bin %> <%= command.id %>",
4478
+ "description": "Extracts manifests"
4479
+ },
4480
+ {
4481
+ "command": "<%= config.bin %> <%= command.id %> --path /public/static",
4482
+ "description": "Extracts manifests into /public/static"
4483
+ }
4484
+ ],
4485
+ "flags": {
4486
+ "path": {
4487
+ "description": "Optional path to specify destination directory of the manifest files",
4488
+ "name": "path",
4489
+ "default": "dist/static",
4490
+ "hasDynamicHelp": false,
4491
+ "multiple": false,
4492
+ "type": "option"
4493
+ }
4494
+ },
4495
+ "hasDynamicHelp": false,
4496
+ "hiddenAliases": [],
4497
+ "id": "manifest:extract",
4498
+ "pluginAlias": "@sanity/cli",
4499
+ "pluginName": "@sanity/cli",
4500
+ "pluginType": "core",
4501
+ "strict": true,
4502
+ "isESM": true,
4503
+ "relativePath": [
4504
+ "dist",
4505
+ "commands",
4506
+ "manifest",
4507
+ "extract.js"
4508
+ ]
4509
+ },
4510
+ "openapi:get": {
4511
+ "aliases": [],
4512
+ "args": {
4513
+ "slug": {
4514
+ "description": "Slug of the OpenAPI specification to retrieve",
4515
+ "name": "slug",
4516
+ "required": true
4517
4517
  }
4518
4518
  },
4519
4519
  "description": "Get an OpenAPI specification by slug",
@@ -4866,196 +4866,6 @@
4866
4866
  "update.js"
4867
4867
  ]
4868
4868
  },
4869
- "projects:create": {
4870
- "aliases": [],
4871
- "args": {
4872
- "projectName": {
4873
- "description": "Name of the project to create",
4874
- "name": "projectName",
4875
- "required": false
4876
- }
4877
- },
4878
- "description": "Create a new Sanity project",
4879
- "examples": [
4880
- {
4881
- "command": "<%= config.bin %> <%= command.id %>",
4882
- "description": "Interactively create a project"
4883
- },
4884
- {
4885
- "command": "<%= config.bin %> <%= command.id %> \"My New Project\"",
4886
- "description": "Create a project named \"My New Project\""
4887
- },
4888
- {
4889
- "command": "<%= config.bin %> <%= command.id %> \"My Project\" --organization=my-org",
4890
- "description": "Create a project in a specific organization"
4891
- },
4892
- {
4893
- "command": "<%= config.bin %> <%= command.id %> \"My Project\" --dataset=staging --dataset-visibility=private",
4894
- "description": "Create a project with a private dataset named \"staging\""
4895
- },
4896
- {
4897
- "command": "<%= config.bin %> <%= command.id %> \"CI Project\" --yes --json",
4898
- "description": "Create a project non-interactively with JSON output"
4899
- }
4900
- ],
4901
- "flags": {
4902
- "dataset": {
4903
- "description": "Create a dataset. Prompts for visibility unless specified or --yes used",
4904
- "name": "dataset",
4905
- "hasDynamicHelp": false,
4906
- "multiple": false,
4907
- "type": "option"
4908
- },
4909
- "dataset-visibility": {
4910
- "description": "Dataset visibility: public or private",
4911
- "name": "dataset-visibility",
4912
- "hasDynamicHelp": false,
4913
- "multiple": false,
4914
- "options": [
4915
- "private",
4916
- "public"
4917
- ],
4918
- "type": "option"
4919
- },
4920
- "json": {
4921
- "description": "Output in JSON format",
4922
- "name": "json",
4923
- "allowNo": false,
4924
- "type": "boolean"
4925
- },
4926
- "organization": {
4927
- "description": "Organization to create the project in",
4928
- "name": "organization",
4929
- "hasDynamicHelp": false,
4930
- "helpValue": "<slug|id>",
4931
- "multiple": false,
4932
- "type": "option"
4933
- },
4934
- "yes": {
4935
- "char": "y",
4936
- "description": "Skip prompts and use defaults (project: \"My Sanity Project\", dataset: production, visibility: public)",
4937
- "name": "yes",
4938
- "allowNo": false,
4939
- "type": "boolean"
4940
- }
4941
- },
4942
- "hasDynamicHelp": false,
4943
- "hiddenAliases": [
4944
- "project:create"
4945
- ],
4946
- "id": "projects:create",
4947
- "pluginAlias": "@sanity/cli",
4948
- "pluginName": "@sanity/cli",
4949
- "pluginType": "core",
4950
- "strict": true,
4951
- "isESM": true,
4952
- "relativePath": [
4953
- "dist",
4954
- "commands",
4955
- "projects",
4956
- "create.js"
4957
- ]
4958
- },
4959
- "projects:list": {
4960
- "aliases": [],
4961
- "args": {},
4962
- "description": "List your projects",
4963
- "examples": [
4964
- {
4965
- "command": "<%= config.bin %> <%= command.id %>",
4966
- "description": "List projects"
4967
- },
4968
- {
4969
- "command": "<%= config.bin %> <%= command.id %> --sort=members --order=asc",
4970
- "description": "List projects sorted by member count, ascending"
4971
- }
4972
- ],
4973
- "flags": {
4974
- "order": {
4975
- "description": "Sort direction",
4976
- "name": "order",
4977
- "default": "desc",
4978
- "hasDynamicHelp": false,
4979
- "multiple": false,
4980
- "options": [
4981
- "asc",
4982
- "desc"
4983
- ],
4984
- "type": "option"
4985
- },
4986
- "sort": {
4987
- "description": "Sort field",
4988
- "name": "sort",
4989
- "default": "created",
4990
- "hasDynamicHelp": false,
4991
- "multiple": false,
4992
- "options": [
4993
- "id",
4994
- "members",
4995
- "name",
4996
- "url",
4997
- "created"
4998
- ],
4999
- "type": "option"
5000
- }
5001
- },
5002
- "hasDynamicHelp": false,
5003
- "hiddenAliases": [
5004
- "project:list"
5005
- ],
5006
- "id": "projects:list",
5007
- "pluginAlias": "@sanity/cli",
5008
- "pluginName": "@sanity/cli",
5009
- "pluginType": "core",
5010
- "strict": true,
5011
- "isESM": true,
5012
- "relativePath": [
5013
- "dist",
5014
- "commands",
5015
- "projects",
5016
- "list.js"
5017
- ]
5018
- },
5019
- "projects:unclaimed": {
5020
- "aliases": [],
5021
- "args": {},
5022
- "description": "Recover details for unclaimed projects created on this machine",
5023
- "examples": [
5024
- {
5025
- "command": "<%= config.bin %> <%= command.id %>",
5026
- "description": "List locally recorded unclaimed projects"
5027
- },
5028
- {
5029
- "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
5030
- "description": "Show recovery details for one project"
5031
- }
5032
- ],
5033
- "flags": {
5034
- "project-id": {
5035
- "description": "Project ID to recover",
5036
- "name": "project-id",
5037
- "hasDynamicHelp": false,
5038
- "multiple": false,
5039
- "type": "option"
5040
- }
5041
- },
5042
- "hasDynamicHelp": false,
5043
- "hiddenAliases": [
5044
- "project:unclaimed"
5045
- ],
5046
- "id": "projects:unclaimed",
5047
- "pluginAlias": "@sanity/cli",
5048
- "pluginName": "@sanity/cli",
5049
- "pluginType": "core",
5050
- "strict": true,
5051
- "isESM": true,
5052
- "relativePath": [
5053
- "dist",
5054
- "commands",
5055
- "projects",
5056
- "unclaimed.js"
5057
- ]
5058
- },
5059
4869
  "schemas:delete": {
5060
4870
  "aliases": [],
5061
4871
  "args": {},
@@ -5809,9 +5619,294 @@
5809
5619
  },
5810
5620
  "hasDynamicHelp": false,
5811
5621
  "hiddenAliases": [
5812
- "token:rotate"
5622
+ "token:rotate"
5623
+ ],
5624
+ "id": "tokens:rotate",
5625
+ "pluginAlias": "@sanity/cli",
5626
+ "pluginName": "@sanity/cli",
5627
+ "pluginType": "core",
5628
+ "strict": true,
5629
+ "isESM": true,
5630
+ "relativePath": [
5631
+ "dist",
5632
+ "commands",
5633
+ "tokens",
5634
+ "rotate.js"
5635
+ ]
5636
+ },
5637
+ "typegen:generate": {
5638
+ "aliases": [],
5639
+ "args": {},
5640
+ "description": "Sanity TypeGen\n\nConfiguration:\nThis command can utilize configuration settings defined in a `sanity-typegen.json` file. These settings include:\n\n- \"path\": Specifies a glob pattern to locate your TypeScript or JavaScript files.\n Default: \"./src/**/*.{ts,tsx,js,jsx}\"\n\n- \"schema\": Defines the path to your Sanity schema file. This file should be generated using the `sanity schema extract` command.\n Default: \"schema.json\"\n\n- \"generates\": Indicates the path where the generated TypeScript type definitions will be saved.\n Default: \"./sanity.types.ts\"\n\nThe default configuration values listed above are used if not overridden in your `sanity-typegen.json` configuration file. To customize the behavior of the type generation, adjust these properties in the configuration file according to your project's needs.\n\nNote:\n- The `sanity schema extract` command is a prerequisite for extracting your Sanity Studio schema into a `schema.json` file, which is then used by the `sanity typegen generate` command to generate type definitions.",
5641
+ "examples": [
5642
+ {
5643
+ "command": "<%= config.bin %> <%= command.id %>",
5644
+ "description": "Generate TypeScript type definitions from a Sanity Studio schema extracted using the `sanity schema extract` command."
5645
+ }
5646
+ ],
5647
+ "flags": {
5648
+ "config-path": {
5649
+ "description": "[Default: sanity-typegen.json] Specifies the path to the typegen configuration file. This file should be a JSON file that contains settings for the type generation process.",
5650
+ "name": "config-path",
5651
+ "hasDynamicHelp": false,
5652
+ "multiple": false,
5653
+ "type": "option"
5654
+ },
5655
+ "watch": {
5656
+ "description": "[Default: false] Run the typegen in watch mode",
5657
+ "name": "watch",
5658
+ "allowNo": false,
5659
+ "type": "boolean"
5660
+ }
5661
+ },
5662
+ "hasDynamicHelp": false,
5663
+ "hiddenAliases": [
5664
+ "typegen:generate"
5665
+ ],
5666
+ "id": "typegen:generate",
5667
+ "pluginAlias": "@sanity/cli",
5668
+ "pluginName": "@sanity/cli",
5669
+ "pluginType": "core",
5670
+ "strict": true,
5671
+ "isESM": true,
5672
+ "relativePath": [
5673
+ "dist",
5674
+ "commands",
5675
+ "typegen",
5676
+ "generate.js"
5677
+ ]
5678
+ },
5679
+ "users:invite": {
5680
+ "aliases": [],
5681
+ "args": {
5682
+ "email": {
5683
+ "description": "Email address to invite",
5684
+ "name": "email",
5685
+ "required": false
5686
+ }
5687
+ },
5688
+ "description": "Invite a new user to the project",
5689
+ "examples": [
5690
+ {
5691
+ "command": "<%= config.bin %> <%= command.id %>",
5692
+ "description": "Invite a new user to the project (prompt for details)"
5693
+ },
5694
+ {
5695
+ "command": "<%= config.bin %> <%= command.id %> pippi@sanity.io",
5696
+ "description": "Send a new user invite to the email \"pippi@sanity.io\", prompt for role"
5697
+ },
5698
+ {
5699
+ "command": "<%= config.bin %> <%= command.id %> pippi@sanity.io --role administrator",
5700
+ "description": "Send a new user invite to the email \"pippi@sanity.io\", as administrator"
5701
+ },
5702
+ {
5703
+ "command": "<%= config.bin %> <%= command.id %> pippi@sanity.io --project-id abc123",
5704
+ "description": "Invite a user to a specific project"
5705
+ }
5706
+ ],
5707
+ "flags": {
5708
+ "project-id": {
5709
+ "char": "p",
5710
+ "description": "Project ID to invite user to (overrides CLI configuration)",
5711
+ "helpGroup": "OVERRIDE",
5712
+ "name": "project-id",
5713
+ "hasDynamicHelp": false,
5714
+ "helpValue": "<id>",
5715
+ "multiple": false,
5716
+ "type": "option"
5717
+ },
5718
+ "role": {
5719
+ "description": "Role to invite the user as",
5720
+ "name": "role",
5721
+ "hasDynamicHelp": false,
5722
+ "multiple": false,
5723
+ "type": "option"
5724
+ }
5725
+ },
5726
+ "hasDynamicHelp": false,
5727
+ "hiddenAliases": [
5728
+ "user:invite"
5729
+ ],
5730
+ "id": "users:invite",
5731
+ "pluginAlias": "@sanity/cli",
5732
+ "pluginName": "@sanity/cli",
5733
+ "pluginType": "core",
5734
+ "strict": true,
5735
+ "isESM": true,
5736
+ "relativePath": [
5737
+ "dist",
5738
+ "commands",
5739
+ "users",
5740
+ "invite.js"
5741
+ ]
5742
+ },
5743
+ "users:list": {
5744
+ "aliases": [],
5745
+ "args": {},
5746
+ "description": "List project members",
5747
+ "examples": [
5748
+ {
5749
+ "command": "<%= config.bin %> <%= command.id %>",
5750
+ "description": "List all users of the project"
5751
+ },
5752
+ {
5753
+ "command": "<%= config.bin %> <%= command.id %> --no-invitations --no-robots",
5754
+ "description": "List all users of the project, but exclude pending invitations and robots"
5755
+ },
5756
+ {
5757
+ "command": "<%= config.bin %> <%= command.id %> --sort role",
5758
+ "description": "List all users, sorted by role"
5759
+ },
5760
+ {
5761
+ "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
5762
+ "description": "List users for a specific project"
5763
+ }
5764
+ ],
5765
+ "flags": {
5766
+ "project-id": {
5767
+ "char": "p",
5768
+ "description": "Project ID to list users for (overrides CLI configuration)",
5769
+ "helpGroup": "OVERRIDE",
5770
+ "name": "project-id",
5771
+ "hasDynamicHelp": false,
5772
+ "helpValue": "<id>",
5773
+ "multiple": false,
5774
+ "type": "option"
5775
+ },
5776
+ "invitations": {
5777
+ "description": "Includes or excludes pending invitations",
5778
+ "name": "invitations",
5779
+ "allowNo": true,
5780
+ "type": "boolean"
5781
+ },
5782
+ "order": {
5783
+ "description": "Sort output ascending/descending",
5784
+ "name": "order",
5785
+ "default": "asc",
5786
+ "hasDynamicHelp": false,
5787
+ "multiple": false,
5788
+ "options": [
5789
+ "asc",
5790
+ "desc"
5791
+ ],
5792
+ "type": "option"
5793
+ },
5794
+ "robots": {
5795
+ "description": "Includes or excludes robots (token users)",
5796
+ "name": "robots",
5797
+ "allowNo": true,
5798
+ "type": "boolean"
5799
+ },
5800
+ "sort": {
5801
+ "description": "Sort users by specified column",
5802
+ "name": "sort",
5803
+ "default": "date",
5804
+ "hasDynamicHelp": false,
5805
+ "multiple": false,
5806
+ "options": [
5807
+ "id",
5808
+ "name",
5809
+ "role",
5810
+ "date"
5811
+ ],
5812
+ "type": "option"
5813
+ }
5814
+ },
5815
+ "hasDynamicHelp": false,
5816
+ "hiddenAliases": [
5817
+ "user:list"
5818
+ ],
5819
+ "id": "users:list",
5820
+ "pluginAlias": "@sanity/cli",
5821
+ "pluginName": "@sanity/cli",
5822
+ "pluginType": "core",
5823
+ "strict": true,
5824
+ "isESM": true,
5825
+ "relativePath": [
5826
+ "dist",
5827
+ "commands",
5828
+ "users",
5829
+ "list.js"
5830
+ ]
5831
+ },
5832
+ "projects:create": {
5833
+ "aliases": [],
5834
+ "args": {
5835
+ "projectName": {
5836
+ "description": "Name of the project to create",
5837
+ "name": "projectName",
5838
+ "required": false
5839
+ }
5840
+ },
5841
+ "description": "Create a new Sanity project",
5842
+ "examples": [
5843
+ {
5844
+ "command": "<%= config.bin %> <%= command.id %>",
5845
+ "description": "Interactively create a project"
5846
+ },
5847
+ {
5848
+ "command": "<%= config.bin %> <%= command.id %> \"My New Project\"",
5849
+ "description": "Create a project named \"My New Project\""
5850
+ },
5851
+ {
5852
+ "command": "<%= config.bin %> <%= command.id %> \"My Project\" --organization=my-org",
5853
+ "description": "Create a project in a specific organization"
5854
+ },
5855
+ {
5856
+ "command": "<%= config.bin %> <%= command.id %> \"My Project\" --dataset=staging --dataset-visibility=private",
5857
+ "description": "Create a project with a private dataset named \"staging\""
5858
+ },
5859
+ {
5860
+ "command": "<%= config.bin %> <%= command.id %> \"CI Project\" --yes --json",
5861
+ "description": "Create a project non-interactively with JSON output"
5862
+ }
5863
+ ],
5864
+ "flags": {
5865
+ "dataset": {
5866
+ "description": "Create a dataset. Prompts for visibility unless specified or --yes used",
5867
+ "name": "dataset",
5868
+ "hasDynamicHelp": false,
5869
+ "multiple": false,
5870
+ "type": "option"
5871
+ },
5872
+ "dataset-visibility": {
5873
+ "description": "Dataset visibility: public or private",
5874
+ "name": "dataset-visibility",
5875
+ "hasDynamicHelp": false,
5876
+ "multiple": false,
5877
+ "options": [
5878
+ "private",
5879
+ "public"
5880
+ ],
5881
+ "type": "option"
5882
+ },
5883
+ "json": {
5884
+ "description": "Output in JSON format",
5885
+ "name": "json",
5886
+ "allowNo": false,
5887
+ "type": "boolean"
5888
+ },
5889
+ "organization": {
5890
+ "description": "Organization to create the project in",
5891
+ "name": "organization",
5892
+ "hasDynamicHelp": false,
5893
+ "helpValue": "<slug|id>",
5894
+ "multiple": false,
5895
+ "type": "option"
5896
+ },
5897
+ "yes": {
5898
+ "char": "y",
5899
+ "description": "Skip prompts and use defaults (project: \"My Sanity Project\", dataset: production, visibility: public)",
5900
+ "name": "yes",
5901
+ "allowNo": false,
5902
+ "type": "boolean"
5903
+ }
5904
+ },
5905
+ "hasDynamicHelp": false,
5906
+ "hiddenAliases": [
5907
+ "project:create"
5813
5908
  ],
5814
- "id": "tokens:rotate",
5909
+ "id": "projects:create",
5815
5910
  "pluginAlias": "@sanity/cli",
5816
5911
  "pluginName": "@sanity/cli",
5817
5912
  "pluginType": "core",
@@ -5820,40 +5915,58 @@
5820
5915
  "relativePath": [
5821
5916
  "dist",
5822
5917
  "commands",
5823
- "tokens",
5824
- "rotate.js"
5918
+ "projects",
5919
+ "create.js"
5825
5920
  ]
5826
5921
  },
5827
- "typegen:generate": {
5922
+ "projects:list": {
5828
5923
  "aliases": [],
5829
5924
  "args": {},
5830
- "description": "Sanity TypeGen\n\nConfiguration:\nThis command can utilize configuration settings defined in a `sanity-typegen.json` file. These settings include:\n\n- \"path\": Specifies a glob pattern to locate your TypeScript or JavaScript files.\n Default: \"./src/**/*.{ts,tsx,js,jsx}\"\n\n- \"schema\": Defines the path to your Sanity schema file. This file should be generated using the `sanity schema extract` command.\n Default: \"schema.json\"\n\n- \"generates\": Indicates the path where the generated TypeScript type definitions will be saved.\n Default: \"./sanity.types.ts\"\n\nThe default configuration values listed above are used if not overridden in your `sanity-typegen.json` configuration file. To customize the behavior of the type generation, adjust these properties in the configuration file according to your project's needs.\n\nNote:\n- The `sanity schema extract` command is a prerequisite for extracting your Sanity Studio schema into a `schema.json` file, which is then used by the `sanity typegen generate` command to generate type definitions.",
5925
+ "description": "List your projects",
5831
5926
  "examples": [
5832
5927
  {
5833
5928
  "command": "<%= config.bin %> <%= command.id %>",
5834
- "description": "Generate TypeScript type definitions from a Sanity Studio schema extracted using the `sanity schema extract` command."
5929
+ "description": "List projects"
5930
+ },
5931
+ {
5932
+ "command": "<%= config.bin %> <%= command.id %> --sort=members --order=asc",
5933
+ "description": "List projects sorted by member count, ascending"
5835
5934
  }
5836
5935
  ],
5837
5936
  "flags": {
5838
- "config-path": {
5839
- "description": "[Default: sanity-typegen.json] Specifies the path to the typegen configuration file. This file should be a JSON file that contains settings for the type generation process.",
5840
- "name": "config-path",
5937
+ "order": {
5938
+ "description": "Sort direction",
5939
+ "name": "order",
5940
+ "default": "desc",
5841
5941
  "hasDynamicHelp": false,
5842
5942
  "multiple": false,
5943
+ "options": [
5944
+ "asc",
5945
+ "desc"
5946
+ ],
5843
5947
  "type": "option"
5844
5948
  },
5845
- "watch": {
5846
- "description": "[Default: false] Run the typegen in watch mode",
5847
- "name": "watch",
5848
- "allowNo": false,
5849
- "type": "boolean"
5949
+ "sort": {
5950
+ "description": "Sort field",
5951
+ "name": "sort",
5952
+ "default": "created",
5953
+ "hasDynamicHelp": false,
5954
+ "multiple": false,
5955
+ "options": [
5956
+ "id",
5957
+ "members",
5958
+ "name",
5959
+ "url",
5960
+ "created"
5961
+ ],
5962
+ "type": "option"
5850
5963
  }
5851
5964
  },
5852
5965
  "hasDynamicHelp": false,
5853
5966
  "hiddenAliases": [
5854
- "typegen:generate"
5967
+ "project:list"
5855
5968
  ],
5856
- "id": "typegen:generate",
5969
+ "id": "projects:list",
5857
5970
  "pluginAlias": "@sanity/cli",
5858
5971
  "pluginName": "@sanity/cli",
5859
5972
  "pluginType": "core",
@@ -5862,62 +5975,38 @@
5862
5975
  "relativePath": [
5863
5976
  "dist",
5864
5977
  "commands",
5865
- "typegen",
5866
- "generate.js"
5978
+ "projects",
5979
+ "list.js"
5867
5980
  ]
5868
5981
  },
5869
- "users:invite": {
5982
+ "projects:unclaimed": {
5870
5983
  "aliases": [],
5871
- "args": {
5872
- "email": {
5873
- "description": "Email address to invite",
5874
- "name": "email",
5875
- "required": false
5876
- }
5877
- },
5878
- "description": "Invite a new user to the project",
5984
+ "args": {},
5985
+ "description": "Recover details for unclaimed projects created on this machine",
5879
5986
  "examples": [
5880
5987
  {
5881
5988
  "command": "<%= config.bin %> <%= command.id %>",
5882
- "description": "Invite a new user to the project (prompt for details)"
5883
- },
5884
- {
5885
- "command": "<%= config.bin %> <%= command.id %> pippi@sanity.io",
5886
- "description": "Send a new user invite to the email \"pippi@sanity.io\", prompt for role"
5887
- },
5888
- {
5889
- "command": "<%= config.bin %> <%= command.id %> pippi@sanity.io --role administrator",
5890
- "description": "Send a new user invite to the email \"pippi@sanity.io\", as administrator"
5989
+ "description": "List locally recorded unclaimed projects"
5891
5990
  },
5892
5991
  {
5893
- "command": "<%= config.bin %> <%= command.id %> pippi@sanity.io --project-id abc123",
5894
- "description": "Invite a user to a specific project"
5992
+ "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
5993
+ "description": "Show recovery details for one project"
5895
5994
  }
5896
5995
  ],
5897
5996
  "flags": {
5898
5997
  "project-id": {
5899
- "char": "p",
5900
- "description": "Project ID to invite user to (overrides CLI configuration)",
5901
- "helpGroup": "OVERRIDE",
5998
+ "description": "Project ID to recover",
5902
5999
  "name": "project-id",
5903
6000
  "hasDynamicHelp": false,
5904
- "helpValue": "<id>",
5905
- "multiple": false,
5906
- "type": "option"
5907
- },
5908
- "role": {
5909
- "description": "Role to invite the user as",
5910
- "name": "role",
5911
- "hasDynamicHelp": false,
5912
6001
  "multiple": false,
5913
6002
  "type": "option"
5914
6003
  }
5915
6004
  },
5916
6005
  "hasDynamicHelp": false,
5917
6006
  "hiddenAliases": [
5918
- "user:invite"
6007
+ "project:unclaimed"
5919
6008
  ],
5920
- "id": "users:invite",
6009
+ "id": "projects:unclaimed",
5921
6010
  "pluginAlias": "@sanity/cli",
5922
6011
  "pluginName": "@sanity/cli",
5923
6012
  "pluginType": "core",
@@ -5926,87 +6015,52 @@
5926
6015
  "relativePath": [
5927
6016
  "dist",
5928
6017
  "commands",
5929
- "users",
5930
- "invite.js"
6018
+ "projects",
6019
+ "unclaimed.js"
5931
6020
  ]
5932
6021
  },
5933
- "users:list": {
6022
+ "context:jobs:get": {
5934
6023
  "aliases": [],
5935
- "args": {},
5936
- "description": "List project members",
5937
- "examples": [
5938
- {
5939
- "command": "<%= config.bin %> <%= command.id %>",
5940
- "description": "List all users of the project"
5941
- },
5942
- {
5943
- "command": "<%= config.bin %> <%= command.id %> --no-invitations --no-robots",
5944
- "description": "List all users of the project, but exclude pending invitations and robots"
6024
+ "args": {
6025
+ "knowledgeBaseId": {
6026
+ "description": "Knowledge base ID",
6027
+ "name": "knowledgeBaseId",
6028
+ "required": true
5945
6029
  },
6030
+ "jobId": {
6031
+ "description": "Job ID",
6032
+ "name": "jobId",
6033
+ "required": true
6034
+ }
6035
+ },
6036
+ "description": "Get the status of a knowledge base job",
6037
+ "examples": [
5946
6038
  {
5947
- "command": "<%= config.bin %> <%= command.id %> --sort role",
5948
- "description": "List all users, sorted by role"
6039
+ "command": "<%= config.bin %> <%= command.id %> kb-abc123 job-def456",
6040
+ "description": "Get the current status of a job"
5949
6041
  },
5950
6042
  {
5951
- "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
5952
- "description": "List users for a specific project"
6043
+ "command": "<%= config.bin %> <%= command.id %> kb-abc123 job-def456 --watch",
6044
+ "description": "Wait for the job to finish (non-zero exit if it does not succeed)"
5953
6045
  }
5954
6046
  ],
5955
6047
  "flags": {
5956
- "project-id": {
5957
- "char": "p",
5958
- "description": "Project ID to list users for (overrides CLI configuration)",
5959
- "helpGroup": "OVERRIDE",
5960
- "name": "project-id",
5961
- "hasDynamicHelp": false,
5962
- "helpValue": "<id>",
5963
- "multiple": false,
5964
- "type": "option"
5965
- },
5966
- "invitations": {
5967
- "description": "Includes or excludes pending invitations",
5968
- "name": "invitations",
5969
- "allowNo": true,
6048
+ "json": {
6049
+ "description": "Output the job in JSON format",
6050
+ "name": "json",
6051
+ "allowNo": false,
5970
6052
  "type": "boolean"
5971
6053
  },
5972
- "order": {
5973
- "description": "Sort output ascending/descending",
5974
- "name": "order",
5975
- "default": "asc",
5976
- "hasDynamicHelp": false,
5977
- "multiple": false,
5978
- "options": [
5979
- "asc",
5980
- "desc"
5981
- ],
5982
- "type": "option"
5983
- },
5984
- "robots": {
5985
- "description": "Includes or excludes robots (token users)",
5986
- "name": "robots",
5987
- "allowNo": true,
6054
+ "watch": {
6055
+ "description": "Poll until the job reaches a terminal state",
6056
+ "name": "watch",
6057
+ "allowNo": false,
5988
6058
  "type": "boolean"
5989
- },
5990
- "sort": {
5991
- "description": "Sort users by specified column",
5992
- "name": "sort",
5993
- "default": "date",
5994
- "hasDynamicHelp": false,
5995
- "multiple": false,
5996
- "options": [
5997
- "id",
5998
- "name",
5999
- "role",
6000
- "date"
6001
- ],
6002
- "type": "option"
6003
6059
  }
6004
6060
  },
6005
6061
  "hasDynamicHelp": false,
6006
- "hiddenAliases": [
6007
- "user:list"
6008
- ],
6009
- "id": "users:list",
6062
+ "hiddenAliases": [],
6063
+ "id": "context:jobs:get",
6010
6064
  "pluginAlias": "@sanity/cli",
6011
6065
  "pluginName": "@sanity/cli",
6012
6066
  "pluginType": "core",
@@ -6015,8 +6069,9 @@
6015
6069
  "relativePath": [
6016
6070
  "dist",
6017
6071
  "commands",
6018
- "users",
6019
- "list.js"
6072
+ "context",
6073
+ "jobs",
6074
+ "get.js"
6020
6075
  ]
6021
6076
  },
6022
6077
  "context:imports:create": {
@@ -6385,61 +6440,6 @@
6385
6440
  "list.js"
6386
6441
  ]
6387
6442
  },
6388
- "context:jobs:get": {
6389
- "aliases": [],
6390
- "args": {
6391
- "knowledgeBaseId": {
6392
- "description": "Knowledge base ID",
6393
- "name": "knowledgeBaseId",
6394
- "required": true
6395
- },
6396
- "jobId": {
6397
- "description": "Job ID",
6398
- "name": "jobId",
6399
- "required": true
6400
- }
6401
- },
6402
- "description": "Get the status of a knowledge base job",
6403
- "examples": [
6404
- {
6405
- "command": "<%= config.bin %> <%= command.id %> kb-abc123 job-def456",
6406
- "description": "Get the current status of a job"
6407
- },
6408
- {
6409
- "command": "<%= config.bin %> <%= command.id %> kb-abc123 job-def456 --watch",
6410
- "description": "Wait for the job to finish (non-zero exit if it does not succeed)"
6411
- }
6412
- ],
6413
- "flags": {
6414
- "json": {
6415
- "description": "Output the job in JSON format",
6416
- "name": "json",
6417
- "allowNo": false,
6418
- "type": "boolean"
6419
- },
6420
- "watch": {
6421
- "description": "Poll until the job reaches a terminal state",
6422
- "name": "watch",
6423
- "allowNo": false,
6424
- "type": "boolean"
6425
- }
6426
- },
6427
- "hasDynamicHelp": false,
6428
- "hiddenAliases": [],
6429
- "id": "context:jobs:get",
6430
- "pluginAlias": "@sanity/cli",
6431
- "pluginName": "@sanity/cli",
6432
- "pluginType": "core",
6433
- "strict": true,
6434
- "isESM": true,
6435
- "relativePath": [
6436
- "dist",
6437
- "commands",
6438
- "context",
6439
- "jobs",
6440
- "get.js"
6441
- ]
6442
- },
6443
6443
  "datasets:alias:create": {
6444
6444
  "aliases": [],
6445
6445
  "args": {
@@ -6955,5 +6955,5 @@
6955
6955
  ]
6956
6956
  }
6957
6957
  },
6958
- "version": "8.9.0"
6958
+ "version": "8.9.1"
6959
6959
  }