@sanity/cli 8.16.0 → 8.17.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.
@@ -359,6 +359,10 @@
359
359
  "command": "<%= config.bin %> <%= command.id %> --external",
360
360
  "description": "Register an externally hosted studio (studioHost contains full URL)"
361
361
  },
362
+ {
363
+ "command": "<%= config.bin %> <%= command.id %> --external --url https://apps.example.com",
364
+ "description": "Register an externally hosted studio, served from the provided origin"
365
+ },
362
366
  {
363
367
  "command": "<%= config.bin %> <%= command.id %> --create --title \"My App\" --yes --json",
364
368
  "description": "Create and deploy an App SDK app without prompts. Save application.id as deployment.appId, then omit --create on later deploys"
@@ -406,8 +410,7 @@
406
410
  "description": "Register an externally hosted studio",
407
411
  "exclusive": [
408
412
  "source-maps",
409
- "minify",
410
- "build"
413
+ "minify"
411
414
  ],
412
415
  "name": "external",
413
416
  "allowNo": false,
@@ -446,7 +449,7 @@
446
449
  "type": "option"
447
450
  },
448
451
  "url": {
449
- "description": "Studio URL for deployment. For external studios, the full URL. For hosted studios, the hostname (e.g. \"my-studio\" or \"my-studio.sanity.studio\")",
452
+ "description": "Studio URL for deployment. For external deploys, the full URL. For hosted studios, the hostname (e.g. \"my-studio\" or \"my-studio.sanity.studio\")",
450
453
  "name": "url",
451
454
  "hasDynamicHelp": false,
452
455
  "multiple": false,
@@ -1773,167 +1776,6 @@
1773
1776
  "list.js"
1774
1777
  ]
1775
1778
  },
1776
- "cors:add": {
1777
- "aliases": [],
1778
- "args": {
1779
- "origin": {
1780
- "description": "Origin to allow (e.g., https://example.com)",
1781
- "name": "origin",
1782
- "required": true
1783
- }
1784
- },
1785
- "description": "Add a CORS origin to the project",
1786
- "examples": [
1787
- {
1788
- "command": "<%= config.bin %> <%= command.id %>",
1789
- "description": "Interactively add a CORS origin"
1790
- },
1791
- {
1792
- "command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
1793
- "description": "Add a localhost origin without credentials"
1794
- },
1795
- {
1796
- "command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
1797
- "description": "Add a production origin with credentials allowed"
1798
- },
1799
- {
1800
- "command": "<%= config.bin %> <%= command.id %> https://myapp.com --project-id abc123",
1801
- "description": "Add a CORS origin for a specific project"
1802
- }
1803
- ],
1804
- "flags": {
1805
- "project-id": {
1806
- "char": "p",
1807
- "description": "Project ID to add CORS origin to (overrides CLI configuration)",
1808
- "helpGroup": "OVERRIDE",
1809
- "name": "project-id",
1810
- "hasDynamicHelp": false,
1811
- "helpValue": "<id>",
1812
- "multiple": false,
1813
- "type": "option"
1814
- },
1815
- "credentials": {
1816
- "description": "Allow credentials (token/cookie) to be sent from this origin",
1817
- "name": "credentials",
1818
- "required": false,
1819
- "allowNo": true,
1820
- "type": "boolean"
1821
- },
1822
- "yes": {
1823
- "char": "y",
1824
- "description": "Confirm risky wildcard origins without prompting",
1825
- "name": "yes",
1826
- "allowNo": false,
1827
- "type": "boolean"
1828
- }
1829
- },
1830
- "hasDynamicHelp": false,
1831
- "hiddenAliases": [],
1832
- "id": "cors:add",
1833
- "pluginAlias": "@sanity/cli",
1834
- "pluginName": "@sanity/cli",
1835
- "pluginType": "core",
1836
- "strict": true,
1837
- "isESM": true,
1838
- "relativePath": [
1839
- "dist",
1840
- "commands",
1841
- "cors",
1842
- "add.js"
1843
- ]
1844
- },
1845
- "cors:delete": {
1846
- "aliases": [],
1847
- "args": {
1848
- "origin": {
1849
- "description": "Origin to delete (will prompt if not provided)",
1850
- "name": "origin",
1851
- "required": false
1852
- }
1853
- },
1854
- "description": "Delete a CORS origin from the project",
1855
- "examples": [
1856
- {
1857
- "command": "<%= config.bin %> <%= command.id %>",
1858
- "description": "Interactively select and delete a CORS origin"
1859
- },
1860
- {
1861
- "command": "<%= config.bin %> <%= command.id %> https://example.com",
1862
- "description": "Delete a specific CORS origin"
1863
- },
1864
- {
1865
- "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
1866
- "description": "Delete a CORS origin from a specific project"
1867
- }
1868
- ],
1869
- "flags": {
1870
- "project-id": {
1871
- "char": "p",
1872
- "description": "Project ID to delete CORS origin from (overrides CLI configuration)",
1873
- "helpGroup": "OVERRIDE",
1874
- "name": "project-id",
1875
- "hasDynamicHelp": false,
1876
- "helpValue": "<id>",
1877
- "multiple": false,
1878
- "type": "option"
1879
- }
1880
- },
1881
- "hasDynamicHelp": false,
1882
- "hiddenAliases": [],
1883
- "id": "cors:delete",
1884
- "pluginAlias": "@sanity/cli",
1885
- "pluginName": "@sanity/cli",
1886
- "pluginType": "core",
1887
- "strict": true,
1888
- "isESM": true,
1889
- "relativePath": [
1890
- "dist",
1891
- "commands",
1892
- "cors",
1893
- "delete.js"
1894
- ]
1895
- },
1896
- "cors:list": {
1897
- "aliases": [],
1898
- "args": {},
1899
- "description": "List CORS origins for the project",
1900
- "examples": [
1901
- {
1902
- "command": "<%= config.bin %> <%= command.id %>",
1903
- "description": "List CORS origins for the project"
1904
- },
1905
- {
1906
- "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
1907
- "description": "List CORS origins for a specific project"
1908
- }
1909
- ],
1910
- "flags": {
1911
- "project-id": {
1912
- "char": "p",
1913
- "description": "Project ID to list CORS origins for (overrides CLI configuration)",
1914
- "helpGroup": "OVERRIDE",
1915
- "name": "project-id",
1916
- "hasDynamicHelp": false,
1917
- "helpValue": "<id>",
1918
- "multiple": false,
1919
- "type": "option"
1920
- }
1921
- },
1922
- "hasDynamicHelp": false,
1923
- "hiddenAliases": [],
1924
- "id": "cors:list",
1925
- "pluginAlias": "@sanity/cli",
1926
- "pluginName": "@sanity/cli",
1927
- "pluginType": "core",
1928
- "strict": true,
1929
- "isESM": true,
1930
- "relativePath": [
1931
- "dist",
1932
- "commands",
1933
- "cors",
1934
- "list.js"
1935
- ]
1936
- },
1937
1779
  "context:build": {
1938
1780
  "aliases": [],
1939
1781
  "args": {
@@ -2321,63 +2163,38 @@
2321
2163
  "update.js"
2322
2164
  ]
2323
2165
  },
2324
- "datasets:copy": {
2166
+ "cors:add": {
2325
2167
  "aliases": [],
2326
2168
  "args": {
2327
- "source": {
2328
- "description": "Name of the dataset to copy from",
2329
- "name": "source",
2330
- "required": false
2331
- },
2332
- "target": {
2333
- "description": "Name of the dataset to copy to",
2334
- "name": "target",
2335
- "required": false
2169
+ "origin": {
2170
+ "description": "Origin to allow (e.g., https://example.com)",
2171
+ "name": "origin",
2172
+ "required": true
2336
2173
  }
2337
2174
  },
2338
- "description": "Copy a dataset or manage copy jobs",
2175
+ "description": "Add a CORS origin to the project",
2339
2176
  "examples": [
2340
2177
  {
2341
2178
  "command": "<%= config.bin %> <%= command.id %>",
2342
- "description": "Interactively copy a dataset"
2343
- },
2344
- {
2345
- "command": "<%= config.bin %> <%= command.id %> source-dataset",
2346
- "description": "Copy from source-dataset (prompts for target)"
2347
- },
2348
- {
2349
- "command": "<%= config.bin %> <%= command.id %> source-dataset target-dataset",
2350
- "description": "Copy from source-dataset to target-dataset"
2351
- },
2352
- {
2353
- "command": "<%= config.bin %> <%= command.id %> --skip-history source target",
2354
- "description": "Copy without preserving document history (faster for large datasets)"
2355
- },
2356
- {
2357
- "command": "<%= config.bin %> <%= command.id %> --skip-content-releases source target",
2358
- "description": "Copy without content release documents"
2359
- },
2360
- {
2361
- "command": "<%= config.bin %> <%= command.id %> --detach source target",
2362
- "description": "Start copy job without waiting for completion"
2179
+ "description": "Interactively add a CORS origin"
2363
2180
  },
2364
2181
  {
2365
- "command": "<%= config.bin %> <%= command.id %> --attach <job-id>",
2366
- "description": "Attach to a running copy job to follow progress"
2182
+ "command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
2183
+ "description": "Add a localhost origin without credentials"
2367
2184
  },
2368
2185
  {
2369
- "command": "<%= config.bin %> <%= command.id %> --list",
2370
- "description": "List all dataset copy jobs"
2186
+ "command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
2187
+ "description": "Add a production origin with credentials allowed"
2371
2188
  },
2372
2189
  {
2373
- "command": "<%= config.bin %> <%= command.id %> --list --offset 2 --limit 10",
2374
- "description": "List copy jobs with pagination"
2190
+ "command": "<%= config.bin %> <%= command.id %> https://myapp.com --project-id abc123",
2191
+ "description": "Add a CORS origin for a specific project"
2375
2192
  }
2376
2193
  ],
2377
2194
  "flags": {
2378
2195
  "project-id": {
2379
2196
  "char": "p",
2380
- "description": "Project ID to copy dataset in (overrides CLI configuration)",
2197
+ "description": "Project ID to add CORS origin to (overrides CLI configuration)",
2381
2198
  "helpGroup": "OVERRIDE",
2382
2199
  "name": "project-id",
2383
2200
  "hasDynamicHelp": false,
@@ -2385,41 +2202,227 @@
2385
2202
  "multiple": false,
2386
2203
  "type": "option"
2387
2204
  },
2388
- "attach": {
2389
- "description": "Attach to the running copy process to show progress",
2390
- "exclusive": [
2391
- "list",
2392
- "detach",
2393
- "skip-history"
2394
- ],
2395
- "name": "attach",
2205
+ "credentials": {
2206
+ "description": "Allow credentials (token/cookie) to be sent from this origin",
2207
+ "name": "credentials",
2396
2208
  "required": false,
2397
- "hasDynamicHelp": false,
2398
- "multiple": false,
2399
- "type": "option"
2209
+ "allowNo": true,
2210
+ "type": "boolean"
2400
2211
  },
2401
- "detach": {
2402
- "description": "Start the copy without waiting for it to finish",
2403
- "exclusive": [
2404
- "list",
2405
- "attach"
2406
- ],
2407
- "name": "detach",
2408
- "required": false,
2212
+ "yes": {
2213
+ "char": "y",
2214
+ "description": "Confirm risky wildcard origins without prompting",
2215
+ "name": "yes",
2409
2216
  "allowNo": false,
2410
2217
  "type": "boolean"
2411
- },
2412
- "limit": {
2413
- "dependsOn": [
2414
- "list"
2415
- ],
2416
- "description": "Maximum number of jobs returned (default 10, max 1000)",
2417
- "name": "limit",
2418
- "required": false,
2419
- "hasDynamicHelp": false,
2420
- "multiple": false,
2421
- "type": "option"
2422
- },
2218
+ }
2219
+ },
2220
+ "hasDynamicHelp": false,
2221
+ "hiddenAliases": [],
2222
+ "id": "cors:add",
2223
+ "pluginAlias": "@sanity/cli",
2224
+ "pluginName": "@sanity/cli",
2225
+ "pluginType": "core",
2226
+ "strict": true,
2227
+ "isESM": true,
2228
+ "relativePath": [
2229
+ "dist",
2230
+ "commands",
2231
+ "cors",
2232
+ "add.js"
2233
+ ]
2234
+ },
2235
+ "cors:delete": {
2236
+ "aliases": [],
2237
+ "args": {
2238
+ "origin": {
2239
+ "description": "Origin to delete (will prompt if not provided)",
2240
+ "name": "origin",
2241
+ "required": false
2242
+ }
2243
+ },
2244
+ "description": "Delete a CORS origin from the project",
2245
+ "examples": [
2246
+ {
2247
+ "command": "<%= config.bin %> <%= command.id %>",
2248
+ "description": "Interactively select and delete a CORS origin"
2249
+ },
2250
+ {
2251
+ "command": "<%= config.bin %> <%= command.id %> https://example.com",
2252
+ "description": "Delete a specific CORS origin"
2253
+ },
2254
+ {
2255
+ "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
2256
+ "description": "Delete a CORS origin from a specific project"
2257
+ }
2258
+ ],
2259
+ "flags": {
2260
+ "project-id": {
2261
+ "char": "p",
2262
+ "description": "Project ID to delete CORS origin from (overrides CLI configuration)",
2263
+ "helpGroup": "OVERRIDE",
2264
+ "name": "project-id",
2265
+ "hasDynamicHelp": false,
2266
+ "helpValue": "<id>",
2267
+ "multiple": false,
2268
+ "type": "option"
2269
+ }
2270
+ },
2271
+ "hasDynamicHelp": false,
2272
+ "hiddenAliases": [],
2273
+ "id": "cors:delete",
2274
+ "pluginAlias": "@sanity/cli",
2275
+ "pluginName": "@sanity/cli",
2276
+ "pluginType": "core",
2277
+ "strict": true,
2278
+ "isESM": true,
2279
+ "relativePath": [
2280
+ "dist",
2281
+ "commands",
2282
+ "cors",
2283
+ "delete.js"
2284
+ ]
2285
+ },
2286
+ "cors:list": {
2287
+ "aliases": [],
2288
+ "args": {},
2289
+ "description": "List CORS origins for the project",
2290
+ "examples": [
2291
+ {
2292
+ "command": "<%= config.bin %> <%= command.id %>",
2293
+ "description": "List CORS origins for the project"
2294
+ },
2295
+ {
2296
+ "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
2297
+ "description": "List CORS origins for a specific project"
2298
+ }
2299
+ ],
2300
+ "flags": {
2301
+ "project-id": {
2302
+ "char": "p",
2303
+ "description": "Project ID to list CORS origins for (overrides CLI configuration)",
2304
+ "helpGroup": "OVERRIDE",
2305
+ "name": "project-id",
2306
+ "hasDynamicHelp": false,
2307
+ "helpValue": "<id>",
2308
+ "multiple": false,
2309
+ "type": "option"
2310
+ }
2311
+ },
2312
+ "hasDynamicHelp": false,
2313
+ "hiddenAliases": [],
2314
+ "id": "cors:list",
2315
+ "pluginAlias": "@sanity/cli",
2316
+ "pluginName": "@sanity/cli",
2317
+ "pluginType": "core",
2318
+ "strict": true,
2319
+ "isESM": true,
2320
+ "relativePath": [
2321
+ "dist",
2322
+ "commands",
2323
+ "cors",
2324
+ "list.js"
2325
+ ]
2326
+ },
2327
+ "datasets:copy": {
2328
+ "aliases": [],
2329
+ "args": {
2330
+ "source": {
2331
+ "description": "Name of the dataset to copy from",
2332
+ "name": "source",
2333
+ "required": false
2334
+ },
2335
+ "target": {
2336
+ "description": "Name of the dataset to copy to",
2337
+ "name": "target",
2338
+ "required": false
2339
+ }
2340
+ },
2341
+ "description": "Copy a dataset or manage copy jobs",
2342
+ "examples": [
2343
+ {
2344
+ "command": "<%= config.bin %> <%= command.id %>",
2345
+ "description": "Interactively copy a dataset"
2346
+ },
2347
+ {
2348
+ "command": "<%= config.bin %> <%= command.id %> source-dataset",
2349
+ "description": "Copy from source-dataset (prompts for target)"
2350
+ },
2351
+ {
2352
+ "command": "<%= config.bin %> <%= command.id %> source-dataset target-dataset",
2353
+ "description": "Copy from source-dataset to target-dataset"
2354
+ },
2355
+ {
2356
+ "command": "<%= config.bin %> <%= command.id %> --skip-history source target",
2357
+ "description": "Copy without preserving document history (faster for large datasets)"
2358
+ },
2359
+ {
2360
+ "command": "<%= config.bin %> <%= command.id %> --skip-content-releases source target",
2361
+ "description": "Copy without content release documents"
2362
+ },
2363
+ {
2364
+ "command": "<%= config.bin %> <%= command.id %> --detach source target",
2365
+ "description": "Start copy job without waiting for completion"
2366
+ },
2367
+ {
2368
+ "command": "<%= config.bin %> <%= command.id %> --attach <job-id>",
2369
+ "description": "Attach to a running copy job to follow progress"
2370
+ },
2371
+ {
2372
+ "command": "<%= config.bin %> <%= command.id %> --list",
2373
+ "description": "List all dataset copy jobs"
2374
+ },
2375
+ {
2376
+ "command": "<%= config.bin %> <%= command.id %> --list --offset 2 --limit 10",
2377
+ "description": "List copy jobs with pagination"
2378
+ }
2379
+ ],
2380
+ "flags": {
2381
+ "project-id": {
2382
+ "char": "p",
2383
+ "description": "Project ID to copy dataset in (overrides CLI configuration)",
2384
+ "helpGroup": "OVERRIDE",
2385
+ "name": "project-id",
2386
+ "hasDynamicHelp": false,
2387
+ "helpValue": "<id>",
2388
+ "multiple": false,
2389
+ "type": "option"
2390
+ },
2391
+ "attach": {
2392
+ "description": "Attach to the running copy process to show progress",
2393
+ "exclusive": [
2394
+ "list",
2395
+ "detach",
2396
+ "skip-history"
2397
+ ],
2398
+ "name": "attach",
2399
+ "required": false,
2400
+ "hasDynamicHelp": false,
2401
+ "multiple": false,
2402
+ "type": "option"
2403
+ },
2404
+ "detach": {
2405
+ "description": "Start the copy without waiting for it to finish",
2406
+ "exclusive": [
2407
+ "list",
2408
+ "attach"
2409
+ ],
2410
+ "name": "detach",
2411
+ "required": false,
2412
+ "allowNo": false,
2413
+ "type": "boolean"
2414
+ },
2415
+ "limit": {
2416
+ "dependsOn": [
2417
+ "list"
2418
+ ],
2419
+ "description": "Maximum number of jobs returned (default 10, max 1000)",
2420
+ "name": "limit",
2421
+ "required": false,
2422
+ "hasDynamicHelp": false,
2423
+ "multiple": false,
2424
+ "type": "option"
2425
+ },
2423
2426
  "list": {
2424
2427
  "description": "Lists all dataset copy jobs",
2425
2428
  "exclusive": [
@@ -2943,152 +2946,28 @@
2943
2946
  "list.js"
2944
2947
  ]
2945
2948
  },
2946
- "docs:browse": {
2947
- "aliases": [],
2948
- "args": {},
2949
- "description": "Open Sanity docs in your browser",
2950
- "flags": {},
2951
- "hasDynamicHelp": false,
2952
- "hiddenAliases": [],
2953
- "id": "docs:browse",
2954
- "pluginAlias": "@sanity/cli",
2955
- "pluginName": "@sanity/cli",
2956
- "pluginType": "core",
2957
- "strict": true,
2958
- "enableJsonFlag": false,
2959
- "isESM": true,
2960
- "relativePath": [
2961
- "dist",
2962
- "commands",
2963
- "docs",
2964
- "browse.js"
2965
- ]
2966
- },
2967
- "docs:read": {
2949
+ "documents:create": {
2968
2950
  "aliases": [],
2969
2951
  "args": {
2970
- "path": {
2971
- "description": "Path or URL to article, found in search results and docs content as links",
2972
- "name": "path",
2973
- "required": true
2952
+ "file": {
2953
+ "description": "JSON file to create document(s) from",
2954
+ "name": "file",
2955
+ "required": false
2974
2956
  }
2975
2957
  },
2976
- "description": "Read an article in terminal",
2958
+ "description": "Create one or more documents",
2977
2959
  "examples": [
2978
2960
  {
2979
- "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation",
2980
- "description": "Read as markdown in terminal"
2961
+ "command": "<%= config.bin %> <%= command.id %> myDocument.json",
2962
+ "description": "Create the document specified in \"myDocument.json\""
2981
2963
  },
2982
2964
  {
2983
- "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation",
2984
- "description": "Read using full URL"
2965
+ "command": "<%= config.bin %> <%= command.id %>",
2966
+ "description": "Open configured $EDITOR and create the specified document(s)"
2985
2967
  },
2986
2968
  {
2987
- "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation --web",
2988
- "description": "Open in web browser"
2989
- },
2990
- {
2991
- "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation -w",
2992
- "description": "Open using full URL in web browser"
2993
- }
2994
- ],
2995
- "flags": {
2996
- "web": {
2997
- "aliases": [
2998
- "w"
2999
- ],
3000
- "description": "Open in a web browser",
3001
- "name": "web",
3002
- "allowNo": false,
3003
- "type": "boolean"
3004
- }
3005
- },
3006
- "hasDynamicHelp": false,
3007
- "hiddenAliases": [],
3008
- "id": "docs:read",
3009
- "pluginAlias": "@sanity/cli",
3010
- "pluginName": "@sanity/cli",
3011
- "pluginType": "core",
3012
- "strict": true,
3013
- "isESM": true,
3014
- "relativePath": [
3015
- "dist",
3016
- "commands",
3017
- "docs",
3018
- "read.js"
3019
- ]
3020
- },
3021
- "docs:search": {
3022
- "aliases": [],
3023
- "args": {
3024
- "query": {
3025
- "description": "Search query for documentation",
3026
- "name": "query",
3027
- "required": true
3028
- }
3029
- },
3030
- "description": "Search Sanity docs",
3031
- "examples": [
3032
- {
3033
- "command": "<%= config.bin %> <%= command.id %> schema",
3034
- "description": "Search for documentation about schemas"
3035
- },
3036
- {
3037
- "command": "<%= config.bin %> <%= command.id %> \"groq functions\"",
3038
- "description": "Search with phrase"
3039
- },
3040
- {
3041
- "command": "<%= config.bin %> <%= command.id %> \"deployment\" --limit=5",
3042
- "description": "Limit search results"
3043
- }
3044
- ],
3045
- "flags": {
3046
- "limit": {
3047
- "description": "Maximum number of results to return",
3048
- "name": "limit",
3049
- "default": 10,
3050
- "hasDynamicHelp": false,
3051
- "multiple": false,
3052
- "type": "option"
3053
- }
3054
- },
3055
- "hasDynamicHelp": false,
3056
- "hiddenAliases": [],
3057
- "id": "docs:search",
3058
- "pluginAlias": "@sanity/cli",
3059
- "pluginName": "@sanity/cli",
3060
- "pluginType": "core",
3061
- "strict": true,
3062
- "isESM": true,
3063
- "relativePath": [
3064
- "dist",
3065
- "commands",
3066
- "docs",
3067
- "search.js"
3068
- ]
3069
- },
3070
- "documents:create": {
3071
- "aliases": [],
3072
- "args": {
3073
- "file": {
3074
- "description": "JSON file to create document(s) from",
3075
- "name": "file",
3076
- "required": false
3077
- }
3078
- },
3079
- "description": "Create one or more documents",
3080
- "examples": [
3081
- {
3082
- "command": "<%= config.bin %> <%= command.id %> myDocument.json",
3083
- "description": "Create the document specified in \"myDocument.json\""
3084
- },
3085
- {
3086
- "command": "<%= config.bin %> <%= command.id %>",
3087
- "description": "Open configured $EDITOR and create the specified document(s)"
3088
- },
3089
- {
3090
- "command": "<%= config.bin %> <%= command.id %> --id myDocId --replace",
3091
- "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"
2969
+ "command": "<%= config.bin %> <%= command.id %> --id myDocId --replace",
2970
+ "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"
3092
2971
  },
3093
2972
  {
3094
2973
  "command": "<%= config.bin %> <%= command.id %> --id myDocId --watch --replace --json5",
@@ -3791,6 +3670,130 @@
3791
3670
  "undeploy.js"
3792
3671
  ]
3793
3672
  },
3673
+ "docs:browse": {
3674
+ "aliases": [],
3675
+ "args": {},
3676
+ "description": "Open Sanity docs in your browser",
3677
+ "flags": {},
3678
+ "hasDynamicHelp": false,
3679
+ "hiddenAliases": [],
3680
+ "id": "docs:browse",
3681
+ "pluginAlias": "@sanity/cli",
3682
+ "pluginName": "@sanity/cli",
3683
+ "pluginType": "core",
3684
+ "strict": true,
3685
+ "enableJsonFlag": false,
3686
+ "isESM": true,
3687
+ "relativePath": [
3688
+ "dist",
3689
+ "commands",
3690
+ "docs",
3691
+ "browse.js"
3692
+ ]
3693
+ },
3694
+ "docs:read": {
3695
+ "aliases": [],
3696
+ "args": {
3697
+ "path": {
3698
+ "description": "Path or URL to article, found in search results and docs content as links",
3699
+ "name": "path",
3700
+ "required": true
3701
+ }
3702
+ },
3703
+ "description": "Read an article in terminal",
3704
+ "examples": [
3705
+ {
3706
+ "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation",
3707
+ "description": "Read as markdown in terminal"
3708
+ },
3709
+ {
3710
+ "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation",
3711
+ "description": "Read using full URL"
3712
+ },
3713
+ {
3714
+ "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation --web",
3715
+ "description": "Open in web browser"
3716
+ },
3717
+ {
3718
+ "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation -w",
3719
+ "description": "Open using full URL in web browser"
3720
+ }
3721
+ ],
3722
+ "flags": {
3723
+ "web": {
3724
+ "aliases": [
3725
+ "w"
3726
+ ],
3727
+ "description": "Open in a web browser",
3728
+ "name": "web",
3729
+ "allowNo": false,
3730
+ "type": "boolean"
3731
+ }
3732
+ },
3733
+ "hasDynamicHelp": false,
3734
+ "hiddenAliases": [],
3735
+ "id": "docs:read",
3736
+ "pluginAlias": "@sanity/cli",
3737
+ "pluginName": "@sanity/cli",
3738
+ "pluginType": "core",
3739
+ "strict": true,
3740
+ "isESM": true,
3741
+ "relativePath": [
3742
+ "dist",
3743
+ "commands",
3744
+ "docs",
3745
+ "read.js"
3746
+ ]
3747
+ },
3748
+ "docs:search": {
3749
+ "aliases": [],
3750
+ "args": {
3751
+ "query": {
3752
+ "description": "Search query for documentation",
3753
+ "name": "query",
3754
+ "required": true
3755
+ }
3756
+ },
3757
+ "description": "Search Sanity docs",
3758
+ "examples": [
3759
+ {
3760
+ "command": "<%= config.bin %> <%= command.id %> schema",
3761
+ "description": "Search for documentation about schemas"
3762
+ },
3763
+ {
3764
+ "command": "<%= config.bin %> <%= command.id %> \"groq functions\"",
3765
+ "description": "Search with phrase"
3766
+ },
3767
+ {
3768
+ "command": "<%= config.bin %> <%= command.id %> \"deployment\" --limit=5",
3769
+ "description": "Limit search results"
3770
+ }
3771
+ ],
3772
+ "flags": {
3773
+ "limit": {
3774
+ "description": "Maximum number of results to return",
3775
+ "name": "limit",
3776
+ "default": 10,
3777
+ "hasDynamicHelp": false,
3778
+ "multiple": false,
3779
+ "type": "option"
3780
+ }
3781
+ },
3782
+ "hasDynamicHelp": false,
3783
+ "hiddenAliases": [],
3784
+ "id": "docs:search",
3785
+ "pluginAlias": "@sanity/cli",
3786
+ "pluginName": "@sanity/cli",
3787
+ "pluginType": "core",
3788
+ "strict": true,
3789
+ "isESM": true,
3790
+ "relativePath": [
3791
+ "dist",
3792
+ "commands",
3793
+ "docs",
3794
+ "search.js"
3795
+ ]
3796
+ },
3794
3797
  "hooks:attempt": {
3795
3798
  "aliases": [],
3796
3799
  "args": {
@@ -5156,6 +5159,32 @@
5156
5159
  "unclaimed.js"
5157
5160
  ]
5158
5161
  },
5162
+ "skills:install": {
5163
+ "aliases": [],
5164
+ "args": {},
5165
+ "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)",
5166
+ "examples": [
5167
+ {
5168
+ "command": "<%= config.bin %> <%= command.id %>",
5169
+ "description": "Install Sanity agent skills for detected AI editors"
5170
+ }
5171
+ ],
5172
+ "flags": {},
5173
+ "hasDynamicHelp": false,
5174
+ "hiddenAliases": [],
5175
+ "id": "skills:install",
5176
+ "pluginAlias": "@sanity/cli",
5177
+ "pluginName": "@sanity/cli",
5178
+ "pluginType": "core",
5179
+ "strict": true,
5180
+ "isESM": true,
5181
+ "relativePath": [
5182
+ "dist",
5183
+ "commands",
5184
+ "skills",
5185
+ "install.js"
5186
+ ]
5187
+ },
5159
5188
  "schemas:delete": {
5160
5189
  "aliases": [],
5161
5190
  "args": {},
@@ -5555,36 +5584,10 @@
5555
5584
  "validate.js"
5556
5585
  ]
5557
5586
  },
5558
- "skills:install": {
5587
+ "telemetry:disable": {
5559
5588
  "aliases": [],
5560
5589
  "args": {},
5561
- "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)",
5562
- "examples": [
5563
- {
5564
- "command": "<%= config.bin %> <%= command.id %>",
5565
- "description": "Install Sanity agent skills for detected AI editors"
5566
- }
5567
- ],
5568
- "flags": {},
5569
- "hasDynamicHelp": false,
5570
- "hiddenAliases": [],
5571
- "id": "skills:install",
5572
- "pluginAlias": "@sanity/cli",
5573
- "pluginName": "@sanity/cli",
5574
- "pluginType": "core",
5575
- "strict": true,
5576
- "isESM": true,
5577
- "relativePath": [
5578
- "dist",
5579
- "commands",
5580
- "skills",
5581
- "install.js"
5582
- ]
5583
- },
5584
- "telemetry:disable": {
5585
- "aliases": [],
5586
- "args": {},
5587
- "description": "Disable telemetry for your account",
5590
+ "description": "Disable telemetry for your account",
5588
5591
  "examples": [
5589
5592
  {
5590
5593
  "command": "<%= config.bin %> telemetry <%= command.id %>",
@@ -6540,43 +6543,26 @@
6540
6543
  "get.js"
6541
6544
  ]
6542
6545
  },
6543
- "datasets:alias:create": {
6546
+ "datasets:embeddings:disable": {
6544
6547
  "aliases": [],
6545
6548
  "args": {
6546
- "aliasName": {
6547
- "description": "Dataset alias name to create",
6548
- "name": "aliasName",
6549
- "required": false
6550
- },
6551
- "targetDataset": {
6552
- "description": "Target dataset name to link the alias to",
6553
- "name": "targetDataset",
6549
+ "dataset": {
6550
+ "description": "Dataset name to disable embeddings for",
6551
+ "name": "dataset",
6554
6552
  "required": false
6555
6553
  }
6556
6554
  },
6557
- "description": "Create a dataset alias for the project",
6555
+ "description": "Disable embeddings for a dataset",
6558
6556
  "examples": [
6559
6557
  {
6560
- "command": "<%= config.bin %> <%= command.id %> --project-id abc123 conference conf-2025",
6561
- "description": "Create alias in a specific project"
6562
- },
6563
- {
6564
- "command": "<%= config.bin %> <%= command.id %>",
6565
- "description": "Create an alias with interactive prompts"
6566
- },
6567
- {
6568
- "command": "<%= config.bin %> <%= command.id %> conference",
6569
- "description": "Create alias named \"conference\" with interactive dataset selection"
6570
- },
6571
- {
6572
- "command": "<%= config.bin %> <%= command.id %> conference conf-2025",
6573
- "description": "Create alias \"conference\" linked to \"conf-2025\" dataset"
6558
+ "command": "<%= config.bin %> <%= command.id %> production",
6559
+ "description": "Disable embeddings for the production dataset"
6574
6560
  }
6575
6561
  ],
6576
6562
  "flags": {
6577
6563
  "project-id": {
6578
6564
  "char": "p",
6579
- "description": "Project ID to create dataset alias in (overrides CLI configuration)",
6565
+ "description": "Project ID to disable embeddings for (overrides CLI configuration)",
6580
6566
  "helpGroup": "OVERRIDE",
6581
6567
  "name": "project-id",
6582
6568
  "hasDynamicHelp": false,
@@ -6587,9 +6573,9 @@
6587
6573
  },
6588
6574
  "hasDynamicHelp": false,
6589
6575
  "hiddenAliases": [
6590
- "dataset:alias:create"
6576
+ "dataset:embeddings:disable"
6591
6577
  ],
6592
- "id": "datasets:alias:create",
6578
+ "id": "datasets:embeddings:disable",
6593
6579
  "pluginAlias": "@sanity/cli",
6594
6580
  "pluginName": "@sanity/cli",
6595
6581
  "pluginType": "core",
@@ -6599,34 +6585,38 @@
6599
6585
  "dist",
6600
6586
  "commands",
6601
6587
  "datasets",
6602
- "alias",
6603
- "create.js"
6588
+ "embeddings",
6589
+ "disable.js"
6604
6590
  ]
6605
6591
  },
6606
- "datasets:alias:delete": {
6592
+ "datasets:embeddings:enable": {
6607
6593
  "aliases": [],
6608
6594
  "args": {
6609
- "aliasName": {
6610
- "description": "Dataset alias name to delete",
6611
- "name": "aliasName",
6612
- "required": true
6595
+ "dataset": {
6596
+ "description": "Dataset name to enable embeddings for",
6597
+ "name": "dataset",
6598
+ "required": false
6613
6599
  }
6614
6600
  },
6615
- "description": "Delete a dataset alias from the project",
6601
+ "description": "Enable embeddings for a dataset",
6616
6602
  "examples": [
6617
6603
  {
6618
- "command": "<%= config.bin %> <%= command.id %> conference",
6619
- "description": "Delete alias named \"conference\" with confirmation prompt"
6604
+ "command": "<%= config.bin %> <%= command.id %> production",
6605
+ "description": "Enable embeddings for the production dataset"
6620
6606
  },
6621
6607
  {
6622
- "command": "<%= config.bin %> <%= command.id %> conference --force",
6623
- "description": "Delete alias named \"conference\" without confirmation prompt"
6608
+ "command": "<%= config.bin %> <%= command.id %> production --projection \"{ title, body }\"",
6609
+ "description": "Enable embeddings with a specific projection"
6610
+ },
6611
+ {
6612
+ "command": "<%= config.bin %> <%= command.id %> production --wait",
6613
+ "description": "Enable embeddings and wait for processing to complete"
6624
6614
  }
6625
6615
  ],
6626
6616
  "flags": {
6627
6617
  "project-id": {
6628
6618
  "char": "p",
6629
- "description": "Project ID to delete dataset alias from (overrides CLI configuration)",
6619
+ "description": "Project ID to enable embeddings for (overrides CLI configuration)",
6630
6620
  "helpGroup": "OVERRIDE",
6631
6621
  "name": "project-id",
6632
6622
  "hasDynamicHelp": false,
@@ -6634,18 +6624,26 @@
6634
6624
  "multiple": false,
6635
6625
  "type": "option"
6636
6626
  },
6637
- "force": {
6638
- "description": "Skip confirmation prompt and delete immediately",
6639
- "name": "force",
6627
+ "projection": {
6628
+ "description": "GROQ projection defining which fields to embed (e.g. \"{ title, body }\")",
6629
+ "name": "projection",
6630
+ "required": false,
6631
+ "hasDynamicHelp": false,
6632
+ "multiple": false,
6633
+ "type": "option"
6634
+ },
6635
+ "wait": {
6636
+ "description": "Wait for embeddings processing to complete before returning",
6637
+ "name": "wait",
6640
6638
  "allowNo": false,
6641
6639
  "type": "boolean"
6642
6640
  }
6643
6641
  },
6644
6642
  "hasDynamicHelp": false,
6645
6643
  "hiddenAliases": [
6646
- "dataset:alias:delete"
6644
+ "dataset:embeddings:enable"
6647
6645
  ],
6648
- "id": "datasets:alias:delete",
6646
+ "id": "datasets:embeddings:enable",
6649
6647
  "pluginAlias": "@sanity/cli",
6650
6648
  "pluginName": "@sanity/cli",
6651
6649
  "pluginType": "core",
@@ -6655,67 +6653,43 @@
6655
6653
  "dist",
6656
6654
  "commands",
6657
6655
  "datasets",
6658
- "alias",
6659
- "delete.js"
6656
+ "embeddings",
6657
+ "enable.js"
6660
6658
  ]
6661
6659
  },
6662
- "datasets:alias:link": {
6660
+ "datasets:embeddings:status": {
6663
6661
  "aliases": [],
6664
6662
  "args": {
6665
- "aliasName": {
6666
- "description": "Dataset alias name to link",
6667
- "name": "aliasName",
6668
- "required": false
6669
- },
6670
- "targetDataset": {
6671
- "description": "Target dataset name to link the alias to",
6672
- "name": "targetDataset",
6663
+ "dataset": {
6664
+ "description": "The name of the dataset to check embeddings status for",
6665
+ "name": "dataset",
6673
6666
  "required": false
6674
6667
  }
6675
6668
  },
6676
- "description": "Link a dataset alias to a dataset in the project",
6669
+ "description": "Show embeddings settings and status for a dataset",
6677
6670
  "examples": [
6678
6671
  {
6679
- "command": "<%= config.bin %> <%= command.id %>",
6680
- "description": "Link an alias with interactive prompts"
6681
- },
6682
- {
6683
- "command": "<%= config.bin %> <%= command.id %> conference",
6684
- "description": "Link alias named \"conference\" with interactive dataset selection"
6685
- },
6686
- {
6687
- "command": "<%= config.bin %> <%= command.id %> conference conf-2025",
6688
- "description": "Link alias \"conference\" to \"conf-2025\" dataset"
6689
- },
6690
- {
6691
- "command": "<%= config.bin %> <%= command.id %> conference conf-2025 --force",
6692
- "description": "Force link without confirmation (skip relink prompt)"
6672
+ "command": "<%= config.bin %> <%= command.id %> production",
6673
+ "description": "Show embeddings status for the production dataset"
6693
6674
  }
6694
6675
  ],
6695
6676
  "flags": {
6696
6677
  "project-id": {
6697
6678
  "char": "p",
6698
- "description": "Project ID to link dataset alias in (overrides CLI configuration)",
6679
+ "description": "Project ID to check embeddings status for (overrides CLI configuration)",
6699
6680
  "helpGroup": "OVERRIDE",
6700
6681
  "name": "project-id",
6701
6682
  "hasDynamicHelp": false,
6702
6683
  "helpValue": "<id>",
6703
6684
  "multiple": false,
6704
6685
  "type": "option"
6705
- },
6706
- "force": {
6707
- "description": "Skip confirmation prompt when relinking existing alias",
6708
- "name": "force",
6709
- "required": false,
6710
- "allowNo": false,
6711
- "type": "boolean"
6712
6686
  }
6713
6687
  },
6714
6688
  "hasDynamicHelp": false,
6715
6689
  "hiddenAliases": [
6716
- "dataset:alias:link"
6690
+ "dataset:embeddings:status"
6717
6691
  ],
6718
- "id": "datasets:alias:link",
6692
+ "id": "datasets:embeddings:status",
6719
6693
  "pluginAlias": "@sanity/cli",
6720
6694
  "pluginName": "@sanity/cli",
6721
6695
  "pluginType": "core",
@@ -6725,57 +6699,43 @@
6725
6699
  "dist",
6726
6700
  "commands",
6727
6701
  "datasets",
6728
- "alias",
6729
- "link.js"
6702
+ "embeddings",
6703
+ "status.js"
6730
6704
  ]
6731
6705
  },
6732
- "datasets:alias:unlink": {
6706
+ "datasets:visibility:get": {
6733
6707
  "aliases": [],
6734
6708
  "args": {
6735
- "aliasName": {
6736
- "description": "Dataset alias name to unlink",
6737
- "name": "aliasName",
6738
- "required": false
6709
+ "dataset": {
6710
+ "description": "The name of the dataset to get visibility for",
6711
+ "name": "dataset",
6712
+ "required": true
6739
6713
  }
6740
6714
  },
6741
- "description": "Unlink a dataset alias from its dataset in the project",
6715
+ "description": "Get the visibility of a dataset",
6742
6716
  "examples": [
6743
6717
  {
6744
- "command": "<%= config.bin %> <%= command.id %>",
6745
- "description": "Unlink an alias with interactive selection"
6746
- },
6747
- {
6748
- "command": "<%= config.bin %> <%= command.id %> conference",
6749
- "description": "Unlink alias \"conference\" with confirmation prompt"
6750
- },
6751
- {
6752
- "command": "<%= config.bin %> <%= command.id %> conference --force",
6753
- "description": "Unlink alias \"conference\" without confirmation prompt"
6718
+ "command": "<%= config.bin %> <%= command.id %> my-dataset",
6719
+ "description": "Check the visibility of a dataset"
6754
6720
  }
6755
6721
  ],
6756
6722
  "flags": {
6757
6723
  "project-id": {
6758
6724
  "char": "p",
6759
- "description": "Project ID to unlink dataset alias in (overrides CLI configuration)",
6725
+ "description": "Project ID to get dataset visibility for (overrides CLI configuration)",
6760
6726
  "helpGroup": "OVERRIDE",
6761
6727
  "name": "project-id",
6762
6728
  "hasDynamicHelp": false,
6763
6729
  "helpValue": "<id>",
6764
6730
  "multiple": false,
6765
6731
  "type": "option"
6766
- },
6767
- "force": {
6768
- "description": "Skip confirmation prompt and unlink immediately",
6769
- "name": "force",
6770
- "allowNo": false,
6771
- "type": "boolean"
6772
6732
  }
6773
6733
  },
6774
6734
  "hasDynamicHelp": false,
6775
6735
  "hiddenAliases": [
6776
- "dataset:alias:unlink"
6736
+ "dataset:visibility:get"
6777
6737
  ],
6778
- "id": "datasets:alias:unlink",
6738
+ "id": "datasets:visibility:get",
6779
6739
  "pluginAlias": "@sanity/cli",
6780
6740
  "pluginName": "@sanity/cli",
6781
6741
  "pluginType": "core",
@@ -6785,30 +6745,43 @@
6785
6745
  "dist",
6786
6746
  "commands",
6787
6747
  "datasets",
6788
- "alias",
6789
- "unlink.js"
6748
+ "visibility",
6749
+ "get.js"
6790
6750
  ]
6791
6751
  },
6792
- "datasets:embeddings:disable": {
6752
+ "datasets:visibility:set": {
6793
6753
  "aliases": [],
6794
6754
  "args": {
6795
6755
  "dataset": {
6796
- "description": "Dataset name to disable embeddings for",
6756
+ "description": "The name of the dataset to set visibility for",
6797
6757
  "name": "dataset",
6798
- "required": false
6758
+ "required": true
6759
+ },
6760
+ "mode": {
6761
+ "description": "The visibility mode to set",
6762
+ "name": "mode",
6763
+ "options": [
6764
+ "public",
6765
+ "private"
6766
+ ],
6767
+ "required": true
6799
6768
  }
6800
6769
  },
6801
- "description": "Disable embeddings for a dataset",
6770
+ "description": "Set the visibility of a dataset",
6802
6771
  "examples": [
6803
6772
  {
6804
- "command": "<%= config.bin %> <%= command.id %> production",
6805
- "description": "Disable embeddings for the production dataset"
6773
+ "command": "<%= config.bin %> <%= command.id %> my-dataset private",
6774
+ "description": "Make a dataset private"
6775
+ },
6776
+ {
6777
+ "command": "<%= config.bin %> <%= command.id %> my-dataset public",
6778
+ "description": "Make a dataset public"
6806
6779
  }
6807
6780
  ],
6808
6781
  "flags": {
6809
6782
  "project-id": {
6810
6783
  "char": "p",
6811
- "description": "Project ID to disable embeddings for (overrides CLI configuration)",
6784
+ "description": "Project ID to set dataset visibility for (overrides CLI configuration)",
6812
6785
  "helpGroup": "OVERRIDE",
6813
6786
  "name": "project-id",
6814
6787
  "hasDynamicHelp": false,
@@ -6819,9 +6792,9 @@
6819
6792
  },
6820
6793
  "hasDynamicHelp": false,
6821
6794
  "hiddenAliases": [
6822
- "dataset:embeddings:disable"
6795
+ "dataset:visibility:set"
6823
6796
  ],
6824
- "id": "datasets:embeddings:disable",
6797
+ "id": "datasets:visibility:set",
6825
6798
  "pluginAlias": "@sanity/cli",
6826
6799
  "pluginName": "@sanity/cli",
6827
6800
  "pluginType": "core",
@@ -6831,65 +6804,60 @@
6831
6804
  "dist",
6832
6805
  "commands",
6833
6806
  "datasets",
6834
- "embeddings",
6835
- "disable.js"
6807
+ "visibility",
6808
+ "set.js"
6836
6809
  ]
6837
6810
  },
6838
- "datasets:embeddings:enable": {
6811
+ "datasets:alias:create": {
6839
6812
  "aliases": [],
6840
6813
  "args": {
6841
- "dataset": {
6842
- "description": "Dataset name to enable embeddings for",
6843
- "name": "dataset",
6814
+ "aliasName": {
6815
+ "description": "Dataset alias name to create",
6816
+ "name": "aliasName",
6817
+ "required": false
6818
+ },
6819
+ "targetDataset": {
6820
+ "description": "Target dataset name to link the alias to",
6821
+ "name": "targetDataset",
6844
6822
  "required": false
6845
6823
  }
6846
6824
  },
6847
- "description": "Enable embeddings for a dataset",
6825
+ "description": "Create a dataset alias for the project",
6848
6826
  "examples": [
6849
6827
  {
6850
- "command": "<%= config.bin %> <%= command.id %> production",
6851
- "description": "Enable embeddings for the production dataset"
6828
+ "command": "<%= config.bin %> <%= command.id %> --project-id abc123 conference conf-2025",
6829
+ "description": "Create alias in a specific project"
6852
6830
  },
6853
6831
  {
6854
- "command": "<%= config.bin %> <%= command.id %> production --projection \"{ title, body }\"",
6855
- "description": "Enable embeddings with a specific projection"
6832
+ "command": "<%= config.bin %> <%= command.id %>",
6833
+ "description": "Create an alias with interactive prompts"
6856
6834
  },
6857
6835
  {
6858
- "command": "<%= config.bin %> <%= command.id %> production --wait",
6859
- "description": "Enable embeddings and wait for processing to complete"
6836
+ "command": "<%= config.bin %> <%= command.id %> conference",
6837
+ "description": "Create alias named \"conference\" with interactive dataset selection"
6838
+ },
6839
+ {
6840
+ "command": "<%= config.bin %> <%= command.id %> conference conf-2025",
6841
+ "description": "Create alias \"conference\" linked to \"conf-2025\" dataset"
6860
6842
  }
6861
6843
  ],
6862
6844
  "flags": {
6863
6845
  "project-id": {
6864
6846
  "char": "p",
6865
- "description": "Project ID to enable embeddings for (overrides CLI configuration)",
6847
+ "description": "Project ID to create dataset alias in (overrides CLI configuration)",
6866
6848
  "helpGroup": "OVERRIDE",
6867
6849
  "name": "project-id",
6868
6850
  "hasDynamicHelp": false,
6869
6851
  "helpValue": "<id>",
6870
6852
  "multiple": false,
6871
6853
  "type": "option"
6872
- },
6873
- "projection": {
6874
- "description": "GROQ projection defining which fields to embed (e.g. \"{ title, body }\")",
6875
- "name": "projection",
6876
- "required": false,
6877
- "hasDynamicHelp": false,
6878
- "multiple": false,
6879
- "type": "option"
6880
- },
6881
- "wait": {
6882
- "description": "Wait for embeddings processing to complete before returning",
6883
- "name": "wait",
6884
- "allowNo": false,
6885
- "type": "boolean"
6886
6854
  }
6887
6855
  },
6888
6856
  "hasDynamicHelp": false,
6889
6857
  "hiddenAliases": [
6890
- "dataset:embeddings:enable"
6858
+ "dataset:alias:create"
6891
6859
  ],
6892
- "id": "datasets:embeddings:enable",
6860
+ "id": "datasets:alias:create",
6893
6861
  "pluginAlias": "@sanity/cli",
6894
6862
  "pluginName": "@sanity/cli",
6895
6863
  "pluginType": "core",
@@ -6899,43 +6867,53 @@
6899
6867
  "dist",
6900
6868
  "commands",
6901
6869
  "datasets",
6902
- "embeddings",
6903
- "enable.js"
6870
+ "alias",
6871
+ "create.js"
6904
6872
  ]
6905
6873
  },
6906
- "datasets:embeddings:status": {
6874
+ "datasets:alias:delete": {
6907
6875
  "aliases": [],
6908
6876
  "args": {
6909
- "dataset": {
6910
- "description": "The name of the dataset to check embeddings status for",
6911
- "name": "dataset",
6912
- "required": false
6877
+ "aliasName": {
6878
+ "description": "Dataset alias name to delete",
6879
+ "name": "aliasName",
6880
+ "required": true
6913
6881
  }
6914
6882
  },
6915
- "description": "Show embeddings settings and status for a dataset",
6883
+ "description": "Delete a dataset alias from the project",
6916
6884
  "examples": [
6917
6885
  {
6918
- "command": "<%= config.bin %> <%= command.id %> production",
6919
- "description": "Show embeddings status for the production dataset"
6886
+ "command": "<%= config.bin %> <%= command.id %> conference",
6887
+ "description": "Delete alias named \"conference\" with confirmation prompt"
6888
+ },
6889
+ {
6890
+ "command": "<%= config.bin %> <%= command.id %> conference --force",
6891
+ "description": "Delete alias named \"conference\" without confirmation prompt"
6920
6892
  }
6921
6893
  ],
6922
6894
  "flags": {
6923
6895
  "project-id": {
6924
6896
  "char": "p",
6925
- "description": "Project ID to check embeddings status for (overrides CLI configuration)",
6897
+ "description": "Project ID to delete dataset alias from (overrides CLI configuration)",
6926
6898
  "helpGroup": "OVERRIDE",
6927
6899
  "name": "project-id",
6928
6900
  "hasDynamicHelp": false,
6929
6901
  "helpValue": "<id>",
6930
6902
  "multiple": false,
6931
6903
  "type": "option"
6904
+ },
6905
+ "force": {
6906
+ "description": "Skip confirmation prompt and delete immediately",
6907
+ "name": "force",
6908
+ "allowNo": false,
6909
+ "type": "boolean"
6932
6910
  }
6933
6911
  },
6934
6912
  "hasDynamicHelp": false,
6935
6913
  "hiddenAliases": [
6936
- "dataset:embeddings:status"
6914
+ "dataset:alias:delete"
6937
6915
  ],
6938
- "id": "datasets:embeddings:status",
6916
+ "id": "datasets:alias:delete",
6939
6917
  "pluginAlias": "@sanity/cli",
6940
6918
  "pluginName": "@sanity/cli",
6941
6919
  "pluginType": "core",
@@ -6945,43 +6923,67 @@
6945
6923
  "dist",
6946
6924
  "commands",
6947
6925
  "datasets",
6948
- "embeddings",
6949
- "status.js"
6926
+ "alias",
6927
+ "delete.js"
6950
6928
  ]
6951
6929
  },
6952
- "datasets:visibility:get": {
6930
+ "datasets:alias:link": {
6953
6931
  "aliases": [],
6954
6932
  "args": {
6955
- "dataset": {
6956
- "description": "The name of the dataset to get visibility for",
6957
- "name": "dataset",
6958
- "required": true
6933
+ "aliasName": {
6934
+ "description": "Dataset alias name to link",
6935
+ "name": "aliasName",
6936
+ "required": false
6937
+ },
6938
+ "targetDataset": {
6939
+ "description": "Target dataset name to link the alias to",
6940
+ "name": "targetDataset",
6941
+ "required": false
6959
6942
  }
6960
6943
  },
6961
- "description": "Get the visibility of a dataset",
6944
+ "description": "Link a dataset alias to a dataset in the project",
6962
6945
  "examples": [
6963
6946
  {
6964
- "command": "<%= config.bin %> <%= command.id %> my-dataset",
6965
- "description": "Check the visibility of a dataset"
6947
+ "command": "<%= config.bin %> <%= command.id %>",
6948
+ "description": "Link an alias with interactive prompts"
6949
+ },
6950
+ {
6951
+ "command": "<%= config.bin %> <%= command.id %> conference",
6952
+ "description": "Link alias named \"conference\" with interactive dataset selection"
6953
+ },
6954
+ {
6955
+ "command": "<%= config.bin %> <%= command.id %> conference conf-2025",
6956
+ "description": "Link alias \"conference\" to \"conf-2025\" dataset"
6957
+ },
6958
+ {
6959
+ "command": "<%= config.bin %> <%= command.id %> conference conf-2025 --force",
6960
+ "description": "Force link without confirmation (skip relink prompt)"
6966
6961
  }
6967
6962
  ],
6968
6963
  "flags": {
6969
6964
  "project-id": {
6970
6965
  "char": "p",
6971
- "description": "Project ID to get dataset visibility for (overrides CLI configuration)",
6966
+ "description": "Project ID to link dataset alias in (overrides CLI configuration)",
6972
6967
  "helpGroup": "OVERRIDE",
6973
6968
  "name": "project-id",
6974
6969
  "hasDynamicHelp": false,
6975
6970
  "helpValue": "<id>",
6976
6971
  "multiple": false,
6977
6972
  "type": "option"
6973
+ },
6974
+ "force": {
6975
+ "description": "Skip confirmation prompt when relinking existing alias",
6976
+ "name": "force",
6977
+ "required": false,
6978
+ "allowNo": false,
6979
+ "type": "boolean"
6978
6980
  }
6979
6981
  },
6980
6982
  "hasDynamicHelp": false,
6981
6983
  "hiddenAliases": [
6982
- "dataset:visibility:get"
6984
+ "dataset:alias:link"
6983
6985
  ],
6984
- "id": "datasets:visibility:get",
6986
+ "id": "datasets:alias:link",
6985
6987
  "pluginAlias": "@sanity/cli",
6986
6988
  "pluginName": "@sanity/cli",
6987
6989
  "pluginType": "core",
@@ -6991,56 +6993,57 @@
6991
6993
  "dist",
6992
6994
  "commands",
6993
6995
  "datasets",
6994
- "visibility",
6995
- "get.js"
6996
+ "alias",
6997
+ "link.js"
6996
6998
  ]
6997
6999
  },
6998
- "datasets:visibility:set": {
7000
+ "datasets:alias:unlink": {
6999
7001
  "aliases": [],
7000
7002
  "args": {
7001
- "dataset": {
7002
- "description": "The name of the dataset to set visibility for",
7003
- "name": "dataset",
7004
- "required": true
7005
- },
7006
- "mode": {
7007
- "description": "The visibility mode to set",
7008
- "name": "mode",
7009
- "options": [
7010
- "public",
7011
- "private"
7012
- ],
7013
- "required": true
7003
+ "aliasName": {
7004
+ "description": "Dataset alias name to unlink",
7005
+ "name": "aliasName",
7006
+ "required": false
7014
7007
  }
7015
7008
  },
7016
- "description": "Set the visibility of a dataset",
7009
+ "description": "Unlink a dataset alias from its dataset in the project",
7017
7010
  "examples": [
7018
7011
  {
7019
- "command": "<%= config.bin %> <%= command.id %> my-dataset private",
7020
- "description": "Make a dataset private"
7012
+ "command": "<%= config.bin %> <%= command.id %>",
7013
+ "description": "Unlink an alias with interactive selection"
7021
7014
  },
7022
7015
  {
7023
- "command": "<%= config.bin %> <%= command.id %> my-dataset public",
7024
- "description": "Make a dataset public"
7016
+ "command": "<%= config.bin %> <%= command.id %> conference",
7017
+ "description": "Unlink alias \"conference\" with confirmation prompt"
7018
+ },
7019
+ {
7020
+ "command": "<%= config.bin %> <%= command.id %> conference --force",
7021
+ "description": "Unlink alias \"conference\" without confirmation prompt"
7025
7022
  }
7026
7023
  ],
7027
7024
  "flags": {
7028
7025
  "project-id": {
7029
7026
  "char": "p",
7030
- "description": "Project ID to set dataset visibility for (overrides CLI configuration)",
7027
+ "description": "Project ID to unlink dataset alias in (overrides CLI configuration)",
7031
7028
  "helpGroup": "OVERRIDE",
7032
7029
  "name": "project-id",
7033
7030
  "hasDynamicHelp": false,
7034
7031
  "helpValue": "<id>",
7035
7032
  "multiple": false,
7036
7033
  "type": "option"
7034
+ },
7035
+ "force": {
7036
+ "description": "Skip confirmation prompt and unlink immediately",
7037
+ "name": "force",
7038
+ "allowNo": false,
7039
+ "type": "boolean"
7037
7040
  }
7038
7041
  },
7039
7042
  "hasDynamicHelp": false,
7040
7043
  "hiddenAliases": [
7041
- "dataset:visibility:set"
7044
+ "dataset:alias:unlink"
7042
7045
  ],
7043
- "id": "datasets:visibility:set",
7046
+ "id": "datasets:alias:unlink",
7044
7047
  "pluginAlias": "@sanity/cli",
7045
7048
  "pluginName": "@sanity/cli",
7046
7049
  "pluginType": "core",
@@ -7050,10 +7053,10 @@
7050
7053
  "dist",
7051
7054
  "commands",
7052
7055
  "datasets",
7053
- "visibility",
7054
- "set.js"
7056
+ "alias",
7057
+ "unlink.js"
7055
7058
  ]
7056
7059
  }
7057
7060
  },
7058
- "version": "8.16.0"
7061
+ "version": "8.17.0"
7059
7062
  }