@sanity/cli 8.17.0 → 8.17.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.
@@ -1776,6 +1776,167 @@
1776
1776
  "list.js"
1777
1777
  ]
1778
1778
  },
1779
+ "cors:add": {
1780
+ "aliases": [],
1781
+ "args": {
1782
+ "origin": {
1783
+ "description": "Origin to allow (e.g., https://example.com)",
1784
+ "name": "origin",
1785
+ "required": true
1786
+ }
1787
+ },
1788
+ "description": "Add a CORS origin to the project",
1789
+ "examples": [
1790
+ {
1791
+ "command": "<%= config.bin %> <%= command.id %>",
1792
+ "description": "Interactively add a CORS origin"
1793
+ },
1794
+ {
1795
+ "command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
1796
+ "description": "Add a localhost origin without credentials"
1797
+ },
1798
+ {
1799
+ "command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
1800
+ "description": "Add a production origin with credentials allowed"
1801
+ },
1802
+ {
1803
+ "command": "<%= config.bin %> <%= command.id %> https://myapp.com --project-id abc123",
1804
+ "description": "Add a CORS origin for a specific project"
1805
+ }
1806
+ ],
1807
+ "flags": {
1808
+ "project-id": {
1809
+ "char": "p",
1810
+ "description": "Project ID to add CORS origin to (overrides CLI configuration)",
1811
+ "helpGroup": "OVERRIDE",
1812
+ "name": "project-id",
1813
+ "hasDynamicHelp": false,
1814
+ "helpValue": "<id>",
1815
+ "multiple": false,
1816
+ "type": "option"
1817
+ },
1818
+ "credentials": {
1819
+ "description": "Allow credentials (token/cookie) to be sent from this origin",
1820
+ "name": "credentials",
1821
+ "required": false,
1822
+ "allowNo": true,
1823
+ "type": "boolean"
1824
+ },
1825
+ "yes": {
1826
+ "char": "y",
1827
+ "description": "Confirm risky wildcard origins without prompting",
1828
+ "name": "yes",
1829
+ "allowNo": false,
1830
+ "type": "boolean"
1831
+ }
1832
+ },
1833
+ "hasDynamicHelp": false,
1834
+ "hiddenAliases": [],
1835
+ "id": "cors:add",
1836
+ "pluginAlias": "@sanity/cli",
1837
+ "pluginName": "@sanity/cli",
1838
+ "pluginType": "core",
1839
+ "strict": true,
1840
+ "isESM": true,
1841
+ "relativePath": [
1842
+ "dist",
1843
+ "commands",
1844
+ "cors",
1845
+ "add.js"
1846
+ ]
1847
+ },
1848
+ "cors:delete": {
1849
+ "aliases": [],
1850
+ "args": {
1851
+ "origin": {
1852
+ "description": "Origin to delete (will prompt if not provided)",
1853
+ "name": "origin",
1854
+ "required": false
1855
+ }
1856
+ },
1857
+ "description": "Delete a CORS origin from the project",
1858
+ "examples": [
1859
+ {
1860
+ "command": "<%= config.bin %> <%= command.id %>",
1861
+ "description": "Interactively select and delete a CORS origin"
1862
+ },
1863
+ {
1864
+ "command": "<%= config.bin %> <%= command.id %> https://example.com",
1865
+ "description": "Delete a specific CORS origin"
1866
+ },
1867
+ {
1868
+ "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
1869
+ "description": "Delete a CORS origin from a specific project"
1870
+ }
1871
+ ],
1872
+ "flags": {
1873
+ "project-id": {
1874
+ "char": "p",
1875
+ "description": "Project ID to delete CORS origin from (overrides CLI configuration)",
1876
+ "helpGroup": "OVERRIDE",
1877
+ "name": "project-id",
1878
+ "hasDynamicHelp": false,
1879
+ "helpValue": "<id>",
1880
+ "multiple": false,
1881
+ "type": "option"
1882
+ }
1883
+ },
1884
+ "hasDynamicHelp": false,
1885
+ "hiddenAliases": [],
1886
+ "id": "cors:delete",
1887
+ "pluginAlias": "@sanity/cli",
1888
+ "pluginName": "@sanity/cli",
1889
+ "pluginType": "core",
1890
+ "strict": true,
1891
+ "isESM": true,
1892
+ "relativePath": [
1893
+ "dist",
1894
+ "commands",
1895
+ "cors",
1896
+ "delete.js"
1897
+ ]
1898
+ },
1899
+ "cors:list": {
1900
+ "aliases": [],
1901
+ "args": {},
1902
+ "description": "List CORS origins for the project",
1903
+ "examples": [
1904
+ {
1905
+ "command": "<%= config.bin %> <%= command.id %>",
1906
+ "description": "List CORS origins for the project"
1907
+ },
1908
+ {
1909
+ "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
1910
+ "description": "List CORS origins for a specific project"
1911
+ }
1912
+ ],
1913
+ "flags": {
1914
+ "project-id": {
1915
+ "char": "p",
1916
+ "description": "Project ID to list CORS origins for (overrides CLI configuration)",
1917
+ "helpGroup": "OVERRIDE",
1918
+ "name": "project-id",
1919
+ "hasDynamicHelp": false,
1920
+ "helpValue": "<id>",
1921
+ "multiple": false,
1922
+ "type": "option"
1923
+ }
1924
+ },
1925
+ "hasDynamicHelp": false,
1926
+ "hiddenAliases": [],
1927
+ "id": "cors:list",
1928
+ "pluginAlias": "@sanity/cli",
1929
+ "pluginName": "@sanity/cli",
1930
+ "pluginType": "core",
1931
+ "strict": true,
1932
+ "isESM": true,
1933
+ "relativePath": [
1934
+ "dist",
1935
+ "commands",
1936
+ "cors",
1937
+ "list.js"
1938
+ ]
1939
+ },
1779
1940
  "context:build": {
1780
1941
  "aliases": [],
1781
1942
  "args": {
@@ -2163,63 +2324,69 @@
2163
2324
  "update.js"
2164
2325
  ]
2165
2326
  },
2166
- "cors:add": {
2327
+ "docs:browse": {
2328
+ "aliases": [],
2329
+ "args": {},
2330
+ "description": "Open Sanity docs in your browser",
2331
+ "flags": {},
2332
+ "hasDynamicHelp": false,
2333
+ "hiddenAliases": [],
2334
+ "id": "docs:browse",
2335
+ "pluginAlias": "@sanity/cli",
2336
+ "pluginName": "@sanity/cli",
2337
+ "pluginType": "core",
2338
+ "strict": true,
2339
+ "enableJsonFlag": false,
2340
+ "isESM": true,
2341
+ "relativePath": [
2342
+ "dist",
2343
+ "commands",
2344
+ "docs",
2345
+ "browse.js"
2346
+ ]
2347
+ },
2348
+ "docs:read": {
2167
2349
  "aliases": [],
2168
2350
  "args": {
2169
- "origin": {
2170
- "description": "Origin to allow (e.g., https://example.com)",
2171
- "name": "origin",
2351
+ "path": {
2352
+ "description": "Path or URL to article, found in search results and docs content as links",
2353
+ "name": "path",
2172
2354
  "required": true
2173
2355
  }
2174
2356
  },
2175
- "description": "Add a CORS origin to the project",
2357
+ "description": "Read an article in terminal",
2176
2358
  "examples": [
2177
2359
  {
2178
- "command": "<%= config.bin %> <%= command.id %>",
2179
- "description": "Interactively add a CORS origin"
2360
+ "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation",
2361
+ "description": "Read as markdown in terminal"
2180
2362
  },
2181
2363
  {
2182
- "command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
2183
- "description": "Add a localhost origin without credentials"
2364
+ "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation",
2365
+ "description": "Read using full URL"
2184
2366
  },
2185
2367
  {
2186
- "command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
2187
- "description": "Add a production origin with credentials allowed"
2368
+ "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation --web",
2369
+ "description": "Open in web browser"
2188
2370
  },
2189
2371
  {
2190
- "command": "<%= config.bin %> <%= command.id %> https://myapp.com --project-id abc123",
2191
- "description": "Add a CORS origin for a specific project"
2372
+ "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation -w",
2373
+ "description": "Open using full URL in web browser"
2192
2374
  }
2193
2375
  ],
2194
2376
  "flags": {
2195
- "project-id": {
2196
- "char": "p",
2197
- "description": "Project ID to add CORS origin to (overrides CLI configuration)",
2198
- "helpGroup": "OVERRIDE",
2199
- "name": "project-id",
2200
- "hasDynamicHelp": false,
2201
- "helpValue": "<id>",
2202
- "multiple": false,
2203
- "type": "option"
2204
- },
2205
- "credentials": {
2206
- "description": "Allow credentials (token/cookie) to be sent from this origin",
2207
- "name": "credentials",
2208
- "required": false,
2209
- "allowNo": true,
2210
- "type": "boolean"
2211
- },
2212
- "yes": {
2213
- "char": "y",
2214
- "description": "Confirm risky wildcard origins without prompting",
2215
- "name": "yes",
2377
+ "web": {
2378
+ "aliases": [
2379
+ "w"
2380
+ ],
2381
+ "description": "Open in a web browser",
2382
+ "name": "web",
2216
2383
  "allowNo": false,
2217
2384
  "type": "boolean"
2218
2385
  }
2219
2386
  },
2220
2387
  "hasDynamicHelp": false,
2221
2388
  "hiddenAliases": [],
2222
- "id": "cors:add",
2389
+ "id": "docs:read",
2223
2390
  "pluginAlias": "@sanity/cli",
2224
2391
  "pluginName": "@sanity/cli",
2225
2392
  "pluginType": "core",
@@ -2228,90 +2395,47 @@
2228
2395
  "relativePath": [
2229
2396
  "dist",
2230
2397
  "commands",
2231
- "cors",
2232
- "add.js"
2398
+ "docs",
2399
+ "read.js"
2233
2400
  ]
2234
2401
  },
2235
- "cors:delete": {
2402
+ "docs:search": {
2236
2403
  "aliases": [],
2237
2404
  "args": {
2238
- "origin": {
2239
- "description": "Origin to delete (will prompt if not provided)",
2240
- "name": "origin",
2241
- "required": false
2405
+ "query": {
2406
+ "description": "Search query for documentation",
2407
+ "name": "query",
2408
+ "required": true
2242
2409
  }
2243
2410
  },
2244
- "description": "Delete a CORS origin from the project",
2411
+ "description": "Search Sanity docs",
2245
2412
  "examples": [
2246
2413
  {
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"
2414
+ "command": "<%= config.bin %> <%= command.id %> schema",
2415
+ "description": "Search for documentation about schemas"
2253
2416
  },
2254
2417
  {
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"
2418
+ "command": "<%= config.bin %> <%= command.id %> \"groq functions\"",
2419
+ "description": "Search with phrase"
2294
2420
  },
2295
2421
  {
2296
- "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
2297
- "description": "List CORS origins for a specific project"
2422
+ "command": "<%= config.bin %> <%= command.id %> \"deployment\" --limit=5",
2423
+ "description": "Limit search results"
2298
2424
  }
2299
2425
  ],
2300
2426
  "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",
2427
+ "limit": {
2428
+ "description": "Maximum number of results to return",
2429
+ "name": "limit",
2430
+ "default": 10,
2306
2431
  "hasDynamicHelp": false,
2307
- "helpValue": "<id>",
2308
2432
  "multiple": false,
2309
2433
  "type": "option"
2310
2434
  }
2311
2435
  },
2312
2436
  "hasDynamicHelp": false,
2313
2437
  "hiddenAliases": [],
2314
- "id": "cors:list",
2438
+ "id": "docs:search",
2315
2439
  "pluginAlias": "@sanity/cli",
2316
2440
  "pluginName": "@sanity/cli",
2317
2441
  "pluginType": "core",
@@ -2320,8 +2444,8 @@
2320
2444
  "relativePath": [
2321
2445
  "dist",
2322
2446
  "commands",
2323
- "cors",
2324
- "list.js"
2447
+ "docs",
2448
+ "search.js"
2325
2449
  ]
2326
2450
  },
2327
2451
  "datasets:copy": {
@@ -3670,130 +3794,6 @@
3670
3794
  "undeploy.js"
3671
3795
  ]
3672
3796
  },
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
- },
3797
3797
  "hooks:attempt": {
3798
3798
  "aliases": [],
3799
3799
  "args": {
@@ -4081,32 +4081,6 @@
4081
4081
  "extract.js"
4082
4082
  ]
4083
4083
  },
4084
- "mcp:configure": {
4085
- "aliases": [],
4086
- "args": {},
4087
- "description": "Configure Sanity MCP server for AI editors (Antigravity, Claude Code, Cline, Cline CLI, Codex CLI, Cursor, Gemini CLI, GitHub Copilot CLI, MCPorter, OpenCode, VS Code, VS Code Insiders, Zed)",
4088
- "examples": [
4089
- {
4090
- "command": "<%= config.bin %> <%= command.id %>",
4091
- "description": "Configure Sanity MCP server for detected AI editors"
4092
- }
4093
- ],
4094
- "flags": {},
4095
- "hasDynamicHelp": false,
4096
- "hiddenAliases": [],
4097
- "id": "mcp:configure",
4098
- "pluginAlias": "@sanity/cli",
4099
- "pluginName": "@sanity/cli",
4100
- "pluginType": "core",
4101
- "strict": true,
4102
- "isESM": true,
4103
- "relativePath": [
4104
- "dist",
4105
- "commands",
4106
- "mcp",
4107
- "configure.js"
4108
- ]
4109
- },
4110
4084
  "media:create-aspect": {
4111
4085
  "aliases": [],
4112
4086
  "args": {},
@@ -4722,6 +4696,32 @@
4722
4696
  "list.js"
4723
4697
  ]
4724
4698
  },
4699
+ "mcp:configure": {
4700
+ "aliases": [],
4701
+ "args": {},
4702
+ "description": "Configure Sanity MCP server for AI editors (Antigravity, Claude Code, Cline, Cline CLI, Codex CLI, Cursor, Gemini CLI, GitHub Copilot CLI, MCPorter, OpenCode, VS Code, VS Code Insiders, Zed)",
4703
+ "examples": [
4704
+ {
4705
+ "command": "<%= config.bin %> <%= command.id %>",
4706
+ "description": "Configure Sanity MCP server for detected AI editors"
4707
+ }
4708
+ ],
4709
+ "flags": {},
4710
+ "hasDynamicHelp": false,
4711
+ "hiddenAliases": [],
4712
+ "id": "mcp:configure",
4713
+ "pluginAlias": "@sanity/cli",
4714
+ "pluginName": "@sanity/cli",
4715
+ "pluginType": "core",
4716
+ "strict": true,
4717
+ "isESM": true,
4718
+ "relativePath": [
4719
+ "dist",
4720
+ "commands",
4721
+ "mcp",
4722
+ "configure.js"
4723
+ ]
4724
+ },
4725
4725
  "organizations:create": {
4726
4726
  "aliases": [],
4727
4727
  "args": {},
@@ -5159,44 +5159,18 @@
5159
5159
  "unclaimed.js"
5160
5160
  ]
5161
5161
  },
5162
- "skills:install": {
5162
+ "schemas:delete": {
5163
5163
  "aliases": [],
5164
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)",
5165
+ "description": "Delete schema documents by id",
5166
5166
  "examples": [
5167
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
- },
5188
- "schemas:delete": {
5189
- "aliases": [],
5190
- "args": {},
5191
- "description": "Delete schema documents by id",
5192
- "examples": [
5193
- {
5194
- "command": "<%= config.bin %> <%= command.id %> --ids sanity.workspace.schema.workspaceName",
5195
- "description": "Delete a single schema"
5196
- },
5197
- {
5198
- "command": "<%= config.bin %> <%= command.id %> --ids sanity.workspace.schema.workspaceName,prefix.sanity.workspace.schema.otherWorkspace",
5199
- "description": "Delete multiple schemas"
5168
+ "command": "<%= config.bin %> <%= command.id %> --ids sanity.workspace.schema.workspaceName",
5169
+ "description": "Delete a single schema"
5170
+ },
5171
+ {
5172
+ "command": "<%= config.bin %> <%= command.id %> --ids sanity.workspace.schema.workspaceName,prefix.sanity.workspace.schema.otherWorkspace",
5173
+ "description": "Delete multiple schemas"
5200
5174
  }
5201
5175
  ],
5202
5176
  "flags": {
@@ -5584,6 +5558,32 @@
5584
5558
  "validate.js"
5585
5559
  ]
5586
5560
  },
5561
+ "skills:install": {
5562
+ "aliases": [],
5563
+ "args": {},
5564
+ "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)",
5565
+ "examples": [
5566
+ {
5567
+ "command": "<%= config.bin %> <%= command.id %>",
5568
+ "description": "Install Sanity agent skills for detected AI editors"
5569
+ }
5570
+ ],
5571
+ "flags": {},
5572
+ "hasDynamicHelp": false,
5573
+ "hiddenAliases": [],
5574
+ "id": "skills:install",
5575
+ "pluginAlias": "@sanity/cli",
5576
+ "pluginName": "@sanity/cli",
5577
+ "pluginType": "core",
5578
+ "strict": true,
5579
+ "isESM": true,
5580
+ "relativePath": [
5581
+ "dist",
5582
+ "commands",
5583
+ "skills",
5584
+ "install.js"
5585
+ ]
5586
+ },
5587
5587
  "telemetry:disable": {
5588
5588
  "aliases": [],
5589
5589
  "args": {},
@@ -6543,26 +6543,43 @@
6543
6543
  "get.js"
6544
6544
  ]
6545
6545
  },
6546
- "datasets:embeddings:disable": {
6546
+ "datasets:alias:create": {
6547
6547
  "aliases": [],
6548
6548
  "args": {
6549
- "dataset": {
6550
- "description": "Dataset name to disable embeddings for",
6551
- "name": "dataset",
6549
+ "aliasName": {
6550
+ "description": "Dataset alias name to create",
6551
+ "name": "aliasName",
6552
+ "required": false
6553
+ },
6554
+ "targetDataset": {
6555
+ "description": "Target dataset name to link the alias to",
6556
+ "name": "targetDataset",
6552
6557
  "required": false
6553
6558
  }
6554
6559
  },
6555
- "description": "Disable embeddings for a dataset",
6560
+ "description": "Create a dataset alias for the project",
6556
6561
  "examples": [
6557
6562
  {
6558
- "command": "<%= config.bin %> <%= command.id %> production",
6559
- "description": "Disable embeddings for the production dataset"
6563
+ "command": "<%= config.bin %> <%= command.id %> --project-id abc123 conference conf-2025",
6564
+ "description": "Create alias in a specific project"
6565
+ },
6566
+ {
6567
+ "command": "<%= config.bin %> <%= command.id %>",
6568
+ "description": "Create an alias with interactive prompts"
6569
+ },
6570
+ {
6571
+ "command": "<%= config.bin %> <%= command.id %> conference",
6572
+ "description": "Create alias named \"conference\" with interactive dataset selection"
6573
+ },
6574
+ {
6575
+ "command": "<%= config.bin %> <%= command.id %> conference conf-2025",
6576
+ "description": "Create alias \"conference\" linked to \"conf-2025\" dataset"
6560
6577
  }
6561
6578
  ],
6562
6579
  "flags": {
6563
6580
  "project-id": {
6564
6581
  "char": "p",
6565
- "description": "Project ID to disable embeddings for (overrides CLI configuration)",
6582
+ "description": "Project ID to create dataset alias in (overrides CLI configuration)",
6566
6583
  "helpGroup": "OVERRIDE",
6567
6584
  "name": "project-id",
6568
6585
  "hasDynamicHelp": false,
@@ -6573,9 +6590,9 @@
6573
6590
  },
6574
6591
  "hasDynamicHelp": false,
6575
6592
  "hiddenAliases": [
6576
- "dataset:embeddings:disable"
6593
+ "dataset:alias:create"
6577
6594
  ],
6578
- "id": "datasets:embeddings:disable",
6595
+ "id": "datasets:alias:create",
6579
6596
  "pluginAlias": "@sanity/cli",
6580
6597
  "pluginName": "@sanity/cli",
6581
6598
  "pluginType": "core",
@@ -6585,38 +6602,34 @@
6585
6602
  "dist",
6586
6603
  "commands",
6587
6604
  "datasets",
6588
- "embeddings",
6589
- "disable.js"
6605
+ "alias",
6606
+ "create.js"
6590
6607
  ]
6591
6608
  },
6592
- "datasets:embeddings:enable": {
6609
+ "datasets:alias:delete": {
6593
6610
  "aliases": [],
6594
6611
  "args": {
6595
- "dataset": {
6596
- "description": "Dataset name to enable embeddings for",
6597
- "name": "dataset",
6598
- "required": false
6612
+ "aliasName": {
6613
+ "description": "Dataset alias name to delete",
6614
+ "name": "aliasName",
6615
+ "required": true
6599
6616
  }
6600
6617
  },
6601
- "description": "Enable embeddings for a dataset",
6618
+ "description": "Delete a dataset alias from the project",
6602
6619
  "examples": [
6603
6620
  {
6604
- "command": "<%= config.bin %> <%= command.id %> production",
6605
- "description": "Enable embeddings for the production dataset"
6606
- },
6607
- {
6608
- "command": "<%= config.bin %> <%= command.id %> production --projection \"{ title, body }\"",
6609
- "description": "Enable embeddings with a specific projection"
6621
+ "command": "<%= config.bin %> <%= command.id %> conference",
6622
+ "description": "Delete alias named \"conference\" with confirmation prompt"
6610
6623
  },
6611
6624
  {
6612
- "command": "<%= config.bin %> <%= command.id %> production --wait",
6613
- "description": "Enable embeddings and wait for processing to complete"
6625
+ "command": "<%= config.bin %> <%= command.id %> conference --force",
6626
+ "description": "Delete alias named \"conference\" without confirmation prompt"
6614
6627
  }
6615
6628
  ],
6616
6629
  "flags": {
6617
6630
  "project-id": {
6618
6631
  "char": "p",
6619
- "description": "Project ID to enable embeddings for (overrides CLI configuration)",
6632
+ "description": "Project ID to delete dataset alias from (overrides CLI configuration)",
6620
6633
  "helpGroup": "OVERRIDE",
6621
6634
  "name": "project-id",
6622
6635
  "hasDynamicHelp": false,
@@ -6624,26 +6637,18 @@
6624
6637
  "multiple": false,
6625
6638
  "type": "option"
6626
6639
  },
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
+ "force": {
6641
+ "description": "Skip confirmation prompt and delete immediately",
6642
+ "name": "force",
6638
6643
  "allowNo": false,
6639
6644
  "type": "boolean"
6640
6645
  }
6641
6646
  },
6642
6647
  "hasDynamicHelp": false,
6643
6648
  "hiddenAliases": [
6644
- "dataset:embeddings:enable"
6649
+ "dataset:alias:delete"
6645
6650
  ],
6646
- "id": "datasets:embeddings:enable",
6651
+ "id": "datasets:alias:delete",
6647
6652
  "pluginAlias": "@sanity/cli",
6648
6653
  "pluginName": "@sanity/cli",
6649
6654
  "pluginType": "core",
@@ -6653,43 +6658,67 @@
6653
6658
  "dist",
6654
6659
  "commands",
6655
6660
  "datasets",
6656
- "embeddings",
6657
- "enable.js"
6661
+ "alias",
6662
+ "delete.js"
6658
6663
  ]
6659
6664
  },
6660
- "datasets:embeddings:status": {
6665
+ "datasets:alias:link": {
6661
6666
  "aliases": [],
6662
6667
  "args": {
6663
- "dataset": {
6664
- "description": "The name of the dataset to check embeddings status for",
6665
- "name": "dataset",
6668
+ "aliasName": {
6669
+ "description": "Dataset alias name to link",
6670
+ "name": "aliasName",
6671
+ "required": false
6672
+ },
6673
+ "targetDataset": {
6674
+ "description": "Target dataset name to link the alias to",
6675
+ "name": "targetDataset",
6666
6676
  "required": false
6667
6677
  }
6668
6678
  },
6669
- "description": "Show embeddings settings and status for a dataset",
6679
+ "description": "Link a dataset alias to a dataset in the project",
6670
6680
  "examples": [
6671
6681
  {
6672
- "command": "<%= config.bin %> <%= command.id %> production",
6673
- "description": "Show embeddings status for the production dataset"
6682
+ "command": "<%= config.bin %> <%= command.id %>",
6683
+ "description": "Link an alias with interactive prompts"
6684
+ },
6685
+ {
6686
+ "command": "<%= config.bin %> <%= command.id %> conference",
6687
+ "description": "Link alias named \"conference\" with interactive dataset selection"
6688
+ },
6689
+ {
6690
+ "command": "<%= config.bin %> <%= command.id %> conference conf-2025",
6691
+ "description": "Link alias \"conference\" to \"conf-2025\" dataset"
6692
+ },
6693
+ {
6694
+ "command": "<%= config.bin %> <%= command.id %> conference conf-2025 --force",
6695
+ "description": "Force link without confirmation (skip relink prompt)"
6674
6696
  }
6675
6697
  ],
6676
6698
  "flags": {
6677
6699
  "project-id": {
6678
6700
  "char": "p",
6679
- "description": "Project ID to check embeddings status for (overrides CLI configuration)",
6701
+ "description": "Project ID to link dataset alias in (overrides CLI configuration)",
6680
6702
  "helpGroup": "OVERRIDE",
6681
6703
  "name": "project-id",
6682
6704
  "hasDynamicHelp": false,
6683
6705
  "helpValue": "<id>",
6684
6706
  "multiple": false,
6685
6707
  "type": "option"
6708
+ },
6709
+ "force": {
6710
+ "description": "Skip confirmation prompt when relinking existing alias",
6711
+ "name": "force",
6712
+ "required": false,
6713
+ "allowNo": false,
6714
+ "type": "boolean"
6686
6715
  }
6687
6716
  },
6688
6717
  "hasDynamicHelp": false,
6689
6718
  "hiddenAliases": [
6690
- "dataset:embeddings:status"
6719
+ "dataset:alias:link"
6691
6720
  ],
6692
- "id": "datasets:embeddings:status",
6721
+ "id": "datasets:alias:link",
6693
6722
  "pluginAlias": "@sanity/cli",
6694
6723
  "pluginName": "@sanity/cli",
6695
6724
  "pluginType": "core",
@@ -6699,43 +6728,57 @@
6699
6728
  "dist",
6700
6729
  "commands",
6701
6730
  "datasets",
6702
- "embeddings",
6703
- "status.js"
6731
+ "alias",
6732
+ "link.js"
6704
6733
  ]
6705
6734
  },
6706
- "datasets:visibility:get": {
6735
+ "datasets:alias:unlink": {
6707
6736
  "aliases": [],
6708
6737
  "args": {
6709
- "dataset": {
6710
- "description": "The name of the dataset to get visibility for",
6711
- "name": "dataset",
6712
- "required": true
6738
+ "aliasName": {
6739
+ "description": "Dataset alias name to unlink",
6740
+ "name": "aliasName",
6741
+ "required": false
6713
6742
  }
6714
6743
  },
6715
- "description": "Get the visibility of a dataset",
6744
+ "description": "Unlink a dataset alias from its dataset in the project",
6716
6745
  "examples": [
6717
6746
  {
6718
- "command": "<%= config.bin %> <%= command.id %> my-dataset",
6719
- "description": "Check the visibility of a dataset"
6747
+ "command": "<%= config.bin %> <%= command.id %>",
6748
+ "description": "Unlink an alias with interactive selection"
6749
+ },
6750
+ {
6751
+ "command": "<%= config.bin %> <%= command.id %> conference",
6752
+ "description": "Unlink alias \"conference\" with confirmation prompt"
6753
+ },
6754
+ {
6755
+ "command": "<%= config.bin %> <%= command.id %> conference --force",
6756
+ "description": "Unlink alias \"conference\" without confirmation prompt"
6720
6757
  }
6721
6758
  ],
6722
6759
  "flags": {
6723
6760
  "project-id": {
6724
6761
  "char": "p",
6725
- "description": "Project ID to get dataset visibility for (overrides CLI configuration)",
6762
+ "description": "Project ID to unlink dataset alias in (overrides CLI configuration)",
6726
6763
  "helpGroup": "OVERRIDE",
6727
6764
  "name": "project-id",
6728
6765
  "hasDynamicHelp": false,
6729
6766
  "helpValue": "<id>",
6730
6767
  "multiple": false,
6731
6768
  "type": "option"
6769
+ },
6770
+ "force": {
6771
+ "description": "Skip confirmation prompt and unlink immediately",
6772
+ "name": "force",
6773
+ "allowNo": false,
6774
+ "type": "boolean"
6732
6775
  }
6733
6776
  },
6734
6777
  "hasDynamicHelp": false,
6735
6778
  "hiddenAliases": [
6736
- "dataset:visibility:get"
6779
+ "dataset:alias:unlink"
6737
6780
  ],
6738
- "id": "datasets:visibility:get",
6781
+ "id": "datasets:alias:unlink",
6739
6782
  "pluginAlias": "@sanity/cli",
6740
6783
  "pluginName": "@sanity/cli",
6741
6784
  "pluginType": "core",
@@ -6745,43 +6788,30 @@
6745
6788
  "dist",
6746
6789
  "commands",
6747
6790
  "datasets",
6748
- "visibility",
6749
- "get.js"
6791
+ "alias",
6792
+ "unlink.js"
6750
6793
  ]
6751
6794
  },
6752
- "datasets:visibility:set": {
6795
+ "datasets:embeddings:disable": {
6753
6796
  "aliases": [],
6754
6797
  "args": {
6755
6798
  "dataset": {
6756
- "description": "The name of the dataset to set visibility for",
6799
+ "description": "Dataset name to disable embeddings for",
6757
6800
  "name": "dataset",
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
6801
+ "required": false
6768
6802
  }
6769
6803
  },
6770
- "description": "Set the visibility of a dataset",
6804
+ "description": "Disable embeddings for a dataset",
6771
6805
  "examples": [
6772
6806
  {
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"
6807
+ "command": "<%= config.bin %> <%= command.id %> production",
6808
+ "description": "Disable embeddings for the production dataset"
6779
6809
  }
6780
6810
  ],
6781
6811
  "flags": {
6782
6812
  "project-id": {
6783
6813
  "char": "p",
6784
- "description": "Project ID to set dataset visibility for (overrides CLI configuration)",
6814
+ "description": "Project ID to disable embeddings for (overrides CLI configuration)",
6785
6815
  "helpGroup": "OVERRIDE",
6786
6816
  "name": "project-id",
6787
6817
  "hasDynamicHelp": false,
@@ -6792,9 +6822,9 @@
6792
6822
  },
6793
6823
  "hasDynamicHelp": false,
6794
6824
  "hiddenAliases": [
6795
- "dataset:visibility:set"
6825
+ "dataset:embeddings:disable"
6796
6826
  ],
6797
- "id": "datasets:visibility:set",
6827
+ "id": "datasets:embeddings:disable",
6798
6828
  "pluginAlias": "@sanity/cli",
6799
6829
  "pluginName": "@sanity/cli",
6800
6830
  "pluginType": "core",
@@ -6804,60 +6834,65 @@
6804
6834
  "dist",
6805
6835
  "commands",
6806
6836
  "datasets",
6807
- "visibility",
6808
- "set.js"
6837
+ "embeddings",
6838
+ "disable.js"
6809
6839
  ]
6810
6840
  },
6811
- "datasets:alias:create": {
6841
+ "datasets:embeddings:enable": {
6812
6842
  "aliases": [],
6813
6843
  "args": {
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
+ "dataset": {
6845
+ "description": "Dataset name to enable embeddings for",
6846
+ "name": "dataset",
6822
6847
  "required": false
6823
6848
  }
6824
6849
  },
6825
- "description": "Create a dataset alias for the project",
6850
+ "description": "Enable embeddings for a dataset",
6826
6851
  "examples": [
6827
6852
  {
6828
- "command": "<%= config.bin %> <%= command.id %> --project-id abc123 conference conf-2025",
6829
- "description": "Create alias in a specific project"
6830
- },
6831
- {
6832
- "command": "<%= config.bin %> <%= command.id %>",
6833
- "description": "Create an alias with interactive prompts"
6853
+ "command": "<%= config.bin %> <%= command.id %> production",
6854
+ "description": "Enable embeddings for the production dataset"
6834
6855
  },
6835
6856
  {
6836
- "command": "<%= config.bin %> <%= command.id %> conference",
6837
- "description": "Create alias named \"conference\" with interactive dataset selection"
6857
+ "command": "<%= config.bin %> <%= command.id %> production --projection \"{ title, body }\"",
6858
+ "description": "Enable embeddings with a specific projection"
6838
6859
  },
6839
6860
  {
6840
- "command": "<%= config.bin %> <%= command.id %> conference conf-2025",
6841
- "description": "Create alias \"conference\" linked to \"conf-2025\" dataset"
6861
+ "command": "<%= config.bin %> <%= command.id %> production --wait",
6862
+ "description": "Enable embeddings and wait for processing to complete"
6842
6863
  }
6843
6864
  ],
6844
6865
  "flags": {
6845
6866
  "project-id": {
6846
6867
  "char": "p",
6847
- "description": "Project ID to create dataset alias in (overrides CLI configuration)",
6868
+ "description": "Project ID to enable embeddings for (overrides CLI configuration)",
6848
6869
  "helpGroup": "OVERRIDE",
6849
6870
  "name": "project-id",
6850
6871
  "hasDynamicHelp": false,
6851
6872
  "helpValue": "<id>",
6852
6873
  "multiple": false,
6853
6874
  "type": "option"
6875
+ },
6876
+ "projection": {
6877
+ "description": "GROQ projection defining which fields to embed (e.g. \"{ title, body }\")",
6878
+ "name": "projection",
6879
+ "required": false,
6880
+ "hasDynamicHelp": false,
6881
+ "multiple": false,
6882
+ "type": "option"
6883
+ },
6884
+ "wait": {
6885
+ "description": "Wait for embeddings processing to complete before returning",
6886
+ "name": "wait",
6887
+ "allowNo": false,
6888
+ "type": "boolean"
6854
6889
  }
6855
6890
  },
6856
6891
  "hasDynamicHelp": false,
6857
6892
  "hiddenAliases": [
6858
- "dataset:alias:create"
6893
+ "dataset:embeddings:enable"
6859
6894
  ],
6860
- "id": "datasets:alias:create",
6895
+ "id": "datasets:embeddings:enable",
6861
6896
  "pluginAlias": "@sanity/cli",
6862
6897
  "pluginName": "@sanity/cli",
6863
6898
  "pluginType": "core",
@@ -6867,53 +6902,43 @@
6867
6902
  "dist",
6868
6903
  "commands",
6869
6904
  "datasets",
6870
- "alias",
6871
- "create.js"
6905
+ "embeddings",
6906
+ "enable.js"
6872
6907
  ]
6873
6908
  },
6874
- "datasets:alias:delete": {
6909
+ "datasets:embeddings:status": {
6875
6910
  "aliases": [],
6876
6911
  "args": {
6877
- "aliasName": {
6878
- "description": "Dataset alias name to delete",
6879
- "name": "aliasName",
6880
- "required": true
6912
+ "dataset": {
6913
+ "description": "The name of the dataset to check embeddings status for",
6914
+ "name": "dataset",
6915
+ "required": false
6881
6916
  }
6882
6917
  },
6883
- "description": "Delete a dataset alias from the project",
6918
+ "description": "Show embeddings settings and status for a dataset",
6884
6919
  "examples": [
6885
6920
  {
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"
6921
+ "command": "<%= config.bin %> <%= command.id %> production",
6922
+ "description": "Show embeddings status for the production dataset"
6892
6923
  }
6893
6924
  ],
6894
6925
  "flags": {
6895
6926
  "project-id": {
6896
6927
  "char": "p",
6897
- "description": "Project ID to delete dataset alias from (overrides CLI configuration)",
6928
+ "description": "Project ID to check embeddings status for (overrides CLI configuration)",
6898
6929
  "helpGroup": "OVERRIDE",
6899
6930
  "name": "project-id",
6900
6931
  "hasDynamicHelp": false,
6901
6932
  "helpValue": "<id>",
6902
6933
  "multiple": false,
6903
6934
  "type": "option"
6904
- },
6905
- "force": {
6906
- "description": "Skip confirmation prompt and delete immediately",
6907
- "name": "force",
6908
- "allowNo": false,
6909
- "type": "boolean"
6910
6935
  }
6911
6936
  },
6912
6937
  "hasDynamicHelp": false,
6913
6938
  "hiddenAliases": [
6914
- "dataset:alias:delete"
6939
+ "dataset:embeddings:status"
6915
6940
  ],
6916
- "id": "datasets:alias:delete",
6941
+ "id": "datasets:embeddings:status",
6917
6942
  "pluginAlias": "@sanity/cli",
6918
6943
  "pluginName": "@sanity/cli",
6919
6944
  "pluginType": "core",
@@ -6923,67 +6948,43 @@
6923
6948
  "dist",
6924
6949
  "commands",
6925
6950
  "datasets",
6926
- "alias",
6927
- "delete.js"
6951
+ "embeddings",
6952
+ "status.js"
6928
6953
  ]
6929
6954
  },
6930
- "datasets:alias:link": {
6955
+ "datasets:visibility:get": {
6931
6956
  "aliases": [],
6932
6957
  "args": {
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
6958
+ "dataset": {
6959
+ "description": "The name of the dataset to get visibility for",
6960
+ "name": "dataset",
6961
+ "required": true
6942
6962
  }
6943
6963
  },
6944
- "description": "Link a dataset alias to a dataset in the project",
6964
+ "description": "Get the visibility of a dataset",
6945
6965
  "examples": [
6946
6966
  {
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)"
6967
+ "command": "<%= config.bin %> <%= command.id %> my-dataset",
6968
+ "description": "Check the visibility of a dataset"
6961
6969
  }
6962
6970
  ],
6963
6971
  "flags": {
6964
6972
  "project-id": {
6965
6973
  "char": "p",
6966
- "description": "Project ID to link dataset alias in (overrides CLI configuration)",
6974
+ "description": "Project ID to get dataset visibility for (overrides CLI configuration)",
6967
6975
  "helpGroup": "OVERRIDE",
6968
6976
  "name": "project-id",
6969
6977
  "hasDynamicHelp": false,
6970
6978
  "helpValue": "<id>",
6971
6979
  "multiple": false,
6972
6980
  "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"
6980
6981
  }
6981
6982
  },
6982
6983
  "hasDynamicHelp": false,
6983
6984
  "hiddenAliases": [
6984
- "dataset:alias:link"
6985
+ "dataset:visibility:get"
6985
6986
  ],
6986
- "id": "datasets:alias:link",
6987
+ "id": "datasets:visibility:get",
6987
6988
  "pluginAlias": "@sanity/cli",
6988
6989
  "pluginName": "@sanity/cli",
6989
6990
  "pluginType": "core",
@@ -6993,57 +6994,56 @@
6993
6994
  "dist",
6994
6995
  "commands",
6995
6996
  "datasets",
6996
- "alias",
6997
- "link.js"
6997
+ "visibility",
6998
+ "get.js"
6998
6999
  ]
6999
7000
  },
7000
- "datasets:alias:unlink": {
7001
+ "datasets:visibility:set": {
7001
7002
  "aliases": [],
7002
7003
  "args": {
7003
- "aliasName": {
7004
- "description": "Dataset alias name to unlink",
7005
- "name": "aliasName",
7006
- "required": false
7004
+ "dataset": {
7005
+ "description": "The name of the dataset to set visibility for",
7006
+ "name": "dataset",
7007
+ "required": true
7008
+ },
7009
+ "mode": {
7010
+ "description": "The visibility mode to set",
7011
+ "name": "mode",
7012
+ "options": [
7013
+ "public",
7014
+ "private"
7015
+ ],
7016
+ "required": true
7007
7017
  }
7008
7018
  },
7009
- "description": "Unlink a dataset alias from its dataset in the project",
7019
+ "description": "Set the visibility of a dataset",
7010
7020
  "examples": [
7011
7021
  {
7012
- "command": "<%= config.bin %> <%= command.id %>",
7013
- "description": "Unlink an alias with interactive selection"
7014
- },
7015
- {
7016
- "command": "<%= config.bin %> <%= command.id %> conference",
7017
- "description": "Unlink alias \"conference\" with confirmation prompt"
7022
+ "command": "<%= config.bin %> <%= command.id %> my-dataset private",
7023
+ "description": "Make a dataset private"
7018
7024
  },
7019
7025
  {
7020
- "command": "<%= config.bin %> <%= command.id %> conference --force",
7021
- "description": "Unlink alias \"conference\" without confirmation prompt"
7026
+ "command": "<%= config.bin %> <%= command.id %> my-dataset public",
7027
+ "description": "Make a dataset public"
7022
7028
  }
7023
7029
  ],
7024
7030
  "flags": {
7025
7031
  "project-id": {
7026
7032
  "char": "p",
7027
- "description": "Project ID to unlink dataset alias in (overrides CLI configuration)",
7033
+ "description": "Project ID to set dataset visibility for (overrides CLI configuration)",
7028
7034
  "helpGroup": "OVERRIDE",
7029
7035
  "name": "project-id",
7030
7036
  "hasDynamicHelp": false,
7031
7037
  "helpValue": "<id>",
7032
7038
  "multiple": false,
7033
7039
  "type": "option"
7034
- },
7035
- "force": {
7036
- "description": "Skip confirmation prompt and unlink immediately",
7037
- "name": "force",
7038
- "allowNo": false,
7039
- "type": "boolean"
7040
7040
  }
7041
7041
  },
7042
7042
  "hasDynamicHelp": false,
7043
7043
  "hiddenAliases": [
7044
- "dataset:alias:unlink"
7044
+ "dataset:visibility:set"
7045
7045
  ],
7046
- "id": "datasets:alias:unlink",
7046
+ "id": "datasets:visibility:set",
7047
7047
  "pluginAlias": "@sanity/cli",
7048
7048
  "pluginName": "@sanity/cli",
7049
7049
  "pluginType": "core",
@@ -7053,10 +7053,10 @@
7053
7053
  "dist",
7054
7054
  "commands",
7055
7055
  "datasets",
7056
- "alias",
7057
- "unlink.js"
7056
+ "visibility",
7057
+ "set.js"
7058
7058
  ]
7059
7059
  }
7060
7060
  },
7061
- "version": "8.17.0"
7061
+ "version": "8.17.1"
7062
7062
  }