@sanity/cli 7.18.0 → 8.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/README.md +74 -4
  2. package/dist/SanityHelp.js +1 -35
  3. package/dist/SanityHelp.js.map +1 -1
  4. package/dist/actions/assets/assetFileError.js +9 -0
  5. package/dist/actions/assets/assetFileError.js.map +1 -0
  6. package/dist/actions/assets/uploadAssetFromFile.js +40 -0
  7. package/dist/actions/assets/uploadAssetFromFile.js.map +1 -0
  8. package/dist/actions/assets/uploadAssetWithProgress.js +76 -0
  9. package/dist/actions/assets/uploadAssetWithProgress.js.map +1 -0
  10. package/dist/actions/deploy/deployApp.js +39 -44
  11. package/dist/actions/deploy/deployApp.js.map +1 -1
  12. package/dist/actions/deploy/deployChecks.js +21 -13
  13. package/dist/actions/deploy/deployChecks.js.map +1 -1
  14. package/dist/actions/deploy/deployRunner.js +8 -7
  15. package/dist/actions/deploy/deployRunner.js.map +1 -1
  16. package/dist/actions/deploy/deployStudio.js +55 -35
  17. package/dist/actions/deploy/deployStudio.js.map +1 -1
  18. package/dist/actions/deploy/deploymentPlan.js +17 -29
  19. package/dist/actions/deploy/deploymentPlan.js.map +1 -1
  20. package/dist/actions/deploy/resolveDeployTarget.js +2 -8
  21. package/dist/actions/deploy/resolveDeployTarget.js.map +1 -1
  22. package/dist/actions/dev/servers/getDevServerConfig.js +2 -8
  23. package/dist/actions/dev/servers/getDevServerConfig.js.map +1 -1
  24. package/dist/actions/dev/servers/startStudioDevServer.js +7 -1
  25. package/dist/actions/dev/servers/startStudioDevServer.js.map +1 -1
  26. package/dist/actions/init/bootstrapRemoteTemplate.js +2 -2
  27. package/dist/actions/init/bootstrapRemoteTemplate.js.map +1 -1
  28. package/dist/actions/init/sdkAppDependencies.js +1 -1
  29. package/dist/actions/init/sdkAppDependencies.js.map +1 -1
  30. package/dist/actions/init/studioDependencies.js +1 -1
  31. package/dist/actions/init/studioDependencies.js.map +1 -1
  32. package/dist/actions/schema/listSchemas.js +1 -1
  33. package/dist/actions/schema/listSchemas.js.map +1 -1
  34. package/dist/actions/tokens/constants.js +2 -2
  35. package/dist/actions/tokens/constants.js.map +1 -1
  36. package/dist/actions/tokens/expiry.js +35 -0
  37. package/dist/actions/tokens/expiry.js.map +1 -0
  38. package/dist/actions/tokens/types.js.map +1 -1
  39. package/dist/actions/tokens/validateRole.js +5 -2
  40. package/dist/actions/tokens/validateRole.js.map +1 -1
  41. package/dist/actions/typegen/count.js +6 -0
  42. package/dist/actions/typegen/count.js.map +1 -0
  43. package/dist/actions/typegen/formatPath.js +5 -0
  44. package/dist/actions/typegen/formatPath.js.map +1 -0
  45. package/dist/actions/typegen/percent.js +8 -0
  46. package/dist/actions/typegen/percent.js.map +1 -0
  47. package/dist/actions/typegen/renderTypegenProgress.js +88 -0
  48. package/dist/actions/typegen/renderTypegenProgress.js.map +1 -0
  49. package/dist/actions/undeploy/adapters.js +6 -9
  50. package/dist/actions/undeploy/adapters.js.map +1 -1
  51. package/dist/actions/undeploy/runUndeploy.js +12 -4
  52. package/dist/actions/undeploy/runUndeploy.js.map +1 -1
  53. package/dist/actions/undeploy/undeployPlan.js +6 -14
  54. package/dist/actions/undeploy/undeployPlan.js.map +1 -1
  55. package/dist/commands/assets/upload.js +160 -0
  56. package/dist/commands/assets/upload.js.map +1 -0
  57. package/dist/commands/backups/list.js +1 -1
  58. package/dist/commands/backups/list.js.map +1 -1
  59. package/dist/commands/datasets/copy.js +1 -1
  60. package/dist/commands/datasets/copy.js.map +1 -1
  61. package/dist/commands/login.js +2 -8
  62. package/dist/commands/login.js.map +1 -1
  63. package/dist/commands/mcp/configure.js.map +1 -1
  64. package/dist/commands/migrations/list.js +1 -1
  65. package/dist/commands/migrations/list.js.map +1 -1
  66. package/dist/commands/migrations/run.js +67 -3
  67. package/dist/commands/migrations/run.js.map +1 -1
  68. package/dist/commands/new.js +4 -3
  69. package/dist/commands/new.js.map +1 -1
  70. package/dist/commands/organizations/list.js +1 -1
  71. package/dist/commands/organizations/list.js.map +1 -1
  72. package/dist/commands/projects/list.js +39 -12
  73. package/dist/commands/projects/list.js.map +1 -1
  74. package/dist/commands/projects/unclaimed.js +39 -33
  75. package/dist/commands/projects/unclaimed.js.map +1 -1
  76. package/dist/commands/tokens/create.js +92 -7
  77. package/dist/commands/tokens/create.js.map +1 -1
  78. package/dist/commands/tokens/delete.js +2 -2
  79. package/dist/commands/tokens/delete.js.map +1 -1
  80. package/dist/commands/tokens/list.js +12 -11
  81. package/dist/commands/tokens/list.js.map +1 -1
  82. package/dist/commands/tokens/rotate.js +95 -0
  83. package/dist/commands/tokens/rotate.js.map +1 -0
  84. package/dist/commands/typegen/generate.js +222 -0
  85. package/dist/commands/typegen/generate.js.map +1 -0
  86. package/dist/commands/users/list.js +8 -8
  87. package/dist/commands/users/list.js.map +1 -1
  88. package/dist/exports/_internal.d.ts +29 -0
  89. package/dist/exports/_internal.js +1 -0
  90. package/dist/exports/_internal.js.map +1 -1
  91. package/dist/exports/invokeSanityCli/commandPolicies/mcpPolicy.js +6 -0
  92. package/dist/exports/invokeSanityCli/commandPolicies/mcpPolicy.js.map +1 -1
  93. package/dist/exports/invokeSanityCli/help.js +4 -0
  94. package/dist/exports/invokeSanityCli/help.js.map +1 -1
  95. package/dist/exports/invokeSanityCli/index.js +2 -0
  96. package/dist/exports/invokeSanityCli/index.js.map +1 -1
  97. package/dist/hooks/commandNotFound/topicAliases.js +13 -40
  98. package/dist/hooks/commandNotFound/topicAliases.js.map +1 -1
  99. package/dist/hooks/prerun/setupTelemetry.js +3 -2
  100. package/dist/hooks/prerun/setupTelemetry.js.map +1 -1
  101. package/dist/server/vite/plugin-typegen.js +4 -16
  102. package/dist/server/vite/plugin-typegen.js.map +1 -1
  103. package/dist/services/assets.js +46 -0
  104. package/dist/services/assets.js.map +1 -0
  105. package/dist/services/tokens.js +81 -31
  106. package/dist/services/tokens.js.map +1 -1
  107. package/dist/topicAliases.js +43 -0
  108. package/dist/topicAliases.js.map +1 -1
  109. package/dist/util/parseArguments.js +7 -2
  110. package/dist/util/parseArguments.js.map +1 -1
  111. package/dist/util/readTokenFromStdin.js +17 -0
  112. package/dist/util/readTokenFromStdin.js.map +1 -0
  113. package/dist/util/responsiveTable.js +97 -0
  114. package/dist/util/responsiveTable.js.map +1 -0
  115. package/dist/util/telemetry/commandTelemetry.js +34 -0
  116. package/dist/util/telemetry/commandTelemetry.js.map +1 -0
  117. package/dist/util/unclaimedProjects.js +10 -0
  118. package/dist/util/unclaimedProjects.js.map +1 -1
  119. package/oclif.config.js +2 -4
  120. package/oclif.manifest.json +688 -476
  121. package/package.json +12 -10
  122. package/templates/shopify/components/inputs/ShopifyMetafield.tsx +20 -0
  123. package/templates/shopify/docs/features.md +24 -0
  124. package/templates/shopify/schemaTypes/index.ts +2 -0
  125. package/templates/shopify/schemaTypes/objects/shopify/shopifyCollectionType.ts +18 -1
  126. package/templates/shopify/schemaTypes/objects/shopify/shopifyMetafieldType.ts +47 -0
  127. package/templates/shopify/schemaTypes/objects/shopify/shopifyProductType.ts +17 -0
  128. package/templates/shopify/utils/formatMetafieldValue.ts +30 -0
  129. package/templates/shopify-online-storefront/components/inputs/ShopifyMetafield.tsx +22 -0
  130. package/templates/shopify-online-storefront/schemaTypes/index.ts +4 -0
  131. package/templates/shopify-online-storefront/schemaTypes/objects/shop.ts +16 -0
  132. package/templates/shopify-online-storefront/schemaTypes/objects/shopifyCollection.ts +19 -0
  133. package/templates/shopify-online-storefront/schemaTypes/objects/shopifyMetafield.ts +53 -0
  134. package/templates/shopify-online-storefront/schemaTypes/objects/shopifyProduct.ts +19 -0
  135. package/templates/shopify-online-storefront/utils/formatMetafieldValue.ts +30 -0
@@ -1344,6 +1344,112 @@
1344
1344
  "versions.js"
1345
1345
  ]
1346
1346
  },
1347
+ "assets:upload": {
1348
+ "aliases": [],
1349
+ "args": {},
1350
+ "description": "Upload one local image or file to a Sanity dataset and print the asset document as JSON",
1351
+ "examples": [
1352
+ {
1353
+ "command": "<%= config.bin %> <%= command.id %> --file ./hero.png --type image --dataset production",
1354
+ "description": "Upload an image using the configured project"
1355
+ },
1356
+ {
1357
+ "command": "<%= config.bin %> <%= command.id %> --file ./brief.pdf --type file --content-type application/pdf --project-id abc123 --dataset production",
1358
+ "description": "Upload a file with explicit project, dataset, and MIME type"
1359
+ }
1360
+ ],
1361
+ "flags": {
1362
+ "project-id": {
1363
+ "char": "p",
1364
+ "description": "Project ID to upload the asset to (overrides CLI configuration)",
1365
+ "helpGroup": "OVERRIDE",
1366
+ "name": "project-id",
1367
+ "hasDynamicHelp": false,
1368
+ "helpValue": "<id>",
1369
+ "multiple": false,
1370
+ "type": "option"
1371
+ },
1372
+ "dataset": {
1373
+ "char": "d",
1374
+ "description": "Dataset to upload the asset to (overrides CLI configuration)",
1375
+ "helpGroup": "OVERRIDE",
1376
+ "name": "dataset",
1377
+ "hasDynamicHelp": false,
1378
+ "helpValue": "<name>",
1379
+ "multiple": false,
1380
+ "type": "option"
1381
+ },
1382
+ "content-type": {
1383
+ "description": "MIME type of the asset, such as image/png or application/pdf",
1384
+ "name": "content-type",
1385
+ "hasDynamicHelp": false,
1386
+ "helpValue": "<mime-type>",
1387
+ "multiple": false,
1388
+ "type": "option"
1389
+ },
1390
+ "file": {
1391
+ "description": "Path to the local file to upload",
1392
+ "name": "file",
1393
+ "required": true,
1394
+ "hasDynamicHelp": false,
1395
+ "helpValue": "<path>",
1396
+ "multiple": false,
1397
+ "type": "option"
1398
+ },
1399
+ "filename": {
1400
+ "description": "Original filename stored on the asset document. Defaults to the local filename",
1401
+ "name": "filename",
1402
+ "hasDynamicHelp": false,
1403
+ "helpValue": "<filename>",
1404
+ "multiple": false,
1405
+ "type": "option"
1406
+ },
1407
+ "type": {
1408
+ "description": "Asset type to create",
1409
+ "name": "type",
1410
+ "default": "image",
1411
+ "hasDynamicHelp": false,
1412
+ "multiple": false,
1413
+ "options": [
1414
+ "image",
1415
+ "file"
1416
+ ],
1417
+ "type": "option"
1418
+ }
1419
+ },
1420
+ "hasDynamicHelp": false,
1421
+ "hiddenAliases": [
1422
+ "asset:upload"
1423
+ ],
1424
+ "id": "assets:upload",
1425
+ "pluginAlias": "@sanity/cli",
1426
+ "pluginName": "@sanity/cli",
1427
+ "pluginType": "core",
1428
+ "strict": true,
1429
+ "telemetry": {
1430
+ "redactedFlags": [
1431
+ {
1432
+ "canonical": "--file",
1433
+ "flags": [
1434
+ "--file"
1435
+ ]
1436
+ },
1437
+ {
1438
+ "canonical": "--filename",
1439
+ "flags": [
1440
+ "--filename"
1441
+ ]
1442
+ }
1443
+ ]
1444
+ },
1445
+ "isESM": true,
1446
+ "relativePath": [
1447
+ "dist",
1448
+ "commands",
1449
+ "assets",
1450
+ "upload.js"
1451
+ ]
1452
+ },
1347
1453
  "backups:disable": {
1348
1454
  "aliases": [],
1349
1455
  "args": {
@@ -1607,167 +1713,6 @@
1607
1713
  "list.js"
1608
1714
  ]
1609
1715
  },
1610
- "cors:add": {
1611
- "aliases": [],
1612
- "args": {
1613
- "origin": {
1614
- "description": "Origin to allow (e.g., https://example.com)",
1615
- "name": "origin",
1616
- "required": true
1617
- }
1618
- },
1619
- "description": "Add a CORS origin to the project",
1620
- "examples": [
1621
- {
1622
- "command": "<%= config.bin %> <%= command.id %>",
1623
- "description": "Interactively add a CORS origin"
1624
- },
1625
- {
1626
- "command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
1627
- "description": "Add a localhost origin without credentials"
1628
- },
1629
- {
1630
- "command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
1631
- "description": "Add a production origin with credentials allowed"
1632
- },
1633
- {
1634
- "command": "<%= config.bin %> <%= command.id %> https://myapp.com --project-id abc123",
1635
- "description": "Add a CORS origin for a specific project"
1636
- }
1637
- ],
1638
- "flags": {
1639
- "project-id": {
1640
- "char": "p",
1641
- "description": "Project ID to add CORS origin to (overrides CLI configuration)",
1642
- "helpGroup": "OVERRIDE",
1643
- "name": "project-id",
1644
- "hasDynamicHelp": false,
1645
- "helpValue": "<id>",
1646
- "multiple": false,
1647
- "type": "option"
1648
- },
1649
- "credentials": {
1650
- "description": "Allow credentials (token/cookie) to be sent from this origin",
1651
- "name": "credentials",
1652
- "required": false,
1653
- "allowNo": true,
1654
- "type": "boolean"
1655
- },
1656
- "yes": {
1657
- "char": "y",
1658
- "description": "Confirm risky wildcard origins without prompting",
1659
- "name": "yes",
1660
- "allowNo": false,
1661
- "type": "boolean"
1662
- }
1663
- },
1664
- "hasDynamicHelp": false,
1665
- "hiddenAliases": [],
1666
- "id": "cors:add",
1667
- "pluginAlias": "@sanity/cli",
1668
- "pluginName": "@sanity/cli",
1669
- "pluginType": "core",
1670
- "strict": true,
1671
- "isESM": true,
1672
- "relativePath": [
1673
- "dist",
1674
- "commands",
1675
- "cors",
1676
- "add.js"
1677
- ]
1678
- },
1679
- "cors:delete": {
1680
- "aliases": [],
1681
- "args": {
1682
- "origin": {
1683
- "description": "Origin to delete (will prompt if not provided)",
1684
- "name": "origin",
1685
- "required": false
1686
- }
1687
- },
1688
- "description": "Delete a CORS origin from the project",
1689
- "examples": [
1690
- {
1691
- "command": "<%= config.bin %> <%= command.id %>",
1692
- "description": "Interactively select and delete a CORS origin"
1693
- },
1694
- {
1695
- "command": "<%= config.bin %> <%= command.id %> https://example.com",
1696
- "description": "Delete a specific CORS origin"
1697
- },
1698
- {
1699
- "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
1700
- "description": "Delete a CORS origin from a specific project"
1701
- }
1702
- ],
1703
- "flags": {
1704
- "project-id": {
1705
- "char": "p",
1706
- "description": "Project ID to delete CORS origin from (overrides CLI configuration)",
1707
- "helpGroup": "OVERRIDE",
1708
- "name": "project-id",
1709
- "hasDynamicHelp": false,
1710
- "helpValue": "<id>",
1711
- "multiple": false,
1712
- "type": "option"
1713
- }
1714
- },
1715
- "hasDynamicHelp": false,
1716
- "hiddenAliases": [],
1717
- "id": "cors:delete",
1718
- "pluginAlias": "@sanity/cli",
1719
- "pluginName": "@sanity/cli",
1720
- "pluginType": "core",
1721
- "strict": true,
1722
- "isESM": true,
1723
- "relativePath": [
1724
- "dist",
1725
- "commands",
1726
- "cors",
1727
- "delete.js"
1728
- ]
1729
- },
1730
- "cors:list": {
1731
- "aliases": [],
1732
- "args": {},
1733
- "description": "List CORS origins for the project",
1734
- "examples": [
1735
- {
1736
- "command": "<%= config.bin %> <%= command.id %>",
1737
- "description": "List CORS origins for the project"
1738
- },
1739
- {
1740
- "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
1741
- "description": "List CORS origins for a specific project"
1742
- }
1743
- ],
1744
- "flags": {
1745
- "project-id": {
1746
- "char": "p",
1747
- "description": "Project ID to list CORS origins for (overrides CLI configuration)",
1748
- "helpGroup": "OVERRIDE",
1749
- "name": "project-id",
1750
- "hasDynamicHelp": false,
1751
- "helpValue": "<id>",
1752
- "multiple": false,
1753
- "type": "option"
1754
- }
1755
- },
1756
- "hasDynamicHelp": false,
1757
- "hiddenAliases": [],
1758
- "id": "cors:list",
1759
- "pluginAlias": "@sanity/cli",
1760
- "pluginName": "@sanity/cli",
1761
- "pluginType": "core",
1762
- "strict": true,
1763
- "isESM": true,
1764
- "relativePath": [
1765
- "dist",
1766
- "commands",
1767
- "cors",
1768
- "list.js"
1769
- ]
1770
- },
1771
1716
  "datasets:copy": {
1772
1717
  "aliases": [],
1773
1718
  "args": {
@@ -2391,35 +2336,196 @@
2391
2336
  "list.js"
2392
2337
  ]
2393
2338
  },
2394
- "docs:browse": {
2395
- "aliases": [],
2396
- "args": {},
2397
- "description": "Open Sanity docs in your browser",
2398
- "flags": {},
2399
- "hasDynamicHelp": false,
2400
- "hiddenAliases": [],
2401
- "id": "docs:browse",
2402
- "pluginAlias": "@sanity/cli",
2403
- "pluginName": "@sanity/cli",
2404
- "pluginType": "core",
2405
- "strict": true,
2406
- "enableJsonFlag": false,
2407
- "isESM": true,
2408
- "relativePath": [
2409
- "dist",
2410
- "commands",
2411
- "docs",
2412
- "browse.js"
2413
- ]
2414
- },
2415
- "docs:read": {
2339
+ "cors:add": {
2416
2340
  "aliases": [],
2417
2341
  "args": {
2418
- "path": {
2419
- "description": "Path or URL to article, found in search results and docs content as links",
2420
- "name": "path",
2421
- "required": true
2422
- }
2342
+ "origin": {
2343
+ "description": "Origin to allow (e.g., https://example.com)",
2344
+ "name": "origin",
2345
+ "required": true
2346
+ }
2347
+ },
2348
+ "description": "Add a CORS origin to the project",
2349
+ "examples": [
2350
+ {
2351
+ "command": "<%= config.bin %> <%= command.id %>",
2352
+ "description": "Interactively add a CORS origin"
2353
+ },
2354
+ {
2355
+ "command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
2356
+ "description": "Add a localhost origin without credentials"
2357
+ },
2358
+ {
2359
+ "command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
2360
+ "description": "Add a production origin with credentials allowed"
2361
+ },
2362
+ {
2363
+ "command": "<%= config.bin %> <%= command.id %> https://myapp.com --project-id abc123",
2364
+ "description": "Add a CORS origin for a specific project"
2365
+ }
2366
+ ],
2367
+ "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",
2389
+ "allowNo": false,
2390
+ "type": "boolean"
2391
+ }
2392
+ },
2393
+ "hasDynamicHelp": false,
2394
+ "hiddenAliases": [],
2395
+ "id": "cors:add",
2396
+ "pluginAlias": "@sanity/cli",
2397
+ "pluginName": "@sanity/cli",
2398
+ "pluginType": "core",
2399
+ "strict": true,
2400
+ "isESM": true,
2401
+ "relativePath": [
2402
+ "dist",
2403
+ "commands",
2404
+ "cors",
2405
+ "add.js"
2406
+ ]
2407
+ },
2408
+ "cors:delete": {
2409
+ "aliases": [],
2410
+ "args": {
2411
+ "origin": {
2412
+ "description": "Origin to delete (will prompt if not provided)",
2413
+ "name": "origin",
2414
+ "required": false
2415
+ }
2416
+ },
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
+ }
2423
2529
  },
2424
2530
  "description": "Read an article in terminal",
2425
2531
  "examples": [
@@ -3527,32 +3633,6 @@
3527
3633
  "extract.js"
3528
3634
  ]
3529
3635
  },
3530
- "mcp:configure": {
3531
- "aliases": [],
3532
- "args": {},
3533
- "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)",
3534
- "examples": [
3535
- {
3536
- "command": "<%= config.bin %> <%= command.id %>",
3537
- "description": "Configure Sanity MCP server for detected AI editors"
3538
- }
3539
- ],
3540
- "flags": {},
3541
- "hasDynamicHelp": false,
3542
- "hiddenAliases": [],
3543
- "id": "mcp:configure",
3544
- "pluginAlias": "@sanity/cli",
3545
- "pluginName": "@sanity/cli",
3546
- "pluginType": "core",
3547
- "strict": true,
3548
- "isESM": true,
3549
- "relativePath": [
3550
- "dist",
3551
- "commands",
3552
- "mcp",
3553
- "configure.js"
3554
- ]
3555
- },
3556
3636
  "media:create-aspect": {
3557
3637
  "aliases": [],
3558
3638
  "args": {},
@@ -3858,6 +3938,32 @@
3858
3938
  "import.js"
3859
3939
  ]
3860
3940
  },
3941
+ "mcp:configure": {
3942
+ "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)",
3945
+ "examples": [
3946
+ {
3947
+ "command": "<%= config.bin %> <%= command.id %>",
3948
+ "description": "Configure Sanity MCP server for detected AI editors"
3949
+ }
3950
+ ],
3951
+ "flags": {},
3952
+ "hasDynamicHelp": false,
3953
+ "hiddenAliases": [],
3954
+ "id": "mcp:configure",
3955
+ "pluginAlias": "@sanity/cli",
3956
+ "pluginName": "@sanity/cli",
3957
+ "pluginType": "core",
3958
+ "strict": true,
3959
+ "isESM": true,
3960
+ "relativePath": [
3961
+ "dist",
3962
+ "commands",
3963
+ "mcp",
3964
+ "configure.js"
3965
+ ]
3966
+ },
3861
3967
  "migrations:create": {
3862
3968
  "aliases": [],
3863
3969
  "args": {
@@ -4133,268 +4239,20 @@
4133
4239
  "list.js"
4134
4240
  ]
4135
4241
  },
4136
- "organizations:create": {
4242
+ "projects:create": {
4137
4243
  "aliases": [],
4138
- "args": {},
4139
- "description": "Create a new organization",
4244
+ "args": {
4245
+ "projectName": {
4246
+ "description": "Name of the project to create",
4247
+ "name": "projectName",
4248
+ "required": false
4249
+ }
4250
+ },
4251
+ "description": "Create a new Sanity project",
4140
4252
  "examples": [
4141
4253
  {
4142
4254
  "command": "<%= config.bin %> <%= command.id %>",
4143
- "description": "Interactively create an organization"
4144
- },
4145
- {
4146
- "command": "<%= config.bin %> <%= command.id %> --name \"Acme Corp\"",
4147
- "description": "Create an organization named \"Acme Corp\""
4148
- },
4149
- {
4150
- "command": "<%= config.bin %> <%= command.id %> --name \"Acme Corp\" --default-role member",
4151
- "description": "Create an organization with a default member role"
4152
- }
4153
- ],
4154
- "flags": {
4155
- "default-role": {
4156
- "description": "Default role assigned to new members",
4157
- "name": "default-role",
4158
- "required": false,
4159
- "hasDynamicHelp": false,
4160
- "multiple": false,
4161
- "type": "option"
4162
- },
4163
- "name": {
4164
- "description": "Organization name",
4165
- "name": "name",
4166
- "required": false,
4167
- "hasDynamicHelp": false,
4168
- "multiple": false,
4169
- "type": "option"
4170
- }
4171
- },
4172
- "hasDynamicHelp": false,
4173
- "hiddenAliases": [
4174
- "organization:create",
4175
- "organisations:create",
4176
- "organisation:create",
4177
- "org:create",
4178
- "orgs:create"
4179
- ],
4180
- "id": "organizations:create",
4181
- "pluginAlias": "@sanity/cli",
4182
- "pluginName": "@sanity/cli",
4183
- "pluginType": "core",
4184
- "strict": true,
4185
- "isESM": true,
4186
- "relativePath": [
4187
- "dist",
4188
- "commands",
4189
- "organizations",
4190
- "create.js"
4191
- ]
4192
- },
4193
- "organizations:delete": {
4194
- "aliases": [],
4195
- "args": {
4196
- "organizationId": {
4197
- "description": "Organization ID to delete",
4198
- "name": "organizationId",
4199
- "required": true
4200
- }
4201
- },
4202
- "description": "Delete an organization",
4203
- "examples": [
4204
- {
4205
- "command": "<%= config.bin %> <%= command.id %> org-abc123",
4206
- "description": "Delete an organization (prompts for confirmation)"
4207
- },
4208
- {
4209
- "command": "<%= config.bin %> <%= command.id %> org-abc123 --force",
4210
- "description": "Delete an organization without confirmation"
4211
- }
4212
- ],
4213
- "flags": {
4214
- "force": {
4215
- "description": "Do not prompt for delete confirmation - forcefully delete",
4216
- "name": "force",
4217
- "required": false,
4218
- "allowNo": false,
4219
- "type": "boolean"
4220
- }
4221
- },
4222
- "hasDynamicHelp": false,
4223
- "hiddenAliases": [
4224
- "organization:delete",
4225
- "organisations:delete",
4226
- "organisation:delete",
4227
- "org:delete",
4228
- "orgs:delete"
4229
- ],
4230
- "id": "organizations:delete",
4231
- "pluginAlias": "@sanity/cli",
4232
- "pluginName": "@sanity/cli",
4233
- "pluginType": "core",
4234
- "strict": true,
4235
- "isESM": true,
4236
- "relativePath": [
4237
- "dist",
4238
- "commands",
4239
- "organizations",
4240
- "delete.js"
4241
- ]
4242
- },
4243
- "organizations:get": {
4244
- "aliases": [],
4245
- "args": {
4246
- "organizationId": {
4247
- "description": "Organization ID",
4248
- "name": "organizationId",
4249
- "required": true
4250
- }
4251
- },
4252
- "description": "Get details of an organization",
4253
- "examples": [
4254
- {
4255
- "command": "<%= config.bin %> <%= command.id %> org-abc123",
4256
- "description": "Get details of a specific organization"
4257
- }
4258
- ],
4259
- "flags": {},
4260
- "hasDynamicHelp": false,
4261
- "hiddenAliases": [
4262
- "organization:get",
4263
- "organisations:get",
4264
- "organisation:get",
4265
- "org:get",
4266
- "orgs:get"
4267
- ],
4268
- "id": "organizations:get",
4269
- "pluginAlias": "@sanity/cli",
4270
- "pluginName": "@sanity/cli",
4271
- "pluginType": "core",
4272
- "strict": true,
4273
- "isESM": true,
4274
- "relativePath": [
4275
- "dist",
4276
- "commands",
4277
- "organizations",
4278
- "get.js"
4279
- ]
4280
- },
4281
- "organizations:list": {
4282
- "aliases": [],
4283
- "args": {},
4284
- "description": "List organizations you are a member of",
4285
- "examples": [
4286
- {
4287
- "command": "<%= config.bin %> <%= command.id %>",
4288
- "description": "List all your organizations"
4289
- }
4290
- ],
4291
- "flags": {},
4292
- "hasDynamicHelp": false,
4293
- "hiddenAliases": [
4294
- "organization:list",
4295
- "organisations:list",
4296
- "organisation:list",
4297
- "org:list",
4298
- "orgs:list"
4299
- ],
4300
- "id": "organizations:list",
4301
- "pluginAlias": "@sanity/cli",
4302
- "pluginName": "@sanity/cli",
4303
- "pluginType": "core",
4304
- "strict": true,
4305
- "isESM": true,
4306
- "relativePath": [
4307
- "dist",
4308
- "commands",
4309
- "organizations",
4310
- "list.js"
4311
- ]
4312
- },
4313
- "organizations:update": {
4314
- "aliases": [],
4315
- "args": {
4316
- "organizationId": {
4317
- "description": "Organization ID",
4318
- "name": "organizationId",
4319
- "required": true
4320
- }
4321
- },
4322
- "description": "Update an organization",
4323
- "examples": [
4324
- {
4325
- "command": "<%= config.bin %> <%= command.id %> org-abc123 --name \"New Name\"",
4326
- "description": "Rename an organization"
4327
- },
4328
- {
4329
- "command": "<%= config.bin %> <%= command.id %> org-abc123 --slug new-slug",
4330
- "description": "Set the organization slug (requires authSAML feature)"
4331
- },
4332
- {
4333
- "command": "<%= config.bin %> <%= command.id %> org-abc123 --default-role viewer",
4334
- "description": "Change the default member role"
4335
- }
4336
- ],
4337
- "flags": {
4338
- "default-role": {
4339
- "description": "New default role for new members",
4340
- "name": "default-role",
4341
- "required": false,
4342
- "hasDynamicHelp": false,
4343
- "multiple": false,
4344
- "type": "option"
4345
- },
4346
- "name": {
4347
- "description": "New organization name",
4348
- "name": "name",
4349
- "required": false,
4350
- "hasDynamicHelp": false,
4351
- "multiple": false,
4352
- "type": "option"
4353
- },
4354
- "slug": {
4355
- "description": "New URL slug (requires authSAML feature on the organization)",
4356
- "name": "slug",
4357
- "required": false,
4358
- "hasDynamicHelp": false,
4359
- "multiple": false,
4360
- "type": "option"
4361
- }
4362
- },
4363
- "hasDynamicHelp": false,
4364
- "hiddenAliases": [
4365
- "organization:update",
4366
- "organisations:update",
4367
- "organisation:update",
4368
- "org:update",
4369
- "orgs:update"
4370
- ],
4371
- "id": "organizations:update",
4372
- "pluginAlias": "@sanity/cli",
4373
- "pluginName": "@sanity/cli",
4374
- "pluginType": "core",
4375
- "strict": true,
4376
- "isESM": true,
4377
- "relativePath": [
4378
- "dist",
4379
- "commands",
4380
- "organizations",
4381
- "update.js"
4382
- ]
4383
- },
4384
- "projects:create": {
4385
- "aliases": [],
4386
- "args": {
4387
- "projectName": {
4388
- "description": "Name of the project to create",
4389
- "name": "projectName",
4390
- "required": false
4391
- }
4392
- },
4393
- "description": "Create a new Sanity project",
4394
- "examples": [
4395
- {
4396
- "command": "<%= config.bin %> <%= command.id %>",
4397
- "description": "Interactively create a project"
4255
+ "description": "Interactively create a project"
4398
4256
  },
4399
4257
  {
4400
4258
  "command": "<%= config.bin %> <%= command.id %> \"My New Project\"",
@@ -4970,14 +4828,262 @@
4970
4828
  "validate.js"
4971
4829
  ]
4972
4830
  },
4973
- "skills:install": {
4831
+ "organizations:create": {
4974
4832
  "aliases": [],
4975
4833
  "args": {},
4976
- "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)",
4834
+ "description": "Create a new organization",
4977
4835
  "examples": [
4978
4836
  {
4979
4837
  "command": "<%= config.bin %> <%= command.id %>",
4980
- "description": "Install Sanity agent skills for detected AI editors"
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
+ "skills:install": {
5080
+ "aliases": [],
5081
+ "args": {},
5082
+ "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)",
5083
+ "examples": [
5084
+ {
5085
+ "command": "<%= config.bin %> <%= command.id %>",
5086
+ "description": "Install Sanity agent skills for detected AI editors"
4981
5087
  }
4982
5088
  ],
4983
5089
  "flags": {},
@@ -5097,6 +5203,10 @@
5097
5203
  "command": "<%= config.bin %> <%= command.id %> \"CI Token\" --role=editor --yes",
5098
5204
  "description": "Create a token in unattended mode"
5099
5205
  },
5206
+ {
5207
+ "command": "<%= config.bin %> <%= command.id %> \"Build Token\" --expires-at 2027-01-01",
5208
+ "description": "Create a token that expires on a given date"
5209
+ },
5100
5210
  {
5101
5211
  "command": "<%= config.bin %> <%= command.id %> \"API Token\" --json",
5102
5212
  "description": "Output token information as JSON"
@@ -5117,6 +5227,14 @@
5117
5227
  "multiple": false,
5118
5228
  "type": "option"
5119
5229
  },
5230
+ "expires-at": {
5231
+ "description": "Date or timestamp the token expires (ISO 8601; tokens never expire by default)",
5232
+ "name": "expires-at",
5233
+ "hasDynamicHelp": false,
5234
+ "helpValue": "2027-01-01",
5235
+ "multiple": false,
5236
+ "type": "option"
5237
+ },
5120
5238
  "json": {
5121
5239
  "description": "Output as JSON",
5122
5240
  "name": "json",
@@ -5278,6 +5396,100 @@
5278
5396
  "list.js"
5279
5397
  ]
5280
5398
  },
5399
+ "tokens:rotate": {
5400
+ "aliases": [],
5401
+ "args": {},
5402
+ "description": "Rotate an API token, replacing its secret with a new one",
5403
+ "examples": [
5404
+ {
5405
+ "command": "echo \"$SANITY_TOKEN\" | <%= config.bin %> <%= command.id %>",
5406
+ "description": "Rotate the token piped on standard input"
5407
+ },
5408
+ {
5409
+ "command": "<%= config.bin %> <%= command.id %> < token.txt",
5410
+ "description": "Rotate a token read from a file"
5411
+ },
5412
+ {
5413
+ "command": "echo \"$SANITY_TOKEN\" | <%= config.bin %> <%= command.id %> --json",
5414
+ "description": "Output the rotated token as JSON"
5415
+ }
5416
+ ],
5417
+ "flags": {
5418
+ "json": {
5419
+ "description": "Output as JSON",
5420
+ "name": "json",
5421
+ "allowNo": false,
5422
+ "type": "boolean"
5423
+ },
5424
+ "token": {
5425
+ "char": "t",
5426
+ "description": "Token to rotate (prefer standard input to keep it out of shell history)",
5427
+ "name": "token",
5428
+ "hasDynamicHelp": false,
5429
+ "helpValue": "<token>",
5430
+ "multiple": false,
5431
+ "type": "option"
5432
+ }
5433
+ },
5434
+ "hasDynamicHelp": false,
5435
+ "hiddenAliases": [
5436
+ "token:rotate"
5437
+ ],
5438
+ "id": "tokens:rotate",
5439
+ "pluginAlias": "@sanity/cli",
5440
+ "pluginName": "@sanity/cli",
5441
+ "pluginType": "core",
5442
+ "strict": true,
5443
+ "isESM": true,
5444
+ "relativePath": [
5445
+ "dist",
5446
+ "commands",
5447
+ "tokens",
5448
+ "rotate.js"
5449
+ ]
5450
+ },
5451
+ "typegen:generate": {
5452
+ "aliases": [],
5453
+ "args": {},
5454
+ "description": "Sanity TypeGen\n\nConfiguration:\nThis command can utilize configuration settings defined in a `sanity-typegen.json` file. These settings include:\n\n- \"path\": Specifies a glob pattern to locate your TypeScript or JavaScript files.\n Default: \"./src/**/*.{ts,tsx,js,jsx}\"\n\n- \"schema\": Defines the path to your Sanity schema file. This file should be generated using the `sanity schema extract` command.\n Default: \"schema.json\"\n\n- \"generates\": Indicates the path where the generated TypeScript type definitions will be saved.\n Default: \"./sanity.types.ts\"\n\nThe default configuration values listed above are used if not overridden in your `sanity-typegen.json` configuration file. To customize the behavior of the type generation, adjust these properties in the configuration file according to your project's needs.\n\nNote:\n- The `sanity schema extract` command is a prerequisite for extracting your Sanity Studio schema into a `schema.json` file, which is then used by the `sanity typegen generate` command to generate type definitions.",
5455
+ "examples": [
5456
+ {
5457
+ "command": "<%= config.bin %> <%= command.id %>",
5458
+ "description": "Generate TypeScript type definitions from a Sanity Studio schema extracted using the `sanity schema extract` command."
5459
+ }
5460
+ ],
5461
+ "flags": {
5462
+ "config-path": {
5463
+ "description": "[Default: sanity-typegen.json] Specifies the path to the typegen configuration file. This file should be a JSON file that contains settings for the type generation process.",
5464
+ "name": "config-path",
5465
+ "hasDynamicHelp": false,
5466
+ "multiple": false,
5467
+ "type": "option"
5468
+ },
5469
+ "watch": {
5470
+ "description": "[Default: false] Run the typegen in watch mode",
5471
+ "name": "watch",
5472
+ "allowNo": false,
5473
+ "type": "boolean"
5474
+ }
5475
+ },
5476
+ "hasDynamicHelp": false,
5477
+ "hiddenAliases": [
5478
+ "typegen:generate"
5479
+ ],
5480
+ "id": "typegen:generate",
5481
+ "pluginAlias": "@sanity/cli",
5482
+ "pluginName": "@sanity/cli",
5483
+ "pluginType": "core",
5484
+ "strict": true,
5485
+ "isESM": true,
5486
+ "relativePath": [
5487
+ "dist",
5488
+ "commands",
5489
+ "typegen",
5490
+ "generate.js"
5491
+ ]
5492
+ },
5281
5493
  "users:invite": {
5282
5494
  "aliases": [],
5283
5495
  "args": {
@@ -5949,5 +6161,5 @@
5949
6161
  ]
5950
6162
  }
5951
6163
  },
5952
- "version": "7.18.0"
6164
+ "version": "8.0.1"
5953
6165
  }