@sanity/cli 8.0.1 → 8.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/dist/SanityHelp.js.map +1 -1
  2. package/dist/actions/backup/assertDatasetExist.js +2 -1
  3. package/dist/actions/backup/assertDatasetExist.js.map +1 -1
  4. package/dist/actions/backup/downloadAsset.js +3 -24
  5. package/dist/actions/backup/downloadAsset.js.map +1 -1
  6. package/dist/actions/backup/downloadDocument.js +11 -22
  7. package/dist/actions/backup/downloadDocument.js.map +1 -1
  8. package/dist/actions/backup/downloadStream.js +83 -0
  9. package/dist/actions/backup/downloadStream.js.map +1 -0
  10. package/dist/actions/build/buildStudio.js +3 -2
  11. package/dist/actions/build/buildStudio.js.map +1 -1
  12. package/dist/actions/build/eventListenerFactory.js +7 -6
  13. package/dist/actions/build/eventListenerFactory.js.map +1 -1
  14. package/dist/actions/build/shouldAutoUpdate.js +2 -1
  15. package/dist/actions/build/shouldAutoUpdate.js.map +1 -1
  16. package/dist/actions/cors/filterAndValidateOrigin.js +3 -2
  17. package/dist/actions/cors/filterAndValidateOrigin.js.map +1 -1
  18. package/dist/actions/deploy/createUserApplication.js +2 -1
  19. package/dist/actions/deploy/createUserApplication.js.map +1 -1
  20. package/dist/actions/deploy/deployRunner.js +3 -2
  21. package/dist/actions/deploy/deployRunner.js.map +1 -1
  22. package/dist/actions/deploy/deployStudio.js +3 -3
  23. package/dist/actions/deploy/deployStudio.js.map +1 -1
  24. package/dist/actions/deploy/findUserApplication.js +8 -7
  25. package/dist/actions/deploy/findUserApplication.js.map +1 -1
  26. package/dist/actions/dev/servers/startAppDevServer.js +2 -1
  27. package/dist/actions/dev/servers/startAppDevServer.js.map +1 -1
  28. package/dist/actions/dev/servers/startStudioDevServer.js +3 -3
  29. package/dist/actions/dev/servers/startStudioDevServer.js.map +1 -1
  30. package/dist/actions/documents/validate.js +5 -5
  31. package/dist/actions/documents/validate.js.map +1 -1
  32. package/dist/actions/documents/validateDocuments.worker.js +4 -1
  33. package/dist/actions/documents/validateDocuments.worker.js.map +1 -1
  34. package/dist/actions/init/env/createOrAppendEnvVars.js +2 -1
  35. package/dist/actions/init/env/createOrAppendEnvVars.js.map +1 -1
  36. package/dist/actions/init/env/parseAndUpdateEnvVars.js +2 -2
  37. package/dist/actions/init/env/parseAndUpdateEnvVars.js.map +1 -1
  38. package/dist/actions/schema/extractSchema.js +2 -2
  39. package/dist/actions/schema/extractSchema.js.map +1 -1
  40. package/dist/actions/schema/extractSchemaWatcher.js +2 -1
  41. package/dist/actions/schema/extractSchemaWatcher.js.map +1 -1
  42. package/dist/actions/schema/uploadSchemaToLexicon.js +3 -0
  43. package/dist/actions/schema/uploadSchemaToLexicon.js.map +1 -1
  44. package/dist/actions/telemetry/telemetryDebug.js +2 -2
  45. package/dist/actions/telemetry/telemetryDebug.js.map +1 -1
  46. package/dist/actions/undeploy/runUndeploy.js +2 -2
  47. package/dist/actions/undeploy/runUndeploy.js.map +1 -1
  48. package/dist/commands/backups/list.js +5 -8
  49. package/dist/commands/backups/list.js.map +1 -1
  50. package/dist/commands/datasets/copy.js +5 -7
  51. package/dist/commands/datasets/copy.js.map +1 -1
  52. package/dist/commands/datasets/import.js +7 -10
  53. package/dist/commands/datasets/import.js.map +1 -1
  54. package/dist/commands/docs/search.js +2 -2
  55. package/dist/commands/docs/search.js.map +1 -1
  56. package/dist/commands/mcp/configure.js +2 -2
  57. package/dist/commands/mcp/configure.js.map +1 -1
  58. package/dist/commands/typegen/generate.js +6 -6
  59. package/dist/commands/typegen/generate.js.map +1 -1
  60. package/dist/exports/_internal.d.ts +50 -82
  61. package/dist/exports/index.d.ts +48 -78
  62. package/dist/exports/invokeSanityCli/index.d.ts +108 -18
  63. package/dist/exports/invokeSanityCli/index.js +2 -1
  64. package/dist/exports/invokeSanityCli/index.js.map +1 -1
  65. package/dist/exports/runtime.d.ts +3 -65
  66. package/dist/services/api.js +23 -15
  67. package/dist/services/api.js.map +1 -1
  68. package/dist/services/auth.js +4 -4
  69. package/dist/services/auth.js.map +1 -1
  70. package/dist/services/backup.js +3 -3
  71. package/dist/services/backup.js.map +1 -1
  72. package/dist/services/cors.js +3 -3
  73. package/dist/services/cors.js.map +1 -1
  74. package/dist/services/datasetAliases.js +5 -5
  75. package/dist/services/datasetAliases.js.map +1 -1
  76. package/dist/services/datasets.js +3 -3
  77. package/dist/services/datasets.js.map +1 -1
  78. package/dist/services/documents.js +1 -1
  79. package/dist/services/documents.js.map +1 -1
  80. package/dist/services/getProjectFeatures.js +1 -1
  81. package/dist/services/getProjectFeatures.js.map +1 -1
  82. package/dist/services/getUrlHeaders.js +3 -9
  83. package/dist/services/getUrlHeaders.js.map +1 -1
  84. package/dist/services/grants.js +1 -1
  85. package/dist/services/grants.js.map +1 -1
  86. package/dist/services/graphql.js +4 -3
  87. package/dist/services/graphql.js.map +1 -1
  88. package/dist/services/hooks.js +6 -6
  89. package/dist/services/hooks.js.map +1 -1
  90. package/dist/services/mcp.js +4 -4
  91. package/dist/services/mcp.js.map +1 -1
  92. package/dist/services/mediaLibraries.js +3 -3
  93. package/dist/services/mediaLibraries.js.map +1 -1
  94. package/dist/services/mintProject.js +33 -14
  95. package/dist/services/mintProject.js.map +1 -1
  96. package/dist/services/organizations.js +6 -6
  97. package/dist/services/organizations.js.map +1 -1
  98. package/dist/services/plans.js +2 -2
  99. package/dist/services/plans.js.map +1 -1
  100. package/dist/services/projects.js +7 -7
  101. package/dist/services/projects.js.map +1 -1
  102. package/dist/services/schemas.js +2 -2
  103. package/dist/services/schemas.js.map +1 -1
  104. package/dist/services/telemetry.js +2 -2
  105. package/dist/services/telemetry.js.map +1 -1
  106. package/dist/services/tokens.js +5 -5
  107. package/dist/services/tokens.js.map +1 -1
  108. package/dist/services/user.js +1 -1
  109. package/dist/services/user.js.map +1 -1
  110. package/dist/services/userApplications.js +18 -18
  111. package/dist/services/userApplications.js.map +1 -1
  112. package/dist/util/appId.js +2 -1
  113. package/dist/util/appId.js.map +1 -1
  114. package/dist/util/dates.js +125 -0
  115. package/dist/util/dates.js.map +1 -0
  116. package/dist/util/getCliVersion.js +1 -11
  117. package/dist/util/getCliVersion.js.map +1 -1
  118. package/oclif.manifest.json +1093 -1093
  119. package/package.json +12 -15
@@ -1713,6 +1713,167 @@
1713
1713
  "list.js"
1714
1714
  ]
1715
1715
  },
1716
+ "cors:add": {
1717
+ "aliases": [],
1718
+ "args": {
1719
+ "origin": {
1720
+ "description": "Origin to allow (e.g., https://example.com)",
1721
+ "name": "origin",
1722
+ "required": true
1723
+ }
1724
+ },
1725
+ "description": "Add a CORS origin to the project",
1726
+ "examples": [
1727
+ {
1728
+ "command": "<%= config.bin %> <%= command.id %>",
1729
+ "description": "Interactively add a CORS origin"
1730
+ },
1731
+ {
1732
+ "command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
1733
+ "description": "Add a localhost origin without credentials"
1734
+ },
1735
+ {
1736
+ "command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
1737
+ "description": "Add a production origin with credentials allowed"
1738
+ },
1739
+ {
1740
+ "command": "<%= config.bin %> <%= command.id %> https://myapp.com --project-id abc123",
1741
+ "description": "Add a CORS origin for a specific project"
1742
+ }
1743
+ ],
1744
+ "flags": {
1745
+ "project-id": {
1746
+ "char": "p",
1747
+ "description": "Project ID to add CORS origin to (overrides CLI configuration)",
1748
+ "helpGroup": "OVERRIDE",
1749
+ "name": "project-id",
1750
+ "hasDynamicHelp": false,
1751
+ "helpValue": "<id>",
1752
+ "multiple": false,
1753
+ "type": "option"
1754
+ },
1755
+ "credentials": {
1756
+ "description": "Allow credentials (token/cookie) to be sent from this origin",
1757
+ "name": "credentials",
1758
+ "required": false,
1759
+ "allowNo": true,
1760
+ "type": "boolean"
1761
+ },
1762
+ "yes": {
1763
+ "char": "y",
1764
+ "description": "Confirm risky wildcard origins without prompting",
1765
+ "name": "yes",
1766
+ "allowNo": false,
1767
+ "type": "boolean"
1768
+ }
1769
+ },
1770
+ "hasDynamicHelp": false,
1771
+ "hiddenAliases": [],
1772
+ "id": "cors:add",
1773
+ "pluginAlias": "@sanity/cli",
1774
+ "pluginName": "@sanity/cli",
1775
+ "pluginType": "core",
1776
+ "strict": true,
1777
+ "isESM": true,
1778
+ "relativePath": [
1779
+ "dist",
1780
+ "commands",
1781
+ "cors",
1782
+ "add.js"
1783
+ ]
1784
+ },
1785
+ "cors:delete": {
1786
+ "aliases": [],
1787
+ "args": {
1788
+ "origin": {
1789
+ "description": "Origin to delete (will prompt if not provided)",
1790
+ "name": "origin",
1791
+ "required": false
1792
+ }
1793
+ },
1794
+ "description": "Delete a CORS origin from the project",
1795
+ "examples": [
1796
+ {
1797
+ "command": "<%= config.bin %> <%= command.id %>",
1798
+ "description": "Interactively select and delete a CORS origin"
1799
+ },
1800
+ {
1801
+ "command": "<%= config.bin %> <%= command.id %> https://example.com",
1802
+ "description": "Delete a specific CORS origin"
1803
+ },
1804
+ {
1805
+ "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
1806
+ "description": "Delete a CORS origin from a specific project"
1807
+ }
1808
+ ],
1809
+ "flags": {
1810
+ "project-id": {
1811
+ "char": "p",
1812
+ "description": "Project ID to delete CORS origin from (overrides CLI configuration)",
1813
+ "helpGroup": "OVERRIDE",
1814
+ "name": "project-id",
1815
+ "hasDynamicHelp": false,
1816
+ "helpValue": "<id>",
1817
+ "multiple": false,
1818
+ "type": "option"
1819
+ }
1820
+ },
1821
+ "hasDynamicHelp": false,
1822
+ "hiddenAliases": [],
1823
+ "id": "cors:delete",
1824
+ "pluginAlias": "@sanity/cli",
1825
+ "pluginName": "@sanity/cli",
1826
+ "pluginType": "core",
1827
+ "strict": true,
1828
+ "isESM": true,
1829
+ "relativePath": [
1830
+ "dist",
1831
+ "commands",
1832
+ "cors",
1833
+ "delete.js"
1834
+ ]
1835
+ },
1836
+ "cors:list": {
1837
+ "aliases": [],
1838
+ "args": {},
1839
+ "description": "List CORS origins for the project",
1840
+ "examples": [
1841
+ {
1842
+ "command": "<%= config.bin %> <%= command.id %>",
1843
+ "description": "List CORS origins for the project"
1844
+ },
1845
+ {
1846
+ "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
1847
+ "description": "List CORS origins for a specific project"
1848
+ }
1849
+ ],
1850
+ "flags": {
1851
+ "project-id": {
1852
+ "char": "p",
1853
+ "description": "Project ID to list CORS origins for (overrides CLI configuration)",
1854
+ "helpGroup": "OVERRIDE",
1855
+ "name": "project-id",
1856
+ "hasDynamicHelp": false,
1857
+ "helpValue": "<id>",
1858
+ "multiple": false,
1859
+ "type": "option"
1860
+ }
1861
+ },
1862
+ "hasDynamicHelp": false,
1863
+ "hiddenAliases": [],
1864
+ "id": "cors:list",
1865
+ "pluginAlias": "@sanity/cli",
1866
+ "pluginName": "@sanity/cli",
1867
+ "pluginType": "core",
1868
+ "strict": true,
1869
+ "isESM": true,
1870
+ "relativePath": [
1871
+ "dist",
1872
+ "commands",
1873
+ "cors",
1874
+ "list.js"
1875
+ ]
1876
+ },
1716
1877
  "datasets:copy": {
1717
1878
  "aliases": [],
1718
1879
  "args": {
@@ -2336,63 +2497,69 @@
2336
2497
  "list.js"
2337
2498
  ]
2338
2499
  },
2339
- "cors:add": {
2500
+ "docs:browse": {
2501
+ "aliases": [],
2502
+ "args": {},
2503
+ "description": "Open Sanity docs in your browser",
2504
+ "flags": {},
2505
+ "hasDynamicHelp": false,
2506
+ "hiddenAliases": [],
2507
+ "id": "docs:browse",
2508
+ "pluginAlias": "@sanity/cli",
2509
+ "pluginName": "@sanity/cli",
2510
+ "pluginType": "core",
2511
+ "strict": true,
2512
+ "enableJsonFlag": false,
2513
+ "isESM": true,
2514
+ "relativePath": [
2515
+ "dist",
2516
+ "commands",
2517
+ "docs",
2518
+ "browse.js"
2519
+ ]
2520
+ },
2521
+ "docs:read": {
2340
2522
  "aliases": [],
2341
2523
  "args": {
2342
- "origin": {
2343
- "description": "Origin to allow (e.g., https://example.com)",
2344
- "name": "origin",
2524
+ "path": {
2525
+ "description": "Path or URL to article, found in search results and docs content as links",
2526
+ "name": "path",
2345
2527
  "required": true
2346
2528
  }
2347
2529
  },
2348
- "description": "Add a CORS origin to the project",
2530
+ "description": "Read an article in terminal",
2349
2531
  "examples": [
2350
2532
  {
2351
- "command": "<%= config.bin %> <%= command.id %>",
2352
- "description": "Interactively add a CORS origin"
2533
+ "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation",
2534
+ "description": "Read as markdown in terminal"
2353
2535
  },
2354
2536
  {
2355
- "command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
2356
- "description": "Add a localhost origin without credentials"
2537
+ "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation",
2538
+ "description": "Read using full URL"
2357
2539
  },
2358
2540
  {
2359
- "command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
2360
- "description": "Add a production origin with credentials allowed"
2541
+ "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation --web",
2542
+ "description": "Open in web browser"
2361
2543
  },
2362
2544
  {
2363
- "command": "<%= config.bin %> <%= command.id %> https://myapp.com --project-id abc123",
2364
- "description": "Add a CORS origin for a specific project"
2545
+ "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation -w",
2546
+ "description": "Open using full URL in web browser"
2365
2547
  }
2366
2548
  ],
2367
2549
  "flags": {
2368
- "project-id": {
2369
- "char": "p",
2370
- "description": "Project ID to add CORS origin to (overrides CLI configuration)",
2371
- "helpGroup": "OVERRIDE",
2372
- "name": "project-id",
2373
- "hasDynamicHelp": false,
2374
- "helpValue": "<id>",
2375
- "multiple": false,
2376
- "type": "option"
2377
- },
2378
- "credentials": {
2379
- "description": "Allow credentials (token/cookie) to be sent from this origin",
2380
- "name": "credentials",
2381
- "required": false,
2382
- "allowNo": true,
2383
- "type": "boolean"
2384
- },
2385
- "yes": {
2386
- "char": "y",
2387
- "description": "Confirm risky wildcard origins without prompting",
2388
- "name": "yes",
2550
+ "web": {
2551
+ "aliases": [
2552
+ "w"
2553
+ ],
2554
+ "description": "Open in a web browser",
2555
+ "name": "web",
2389
2556
  "allowNo": false,
2390
2557
  "type": "boolean"
2391
2558
  }
2392
2559
  },
2393
2560
  "hasDynamicHelp": false,
2394
2561
  "hiddenAliases": [],
2395
- "id": "cors:add",
2562
+ "id": "docs:read",
2396
2563
  "pluginAlias": "@sanity/cli",
2397
2564
  "pluginName": "@sanity/cli",
2398
2565
  "pluginType": "core",
@@ -2401,187 +2568,20 @@
2401
2568
  "relativePath": [
2402
2569
  "dist",
2403
2570
  "commands",
2404
- "cors",
2405
- "add.js"
2571
+ "docs",
2572
+ "read.js"
2406
2573
  ]
2407
2574
  },
2408
- "cors:delete": {
2575
+ "docs:search": {
2409
2576
  "aliases": [],
2410
2577
  "args": {
2411
- "origin": {
2412
- "description": "Origin to delete (will prompt if not provided)",
2413
- "name": "origin",
2414
- "required": false
2578
+ "query": {
2579
+ "description": "Search query for documentation",
2580
+ "name": "query",
2581
+ "required": true
2415
2582
  }
2416
2583
  },
2417
- "description": "Delete a CORS origin from the project",
2418
- "examples": [
2419
- {
2420
- "command": "<%= config.bin %> <%= command.id %>",
2421
- "description": "Interactively select and delete a CORS origin"
2422
- },
2423
- {
2424
- "command": "<%= config.bin %> <%= command.id %> https://example.com",
2425
- "description": "Delete a specific CORS origin"
2426
- },
2427
- {
2428
- "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
2429
- "description": "Delete a CORS origin from a specific project"
2430
- }
2431
- ],
2432
- "flags": {
2433
- "project-id": {
2434
- "char": "p",
2435
- "description": "Project ID to delete CORS origin from (overrides CLI configuration)",
2436
- "helpGroup": "OVERRIDE",
2437
- "name": "project-id",
2438
- "hasDynamicHelp": false,
2439
- "helpValue": "<id>",
2440
- "multiple": false,
2441
- "type": "option"
2442
- }
2443
- },
2444
- "hasDynamicHelp": false,
2445
- "hiddenAliases": [],
2446
- "id": "cors:delete",
2447
- "pluginAlias": "@sanity/cli",
2448
- "pluginName": "@sanity/cli",
2449
- "pluginType": "core",
2450
- "strict": true,
2451
- "isESM": true,
2452
- "relativePath": [
2453
- "dist",
2454
- "commands",
2455
- "cors",
2456
- "delete.js"
2457
- ]
2458
- },
2459
- "cors:list": {
2460
- "aliases": [],
2461
- "args": {},
2462
- "description": "List CORS origins for the project",
2463
- "examples": [
2464
- {
2465
- "command": "<%= config.bin %> <%= command.id %>",
2466
- "description": "List CORS origins for the project"
2467
- },
2468
- {
2469
- "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
2470
- "description": "List CORS origins for a specific project"
2471
- }
2472
- ],
2473
- "flags": {
2474
- "project-id": {
2475
- "char": "p",
2476
- "description": "Project ID to list CORS origins for (overrides CLI configuration)",
2477
- "helpGroup": "OVERRIDE",
2478
- "name": "project-id",
2479
- "hasDynamicHelp": false,
2480
- "helpValue": "<id>",
2481
- "multiple": false,
2482
- "type": "option"
2483
- }
2484
- },
2485
- "hasDynamicHelp": false,
2486
- "hiddenAliases": [],
2487
- "id": "cors:list",
2488
- "pluginAlias": "@sanity/cli",
2489
- "pluginName": "@sanity/cli",
2490
- "pluginType": "core",
2491
- "strict": true,
2492
- "isESM": true,
2493
- "relativePath": [
2494
- "dist",
2495
- "commands",
2496
- "cors",
2497
- "list.js"
2498
- ]
2499
- },
2500
- "docs:browse": {
2501
- "aliases": [],
2502
- "args": {},
2503
- "description": "Open Sanity docs in your browser",
2504
- "flags": {},
2505
- "hasDynamicHelp": false,
2506
- "hiddenAliases": [],
2507
- "id": "docs:browse",
2508
- "pluginAlias": "@sanity/cli",
2509
- "pluginName": "@sanity/cli",
2510
- "pluginType": "core",
2511
- "strict": true,
2512
- "enableJsonFlag": false,
2513
- "isESM": true,
2514
- "relativePath": [
2515
- "dist",
2516
- "commands",
2517
- "docs",
2518
- "browse.js"
2519
- ]
2520
- },
2521
- "docs:read": {
2522
- "aliases": [],
2523
- "args": {
2524
- "path": {
2525
- "description": "Path or URL to article, found in search results and docs content as links",
2526
- "name": "path",
2527
- "required": true
2528
- }
2529
- },
2530
- "description": "Read an article in terminal",
2531
- "examples": [
2532
- {
2533
- "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation",
2534
- "description": "Read as markdown in terminal"
2535
- },
2536
- {
2537
- "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation",
2538
- "description": "Read using full URL"
2539
- },
2540
- {
2541
- "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation --web",
2542
- "description": "Open in web browser"
2543
- },
2544
- {
2545
- "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation -w",
2546
- "description": "Open using full URL in web browser"
2547
- }
2548
- ],
2549
- "flags": {
2550
- "web": {
2551
- "aliases": [
2552
- "w"
2553
- ],
2554
- "description": "Open in a web browser",
2555
- "name": "web",
2556
- "allowNo": false,
2557
- "type": "boolean"
2558
- }
2559
- },
2560
- "hasDynamicHelp": false,
2561
- "hiddenAliases": [],
2562
- "id": "docs:read",
2563
- "pluginAlias": "@sanity/cli",
2564
- "pluginName": "@sanity/cli",
2565
- "pluginType": "core",
2566
- "strict": true,
2567
- "isESM": true,
2568
- "relativePath": [
2569
- "dist",
2570
- "commands",
2571
- "docs",
2572
- "read.js"
2573
- ]
2574
- },
2575
- "docs:search": {
2576
- "aliases": [],
2577
- "args": {
2578
- "query": {
2579
- "description": "Search query for documentation",
2580
- "name": "query",
2581
- "required": true
2582
- }
2583
- },
2584
- "description": "Search Sanity docs",
2584
+ "description": "Search Sanity docs",
2585
2585
  "examples": [
2586
2586
  {
2587
2587
  "command": "<%= config.bin %> <%= command.id %> schema",
@@ -3094,53 +3094,301 @@
3094
3094
  "validate.js"
3095
3095
  ]
3096
3096
  },
3097
- "graphql:deploy": {
3097
+ "hooks:attempt": {
3098
3098
  "aliases": [],
3099
- "args": {},
3100
- "description": "Deploy a GraphQL API from the current Sanity schema",
3099
+ "args": {
3100
+ "attemptId": {
3101
+ "description": "The delivery attempt ID to get details for",
3102
+ "name": "attemptId",
3103
+ "required": true
3104
+ }
3105
+ },
3106
+ "description": "Print details of a given webhook delivery attempt",
3101
3107
  "examples": [
3102
3108
  {
3103
- "command": "<%= config.bin %> <%= command.id %>",
3104
- "description": "Deploy all defined GraphQL APIs"
3105
- },
3106
- {
3107
- "command": "<%= config.bin %> <%= command.id %> --dry-run",
3108
- "description": "Validate defined GraphQL APIs, check for breaking changes, skip deploy"
3109
- },
3110
- {
3111
- "command": "<%= config.bin %> <%= command.id %> --api staging --api ios",
3112
- "description": "Deploy only the GraphQL APIs with the IDs \"staging\" and \"ios\""
3109
+ "command": "<%= config.bin %> <%= command.id %> abc123",
3110
+ "description": "Print details of webhook delivery attempt with ID abc123"
3113
3111
  },
3114
3112
  {
3115
- "command": "<%= config.bin %> <%= command.id %> --playground",
3116
- "description": "Deploy all defined GraphQL APIs, overriding any playground setting"
3113
+ "command": "<%= config.bin %> <%= command.id %> abc123 --project-id projectId",
3114
+ "description": "Get attempt details for a specific project"
3117
3115
  }
3118
3116
  ],
3119
3117
  "flags": {
3120
- "api": {
3121
- "description": "Only deploy API with this ID (can be specified multiple times)",
3122
- "name": "api",
3118
+ "project-id": {
3119
+ "char": "p",
3120
+ "description": "Project ID to view webhook attempt for (overrides CLI configuration)",
3121
+ "helpGroup": "OVERRIDE",
3122
+ "name": "project-id",
3123
3123
  "hasDynamicHelp": false,
3124
- "multiple": true,
3124
+ "helpValue": "<id>",
3125
+ "multiple": false,
3125
3126
  "type": "option"
3127
+ }
3128
+ },
3129
+ "hasDynamicHelp": false,
3130
+ "hiddenAliases": [
3131
+ "hook:attempt"
3132
+ ],
3133
+ "id": "hooks:attempt",
3134
+ "pluginAlias": "@sanity/cli",
3135
+ "pluginName": "@sanity/cli",
3136
+ "pluginType": "core",
3137
+ "strict": true,
3138
+ "isESM": true,
3139
+ "relativePath": [
3140
+ "dist",
3141
+ "commands",
3142
+ "hooks",
3143
+ "attempt.js"
3144
+ ]
3145
+ },
3146
+ "hooks:create": {
3147
+ "aliases": [],
3148
+ "args": {},
3149
+ "description": "Create a new webhook for the project",
3150
+ "examples": [
3151
+ {
3152
+ "command": "<%= config.bin %> <%= command.id %>",
3153
+ "description": "Create a new webhook for the project"
3126
3154
  },
3127
- "dataset": {
3128
- "char": "d",
3129
- "description": "Deploy API for the given dataset",
3130
- "name": "dataset",
3155
+ {
3156
+ "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
3157
+ "description": "Create a webhook for a specific project"
3158
+ }
3159
+ ],
3160
+ "flags": {
3161
+ "project-id": {
3162
+ "char": "p",
3163
+ "description": "Project ID to create webhook for (overrides CLI configuration)",
3164
+ "helpGroup": "OVERRIDE",
3165
+ "name": "project-id",
3131
3166
  "hasDynamicHelp": false,
3132
- "helpValue": "<name>",
3167
+ "helpValue": "<id>",
3133
3168
  "multiple": false,
3134
3169
  "type": "option"
3135
- },
3136
- "dry-run": {
3137
- "description": "Validate defined GraphQL APIs, check for breaking changes, skip deploy",
3138
- "name": "dry-run",
3139
- "allowNo": false,
3140
- "type": "boolean"
3141
- },
3142
- "force": {
3143
- "description": "Deploy API without confirming breaking changes",
3170
+ }
3171
+ },
3172
+ "hasDynamicHelp": false,
3173
+ "hiddenAliases": [
3174
+ "hook:create"
3175
+ ],
3176
+ "id": "hooks:create",
3177
+ "pluginAlias": "@sanity/cli",
3178
+ "pluginName": "@sanity/cli",
3179
+ "pluginType": "core",
3180
+ "strict": true,
3181
+ "isESM": true,
3182
+ "relativePath": [
3183
+ "dist",
3184
+ "commands",
3185
+ "hooks",
3186
+ "create.js"
3187
+ ]
3188
+ },
3189
+ "hooks:delete": {
3190
+ "aliases": [],
3191
+ "args": {
3192
+ "name": {
3193
+ "description": "Name of webhook to delete (will prompt if not provided)",
3194
+ "name": "name",
3195
+ "required": false
3196
+ }
3197
+ },
3198
+ "description": "Delete a webhook from the project",
3199
+ "examples": [
3200
+ {
3201
+ "command": "<%= config.bin %> <%= command.id %>",
3202
+ "description": "Interactively select and delete a webhook"
3203
+ },
3204
+ {
3205
+ "command": "<%= config.bin %> <%= command.id %> my-hook",
3206
+ "description": "Delete a specific webhook by name"
3207
+ },
3208
+ {
3209
+ "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
3210
+ "description": "Delete a webhook from a specific project"
3211
+ }
3212
+ ],
3213
+ "flags": {
3214
+ "project-id": {
3215
+ "char": "p",
3216
+ "description": "Project ID to delete webhook from (overrides CLI configuration)",
3217
+ "helpGroup": "OVERRIDE",
3218
+ "name": "project-id",
3219
+ "hasDynamicHelp": false,
3220
+ "helpValue": "<id>",
3221
+ "multiple": false,
3222
+ "type": "option"
3223
+ }
3224
+ },
3225
+ "hasDynamicHelp": false,
3226
+ "hiddenAliases": [
3227
+ "hook:delete"
3228
+ ],
3229
+ "id": "hooks:delete",
3230
+ "pluginAlias": "@sanity/cli",
3231
+ "pluginName": "@sanity/cli",
3232
+ "pluginType": "core",
3233
+ "strict": true,
3234
+ "isESM": true,
3235
+ "relativePath": [
3236
+ "dist",
3237
+ "commands",
3238
+ "hooks",
3239
+ "delete.js"
3240
+ ]
3241
+ },
3242
+ "hooks:list": {
3243
+ "aliases": [],
3244
+ "args": {},
3245
+ "description": "List webhooks for the project",
3246
+ "examples": [
3247
+ {
3248
+ "command": "<%= config.bin %> <%= command.id %>",
3249
+ "description": "List webhooks for the project"
3250
+ },
3251
+ {
3252
+ "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
3253
+ "description": "List webhooks for a specific project"
3254
+ }
3255
+ ],
3256
+ "flags": {
3257
+ "project-id": {
3258
+ "char": "p",
3259
+ "description": "Project ID to list webhooks for (overrides CLI configuration)",
3260
+ "helpGroup": "OVERRIDE",
3261
+ "name": "project-id",
3262
+ "hasDynamicHelp": false,
3263
+ "helpValue": "<id>",
3264
+ "multiple": false,
3265
+ "type": "option"
3266
+ }
3267
+ },
3268
+ "hasDynamicHelp": false,
3269
+ "hiddenAliases": [
3270
+ "hook:list"
3271
+ ],
3272
+ "id": "hooks:list",
3273
+ "pluginAlias": "@sanity/cli",
3274
+ "pluginName": "@sanity/cli",
3275
+ "pluginType": "core",
3276
+ "strict": true,
3277
+ "isESM": true,
3278
+ "relativePath": [
3279
+ "dist",
3280
+ "commands",
3281
+ "hooks",
3282
+ "list.js"
3283
+ ]
3284
+ },
3285
+ "hooks:logs": {
3286
+ "aliases": [],
3287
+ "args": {
3288
+ "name": {
3289
+ "description": "Name of the webhook to show logs for",
3290
+ "name": "name",
3291
+ "required": false
3292
+ }
3293
+ },
3294
+ "description": "Show log entries for project webhooks",
3295
+ "examples": [
3296
+ {
3297
+ "command": "<%= config.bin %> <%= command.id %>",
3298
+ "description": "Show log entries for project webhooks"
3299
+ },
3300
+ {
3301
+ "command": "<%= config.bin %> <%= command.id %> [NAME]",
3302
+ "description": "Show log entries for a specific webhook by name"
3303
+ },
3304
+ {
3305
+ "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
3306
+ "description": "Show log entries for a specific project"
3307
+ }
3308
+ ],
3309
+ "flags": {
3310
+ "project-id": {
3311
+ "char": "p",
3312
+ "description": "Project ID to view webhook logs for (overrides CLI configuration)",
3313
+ "helpGroup": "OVERRIDE",
3314
+ "name": "project-id",
3315
+ "hasDynamicHelp": false,
3316
+ "helpValue": "<id>",
3317
+ "multiple": false,
3318
+ "type": "option"
3319
+ },
3320
+ "detailed": {
3321
+ "description": "Include detailed payload and attempts",
3322
+ "name": "detailed",
3323
+ "required": false,
3324
+ "allowNo": false,
3325
+ "type": "boolean"
3326
+ }
3327
+ },
3328
+ "hasDynamicHelp": false,
3329
+ "hiddenAliases": [
3330
+ "hook:logs"
3331
+ ],
3332
+ "id": "hooks:logs",
3333
+ "pluginAlias": "@sanity/cli",
3334
+ "pluginName": "@sanity/cli",
3335
+ "pluginType": "core",
3336
+ "strict": true,
3337
+ "isESM": true,
3338
+ "relativePath": [
3339
+ "dist",
3340
+ "commands",
3341
+ "hooks",
3342
+ "logs.js"
3343
+ ]
3344
+ },
3345
+ "graphql:deploy": {
3346
+ "aliases": [],
3347
+ "args": {},
3348
+ "description": "Deploy a GraphQL API from the current Sanity schema",
3349
+ "examples": [
3350
+ {
3351
+ "command": "<%= config.bin %> <%= command.id %>",
3352
+ "description": "Deploy all defined GraphQL APIs"
3353
+ },
3354
+ {
3355
+ "command": "<%= config.bin %> <%= command.id %> --dry-run",
3356
+ "description": "Validate defined GraphQL APIs, check for breaking changes, skip deploy"
3357
+ },
3358
+ {
3359
+ "command": "<%= config.bin %> <%= command.id %> --api staging --api ios",
3360
+ "description": "Deploy only the GraphQL APIs with the IDs \"staging\" and \"ios\""
3361
+ },
3362
+ {
3363
+ "command": "<%= config.bin %> <%= command.id %> --playground",
3364
+ "description": "Deploy all defined GraphQL APIs, overriding any playground setting"
3365
+ }
3366
+ ],
3367
+ "flags": {
3368
+ "api": {
3369
+ "description": "Only deploy API with this ID (can be specified multiple times)",
3370
+ "name": "api",
3371
+ "hasDynamicHelp": false,
3372
+ "multiple": true,
3373
+ "type": "option"
3374
+ },
3375
+ "dataset": {
3376
+ "char": "d",
3377
+ "description": "Deploy API for the given dataset",
3378
+ "name": "dataset",
3379
+ "hasDynamicHelp": false,
3380
+ "helpValue": "<name>",
3381
+ "multiple": false,
3382
+ "type": "option"
3383
+ },
3384
+ "dry-run": {
3385
+ "description": "Validate defined GraphQL APIs, check for breaking changes, skip deploy",
3386
+ "name": "dry-run",
3387
+ "allowNo": false,
3388
+ "type": "boolean"
3389
+ },
3390
+ "force": {
3391
+ "description": "Deploy API without confirming breaking changes",
3144
3392
  "name": "force",
3145
3393
  "allowNo": false,
3146
3394
  "type": "boolean"
@@ -3346,43 +3594,33 @@
3346
3594
  "undeploy.js"
3347
3595
  ]
3348
3596
  },
3349
- "hooks:attempt": {
3597
+ "manifest:extract": {
3350
3598
  "aliases": [],
3351
- "args": {
3352
- "attemptId": {
3353
- "description": "The delivery attempt ID to get details for",
3354
- "name": "attemptId",
3355
- "required": true
3356
- }
3357
- },
3358
- "description": "Print details of a given webhook delivery attempt",
3599
+ "args": {},
3600
+ "description": "Extract studio configuration as JSON manifest files.\n\nNote: This command is experimental and subject to change. It is currently intended for use with Create only.",
3359
3601
  "examples": [
3360
3602
  {
3361
- "command": "<%= config.bin %> <%= command.id %> abc123",
3362
- "description": "Print details of webhook delivery attempt with ID abc123"
3603
+ "command": "<%= config.bin %> <%= command.id %>",
3604
+ "description": "Extracts manifests"
3363
3605
  },
3364
3606
  {
3365
- "command": "<%= config.bin %> <%= command.id %> abc123 --project-id projectId",
3366
- "description": "Get attempt details for a specific project"
3607
+ "command": "<%= config.bin %> <%= command.id %> --path /public/static",
3608
+ "description": "Extracts manifests into /public/static"
3367
3609
  }
3368
3610
  ],
3369
3611
  "flags": {
3370
- "project-id": {
3371
- "char": "p",
3372
- "description": "Project ID to view webhook attempt for (overrides CLI configuration)",
3373
- "helpGroup": "OVERRIDE",
3374
- "name": "project-id",
3612
+ "path": {
3613
+ "description": "Optional path to specify destination directory of the manifest files",
3614
+ "name": "path",
3615
+ "default": "dist/static",
3375
3616
  "hasDynamicHelp": false,
3376
- "helpValue": "<id>",
3377
3617
  "multiple": false,
3378
3618
  "type": "option"
3379
3619
  }
3380
3620
  },
3381
3621
  "hasDynamicHelp": false,
3382
- "hiddenAliases": [
3383
- "hook:attempt"
3384
- ],
3385
- "id": "hooks:attempt",
3622
+ "hiddenAliases": [],
3623
+ "id": "manifest:extract",
3386
3624
  "pluginAlias": "@sanity/cli",
3387
3625
  "pluginName": "@sanity/cli",
3388
3626
  "pluginType": "core",
@@ -3391,41 +3629,24 @@
3391
3629
  "relativePath": [
3392
3630
  "dist",
3393
3631
  "commands",
3394
- "hooks",
3395
- "attempt.js"
3632
+ "manifest",
3633
+ "extract.js"
3396
3634
  ]
3397
3635
  },
3398
- "hooks:create": {
3636
+ "mcp:configure": {
3399
3637
  "aliases": [],
3400
3638
  "args": {},
3401
- "description": "Create a new webhook for the project",
3639
+ "description": "Configure Sanity MCP server for AI editors (Antigravity, Claude Code, Cline, Cline CLI, Codex CLI, Cursor, Gemini CLI, GitHub Copilot CLI, MCPorter, OpenCode, VS Code, VS Code Insiders, Zed)",
3402
3640
  "examples": [
3403
3641
  {
3404
3642
  "command": "<%= config.bin %> <%= command.id %>",
3405
- "description": "Create a new webhook for the project"
3406
- },
3407
- {
3408
- "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
3409
- "description": "Create a webhook for a specific project"
3643
+ "description": "Configure Sanity MCP server for detected AI editors"
3410
3644
  }
3411
3645
  ],
3412
- "flags": {
3413
- "project-id": {
3414
- "char": "p",
3415
- "description": "Project ID to create webhook for (overrides CLI configuration)",
3416
- "helpGroup": "OVERRIDE",
3417
- "name": "project-id",
3418
- "hasDynamicHelp": false,
3419
- "helpValue": "<id>",
3420
- "multiple": false,
3421
- "type": "option"
3422
- }
3423
- },
3646
+ "flags": {},
3424
3647
  "hasDynamicHelp": false,
3425
- "hiddenAliases": [
3426
- "hook:create"
3427
- ],
3428
- "id": "hooks:create",
3648
+ "hiddenAliases": [],
3649
+ "id": "mcp:configure",
3429
3650
  "pluginAlias": "@sanity/cli",
3430
3651
  "pluginName": "@sanity/cli",
3431
3652
  "pluginType": "core",
@@ -3434,51 +3655,36 @@
3434
3655
  "relativePath": [
3435
3656
  "dist",
3436
3657
  "commands",
3437
- "hooks",
3438
- "create.js"
3658
+ "mcp",
3659
+ "configure.js"
3439
3660
  ]
3440
3661
  },
3441
- "hooks:delete": {
3662
+ "migrations:create": {
3442
3663
  "aliases": [],
3443
3664
  "args": {
3444
- "name": {
3445
- "description": "Name of webhook to delete (will prompt if not provided)",
3446
- "name": "name",
3665
+ "title": {
3666
+ "description": "Title of migration",
3667
+ "name": "title",
3447
3668
  "required": false
3448
3669
  }
3449
3670
  },
3450
- "description": "Delete a webhook from the project",
3671
+ "description": "Create a new migration within your project",
3451
3672
  "examples": [
3452
3673
  {
3453
3674
  "command": "<%= config.bin %> <%= command.id %>",
3454
- "description": "Interactively select and delete a webhook"
3455
- },
3456
- {
3457
- "command": "<%= config.bin %> <%= command.id %> my-hook",
3458
- "description": "Delete a specific webhook by name"
3675
+ "description": "Create a new migration, prompting for title and options"
3459
3676
  },
3460
3677
  {
3461
- "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
3462
- "description": "Delete a webhook from a specific project"
3678
+ "command": "<%= config.bin %> <%= command.id %> \"Rename field from location to address\"",
3679
+ "description": "Create a new migration with the provided title, prompting for options"
3463
3680
  }
3464
3681
  ],
3465
- "flags": {
3466
- "project-id": {
3467
- "char": "p",
3468
- "description": "Project ID to delete webhook from (overrides CLI configuration)",
3469
- "helpGroup": "OVERRIDE",
3470
- "name": "project-id",
3471
- "hasDynamicHelp": false,
3472
- "helpValue": "<id>",
3473
- "multiple": false,
3474
- "type": "option"
3475
- }
3476
- },
3682
+ "flags": {},
3477
3683
  "hasDynamicHelp": false,
3478
3684
  "hiddenAliases": [
3479
- "hook:delete"
3685
+ "migration:create"
3480
3686
  ],
3481
- "id": "hooks:delete",
3687
+ "id": "migrations:create",
3482
3688
  "pluginAlias": "@sanity/cli",
3483
3689
  "pluginName": "@sanity/cli",
3484
3690
  "pluginType": "core",
@@ -3487,41 +3693,26 @@
3487
3693
  "relativePath": [
3488
3694
  "dist",
3489
3695
  "commands",
3490
- "hooks",
3491
- "delete.js"
3696
+ "migrations",
3697
+ "create.js"
3492
3698
  ]
3493
3699
  },
3494
- "hooks:list": {
3700
+ "migrations:list": {
3495
3701
  "aliases": [],
3496
3702
  "args": {},
3497
- "description": "List webhooks for the project",
3703
+ "description": "List available migrations",
3498
3704
  "examples": [
3499
3705
  {
3500
3706
  "command": "<%= config.bin %> <%= command.id %>",
3501
- "description": "List webhooks for the project"
3502
- },
3503
- {
3504
- "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
3505
- "description": "List webhooks for a specific project"
3707
+ "description": "List all available migrations in the project"
3506
3708
  }
3507
3709
  ],
3508
- "flags": {
3509
- "project-id": {
3510
- "char": "p",
3511
- "description": "Project ID to list webhooks for (overrides CLI configuration)",
3512
- "helpGroup": "OVERRIDE",
3513
- "name": "project-id",
3514
- "hasDynamicHelp": false,
3515
- "helpValue": "<id>",
3516
- "multiple": false,
3517
- "type": "option"
3518
- }
3519
- },
3710
+ "flags": {},
3520
3711
  "hasDynamicHelp": false,
3521
3712
  "hiddenAliases": [
3522
- "hook:list"
3713
+ "migration:list"
3523
3714
  ],
3524
- "id": "hooks:list",
3715
+ "id": "migrations:list",
3525
3716
  "pluginAlias": "@sanity/cli",
3526
3717
  "pluginName": "@sanity/cli",
3527
3718
  "pluginType": "core",
@@ -3530,58 +3721,95 @@
3530
3721
  "relativePath": [
3531
3722
  "dist",
3532
3723
  "commands",
3533
- "hooks",
3724
+ "migrations",
3534
3725
  "list.js"
3535
3726
  ]
3536
3727
  },
3537
- "hooks:logs": {
3728
+ "migrations:run": {
3538
3729
  "aliases": [],
3539
3730
  "args": {
3540
- "name": {
3541
- "description": "Name of the webhook to show logs for",
3542
- "name": "name",
3731
+ "id": {
3732
+ "description": "ID",
3733
+ "name": "id",
3543
3734
  "required": false
3544
3735
  }
3545
3736
  },
3546
- "description": "Show log entries for project webhooks",
3737
+ "description": "Run a migration against a dataset",
3547
3738
  "examples": [
3548
3739
  {
3549
- "command": "<%= config.bin %> <%= command.id %>",
3550
- "description": "Show log entries for project webhooks"
3740
+ "command": "<%= config.bin %> <%= command.id %> <id>",
3741
+ "description": "dry run the migration"
3551
3742
  },
3552
3743
  {
3553
- "command": "<%= config.bin %> <%= command.id %> [NAME]",
3554
- "description": "Show log entries for a specific webhook by name"
3744
+ "command": "<%= config.bin %> <%= command.id %> <id> --no-dry-run --project xyz --dataset staging",
3745
+ "description": "execute the migration against a dataset"
3555
3746
  },
3556
3747
  {
3557
- "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
3558
- "description": "Show log entries for a specific project"
3748
+ "command": "<%= config.bin %> <%= command.id %> <id> --from-export=production.tar.gz --no-dry-run --project xyz --dataset staging",
3749
+ "description": "execute the migration using a dataset export as the source"
3559
3750
  }
3560
3751
  ],
3561
3752
  "flags": {
3562
- "project-id": {
3563
- "char": "p",
3564
- "description": "Project ID to view webhook logs for (overrides CLI configuration)",
3565
- "helpGroup": "OVERRIDE",
3566
- "name": "project-id",
3753
+ "api-version": {
3754
+ "description": "API version to use when migrating. Defaults to v2024-01-29.",
3755
+ "name": "api-version",
3567
3756
  "hasDynamicHelp": false,
3568
- "helpValue": "<id>",
3569
3757
  "multiple": false,
3570
3758
  "type": "option"
3571
3759
  },
3572
- "detailed": {
3573
- "description": "Include detailed payload and attempts",
3574
- "name": "detailed",
3575
- "required": false,
3576
- "allowNo": false,
3760
+ "concurrency": {
3761
+ "description": "How many mutation requests to run in parallel. Must be between 1 and 10. Default: 6.",
3762
+ "name": "concurrency",
3763
+ "default": 6,
3764
+ "hasDynamicHelp": false,
3765
+ "multiple": false,
3766
+ "type": "option"
3767
+ },
3768
+ "confirm": {
3769
+ "description": "Prompt for confirmation before running the migration (default: true). Use --no-confirm to skip.",
3770
+ "name": "confirm",
3771
+ "allowNo": true,
3772
+ "type": "boolean"
3773
+ },
3774
+ "dataset": {
3775
+ "description": "Dataset to migrate. Defaults to the dataset configured in your Sanity CLI config.",
3776
+ "name": "dataset",
3777
+ "hasDynamicHelp": false,
3778
+ "multiple": false,
3779
+ "type": "option"
3780
+ },
3781
+ "dry-run": {
3782
+ "description": "By default the migration runs in dry mode. Use --no-dry-run to migrate dataset.",
3783
+ "name": "dry-run",
3784
+ "allowNo": true,
3785
+ "type": "boolean"
3786
+ },
3787
+ "from-export": {
3788
+ "description": "Use a local dataset export as source for migration instead of calling the Sanity API. Note: this is only supported for dry runs.",
3789
+ "name": "from-export",
3790
+ "hasDynamicHelp": false,
3791
+ "multiple": false,
3792
+ "type": "option"
3793
+ },
3794
+ "progress": {
3795
+ "description": "Display progress during migration (default: true). Use --no-progress to hide output.",
3796
+ "name": "progress",
3797
+ "allowNo": true,
3577
3798
  "type": "boolean"
3799
+ },
3800
+ "project": {
3801
+ "description": "Project ID of the dataset to migrate. Defaults to the projectId configured in your Sanity CLI config.",
3802
+ "name": "project",
3803
+ "hasDynamicHelp": false,
3804
+ "multiple": false,
3805
+ "type": "option"
3578
3806
  }
3579
3807
  },
3580
3808
  "hasDynamicHelp": false,
3581
3809
  "hiddenAliases": [
3582
- "hook:logs"
3810
+ "migration:run"
3583
3811
  ],
3584
- "id": "hooks:logs",
3812
+ "id": "migrations:run",
3585
3813
  "pluginAlias": "@sanity/cli",
3586
3814
  "pluginName": "@sanity/cli",
3587
3815
  "pluginType": "core",
@@ -3590,37 +3818,62 @@
3590
3818
  "relativePath": [
3591
3819
  "dist",
3592
3820
  "commands",
3593
- "hooks",
3594
- "logs.js"
3821
+ "migrations",
3822
+ "run.js"
3595
3823
  ]
3596
3824
  },
3597
- "manifest:extract": {
3825
+ "openapi:get": {
3598
3826
  "aliases": [],
3599
- "args": {},
3600
- "description": "Extract studio configuration as JSON manifest files.\n\nNote: This command is experimental and subject to change. It is currently intended for use with Create only.",
3827
+ "args": {
3828
+ "slug": {
3829
+ "description": "Slug of the OpenAPI specification to retrieve",
3830
+ "name": "slug",
3831
+ "required": true
3832
+ }
3833
+ },
3834
+ "description": "Get an OpenAPI specification by slug",
3601
3835
  "examples": [
3602
3836
  {
3603
- "command": "<%= config.bin %> <%= command.id %>",
3604
- "description": "Extracts manifests"
3837
+ "command": "<%= config.bin %> <%= command.id %> query",
3838
+ "description": "Get a specification (YAML format, default)"
3605
3839
  },
3606
3840
  {
3607
- "command": "<%= config.bin %> <%= command.id %> --path /public/static",
3608
- "description": "Extracts manifests into /public/static"
3841
+ "command": "<%= config.bin %> <%= command.id %> query --format=json",
3842
+ "description": "Get specification in JSON format"
3843
+ },
3844
+ {
3845
+ "command": "<%= config.bin %> <%= command.id %> query --web",
3846
+ "description": "Open specification in browser"
3847
+ },
3848
+ {
3849
+ "command": "<%= config.bin %> <%= command.id %> query > query-api.yaml",
3850
+ "description": "Pipe to file"
3609
3851
  }
3610
3852
  ],
3611
3853
  "flags": {
3612
- "path": {
3613
- "description": "Optional path to specify destination directory of the manifest files",
3614
- "name": "path",
3615
- "default": "dist/static",
3854
+ "format": {
3855
+ "description": "Output format: yaml (default), json",
3856
+ "name": "format",
3857
+ "default": "yaml",
3616
3858
  "hasDynamicHelp": false,
3617
3859
  "multiple": false,
3860
+ "options": [
3861
+ "yaml",
3862
+ "json"
3863
+ ],
3618
3864
  "type": "option"
3865
+ },
3866
+ "web": {
3867
+ "char": "w",
3868
+ "description": "Open in web browser",
3869
+ "name": "web",
3870
+ "allowNo": false,
3871
+ "type": "boolean"
3619
3872
  }
3620
3873
  },
3621
3874
  "hasDynamicHelp": false,
3622
3875
  "hiddenAliases": [],
3623
- "id": "manifest:extract",
3876
+ "id": "openapi:get",
3624
3877
  "pluginAlias": "@sanity/cli",
3625
3878
  "pluginName": "@sanity/cli",
3626
3879
  "pluginType": "core",
@@ -3629,39 +3882,46 @@
3629
3882
  "relativePath": [
3630
3883
  "dist",
3631
3884
  "commands",
3632
- "manifest",
3633
- "extract.js"
3885
+ "openapi",
3886
+ "get.js"
3634
3887
  ]
3635
3888
  },
3636
- "media:create-aspect": {
3889
+ "openapi:list": {
3637
3890
  "aliases": [],
3638
3891
  "args": {},
3639
- "description": "Create a new aspect definition file",
3892
+ "description": "List all available OpenAPI specifications",
3640
3893
  "examples": [
3641
3894
  {
3642
3895
  "command": "<%= config.bin %> <%= command.id %>",
3643
- "description": "Create a new aspect definition file"
3896
+ "description": "List all available OpenAPI specs"
3897
+ },
3898
+ {
3899
+ "command": "<%= config.bin %> <%= command.id %> --json",
3900
+ "description": "List with JSON output"
3901
+ },
3902
+ {
3903
+ "command": "<%= config.bin %> <%= command.id %> --web",
3904
+ "description": "Open HTTP Reference in browser"
3644
3905
  }
3645
3906
  ],
3646
3907
  "flags": {
3647
- "name": {
3648
- "description": "Aspect name. Defaults to the title in camel case",
3649
- "name": "name",
3650
- "hasDynamicHelp": false,
3651
- "multiple": false,
3652
- "type": "option"
3908
+ "json": {
3909
+ "description": "Output JSON",
3910
+ "name": "json",
3911
+ "allowNo": false,
3912
+ "type": "boolean"
3653
3913
  },
3654
- "title": {
3655
- "description": "Aspect title",
3656
- "name": "title",
3657
- "hasDynamicHelp": false,
3658
- "multiple": false,
3659
- "type": "option"
3914
+ "web": {
3915
+ "char": "w",
3916
+ "description": "Open HTTP Reference in web browser",
3917
+ "name": "web",
3918
+ "allowNo": false,
3919
+ "type": "boolean"
3660
3920
  }
3661
3921
  },
3662
3922
  "hasDynamicHelp": false,
3663
3923
  "hiddenAliases": [],
3664
- "id": "media:create-aspect",
3924
+ "id": "openapi:list",
3665
3925
  "pluginAlias": "@sanity/cli",
3666
3926
  "pluginName": "@sanity/cli",
3667
3927
  "pluginType": "core",
@@ -3670,59 +3930,55 @@
3670
3930
  "relativePath": [
3671
3931
  "dist",
3672
3932
  "commands",
3673
- "media",
3674
- "create-aspect.js"
3933
+ "openapi",
3934
+ "list.js"
3675
3935
  ]
3676
3936
  },
3677
- "media:delete-aspect": {
3937
+ "organizations:create": {
3678
3938
  "aliases": [],
3679
- "args": {
3680
- "aspectName": {
3681
- "description": "Name of the aspect to delete",
3682
- "name": "aspectName",
3683
- "required": true
3684
- }
3685
- },
3686
- "description": "Delete an aspect definition",
3939
+ "args": {},
3940
+ "description": "Create a new organization",
3687
3941
  "examples": [
3688
3942
  {
3689
- "command": "<%= config.bin %> <%= command.id %> someAspect",
3690
- "description": "Delete the aspect named \"someAspect\""
3943
+ "command": "<%= config.bin %> <%= command.id %>",
3944
+ "description": "Interactively create an organization"
3945
+ },
3946
+ {
3947
+ "command": "<%= config.bin %> <%= command.id %> --name \"Acme Corp\"",
3948
+ "description": "Create an organization named \"Acme Corp\""
3949
+ },
3950
+ {
3951
+ "command": "<%= config.bin %> <%= command.id %> --name \"Acme Corp\" --default-role member",
3952
+ "description": "Create an organization with a default member role"
3691
3953
  }
3692
3954
  ],
3693
3955
  "flags": {
3694
- "project-id": {
3695
- "char": "p",
3696
- "description": "Project ID to delete media aspect from (overrides CLI configuration)",
3697
- "helpGroup": "OVERRIDE",
3698
- "name": "project-id",
3956
+ "default-role": {
3957
+ "description": "Default role assigned to new members",
3958
+ "name": "default-role",
3959
+ "required": false,
3699
3960
  "hasDynamicHelp": false,
3700
- "helpValue": "<id>",
3701
3961
  "multiple": false,
3702
3962
  "type": "option"
3703
3963
  },
3704
- "media-library-id": {
3705
- "description": "The id of the target media library",
3706
- "name": "media-library-id",
3964
+ "name": {
3965
+ "description": "Organization name",
3966
+ "name": "name",
3707
3967
  "required": false,
3708
3968
  "hasDynamicHelp": false,
3709
3969
  "multiple": false,
3710
3970
  "type": "option"
3711
- },
3712
- "yes": {
3713
- "aliases": [
3714
- "y"
3715
- ],
3716
- "description": "Run without prompts and confirm deletion",
3717
- "name": "yes",
3718
- "required": false,
3719
- "allowNo": false,
3720
- "type": "boolean"
3721
3971
  }
3722
3972
  },
3723
3973
  "hasDynamicHelp": false,
3724
- "hiddenAliases": [],
3725
- "id": "media:delete-aspect",
3974
+ "hiddenAliases": [
3975
+ "organization:create",
3976
+ "organisations:create",
3977
+ "organisation:create",
3978
+ "org:create",
3979
+ "orgs:create"
3980
+ ],
3981
+ "id": "organizations:create",
3726
3982
  "pluginAlias": "@sanity/cli",
3727
3983
  "pluginName": "@sanity/cli",
3728
3984
  "pluginType": "core",
@@ -3731,60 +3987,48 @@
3731
3987
  "relativePath": [
3732
3988
  "dist",
3733
3989
  "commands",
3734
- "media",
3735
- "delete-aspect.js"
3990
+ "organizations",
3991
+ "create.js"
3736
3992
  ]
3737
3993
  },
3738
- "media:deploy-aspect": {
3994
+ "organizations:delete": {
3739
3995
  "aliases": [],
3740
3996
  "args": {
3741
- "aspectName": {
3742
- "description": "Name of the aspect to deploy",
3743
- "name": "aspectName",
3744
- "required": false
3997
+ "organizationId": {
3998
+ "description": "Organization ID to delete",
3999
+ "name": "organizationId",
4000
+ "required": true
3745
4001
  }
3746
4002
  },
3747
- "description": "Deploy an aspect",
4003
+ "description": "Delete an organization",
3748
4004
  "examples": [
3749
4005
  {
3750
- "command": "<%= config.bin %> <%= command.id %> someAspect",
3751
- "description": "Deploy the aspect named \"someAspect\""
4006
+ "command": "<%= config.bin %> <%= command.id %> org-abc123",
4007
+ "description": "Delete an organization (prompts for confirmation)"
3752
4008
  },
3753
4009
  {
3754
- "command": "<%= config.bin %> <%= command.id %> --all",
3755
- "description": "Deploy all aspects"
4010
+ "command": "<%= config.bin %> <%= command.id %> org-abc123 --force",
4011
+ "description": "Delete an organization without confirmation"
3756
4012
  }
3757
4013
  ],
3758
4014
  "flags": {
3759
- "project-id": {
3760
- "char": "p",
3761
- "description": "Project ID to deploy media aspect to (overrides CLI configuration)",
3762
- "helpGroup": "OVERRIDE",
3763
- "name": "project-id",
3764
- "hasDynamicHelp": false,
3765
- "helpValue": "<id>",
3766
- "multiple": false,
3767
- "type": "option"
3768
- },
3769
- "all": {
3770
- "description": "Deploy all aspects",
3771
- "name": "all",
4015
+ "force": {
4016
+ "description": "Do not prompt for delete confirmation - forcefully delete",
4017
+ "name": "force",
3772
4018
  "required": false,
3773
4019
  "allowNo": false,
3774
4020
  "type": "boolean"
3775
- },
3776
- "media-library-id": {
3777
- "description": "The id of the target media library",
3778
- "name": "media-library-id",
3779
- "required": false,
3780
- "hasDynamicHelp": false,
3781
- "multiple": false,
3782
- "type": "option"
3783
4021
  }
3784
4022
  },
3785
4023
  "hasDynamicHelp": false,
3786
- "hiddenAliases": [],
3787
- "id": "media:deploy-aspect",
4024
+ "hiddenAliases": [
4025
+ "organization:delete",
4026
+ "organisations:delete",
4027
+ "organisation:delete",
4028
+ "org:delete",
4029
+ "orgs:delete"
4030
+ ],
4031
+ "id": "organizations:delete",
3788
4032
  "pluginAlias": "@sanity/cli",
3789
4033
  "pluginName": "@sanity/cli",
3790
4034
  "pluginType": "core",
@@ -3793,75 +4037,36 @@
3793
4037
  "relativePath": [
3794
4038
  "dist",
3795
4039
  "commands",
3796
- "media",
3797
- "deploy-aspect.js"
4040
+ "organizations",
4041
+ "delete.js"
3798
4042
  ]
3799
4043
  },
3800
- "media:export": {
4044
+ "organizations:get": {
3801
4045
  "aliases": [],
3802
4046
  "args": {
3803
- "destination": {
3804
- "description": "Output destination file path",
3805
- "name": "destination"
4047
+ "organizationId": {
4048
+ "description": "Organization ID",
4049
+ "name": "organizationId",
4050
+ "required": true
3806
4051
  }
3807
4052
  },
3808
- "description": "Export file and image assets from a media library (excludes video)",
4053
+ "description": "Get details of an organization",
3809
4054
  "examples": [
3810
4055
  {
3811
- "command": "<%= config.bin %> <%= command.id %>",
3812
- "description": "Export media library interactively"
3813
- },
3814
- {
3815
- "command": "<%= config.bin %> <%= command.id %> output.tar.gz",
3816
- "description": "Export media library to output.tar.gz"
3817
- },
3818
- {
3819
- "command": "<%= config.bin %> <%= command.id %> --media-library-id my-library-id",
3820
- "description": "Export specific media library"
4056
+ "command": "<%= config.bin %> <%= command.id %> org-abc123",
4057
+ "description": "Get details of a specific organization"
3821
4058
  }
3822
4059
  ],
3823
- "flags": {
3824
- "project-id": {
3825
- "char": "p",
3826
- "description": "Project ID to export media from (overrides CLI configuration)",
3827
- "helpGroup": "OVERRIDE",
3828
- "name": "project-id",
3829
- "hasDynamicHelp": false,
3830
- "helpValue": "<id>",
3831
- "multiple": false,
3832
- "type": "option"
3833
- },
3834
- "asset-concurrency": {
3835
- "description": "Concurrent number of asset downloads",
3836
- "name": "asset-concurrency",
3837
- "default": 8,
3838
- "hasDynamicHelp": false,
3839
- "multiple": false,
3840
- "type": "option"
3841
- },
3842
- "media-library-id": {
3843
- "description": "The id of the target media library",
3844
- "name": "media-library-id",
3845
- "hasDynamicHelp": false,
3846
- "multiple": false,
3847
- "type": "option"
3848
- },
3849
- "no-compress": {
3850
- "description": "Skips compressing tarball entries (still generates a gzip file)",
3851
- "name": "no-compress",
3852
- "allowNo": false,
3853
- "type": "boolean"
3854
- },
3855
- "overwrite": {
3856
- "description": "Overwrite any file with the same name",
3857
- "name": "overwrite",
3858
- "allowNo": false,
3859
- "type": "boolean"
3860
- }
3861
- },
4060
+ "flags": {},
3862
4061
  "hasDynamicHelp": false,
3863
- "hiddenAliases": [],
3864
- "id": "media:export",
4062
+ "hiddenAliases": [
4063
+ "organization:get",
4064
+ "organisations:get",
4065
+ "organisation:get",
4066
+ "org:get",
4067
+ "orgs:get"
4068
+ ],
4069
+ "id": "organizations:get",
3865
4070
  "pluginAlias": "@sanity/cli",
3866
4071
  "pluginName": "@sanity/cli",
3867
4072
  "pluginType": "core",
@@ -3870,62 +4075,30 @@
3870
4075
  "relativePath": [
3871
4076
  "dist",
3872
4077
  "commands",
3873
- "media",
3874
- "export.js"
4078
+ "organizations",
4079
+ "get.js"
3875
4080
  ]
3876
4081
  },
3877
- "media:import": {
4082
+ "organizations:list": {
3878
4083
  "aliases": [],
3879
- "args": {
3880
- "source": {
3881
- "description": "Image file or folder to import from",
3882
- "name": "source",
3883
- "required": true
3884
- }
3885
- },
3886
- "description": "Import a set of assets to the target media library.",
4084
+ "args": {},
4085
+ "description": "List organizations you are a member of",
3887
4086
  "examples": [
3888
4087
  {
3889
- "command": "<%= config.bin %> <%= command.id %> products",
3890
- "description": "Import all assets from the \"products\" directory"
3891
- },
3892
- {
3893
- "command": "<%= config.bin %> <%= command.id %> gallery.tar.gz",
3894
- "description": "Import all assets from \"gallery\" archive"
3895
- },
3896
- {
3897
- "command": "<%= config.bin %> <%= command.id %> products --replace-aspects",
3898
- "description": "Import all assets from the \"products\" directory and replace aspects"
4088
+ "command": "<%= config.bin %> <%= command.id %>",
4089
+ "description": "List all your organizations"
3899
4090
  }
3900
4091
  ],
3901
- "flags": {
3902
- "project-id": {
3903
- "char": "p",
3904
- "description": "Project ID to import media to (overrides CLI configuration)",
3905
- "helpGroup": "OVERRIDE",
3906
- "name": "project-id",
3907
- "hasDynamicHelp": false,
3908
- "helpValue": "<id>",
3909
- "multiple": false,
3910
- "type": "option"
3911
- },
3912
- "media-library-id": {
3913
- "description": "The id of the target media library",
3914
- "name": "media-library-id",
3915
- "hasDynamicHelp": false,
3916
- "multiple": false,
3917
- "type": "option"
3918
- },
3919
- "replace-aspects": {
3920
- "description": "Replace existing aspect data. All versions will be replaced (e.g. published and draft aspect data)",
3921
- "name": "replace-aspects",
3922
- "allowNo": false,
3923
- "type": "boolean"
3924
- }
3925
- },
4092
+ "flags": {},
3926
4093
  "hasDynamicHelp": false,
3927
- "hiddenAliases": [],
3928
- "id": "media:import",
4094
+ "hiddenAliases": [
4095
+ "organization:list",
4096
+ "organisations:list",
4097
+ "organisation:list",
4098
+ "org:list",
4099
+ "orgs:list"
4100
+ ],
4101
+ "id": "organizations:list",
3929
4102
  "pluginAlias": "@sanity/cli",
3930
4103
  "pluginName": "@sanity/cli",
3931
4104
  "pluginType": "core",
@@ -3934,24 +4107,69 @@
3934
4107
  "relativePath": [
3935
4108
  "dist",
3936
4109
  "commands",
3937
- "media",
3938
- "import.js"
4110
+ "organizations",
4111
+ "list.js"
3939
4112
  ]
3940
4113
  },
3941
- "mcp:configure": {
4114
+ "organizations:update": {
3942
4115
  "aliases": [],
3943
- "args": {},
3944
- "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)",
4116
+ "args": {
4117
+ "organizationId": {
4118
+ "description": "Organization ID",
4119
+ "name": "organizationId",
4120
+ "required": true
4121
+ }
4122
+ },
4123
+ "description": "Update an organization",
3945
4124
  "examples": [
3946
4125
  {
3947
- "command": "<%= config.bin %> <%= command.id %>",
3948
- "description": "Configure Sanity MCP server for detected AI editors"
4126
+ "command": "<%= config.bin %> <%= command.id %> org-abc123 --name \"New Name\"",
4127
+ "description": "Rename an organization"
4128
+ },
4129
+ {
4130
+ "command": "<%= config.bin %> <%= command.id %> org-abc123 --slug new-slug",
4131
+ "description": "Set the organization slug (requires authSAML feature)"
4132
+ },
4133
+ {
4134
+ "command": "<%= config.bin %> <%= command.id %> org-abc123 --default-role viewer",
4135
+ "description": "Change the default member role"
3949
4136
  }
3950
4137
  ],
3951
- "flags": {},
4138
+ "flags": {
4139
+ "default-role": {
4140
+ "description": "New default role for new members",
4141
+ "name": "default-role",
4142
+ "required": false,
4143
+ "hasDynamicHelp": false,
4144
+ "multiple": false,
4145
+ "type": "option"
4146
+ },
4147
+ "name": {
4148
+ "description": "New organization name",
4149
+ "name": "name",
4150
+ "required": false,
4151
+ "hasDynamicHelp": false,
4152
+ "multiple": false,
4153
+ "type": "option"
4154
+ },
4155
+ "slug": {
4156
+ "description": "New URL slug (requires authSAML feature on the organization)",
4157
+ "name": "slug",
4158
+ "required": false,
4159
+ "hasDynamicHelp": false,
4160
+ "multiple": false,
4161
+ "type": "option"
4162
+ }
4163
+ },
3952
4164
  "hasDynamicHelp": false,
3953
- "hiddenAliases": [],
3954
- "id": "mcp:configure",
4165
+ "hiddenAliases": [
4166
+ "organization:update",
4167
+ "organisations:update",
4168
+ "organisation:update",
4169
+ "org:update",
4170
+ "orgs:update"
4171
+ ],
4172
+ "id": "organizations:update",
3955
4173
  "pluginAlias": "@sanity/cli",
3956
4174
  "pluginName": "@sanity/cli",
3957
4175
  "pluginType": "core",
@@ -3960,36 +4178,88 @@
3960
4178
  "relativePath": [
3961
4179
  "dist",
3962
4180
  "commands",
3963
- "mcp",
3964
- "configure.js"
4181
+ "organizations",
4182
+ "update.js"
3965
4183
  ]
3966
4184
  },
3967
- "migrations:create": {
4185
+ "projects:create": {
3968
4186
  "aliases": [],
3969
4187
  "args": {
3970
- "title": {
3971
- "description": "Title of migration",
3972
- "name": "title",
4188
+ "projectName": {
4189
+ "description": "Name of the project to create",
4190
+ "name": "projectName",
3973
4191
  "required": false
3974
4192
  }
3975
4193
  },
3976
- "description": "Create a new migration within your project",
4194
+ "description": "Create a new Sanity project",
3977
4195
  "examples": [
3978
4196
  {
3979
4197
  "command": "<%= config.bin %> <%= command.id %>",
3980
- "description": "Create a new migration, prompting for title and options"
4198
+ "description": "Interactively create a project"
3981
4199
  },
3982
4200
  {
3983
- "command": "<%= config.bin %> <%= command.id %> \"Rename field from location to address\"",
3984
- "description": "Create a new migration with the provided title, prompting for options"
4201
+ "command": "<%= config.bin %> <%= command.id %> \"My New Project\"",
4202
+ "description": "Create a project named \"My New Project\""
4203
+ },
4204
+ {
4205
+ "command": "<%= config.bin %> <%= command.id %> \"My Project\" --organization=my-org",
4206
+ "description": "Create a project in a specific organization"
4207
+ },
4208
+ {
4209
+ "command": "<%= config.bin %> <%= command.id %> \"My Project\" --dataset=staging --dataset-visibility=private",
4210
+ "description": "Create a project with a private dataset named \"staging\""
4211
+ },
4212
+ {
4213
+ "command": "<%= config.bin %> <%= command.id %> \"CI Project\" --yes --json",
4214
+ "description": "Create a project non-interactively with JSON output"
3985
4215
  }
3986
4216
  ],
3987
- "flags": {},
4217
+ "flags": {
4218
+ "dataset": {
4219
+ "description": "Create a dataset. Prompts for visibility unless specified or --yes used",
4220
+ "name": "dataset",
4221
+ "hasDynamicHelp": false,
4222
+ "multiple": false,
4223
+ "type": "option"
4224
+ },
4225
+ "dataset-visibility": {
4226
+ "description": "Dataset visibility: public or private",
4227
+ "name": "dataset-visibility",
4228
+ "hasDynamicHelp": false,
4229
+ "multiple": false,
4230
+ "options": [
4231
+ "private",
4232
+ "public"
4233
+ ],
4234
+ "type": "option"
4235
+ },
4236
+ "json": {
4237
+ "description": "Output in JSON format",
4238
+ "name": "json",
4239
+ "allowNo": false,
4240
+ "type": "boolean"
4241
+ },
4242
+ "organization": {
4243
+ "description": "Organization to create the project in",
4244
+ "name": "organization",
4245
+ "hasDynamicHelp": false,
4246
+ "helpValue": "<slug|id>",
4247
+ "multiple": false,
4248
+ "type": "option"
4249
+ },
4250
+ "yes": {
4251
+ "char": "y",
4252
+ "description": "Skip prompts and use defaults (project: \"My Sanity Project\", dataset: production, visibility: public)",
4253
+ "name": "yes",
4254
+ "allowNo": false,
4255
+ "type": "boolean"
4256
+ }
4257
+ },
3988
4258
  "hasDynamicHelp": false,
3989
4259
  "hiddenAliases": [
3990
- "migration:create"
4260
+ "project:create"
3991
4261
  ],
3992
- "id": "migrations:create",
4262
+ "id": "projects:create",
3993
4263
  "pluginAlias": "@sanity/cli",
3994
4264
  "pluginName": "@sanity/cli",
3995
4265
  "pluginType": "core",
@@ -3998,26 +4268,58 @@
3998
4268
  "relativePath": [
3999
4269
  "dist",
4000
4270
  "commands",
4001
- "migrations",
4271
+ "projects",
4002
4272
  "create.js"
4003
4273
  ]
4004
4274
  },
4005
- "migrations:list": {
4275
+ "projects:list": {
4006
4276
  "aliases": [],
4007
4277
  "args": {},
4008
- "description": "List available migrations",
4278
+ "description": "List your projects",
4009
4279
  "examples": [
4010
4280
  {
4011
4281
  "command": "<%= config.bin %> <%= command.id %>",
4012
- "description": "List all available migrations in the project"
4282
+ "description": "List projects"
4283
+ },
4284
+ {
4285
+ "command": "<%= config.bin %> <%= command.id %> --sort=members --order=asc",
4286
+ "description": "List projects sorted by member count, ascending"
4013
4287
  }
4014
4288
  ],
4015
- "flags": {},
4289
+ "flags": {
4290
+ "order": {
4291
+ "description": "Sort direction",
4292
+ "name": "order",
4293
+ "default": "desc",
4294
+ "hasDynamicHelp": false,
4295
+ "multiple": false,
4296
+ "options": [
4297
+ "asc",
4298
+ "desc"
4299
+ ],
4300
+ "type": "option"
4301
+ },
4302
+ "sort": {
4303
+ "description": "Sort field",
4304
+ "name": "sort",
4305
+ "default": "created",
4306
+ "hasDynamicHelp": false,
4307
+ "multiple": false,
4308
+ "options": [
4309
+ "id",
4310
+ "members",
4311
+ "name",
4312
+ "url",
4313
+ "created"
4314
+ ],
4315
+ "type": "option"
4316
+ }
4317
+ },
4016
4318
  "hasDynamicHelp": false,
4017
4319
  "hiddenAliases": [
4018
- "migration:list"
4320
+ "project:list"
4019
4321
  ],
4020
- "id": "migrations:list",
4322
+ "id": "projects:list",
4021
4323
  "pluginAlias": "@sanity/cli",
4022
4324
  "pluginName": "@sanity/cli",
4023
4325
  "pluginType": "core",
@@ -4026,85 +4328,28 @@
4026
4328
  "relativePath": [
4027
4329
  "dist",
4028
4330
  "commands",
4029
- "migrations",
4331
+ "projects",
4030
4332
  "list.js"
4031
4333
  ]
4032
4334
  },
4033
- "migrations:run": {
4335
+ "projects:unclaimed": {
4034
4336
  "aliases": [],
4035
- "args": {
4036
- "id": {
4037
- "description": "ID",
4038
- "name": "id",
4039
- "required": false
4040
- }
4041
- },
4042
- "description": "Run a migration against a dataset",
4337
+ "args": {},
4338
+ "description": "Recover details for unclaimed projects created on this machine",
4043
4339
  "examples": [
4044
4340
  {
4045
- "command": "<%= config.bin %> <%= command.id %> <id>",
4046
- "description": "dry run the migration"
4047
- },
4048
- {
4049
- "command": "<%= config.bin %> <%= command.id %> <id> --no-dry-run --project xyz --dataset staging",
4050
- "description": "execute the migration against a dataset"
4341
+ "command": "<%= config.bin %> <%= command.id %>",
4342
+ "description": "List locally recorded unclaimed projects"
4051
4343
  },
4052
4344
  {
4053
- "command": "<%= config.bin %> <%= command.id %> <id> --from-export=production.tar.gz --no-dry-run --project xyz --dataset staging",
4054
- "description": "execute the migration using a dataset export as the source"
4345
+ "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
4346
+ "description": "Show recovery details for one project"
4055
4347
  }
4056
4348
  ],
4057
4349
  "flags": {
4058
- "api-version": {
4059
- "description": "API version to use when migrating. Defaults to v2024-01-29.",
4060
- "name": "api-version",
4061
- "hasDynamicHelp": false,
4062
- "multiple": false,
4063
- "type": "option"
4064
- },
4065
- "concurrency": {
4066
- "description": "How many mutation requests to run in parallel. Must be between 1 and 10. Default: 6.",
4067
- "name": "concurrency",
4068
- "default": 6,
4069
- "hasDynamicHelp": false,
4070
- "multiple": false,
4071
- "type": "option"
4072
- },
4073
- "confirm": {
4074
- "description": "Prompt for confirmation before running the migration (default: true). Use --no-confirm to skip.",
4075
- "name": "confirm",
4076
- "allowNo": true,
4077
- "type": "boolean"
4078
- },
4079
- "dataset": {
4080
- "description": "Dataset to migrate. Defaults to the dataset configured in your Sanity CLI config.",
4081
- "name": "dataset",
4082
- "hasDynamicHelp": false,
4083
- "multiple": false,
4084
- "type": "option"
4085
- },
4086
- "dry-run": {
4087
- "description": "By default the migration runs in dry mode. Use --no-dry-run to migrate dataset.",
4088
- "name": "dry-run",
4089
- "allowNo": true,
4090
- "type": "boolean"
4091
- },
4092
- "from-export": {
4093
- "description": "Use a local dataset export as source for migration instead of calling the Sanity API. Note: this is only supported for dry runs.",
4094
- "name": "from-export",
4095
- "hasDynamicHelp": false,
4096
- "multiple": false,
4097
- "type": "option"
4098
- },
4099
- "progress": {
4100
- "description": "Display progress during migration (default: true). Use --no-progress to hide output.",
4101
- "name": "progress",
4102
- "allowNo": true,
4103
- "type": "boolean"
4104
- },
4105
- "project": {
4106
- "description": "Project ID of the dataset to migrate. Defaults to the projectId configured in your Sanity CLI config.",
4107
- "name": "project",
4350
+ "project-id": {
4351
+ "description": "Project ID to recover",
4352
+ "name": "project-id",
4108
4353
  "hasDynamicHelp": false,
4109
4354
  "multiple": false,
4110
4355
  "type": "option"
@@ -4112,9 +4357,9 @@
4112
4357
  },
4113
4358
  "hasDynamicHelp": false,
4114
4359
  "hiddenAliases": [
4115
- "migration:run"
4360
+ "project:unclaimed"
4116
4361
  ],
4117
- "id": "migrations:run",
4362
+ "id": "projects:unclaimed",
4118
4363
  "pluginAlias": "@sanity/cli",
4119
4364
  "pluginName": "@sanity/cli",
4120
4365
  "pluginType": "core",
@@ -4123,62 +4368,39 @@
4123
4368
  "relativePath": [
4124
4369
  "dist",
4125
4370
  "commands",
4126
- "migrations",
4127
- "run.js"
4371
+ "projects",
4372
+ "unclaimed.js"
4128
4373
  ]
4129
4374
  },
4130
- "openapi:get": {
4375
+ "media:create-aspect": {
4131
4376
  "aliases": [],
4132
- "args": {
4133
- "slug": {
4134
- "description": "Slug of the OpenAPI specification to retrieve",
4135
- "name": "slug",
4136
- "required": true
4137
- }
4138
- },
4139
- "description": "Get an OpenAPI specification by slug",
4377
+ "args": {},
4378
+ "description": "Create a new aspect definition file",
4140
4379
  "examples": [
4141
4380
  {
4142
- "command": "<%= config.bin %> <%= command.id %> query",
4143
- "description": "Get a specification (YAML format, default)"
4144
- },
4145
- {
4146
- "command": "<%= config.bin %> <%= command.id %> query --format=json",
4147
- "description": "Get specification in JSON format"
4148
- },
4149
- {
4150
- "command": "<%= config.bin %> <%= command.id %> query --web",
4151
- "description": "Open specification in browser"
4152
- },
4153
- {
4154
- "command": "<%= config.bin %> <%= command.id %> query > query-api.yaml",
4155
- "description": "Pipe to file"
4381
+ "command": "<%= config.bin %> <%= command.id %>",
4382
+ "description": "Create a new aspect definition file"
4156
4383
  }
4157
4384
  ],
4158
4385
  "flags": {
4159
- "format": {
4160
- "description": "Output format: yaml (default), json",
4161
- "name": "format",
4162
- "default": "yaml",
4386
+ "name": {
4387
+ "description": "Aspect name. Defaults to the title in camel case",
4388
+ "name": "name",
4163
4389
  "hasDynamicHelp": false,
4164
4390
  "multiple": false,
4165
- "options": [
4166
- "yaml",
4167
- "json"
4168
- ],
4169
4391
  "type": "option"
4170
4392
  },
4171
- "web": {
4172
- "char": "w",
4173
- "description": "Open in web browser",
4174
- "name": "web",
4175
- "allowNo": false,
4176
- "type": "boolean"
4393
+ "title": {
4394
+ "description": "Aspect title",
4395
+ "name": "title",
4396
+ "hasDynamicHelp": false,
4397
+ "multiple": false,
4398
+ "type": "option"
4177
4399
  }
4178
4400
  },
4179
4401
  "hasDynamicHelp": false,
4180
4402
  "hiddenAliases": [],
4181
- "id": "openapi:get",
4403
+ "id": "media:create-aspect",
4182
4404
  "pluginAlias": "@sanity/cli",
4183
4405
  "pluginName": "@sanity/cli",
4184
4406
  "pluginType": "core",
@@ -4187,46 +4409,59 @@
4187
4409
  "relativePath": [
4188
4410
  "dist",
4189
4411
  "commands",
4190
- "openapi",
4191
- "get.js"
4412
+ "media",
4413
+ "create-aspect.js"
4192
4414
  ]
4193
4415
  },
4194
- "openapi:list": {
4416
+ "media:delete-aspect": {
4195
4417
  "aliases": [],
4196
- "args": {},
4197
- "description": "List all available OpenAPI specifications",
4198
- "examples": [
4199
- {
4200
- "command": "<%= config.bin %> <%= command.id %>",
4201
- "description": "List all available OpenAPI specs"
4202
- },
4203
- {
4204
- "command": "<%= config.bin %> <%= command.id %> --json",
4205
- "description": "List with JSON output"
4206
- },
4418
+ "args": {
4419
+ "aspectName": {
4420
+ "description": "Name of the aspect to delete",
4421
+ "name": "aspectName",
4422
+ "required": true
4423
+ }
4424
+ },
4425
+ "description": "Delete an aspect definition",
4426
+ "examples": [
4207
4427
  {
4208
- "command": "<%= config.bin %> <%= command.id %> --web",
4209
- "description": "Open HTTP Reference in browser"
4428
+ "command": "<%= config.bin %> <%= command.id %> someAspect",
4429
+ "description": "Delete the aspect named \"someAspect\""
4210
4430
  }
4211
4431
  ],
4212
4432
  "flags": {
4213
- "json": {
4214
- "description": "Output JSON",
4215
- "name": "json",
4216
- "allowNo": false,
4217
- "type": "boolean"
4433
+ "project-id": {
4434
+ "char": "p",
4435
+ "description": "Project ID to delete media aspect from (overrides CLI configuration)",
4436
+ "helpGroup": "OVERRIDE",
4437
+ "name": "project-id",
4438
+ "hasDynamicHelp": false,
4439
+ "helpValue": "<id>",
4440
+ "multiple": false,
4441
+ "type": "option"
4218
4442
  },
4219
- "web": {
4220
- "char": "w",
4221
- "description": "Open HTTP Reference in web browser",
4222
- "name": "web",
4443
+ "media-library-id": {
4444
+ "description": "The id of the target media library",
4445
+ "name": "media-library-id",
4446
+ "required": false,
4447
+ "hasDynamicHelp": false,
4448
+ "multiple": false,
4449
+ "type": "option"
4450
+ },
4451
+ "yes": {
4452
+ "aliases": [
4453
+ "y"
4454
+ ],
4455
+ "description": "Run without prompts and confirm deletion",
4456
+ "name": "yes",
4457
+ "required": false,
4223
4458
  "allowNo": false,
4224
4459
  "type": "boolean"
4225
4460
  }
4226
4461
  },
4227
4462
  "hasDynamicHelp": false,
4228
4463
  "hiddenAliases": [],
4229
- "id": "openapi:list",
4464
+ "id": "media:delete-aspect",
4230
4465
  "pluginAlias": "@sanity/cli",
4231
4466
  "pluginName": "@sanity/cli",
4232
4467
  "pluginType": "core",
@@ -4235,88 +4470,60 @@
4235
4470
  "relativePath": [
4236
4471
  "dist",
4237
4472
  "commands",
4238
- "openapi",
4239
- "list.js"
4473
+ "media",
4474
+ "delete-aspect.js"
4240
4475
  ]
4241
4476
  },
4242
- "projects:create": {
4477
+ "media:deploy-aspect": {
4243
4478
  "aliases": [],
4244
4479
  "args": {
4245
- "projectName": {
4246
- "description": "Name of the project to create",
4247
- "name": "projectName",
4480
+ "aspectName": {
4481
+ "description": "Name of the aspect to deploy",
4482
+ "name": "aspectName",
4248
4483
  "required": false
4249
4484
  }
4250
4485
  },
4251
- "description": "Create a new Sanity project",
4486
+ "description": "Deploy an aspect",
4252
4487
  "examples": [
4253
4488
  {
4254
- "command": "<%= config.bin %> <%= command.id %>",
4255
- "description": "Interactively create a project"
4256
- },
4257
- {
4258
- "command": "<%= config.bin %> <%= command.id %> \"My New Project\"",
4259
- "description": "Create a project named \"My New Project\""
4260
- },
4261
- {
4262
- "command": "<%= config.bin %> <%= command.id %> \"My Project\" --organization=my-org",
4263
- "description": "Create a project in a specific organization"
4264
- },
4265
- {
4266
- "command": "<%= config.bin %> <%= command.id %> \"My Project\" --dataset=staging --dataset-visibility=private",
4267
- "description": "Create a project with a private dataset named \"staging\""
4489
+ "command": "<%= config.bin %> <%= command.id %> someAspect",
4490
+ "description": "Deploy the aspect named \"someAspect\""
4268
4491
  },
4269
4492
  {
4270
- "command": "<%= config.bin %> <%= command.id %> \"CI Project\" --yes --json",
4271
- "description": "Create a project non-interactively with JSON output"
4493
+ "command": "<%= config.bin %> <%= command.id %> --all",
4494
+ "description": "Deploy all aspects"
4272
4495
  }
4273
4496
  ],
4274
4497
  "flags": {
4275
- "dataset": {
4276
- "description": "Create a dataset. Prompts for visibility unless specified or --yes used",
4277
- "name": "dataset",
4278
- "hasDynamicHelp": false,
4279
- "multiple": false,
4280
- "type": "option"
4281
- },
4282
- "dataset-visibility": {
4283
- "description": "Dataset visibility: public or private",
4284
- "name": "dataset-visibility",
4498
+ "project-id": {
4499
+ "char": "p",
4500
+ "description": "Project ID to deploy media aspect to (overrides CLI configuration)",
4501
+ "helpGroup": "OVERRIDE",
4502
+ "name": "project-id",
4285
4503
  "hasDynamicHelp": false,
4504
+ "helpValue": "<id>",
4286
4505
  "multiple": false,
4287
- "options": [
4288
- "private",
4289
- "public"
4290
- ],
4291
4506
  "type": "option"
4292
4507
  },
4293
- "json": {
4294
- "description": "Output in JSON format",
4295
- "name": "json",
4508
+ "all": {
4509
+ "description": "Deploy all aspects",
4510
+ "name": "all",
4511
+ "required": false,
4296
4512
  "allowNo": false,
4297
4513
  "type": "boolean"
4298
4514
  },
4299
- "organization": {
4300
- "description": "Organization to create the project in",
4301
- "name": "organization",
4515
+ "media-library-id": {
4516
+ "description": "The id of the target media library",
4517
+ "name": "media-library-id",
4518
+ "required": false,
4302
4519
  "hasDynamicHelp": false,
4303
- "helpValue": "<slug|id>",
4304
4520
  "multiple": false,
4305
4521
  "type": "option"
4306
- },
4307
- "yes": {
4308
- "char": "y",
4309
- "description": "Skip prompts and use defaults (project: \"My Sanity Project\", dataset: production, visibility: public)",
4310
- "name": "yes",
4311
- "allowNo": false,
4312
- "type": "boolean"
4313
4522
  }
4314
4523
  },
4315
4524
  "hasDynamicHelp": false,
4316
- "hiddenAliases": [
4317
- "project:create"
4318
- ],
4319
- "id": "projects:create",
4525
+ "hiddenAliases": [],
4526
+ "id": "media:deploy-aspect",
4320
4527
  "pluginAlias": "@sanity/cli",
4321
4528
  "pluginName": "@sanity/cli",
4322
4529
  "pluginType": "core",
@@ -4325,58 +4532,75 @@
4325
4532
  "relativePath": [
4326
4533
  "dist",
4327
4534
  "commands",
4328
- "projects",
4329
- "create.js"
4535
+ "media",
4536
+ "deploy-aspect.js"
4330
4537
  ]
4331
4538
  },
4332
- "projects:list": {
4539
+ "media:export": {
4333
4540
  "aliases": [],
4334
- "args": {},
4335
- "description": "List your projects",
4541
+ "args": {
4542
+ "destination": {
4543
+ "description": "Output destination file path",
4544
+ "name": "destination"
4545
+ }
4546
+ },
4547
+ "description": "Export file and image assets from a media library (excludes video)",
4336
4548
  "examples": [
4337
4549
  {
4338
4550
  "command": "<%= config.bin %> <%= command.id %>",
4339
- "description": "List projects"
4551
+ "description": "Export media library interactively"
4340
4552
  },
4341
4553
  {
4342
- "command": "<%= config.bin %> <%= command.id %> --sort=members --order=asc",
4343
- "description": "List projects sorted by member count, ascending"
4554
+ "command": "<%= config.bin %> <%= command.id %> output.tar.gz",
4555
+ "description": "Export media library to output.tar.gz"
4556
+ },
4557
+ {
4558
+ "command": "<%= config.bin %> <%= command.id %> --media-library-id my-library-id",
4559
+ "description": "Export specific media library"
4344
4560
  }
4345
4561
  ],
4346
4562
  "flags": {
4347
- "order": {
4348
- "description": "Sort direction",
4349
- "name": "order",
4350
- "default": "desc",
4563
+ "project-id": {
4564
+ "char": "p",
4565
+ "description": "Project ID to export media from (overrides CLI configuration)",
4566
+ "helpGroup": "OVERRIDE",
4567
+ "name": "project-id",
4568
+ "hasDynamicHelp": false,
4569
+ "helpValue": "<id>",
4570
+ "multiple": false,
4571
+ "type": "option"
4572
+ },
4573
+ "asset-concurrency": {
4574
+ "description": "Concurrent number of asset downloads",
4575
+ "name": "asset-concurrency",
4576
+ "default": 8,
4351
4577
  "hasDynamicHelp": false,
4352
4578
  "multiple": false,
4353
- "options": [
4354
- "asc",
4355
- "desc"
4356
- ],
4357
4579
  "type": "option"
4358
4580
  },
4359
- "sort": {
4360
- "description": "Sort field",
4361
- "name": "sort",
4362
- "default": "created",
4581
+ "media-library-id": {
4582
+ "description": "The id of the target media library",
4583
+ "name": "media-library-id",
4363
4584
  "hasDynamicHelp": false,
4364
4585
  "multiple": false,
4365
- "options": [
4366
- "id",
4367
- "members",
4368
- "name",
4369
- "url",
4370
- "created"
4371
- ],
4372
4586
  "type": "option"
4587
+ },
4588
+ "no-compress": {
4589
+ "description": "Skips compressing tarball entries (still generates a gzip file)",
4590
+ "name": "no-compress",
4591
+ "allowNo": false,
4592
+ "type": "boolean"
4593
+ },
4594
+ "overwrite": {
4595
+ "description": "Overwrite any file with the same name",
4596
+ "name": "overwrite",
4597
+ "allowNo": false,
4598
+ "type": "boolean"
4373
4599
  }
4374
4600
  },
4375
4601
  "hasDynamicHelp": false,
4376
- "hiddenAliases": [
4377
- "project:list"
4378
- ],
4379
- "id": "projects:list",
4602
+ "hiddenAliases": [],
4603
+ "id": "media:export",
4380
4604
  "pluginAlias": "@sanity/cli",
4381
4605
  "pluginName": "@sanity/cli",
4382
4606
  "pluginType": "core",
@@ -4385,38 +4609,62 @@
4385
4609
  "relativePath": [
4386
4610
  "dist",
4387
4611
  "commands",
4388
- "projects",
4389
- "list.js"
4612
+ "media",
4613
+ "export.js"
4390
4614
  ]
4391
4615
  },
4392
- "projects:unclaimed": {
4616
+ "media:import": {
4393
4617
  "aliases": [],
4394
- "args": {},
4395
- "description": "Recover details for unclaimed projects created on this machine",
4618
+ "args": {
4619
+ "source": {
4620
+ "description": "Image file or folder to import from",
4621
+ "name": "source",
4622
+ "required": true
4623
+ }
4624
+ },
4625
+ "description": "Import a set of assets to the target media library.",
4396
4626
  "examples": [
4397
4627
  {
4398
- "command": "<%= config.bin %> <%= command.id %>",
4399
- "description": "List locally recorded unclaimed projects"
4628
+ "command": "<%= config.bin %> <%= command.id %> products",
4629
+ "description": "Import all assets from the \"products\" directory"
4400
4630
  },
4401
4631
  {
4402
- "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
4403
- "description": "Show recovery details for one project"
4632
+ "command": "<%= config.bin %> <%= command.id %> gallery.tar.gz",
4633
+ "description": "Import all assets from \"gallery\" archive"
4634
+ },
4635
+ {
4636
+ "command": "<%= config.bin %> <%= command.id %> products --replace-aspects",
4637
+ "description": "Import all assets from the \"products\" directory and replace aspects"
4404
4638
  }
4405
4639
  ],
4406
4640
  "flags": {
4407
4641
  "project-id": {
4408
- "description": "Project ID to recover",
4642
+ "char": "p",
4643
+ "description": "Project ID to import media to (overrides CLI configuration)",
4644
+ "helpGroup": "OVERRIDE",
4409
4645
  "name": "project-id",
4410
4646
  "hasDynamicHelp": false,
4647
+ "helpValue": "<id>",
4648
+ "multiple": false,
4649
+ "type": "option"
4650
+ },
4651
+ "media-library-id": {
4652
+ "description": "The id of the target media library",
4653
+ "name": "media-library-id",
4654
+ "hasDynamicHelp": false,
4411
4655
  "multiple": false,
4412
4656
  "type": "option"
4657
+ },
4658
+ "replace-aspects": {
4659
+ "description": "Replace existing aspect data. All versions will be replaced (e.g. published and draft aspect data)",
4660
+ "name": "replace-aspects",
4661
+ "allowNo": false,
4662
+ "type": "boolean"
4413
4663
  }
4414
- },
4415
- "hasDynamicHelp": false,
4416
- "hiddenAliases": [
4417
- "project:unclaimed"
4418
- ],
4419
- "id": "projects:unclaimed",
4664
+ },
4665
+ "hasDynamicHelp": false,
4666
+ "hiddenAliases": [],
4667
+ "id": "media:import",
4420
4668
  "pluginAlias": "@sanity/cli",
4421
4669
  "pluginName": "@sanity/cli",
4422
4670
  "pluginType": "core",
@@ -4425,8 +4673,8 @@
4425
4673
  "relativePath": [
4426
4674
  "dist",
4427
4675
  "commands",
4428
- "projects",
4429
- "unclaimed.js"
4676
+ "media",
4677
+ "import.js"
4430
4678
  ]
4431
4679
  },
4432
4680
  "schemas:delete": {
@@ -4828,254 +5076,6 @@
4828
5076
  "validate.js"
4829
5077
  ]
4830
5078
  },
4831
- "organizations:create": {
4832
- "aliases": [],
4833
- "args": {},
4834
- "description": "Create a new organization",
4835
- "examples": [
4836
- {
4837
- "command": "<%= config.bin %> <%= command.id %>",
4838
- "description": "Interactively create an organization"
4839
- },
4840
- {
4841
- "command": "<%= config.bin %> <%= command.id %> --name \"Acme Corp\"",
4842
- "description": "Create an organization named \"Acme Corp\""
4843
- },
4844
- {
4845
- "command": "<%= config.bin %> <%= command.id %> --name \"Acme Corp\" --default-role member",
4846
- "description": "Create an organization with a default member role"
4847
- }
4848
- ],
4849
- "flags": {
4850
- "default-role": {
4851
- "description": "Default role assigned to new members",
4852
- "name": "default-role",
4853
- "required": false,
4854
- "hasDynamicHelp": false,
4855
- "multiple": false,
4856
- "type": "option"
4857
- },
4858
- "name": {
4859
- "description": "Organization name",
4860
- "name": "name",
4861
- "required": false,
4862
- "hasDynamicHelp": false,
4863
- "multiple": false,
4864
- "type": "option"
4865
- }
4866
- },
4867
- "hasDynamicHelp": false,
4868
- "hiddenAliases": [
4869
- "organization:create",
4870
- "organisations:create",
4871
- "organisation:create",
4872
- "org:create",
4873
- "orgs:create"
4874
- ],
4875
- "id": "organizations:create",
4876
- "pluginAlias": "@sanity/cli",
4877
- "pluginName": "@sanity/cli",
4878
- "pluginType": "core",
4879
- "strict": true,
4880
- "isESM": true,
4881
- "relativePath": [
4882
- "dist",
4883
- "commands",
4884
- "organizations",
4885
- "create.js"
4886
- ]
4887
- },
4888
- "organizations:delete": {
4889
- "aliases": [],
4890
- "args": {
4891
- "organizationId": {
4892
- "description": "Organization ID to delete",
4893
- "name": "organizationId",
4894
- "required": true
4895
- }
4896
- },
4897
- "description": "Delete an organization",
4898
- "examples": [
4899
- {
4900
- "command": "<%= config.bin %> <%= command.id %> org-abc123",
4901
- "description": "Delete an organization (prompts for confirmation)"
4902
- },
4903
- {
4904
- "command": "<%= config.bin %> <%= command.id %> org-abc123 --force",
4905
- "description": "Delete an organization without confirmation"
4906
- }
4907
- ],
4908
- "flags": {
4909
- "force": {
4910
- "description": "Do not prompt for delete confirmation - forcefully delete",
4911
- "name": "force",
4912
- "required": false,
4913
- "allowNo": false,
4914
- "type": "boolean"
4915
- }
4916
- },
4917
- "hasDynamicHelp": false,
4918
- "hiddenAliases": [
4919
- "organization:delete",
4920
- "organisations:delete",
4921
- "organisation:delete",
4922
- "org:delete",
4923
- "orgs:delete"
4924
- ],
4925
- "id": "organizations:delete",
4926
- "pluginAlias": "@sanity/cli",
4927
- "pluginName": "@sanity/cli",
4928
- "pluginType": "core",
4929
- "strict": true,
4930
- "isESM": true,
4931
- "relativePath": [
4932
- "dist",
4933
- "commands",
4934
- "organizations",
4935
- "delete.js"
4936
- ]
4937
- },
4938
- "organizations:get": {
4939
- "aliases": [],
4940
- "args": {
4941
- "organizationId": {
4942
- "description": "Organization ID",
4943
- "name": "organizationId",
4944
- "required": true
4945
- }
4946
- },
4947
- "description": "Get details of an organization",
4948
- "examples": [
4949
- {
4950
- "command": "<%= config.bin %> <%= command.id %> org-abc123",
4951
- "description": "Get details of a specific organization"
4952
- }
4953
- ],
4954
- "flags": {},
4955
- "hasDynamicHelp": false,
4956
- "hiddenAliases": [
4957
- "organization:get",
4958
- "organisations:get",
4959
- "organisation:get",
4960
- "org:get",
4961
- "orgs:get"
4962
- ],
4963
- "id": "organizations:get",
4964
- "pluginAlias": "@sanity/cli",
4965
- "pluginName": "@sanity/cli",
4966
- "pluginType": "core",
4967
- "strict": true,
4968
- "isESM": true,
4969
- "relativePath": [
4970
- "dist",
4971
- "commands",
4972
- "organizations",
4973
- "get.js"
4974
- ]
4975
- },
4976
- "organizations:list": {
4977
- "aliases": [],
4978
- "args": {},
4979
- "description": "List organizations you are a member of",
4980
- "examples": [
4981
- {
4982
- "command": "<%= config.bin %> <%= command.id %>",
4983
- "description": "List all your organizations"
4984
- }
4985
- ],
4986
- "flags": {},
4987
- "hasDynamicHelp": false,
4988
- "hiddenAliases": [
4989
- "organization:list",
4990
- "organisations:list",
4991
- "organisation:list",
4992
- "org:list",
4993
- "orgs:list"
4994
- ],
4995
- "id": "organizations:list",
4996
- "pluginAlias": "@sanity/cli",
4997
- "pluginName": "@sanity/cli",
4998
- "pluginType": "core",
4999
- "strict": true,
5000
- "isESM": true,
5001
- "relativePath": [
5002
- "dist",
5003
- "commands",
5004
- "organizations",
5005
- "list.js"
5006
- ]
5007
- },
5008
- "organizations:update": {
5009
- "aliases": [],
5010
- "args": {
5011
- "organizationId": {
5012
- "description": "Organization ID",
5013
- "name": "organizationId",
5014
- "required": true
5015
- }
5016
- },
5017
- "description": "Update an organization",
5018
- "examples": [
5019
- {
5020
- "command": "<%= config.bin %> <%= command.id %> org-abc123 --name \"New Name\"",
5021
- "description": "Rename an organization"
5022
- },
5023
- {
5024
- "command": "<%= config.bin %> <%= command.id %> org-abc123 --slug new-slug",
5025
- "description": "Set the organization slug (requires authSAML feature)"
5026
- },
5027
- {
5028
- "command": "<%= config.bin %> <%= command.id %> org-abc123 --default-role viewer",
5029
- "description": "Change the default member role"
5030
- }
5031
- ],
5032
- "flags": {
5033
- "default-role": {
5034
- "description": "New default role for new members",
5035
- "name": "default-role",
5036
- "required": false,
5037
- "hasDynamicHelp": false,
5038
- "multiple": false,
5039
- "type": "option"
5040
- },
5041
- "name": {
5042
- "description": "New organization name",
5043
- "name": "name",
5044
- "required": false,
5045
- "hasDynamicHelp": false,
5046
- "multiple": false,
5047
- "type": "option"
5048
- },
5049
- "slug": {
5050
- "description": "New URL slug (requires authSAML feature on the organization)",
5051
- "name": "slug",
5052
- "required": false,
5053
- "hasDynamicHelp": false,
5054
- "multiple": false,
5055
- "type": "option"
5056
- }
5057
- },
5058
- "hasDynamicHelp": false,
5059
- "hiddenAliases": [
5060
- "organization:update",
5061
- "organisations:update",
5062
- "organisation:update",
5063
- "org:update",
5064
- "orgs:update"
5065
- ],
5066
- "id": "organizations:update",
5067
- "pluginAlias": "@sanity/cli",
5068
- "pluginName": "@sanity/cli",
5069
- "pluginType": "core",
5070
- "strict": true,
5071
- "isESM": true,
5072
- "relativePath": [
5073
- "dist",
5074
- "commands",
5075
- "organizations",
5076
- "update.js"
5077
- ]
5078
- },
5079
5079
  "skills:install": {
5080
5080
  "aliases": [],
5081
5081
  "args": {},
@@ -6161,5 +6161,5 @@
6161
6161
  ]
6162
6162
  }
6163
6163
  },
6164
- "version": "8.0.1"
6164
+ "version": "8.0.3"
6165
6165
  }