@sanity/cli 5.1.1-next.6 → 6.0.0-alpha.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 (1431) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +288 -2
  3. package/bin/run.cmd +3 -0
  4. package/bin/run.js +31 -0
  5. package/codemods/deskRename.js +115 -96
  6. package/codemods/partsTypeDirective.js +7 -7
  7. package/codemods/reactIconsV3.js +78 -51
  8. package/dist/SanityHelp.d.ts +4 -0
  9. package/dist/SanityHelp.js +43 -0
  10. package/dist/SanityHelp.js.map +1 -0
  11. package/dist/actions/auth/authServer.d.ts +33 -0
  12. package/dist/actions/auth/authServer.js +153 -0
  13. package/dist/actions/auth/authServer.js.map +1 -0
  14. package/dist/actions/auth/getProviderName.d.ts +8 -0
  15. package/dist/actions/auth/getProviderName.js +15 -0
  16. package/dist/actions/auth/getProviderName.js.map +1 -0
  17. package/dist/actions/auth/login/getProvider.d.ts +15 -0
  18. package/dist/actions/auth/login/getProvider.js +54 -0
  19. package/dist/actions/auth/login/getProvider.js.map +1 -0
  20. package/dist/actions/auth/login/getSSOProvider.d.ts +13 -0
  21. package/dist/actions/auth/login/getSSOProvider.js +30 -0
  22. package/dist/actions/auth/login/getSSOProvider.js.map +1 -0
  23. package/dist/actions/auth/login/index.d.ts +20 -0
  24. package/dist/actions/auth/login/index.js +93 -0
  25. package/dist/actions/auth/login/index.js.map +1 -0
  26. package/dist/actions/auth/login/promptProviders.d.ts +10 -0
  27. package/dist/actions/auth/login/promptProviders.js +23 -0
  28. package/dist/actions/auth/login/promptProviders.js.map +1 -0
  29. package/dist/actions/auth/login/samlProviderToLoginProvider.d.ts +9 -0
  30. package/dist/actions/auth/login/samlProviderToLoginProvider.js +15 -0
  31. package/dist/actions/auth/login/samlProviderToLoginProvider.js.map +1 -0
  32. package/dist/actions/auth/types.d.ts +26 -0
  33. package/dist/actions/auth/types.js +7 -0
  34. package/dist/actions/auth/types.js.map +1 -0
  35. package/dist/actions/backup/archiveDir.d.ts +10 -0
  36. package/dist/actions/backup/archiveDir.js +43 -0
  37. package/dist/actions/backup/archiveDir.js.map +1 -0
  38. package/dist/actions/backup/assertDatasetExist.d.ts +8 -0
  39. package/dist/actions/backup/assertDatasetExist.js +16 -0
  40. package/dist/actions/backup/assertDatasetExist.js.map +1 -0
  41. package/dist/actions/backup/backupDownloadDebug.d.ts +1 -0
  42. package/dist/actions/backup/backupDownloadDebug.js +4 -0
  43. package/dist/actions/backup/backupDownloadDebug.js.map +1 -0
  44. package/dist/actions/backup/cleanupTmpDir.d.ts +6 -0
  45. package/dist/actions/backup/cleanupTmpDir.js +19 -0
  46. package/dist/actions/backup/cleanupTmpDir.js.map +1 -0
  47. package/dist/actions/backup/constants.d.ts +1 -0
  48. package/dist/actions/backup/constants.js +3 -0
  49. package/dist/actions/backup/constants.js.map +1 -0
  50. package/dist/actions/backup/downloadAsset.d.ts +9 -0
  51. package/dist/actions/backup/downloadAsset.js +54 -0
  52. package/dist/actions/backup/downloadAsset.js.map +1 -0
  53. package/dist/actions/backup/downloadDocument.d.ts +7 -0
  54. package/dist/actions/backup/downloadDocument.js +32 -0
  55. package/dist/actions/backup/downloadDocument.js.map +1 -0
  56. package/dist/actions/backup/fetchNextBackupPage.d.ts +23 -0
  57. package/dist/actions/backup/fetchNextBackupPage.js +48 -0
  58. package/dist/actions/backup/fetchNextBackupPage.js.map +1 -0
  59. package/dist/actions/backup/progressSpinner.d.ts +14 -0
  60. package/dist/actions/backup/progressSpinner.js +40 -0
  61. package/dist/actions/backup/progressSpinner.js.map +1 -0
  62. package/dist/actions/build/__tests__/buildApp.test.js +367 -0
  63. package/dist/actions/build/__tests__/buildApp.test.js.map +1 -0
  64. package/dist/actions/build/__tests__/buildStudio.test.js +561 -0
  65. package/dist/actions/build/__tests__/buildStudio.test.js.map +1 -0
  66. package/dist/actions/build/__tests__/checkRequiredDependencies.test.js +233 -0
  67. package/dist/actions/build/__tests__/checkRequiredDependencies.test.js.map +1 -0
  68. package/dist/actions/build/__tests__/checkStudioDependencyVersions.test.js +414 -0
  69. package/dist/actions/build/__tests__/checkStudioDependencyVersions.test.js.map +1 -0
  70. package/dist/actions/build/__tests__/determineBasePath.test.js +24 -0
  71. package/dist/actions/build/__tests__/determineBasePath.test.js.map +1 -0
  72. package/dist/actions/build/__tests__/getAutoUpdatesImportMap.test.js +109 -0
  73. package/dist/actions/build/__tests__/getAutoUpdatesImportMap.test.js.map +1 -0
  74. package/dist/actions/build/__tests__/getViteConfig.test.js +493 -0
  75. package/dist/actions/build/__tests__/getViteConfig.test.js.map +1 -0
  76. package/dist/actions/build/__tests__/renderDocument.test.js +278 -0
  77. package/dist/actions/build/__tests__/renderDocument.test.js.map +1 -0
  78. package/dist/actions/build/__tests__/shouldAutoUpdate.test.js +153 -0
  79. package/dist/actions/build/__tests__/shouldAutoUpdate.test.js.map +1 -0
  80. package/dist/actions/build/buildApp.d.ts +7 -0
  81. package/dist/actions/build/buildApp.js +159 -0
  82. package/dist/actions/build/buildApp.js.map +1 -0
  83. package/dist/actions/build/buildDebug.d.ts +1 -0
  84. package/dist/actions/build/buildDebug.js +4 -0
  85. package/dist/actions/build/buildDebug.js.map +1 -0
  86. package/dist/actions/build/buildStaticFiles.d.ts +35 -0
  87. package/dist/actions/build/buildStaticFiles.js +82 -0
  88. package/dist/actions/build/buildStaticFiles.js.map +1 -0
  89. package/dist/actions/build/buildStudio.d.ts +7 -0
  90. package/dist/actions/build/buildStudio.js +202 -0
  91. package/dist/actions/build/buildStudio.js.map +1 -0
  92. package/dist/actions/build/buildVendorDependencies.d.ts +11 -0
  93. package/dist/actions/build/buildVendorDependencies.js +179 -0
  94. package/dist/actions/build/buildVendorDependencies.js.map +1 -0
  95. package/dist/actions/build/checkRequiredDependencies.d.ts +22 -0
  96. package/dist/actions/build/checkRequiredDependencies.js +122 -0
  97. package/dist/actions/build/checkRequiredDependencies.js.map +1 -0
  98. package/dist/actions/build/checkStudioDependencyVersions.d.ts +2 -0
  99. package/dist/actions/build/checkStudioDependencyVersions.js +154 -0
  100. package/dist/actions/build/checkStudioDependencyVersions.js.map +1 -0
  101. package/dist/actions/build/createExternalFromImportMap.d.ts +11 -0
  102. package/dist/actions/build/createExternalFromImportMap.js +11 -0
  103. package/dist/actions/build/createExternalFromImportMap.js.map +1 -0
  104. package/dist/actions/build/decorateIndexWithAutoGeneratedWarning.d.ts +6 -0
  105. package/dist/actions/build/decorateIndexWithAutoGeneratedWarning.js +13 -0
  106. package/dist/actions/build/decorateIndexWithAutoGeneratedWarning.js.map +1 -0
  107. package/dist/actions/build/decorateIndexWithBridgeScript.d.ts +8 -0
  108. package/dist/actions/build/decorateIndexWithBridgeScript.js +17 -0
  109. package/dist/actions/build/decorateIndexWithBridgeScript.js.map +1 -0
  110. package/dist/actions/build/determineBasePath.d.ts +7 -0
  111. package/dist/actions/build/determineBasePath.js +20 -0
  112. package/dist/actions/build/determineBasePath.js.map +1 -0
  113. package/dist/actions/build/generateWebManifest.d.ts +15 -0
  114. package/dist/actions/build/generateWebManifest.js +27 -0
  115. package/dist/actions/build/generateWebManifest.js.map +1 -0
  116. package/dist/actions/build/getAppEnvVars.d.ts +6 -0
  117. package/dist/actions/build/getAppEnvVars.js +9 -0
  118. package/dist/actions/build/getAppEnvVars.js.map +1 -0
  119. package/dist/actions/build/getAutoUpdatesImportMap.d.ts +21 -0
  120. package/dist/actions/build/getAutoUpdatesImportMap.js +57 -0
  121. package/dist/actions/build/getAutoUpdatesImportMap.js.map +1 -0
  122. package/dist/actions/build/getEntryModule.d.ts +7 -0
  123. package/dist/actions/build/getEntryModule.js +46 -0
  124. package/dist/actions/build/getEntryModule.js.map +1 -0
  125. package/dist/actions/build/getPossibleDocumentComponentLocations.d.ts +4 -0
  126. package/dist/actions/build/getPossibleDocumentComponentLocations.js +11 -0
  127. package/dist/actions/build/getPossibleDocumentComponentLocations.js.map +1 -0
  128. package/dist/actions/build/getStudioEnvVars.d.ts +6 -0
  129. package/dist/actions/build/getStudioEnvVars.js +9 -0
  130. package/dist/actions/build/getStudioEnvVars.js.map +1 -0
  131. package/dist/actions/build/getStudioEnvironmentVariables.d.ts +52 -0
  132. package/dist/actions/build/getStudioEnvironmentVariables.js +58 -0
  133. package/dist/actions/build/getStudioEnvironmentVariables.js.map +1 -0
  134. package/dist/actions/build/getViteConfig.d.ts +66 -0
  135. package/dist/actions/build/getViteConfig.js +180 -0
  136. package/dist/actions/build/getViteConfig.js.map +1 -0
  137. package/dist/actions/build/normalizeBasePath.d.ts +6 -0
  138. package/dist/actions/build/normalizeBasePath.js +9 -0
  139. package/dist/actions/build/normalizeBasePath.js.map +1 -0
  140. package/dist/actions/build/renderDocument.d.ts +15 -0
  141. package/dist/actions/build/renderDocument.js +54 -0
  142. package/dist/actions/build/renderDocument.js.map +1 -0
  143. package/dist/actions/build/renderDocument.worker.d.ts +1 -0
  144. package/dist/actions/build/renderDocument.worker.js +9 -0
  145. package/dist/actions/build/renderDocument.worker.js.map +1 -0
  146. package/dist/actions/build/renderDocumentWorker/__tests__/renderDocumentWorker.test.js +657 -0
  147. package/dist/actions/build/renderDocumentWorker/__tests__/renderDocumentWorker.test.js.map +1 -0
  148. package/dist/actions/build/renderDocumentWorker/addTimestampImportMapScriptToHtml.d.ts +6 -0
  149. package/dist/actions/build/renderDocumentWorker/addTimestampImportMapScriptToHtml.js +59 -0
  150. package/dist/actions/build/renderDocumentWorker/addTimestampImportMapScriptToHtml.js.map +1 -0
  151. package/dist/actions/build/renderDocumentWorker/components/BasicDocument.d.ts +19 -0
  152. package/dist/actions/build/renderDocumentWorker/components/BasicDocument.js +61 -0
  153. package/dist/actions/build/renderDocumentWorker/components/BasicDocument.js.map +1 -0
  154. package/dist/actions/build/renderDocumentWorker/components/DefaultDocument.d.ts +13 -0
  155. package/dist/actions/build/renderDocumentWorker/components/DefaultDocument.js +165 -0
  156. package/dist/actions/build/renderDocumentWorker/components/DefaultDocument.js.map +1 -0
  157. package/dist/actions/build/renderDocumentWorker/components/Favicons.d.ts +2 -0
  158. package/dist/actions/build/renderDocumentWorker/components/Favicons.js +28 -0
  159. package/dist/actions/build/renderDocumentWorker/components/Favicons.js.map +1 -0
  160. package/dist/actions/build/renderDocumentWorker/components/GlobalErrorHandler.d.ts +3 -0
  161. package/dist/actions/build/renderDocumentWorker/components/GlobalErrorHandler.js +177 -0
  162. package/dist/actions/build/renderDocumentWorker/components/GlobalErrorHandler.js.map +1 -0
  163. package/dist/actions/build/renderDocumentWorker/components/NoJavascript.d.ts +3 -0
  164. package/dist/actions/build/renderDocumentWorker/components/NoJavascript.js +51 -0
  165. package/dist/actions/build/renderDocumentWorker/components/NoJavascript.js.map +1 -0
  166. package/dist/actions/build/renderDocumentWorker/getDocumentComponent.d.ts +5 -0
  167. package/dist/actions/build/renderDocumentWorker/getDocumentComponent.js +41 -0
  168. package/dist/actions/build/renderDocumentWorker/getDocumentComponent.js.map +1 -0
  169. package/dist/actions/build/renderDocumentWorker/getDocumentHtml.d.ts +8 -0
  170. package/dist/actions/build/renderDocumentWorker/getDocumentHtml.js +55 -0
  171. package/dist/actions/build/renderDocumentWorker/getDocumentHtml.js.map +1 -0
  172. package/dist/actions/build/renderDocumentWorker/renderDocumentWorker.d.ts +21 -0
  173. package/dist/actions/build/renderDocumentWorker/renderDocumentWorker.js +31 -0
  174. package/dist/actions/build/renderDocumentWorker/renderDocumentWorker.js.map +1 -0
  175. package/dist/actions/build/renderDocumentWorker/tryLoadDocumentComponent.d.ts +8 -0
  176. package/dist/actions/build/renderDocumentWorker/tryLoadDocumentComponent.js +29 -0
  177. package/dist/actions/build/renderDocumentWorker/tryLoadDocumentComponent.js.map +1 -0
  178. package/dist/actions/build/renderDocumentWorker/types.d.ts +8 -0
  179. package/dist/actions/build/renderDocumentWorker/types.js +5 -0
  180. package/dist/actions/build/renderDocumentWorker/types.js.map +1 -0
  181. package/dist/actions/build/shouldAutoUpdate.d.ts +16 -0
  182. package/dist/actions/build/shouldAutoUpdate.js +35 -0
  183. package/dist/actions/build/shouldAutoUpdate.js.map +1 -0
  184. package/dist/actions/build/types.d.ts +13 -0
  185. package/dist/actions/build/types.js +3 -0
  186. package/dist/actions/build/types.js.map +1 -0
  187. package/dist/actions/build/writeFavicons.d.ts +1 -0
  188. package/dist/actions/build/writeFavicons.js +26 -0
  189. package/dist/actions/build/writeFavicons.js.map +1 -0
  190. package/dist/actions/build/writeSanityRuntime.d.ts +19 -0
  191. package/dist/actions/build/writeSanityRuntime.js +61 -0
  192. package/dist/actions/build/writeSanityRuntime.js.map +1 -0
  193. package/dist/actions/build/writeWebManifest.d.ts +4 -0
  194. package/dist/actions/build/writeWebManifest.js +12 -0
  195. package/dist/actions/build/writeWebManifest.js.map +1 -0
  196. package/dist/actions/codemods/deskRename.d.ts +2 -0
  197. package/dist/actions/codemods/deskRename.js +18 -0
  198. package/dist/actions/codemods/deskRename.js.map +1 -0
  199. package/dist/actions/codemods/index.d.ts +5 -0
  200. package/dist/actions/codemods/index.js +10 -0
  201. package/dist/actions/codemods/index.js.map +1 -0
  202. package/dist/actions/codemods/partsTypeDirective.d.ts +2 -0
  203. package/dist/actions/codemods/partsTypeDirective.js +27 -0
  204. package/dist/actions/codemods/partsTypeDirective.js.map +1 -0
  205. package/dist/actions/codemods/reactIconsV3.d.ts +2 -0
  206. package/dist/actions/codemods/reactIconsV3.js +30 -0
  207. package/dist/actions/codemods/reactIconsV3.js.map +1 -0
  208. package/dist/actions/codemods/types.d.ts +8 -0
  209. package/dist/actions/codemods/types.js +3 -0
  210. package/dist/actions/codemods/types.js.map +1 -0
  211. package/dist/actions/cors/constants.d.ts +1 -0
  212. package/dist/actions/cors/constants.js +3 -0
  213. package/dist/actions/cors/constants.js.map +1 -0
  214. package/dist/actions/cors/filterAndValidateOrigin.d.ts +7 -0
  215. package/dist/actions/cors/filterAndValidateOrigin.js +38 -0
  216. package/dist/actions/cors/filterAndValidateOrigin.js.map +1 -0
  217. package/dist/actions/cors/types.d.ts +9 -0
  218. package/dist/actions/cors/types.js +3 -0
  219. package/dist/actions/cors/types.js.map +1 -0
  220. package/dist/actions/dataset/__tests__/validateDatasetName.test.js +182 -0
  221. package/dist/actions/dataset/__tests__/validateDatasetName.test.js.map +1 -0
  222. package/dist/actions/dataset/processAliasName.d.ts +9 -0
  223. package/dist/actions/dataset/processAliasName.js +20 -0
  224. package/dist/actions/dataset/processAliasName.js.map +1 -0
  225. package/dist/actions/dataset/validateDatasetAliasName.d.ts +1 -0
  226. package/dist/actions/dataset/validateDatasetAliasName.js +28 -0
  227. package/dist/actions/dataset/validateDatasetAliasName.js.map +1 -0
  228. package/dist/actions/dataset/validateDatasetName.d.ts +13 -0
  229. package/dist/actions/dataset/validateDatasetName.js +39 -0
  230. package/dist/actions/dataset/validateDatasetName.js.map +1 -0
  231. package/dist/actions/debug/gatherDebugInfo.d.ts +2 -0
  232. package/dist/actions/debug/gatherDebugInfo.js +110 -0
  233. package/dist/actions/debug/gatherDebugInfo.js.map +1 -0
  234. package/dist/actions/debug/getGlobalConfigLocation.d.ts +1 -0
  235. package/dist/actions/debug/getGlobalConfigLocation.js +7 -0
  236. package/dist/actions/debug/getGlobalConfigLocation.js.map +1 -0
  237. package/dist/actions/debug/types.d.ts +32 -0
  238. package/dist/actions/debug/types.js +3 -0
  239. package/dist/actions/debug/types.js.map +1 -0
  240. package/dist/actions/deploy/__tests__/checkDir.test.js +120 -0
  241. package/dist/actions/deploy/__tests__/checkDir.test.js.map +1 -0
  242. package/dist/actions/deploy/checkDir.d.ts +8 -0
  243. package/dist/actions/deploy/checkDir.js +31 -0
  244. package/dist/actions/deploy/checkDir.js.map +1 -0
  245. package/dist/actions/deploy/createStudioUserApplication.d.ts +2 -0
  246. package/dist/actions/deploy/createStudioUserApplication.js +59 -0
  247. package/dist/actions/deploy/createStudioUserApplication.js.map +1 -0
  248. package/dist/actions/deploy/createUserApplicationForApp.d.ts +2 -0
  249. package/dist/actions/deploy/createUserApplicationForApp.js +56 -0
  250. package/dist/actions/deploy/createUserApplicationForApp.js.map +1 -0
  251. package/dist/actions/deploy/deployApp.d.ts +7 -0
  252. package/dist/actions/deploy/deployApp.js +145 -0
  253. package/dist/actions/deploy/deployApp.js.map +1 -0
  254. package/dist/actions/deploy/deployDebug.d.ts +1 -0
  255. package/dist/actions/deploy/deployDebug.js +4 -0
  256. package/dist/actions/deploy/deployDebug.js.map +1 -0
  257. package/dist/actions/deploy/deployStudio.d.ts +2 -0
  258. package/dist/actions/deploy/deployStudio.js +133 -0
  259. package/dist/actions/deploy/deployStudio.js.map +1 -0
  260. package/dist/actions/deploy/findUserApplicationForApp.d.ts +15 -0
  261. package/dist/actions/deploy/findUserApplicationForApp.js +110 -0
  262. package/dist/actions/deploy/findUserApplicationForApp.js.map +1 -0
  263. package/dist/actions/deploy/findUserApplicationForStudio.d.ts +13 -0
  264. package/dist/actions/deploy/findUserApplicationForStudio.js +143 -0
  265. package/dist/actions/deploy/findUserApplicationForStudio.js.map +1 -0
  266. package/dist/actions/deploy/types.d.ts +11 -0
  267. package/dist/actions/deploy/types.js +3 -0
  268. package/dist/actions/deploy/types.js.map +1 -0
  269. package/dist/actions/dev/devAction.d.ts +4 -0
  270. package/dist/actions/dev/devAction.js +7 -0
  271. package/dist/actions/dev/devAction.js.map +1 -0
  272. package/dist/actions/dev/devDebug.d.ts +1 -0
  273. package/dist/actions/dev/devDebug.js +4 -0
  274. package/dist/actions/dev/devDebug.js.map +1 -0
  275. package/dist/actions/dev/getCoreAppUrl.d.ts +5 -0
  276. package/dist/actions/dev/getCoreAppUrl.js +10 -0
  277. package/dist/actions/dev/getCoreAppUrl.js.map +1 -0
  278. package/dist/actions/dev/getDevServerConfig.d.ts +9 -0
  279. package/dist/actions/dev/getDevServerConfig.js +28 -0
  280. package/dist/actions/dev/getDevServerConfig.js.map +1 -0
  281. package/dist/actions/dev/startAppDevServer.d.ts +4 -0
  282. package/dist/actions/dev/startAppDevServer.js +54 -0
  283. package/dist/actions/dev/startAppDevServer.js.map +1 -0
  284. package/dist/actions/dev/startStudioDevServer.d.ts +4 -0
  285. package/dist/actions/dev/startStudioDevServer.js +155 -0
  286. package/dist/actions/dev/startStudioDevServer.js.map +1 -0
  287. package/dist/actions/dev/types.d.ts +12 -0
  288. package/dist/actions/dev/types.js +3 -0
  289. package/dist/actions/dev/types.js.map +1 -0
  290. package/dist/actions/docs/__tests__/normalizeDocsPath.test.js +16 -0
  291. package/dist/actions/docs/__tests__/normalizeDocsPath.test.js.map +1 -0
  292. package/dist/actions/docs/normalizeDocsPath.d.ts +8 -0
  293. package/dist/actions/docs/normalizeDocsPath.js +15 -0
  294. package/dist/actions/docs/normalizeDocsPath.js.map +1 -0
  295. package/dist/actions/documents/constants.d.ts +1 -0
  296. package/dist/actions/documents/constants.js +3 -0
  297. package/dist/actions/documents/constants.js.map +1 -0
  298. package/dist/actions/documents/editor.d.ts +11 -0
  299. package/dist/actions/documents/editor.js +26 -0
  300. package/dist/actions/documents/editor.js.map +1 -0
  301. package/dist/actions/documents/types.d.ts +2 -0
  302. package/dist/actions/documents/types.js +3 -0
  303. package/dist/actions/documents/types.js.map +1 -0
  304. package/dist/actions/documents/validate.d.ts +28 -0
  305. package/dist/actions/documents/validate.js +51 -0
  306. package/dist/actions/documents/validate.js.map +1 -0
  307. package/dist/actions/documents/validation/reporters/index.d.ts +5 -0
  308. package/dist/actions/documents/validation/reporters/index.js +10 -0
  309. package/dist/actions/documents/validation/reporters/index.js.map +1 -0
  310. package/dist/actions/documents/validation/reporters/jsonReporter.d.ts +2 -0
  311. package/dist/actions/documents/validation/reporters/jsonReporter.js +25 -0
  312. package/dist/actions/documents/validation/reporters/jsonReporter.js.map +1 -0
  313. package/dist/actions/documents/validation/reporters/ndjsonReporter.d.ts +2 -0
  314. package/dist/actions/documents/validation/reporters/ndjsonReporter.js +18 -0
  315. package/dist/actions/documents/validation/reporters/ndjsonReporter.js.map +1 -0
  316. package/dist/actions/documents/validation/reporters/prettyReporter/__tests__/formatDocumentValidation.test.js +124 -0
  317. package/dist/actions/documents/validation/reporters/prettyReporter/__tests__/formatDocumentValidation.test.js.map +1 -0
  318. package/dist/actions/documents/validation/reporters/prettyReporter/formatDocumentValidation.d.ts +10 -0
  319. package/dist/actions/documents/validation/reporters/prettyReporter/formatDocumentValidation.js +61 -0
  320. package/dist/actions/documents/validation/reporters/prettyReporter/formatDocumentValidation.js.map +1 -0
  321. package/dist/actions/documents/validation/reporters/prettyReporter/index.d.ts +1 -0
  322. package/dist/actions/documents/validation/reporters/prettyReporter/index.js +3 -0
  323. package/dist/actions/documents/validation/reporters/prettyReporter/index.js.map +1 -0
  324. package/dist/actions/documents/validation/reporters/prettyReporter/prettyReporter.d.ts +5 -0
  325. package/dist/actions/documents/validation/reporters/prettyReporter/prettyReporter.js +92 -0
  326. package/dist/actions/documents/validation/reporters/prettyReporter/prettyReporter.js.map +1 -0
  327. package/dist/actions/documents/validation/reporters/prettyReporter/util.d.ts +53 -0
  328. package/dist/actions/documents/validation/reporters/prettyReporter/util.js +45 -0
  329. package/dist/actions/documents/validation/reporters/prettyReporter/util.js.map +1 -0
  330. package/dist/actions/exec/execScript.d.ts +11 -0
  331. package/dist/actions/exec/execScript.js +73 -0
  332. package/dist/actions/exec/execScript.js.map +1 -0
  333. package/dist/actions/graphql/__tests__/getGraphQLAPIs.test.js +274 -0
  334. package/dist/actions/graphql/__tests__/getGraphQLAPIs.test.js.map +1 -0
  335. package/dist/actions/graphql/getGraphQLAPIs.d.ts +2 -0
  336. package/dist/actions/graphql/getGraphQLAPIs.js +65 -0
  337. package/dist/actions/graphql/getGraphQLAPIs.js.map +1 -0
  338. package/dist/actions/graphql/getGraphQLAPIs.worker.d.ts +1 -0
  339. package/dist/actions/graphql/getGraphQLAPIs.worker.js +126 -0
  340. package/dist/actions/graphql/getGraphQLAPIs.worker.js.map +1 -0
  341. package/dist/actions/graphql/types.d.ts +68 -0
  342. package/dist/actions/graphql/types.js +3 -0
  343. package/dist/actions/graphql/types.js.map +1 -0
  344. package/dist/actions/hook/constants.d.ts +1 -0
  345. package/dist/actions/hook/constants.js +3 -0
  346. package/dist/actions/hook/constants.js.map +1 -0
  347. package/dist/actions/hook/formatFailure.d.ts +4 -0
  348. package/dist/actions/hook/formatFailure.js +29 -0
  349. package/dist/actions/hook/formatFailure.js.map +1 -0
  350. package/dist/actions/hook/types.d.ts +78 -0
  351. package/dist/actions/hook/types.js +3 -0
  352. package/dist/actions/hook/types.js.map +1 -0
  353. package/dist/actions/init/constants.d.ts +1 -0
  354. package/dist/actions/init/constants.js +3 -0
  355. package/dist/actions/init/constants.js.map +1 -0
  356. package/dist/actions/init/determineAppTemplate.d.ts +9 -0
  357. package/dist/actions/init/determineAppTemplate.js +16 -0
  358. package/dist/actions/init/determineAppTemplate.js.map +1 -0
  359. package/dist/actions/init/remoteTemplate.d.ts +23 -0
  360. package/dist/actions/init/remoteTemplate.js +249 -0
  361. package/dist/actions/init/remoteTemplate.js.map +1 -0
  362. package/dist/actions/manifest/SchemaIcon.d.ts +9 -0
  363. package/dist/actions/manifest/SchemaIcon.js +21 -0
  364. package/dist/actions/manifest/SchemaIcon.js.map +1 -0
  365. package/dist/actions/manifest/extractManifest.d.ts +14 -0
  366. package/dist/actions/manifest/extractManifest.js +96 -0
  367. package/dist/actions/manifest/extractManifest.js.map +1 -0
  368. package/dist/actions/manifest/extractWorkspaceManifest.d.ts +3 -0
  369. package/dist/actions/manifest/extractWorkspaceManifest.js +406 -0
  370. package/dist/actions/manifest/extractWorkspaceManifest.js.map +1 -0
  371. package/dist/actions/manifest/purifyConfig.d.ts +10 -0
  372. package/dist/actions/manifest/purifyConfig.js +307 -0
  373. package/dist/actions/manifest/purifyConfig.js.map +1 -0
  374. package/dist/actions/manifest/schemaTypeHelpers.d.ts +17 -0
  375. package/dist/actions/manifest/schemaTypeHelpers.js +110 -0
  376. package/dist/actions/manifest/schemaTypeHelpers.js.map +1 -0
  377. package/dist/actions/manifest/types.d.ts +114 -0
  378. package/dist/actions/manifest/types.js +5 -0
  379. package/dist/actions/manifest/types.js.map +1 -0
  380. package/dist/actions/mcp/detectAvailableEditors.d.ts +8 -0
  381. package/dist/actions/mcp/detectAvailableEditors.js +70 -0
  382. package/dist/actions/mcp/detectAvailableEditors.js.map +1 -0
  383. package/dist/actions/mcp/getEditorsWithExistingConfig.d.ts +8 -0
  384. package/dist/actions/mcp/getEditorsWithExistingConfig.js +29 -0
  385. package/dist/actions/mcp/getEditorsWithExistingConfig.js.map +1 -0
  386. package/dist/actions/mcp/writeMCPConfig.d.ts +9 -0
  387. package/dist/actions/mcp/writeMCPConfig.js +46 -0
  388. package/dist/actions/mcp/writeMCPConfig.js.map +1 -0
  389. package/dist/actions/media/__tests__/createMockClient.js +32 -0
  390. package/dist/actions/media/__tests__/createMockClient.js.map +1 -0
  391. package/dist/actions/media/__tests__/importMedia.test.js +182 -0
  392. package/dist/actions/media/__tests__/importMedia.test.js.map +1 -0
  393. package/dist/actions/media/getMediaLibraryConfig.d.ts +2 -0
  394. package/dist/actions/media/getMediaLibraryConfig.js +5 -0
  395. package/dist/actions/media/getMediaLibraryConfig.js.map +1 -0
  396. package/dist/actions/media/importAspects.d.ts +52 -0
  397. package/dist/actions/media/importAspects.js +111 -0
  398. package/dist/actions/media/importAspects.js.map +1 -0
  399. package/dist/actions/media/importMedia.d.ts +55 -0
  400. package/dist/actions/media/importMedia.js +213 -0
  401. package/dist/actions/media/importMedia.js.map +1 -0
  402. package/dist/actions/media/importMediaDebug.d.ts +1 -0
  403. package/dist/actions/media/importMediaDebug.js +4 -0
  404. package/dist/actions/media/importMediaDebug.js.map +1 -0
  405. package/dist/actions/migration/getMigrationRootDirectory.d.ts +2 -0
  406. package/dist/actions/migration/getMigrationRootDirectory.js +14 -0
  407. package/dist/actions/migration/getMigrationRootDirectory.js.map +1 -0
  408. package/dist/actions/migration/resolveMigrations.d.ts +19 -0
  409. package/dist/actions/migration/resolveMigrations.js +43 -0
  410. package/dist/actions/migration/resolveMigrations.js.map +1 -0
  411. package/dist/actions/migration/templates/__tests__/minimalAdvanced.test.js +65 -0
  412. package/dist/actions/migration/templates/__tests__/minimalAdvanced.test.js.map +1 -0
  413. package/dist/actions/migration/templates/__tests__/minimalSimple.test.js +145 -0
  414. package/dist/actions/migration/templates/__tests__/minimalSimple.test.js.map +1 -0
  415. package/dist/actions/migration/templates/__tests__/renameField.test.js +63 -0
  416. package/dist/actions/migration/templates/__tests__/renameField.test.js.map +1 -0
  417. package/dist/actions/migration/templates/__tests__/renameType.test.js +61 -0
  418. package/dist/actions/migration/templates/__tests__/renameType.test.js.map +1 -0
  419. package/dist/actions/migration/templates/__tests__/stringToPTE.test.js +87 -0
  420. package/dist/actions/migration/templates/__tests__/stringToPTE.test.js.map +1 -0
  421. package/dist/actions/migration/templates/index.d.ts +5 -0
  422. package/dist/actions/migration/templates/index.js +7 -0
  423. package/dist/actions/migration/templates/index.js.map +1 -0
  424. package/dist/actions/migration/templates/minimalAdvanced.d.ts +4 -0
  425. package/dist/actions/migration/templates/minimalAdvanced.js +21 -0
  426. package/dist/actions/migration/templates/minimalAdvanced.js.map +1 -0
  427. package/dist/actions/migration/templates/minimalSimple.d.ts +4 -0
  428. package/dist/actions/migration/templates/minimalSimple.js +61 -0
  429. package/dist/actions/migration/templates/minimalSimple.js.map +1 -0
  430. package/dist/actions/migration/templates/renameField.d.ts +4 -0
  431. package/dist/actions/migration/templates/renameField.js +20 -0
  432. package/dist/actions/migration/templates/renameField.js.map +1 -0
  433. package/dist/actions/migration/templates/renameType.d.ts +4 -0
  434. package/dist/actions/migration/templates/renameType.js +19 -0
  435. package/dist/actions/migration/templates/renameType.js.map +1 -0
  436. package/dist/actions/migration/templates/stringToPTE.d.ts +4 -0
  437. package/dist/actions/migration/templates/stringToPTE.js +32 -0
  438. package/dist/actions/migration/templates/stringToPTE.js.map +1 -0
  439. package/dist/actions/preview/getPreviewServerConfig.d.ts +15 -0
  440. package/dist/actions/preview/getPreviewServerConfig.js +16 -0
  441. package/dist/actions/preview/getPreviewServerConfig.js.map +1 -0
  442. package/dist/actions/preview/previewAction.d.ts +10 -0
  443. package/dist/actions/preview/previewAction.js +19 -0
  444. package/dist/actions/preview/previewAction.js.map +1 -0
  445. package/dist/actions/preview/types.d.ts +2 -0
  446. package/dist/actions/preview/types.js +3 -0
  447. package/dist/actions/preview/types.js.map +1 -0
  448. package/dist/actions/schema/__tests__/deleteSchemaAction.test.js +294 -0
  449. package/dist/actions/schema/__tests__/deleteSchemaAction.test.js.map +1 -0
  450. package/dist/actions/schema/__tests__/formatSchemaValidation.test.js +174 -0
  451. package/dist/actions/schema/__tests__/formatSchemaValidation.test.js.map +1 -0
  452. package/dist/actions/schema/__tests__/validateAction.test.js +281 -0
  453. package/dist/actions/schema/__tests__/validateAction.test.js.map +1 -0
  454. package/dist/actions/schema/deleteSchemaAction.d.ts +15 -0
  455. package/dist/actions/schema/deleteSchemaAction.js +106 -0
  456. package/dist/actions/schema/deleteSchemaAction.js.map +1 -0
  457. package/dist/actions/schema/extract.d.ts +7 -0
  458. package/dist/actions/schema/extract.js +38 -0
  459. package/dist/actions/schema/extract.js.map +1 -0
  460. package/dist/actions/schema/formatSchemaValidation.d.ts +3 -0
  461. package/dist/actions/schema/formatSchemaValidation.js +62 -0
  462. package/dist/actions/schema/formatSchemaValidation.js.map +1 -0
  463. package/dist/actions/schema/metafile.d.ts +21 -0
  464. package/dist/actions/schema/metafile.js +51 -0
  465. package/dist/actions/schema/metafile.js.map +1 -0
  466. package/dist/actions/schema/schemaStoreConstants.d.ts +1 -0
  467. package/dist/actions/schema/schemaStoreConstants.js +4 -0
  468. package/dist/actions/schema/schemaStoreConstants.js.map +1 -0
  469. package/dist/actions/schema/schemaStoreTypes.d.ts +29 -0
  470. package/dist/actions/schema/schemaStoreTypes.js +19 -0
  471. package/dist/actions/schema/schemaStoreTypes.js.map +1 -0
  472. package/dist/actions/schema/utils/manifestExtractor.d.ts +14 -0
  473. package/dist/actions/schema/utils/manifestExtractor.js +38 -0
  474. package/dist/actions/schema/utils/manifestExtractor.js.map +1 -0
  475. package/dist/actions/schema/utils/manifestReader.d.ts +24 -0
  476. package/dist/actions/schema/utils/manifestReader.js +77 -0
  477. package/dist/actions/schema/utils/manifestReader.js.map +1 -0
  478. package/dist/actions/schema/utils/schemaActionHelpers.d.ts +1 -0
  479. package/dist/actions/schema/utils/schemaActionHelpers.js +5 -0
  480. package/dist/actions/schema/utils/schemaActionHelpers.js.map +1 -0
  481. package/dist/actions/schema/utils/schemaApiClient.d.ts +6 -0
  482. package/dist/actions/schema/utils/schemaApiClient.js +17 -0
  483. package/dist/actions/schema/utils/schemaApiClient.js.map +1 -0
  484. package/dist/actions/schema/utils/schemaStoreOutStrings.d.ts +3 -0
  485. package/dist/actions/schema/utils/schemaStoreOutStrings.js +11 -0
  486. package/dist/actions/schema/utils/schemaStoreOutStrings.js.map +1 -0
  487. package/dist/actions/schema/utils/schemaStoreValidation.d.ts +81 -0
  488. package/dist/actions/schema/utils/schemaStoreValidation.js +195 -0
  489. package/dist/actions/schema/utils/schemaStoreValidation.js.map +1 -0
  490. package/dist/actions/schema/utils/workspaceSchemaId.d.ts +8 -0
  491. package/dist/actions/schema/utils/workspaceSchemaId.js +23 -0
  492. package/dist/actions/schema/utils/workspaceSchemaId.js.map +1 -0
  493. package/dist/actions/schema/validateAction.d.ts +11 -0
  494. package/dist/actions/schema/validateAction.js +81 -0
  495. package/dist/actions/schema/validateAction.js.map +1 -0
  496. package/dist/actions/telemetry/__tests__/fetchTelemetryConsent.test.js +27 -0
  497. package/dist/actions/telemetry/__tests__/fetchTelemetryConsent.test.js.map +1 -0
  498. package/dist/actions/telemetry/fetchTelemetryConsent.d.ts +11 -0
  499. package/dist/actions/telemetry/fetchTelemetryConsent.js +38 -0
  500. package/dist/actions/telemetry/fetchTelemetryConsent.js.map +1 -0
  501. package/dist/actions/telemetry/getLearnMoreMessage.d.ts +2 -0
  502. package/dist/actions/telemetry/getLearnMoreMessage.js +15 -0
  503. package/dist/actions/telemetry/getLearnMoreMessage.js.map +1 -0
  504. package/dist/actions/telemetry/getStatusDisplay.d.ts +2 -0
  505. package/dist/actions/telemetry/getStatusDisplay.js +26 -0
  506. package/dist/actions/telemetry/getStatusDisplay.js.map +1 -0
  507. package/dist/actions/telemetry/getStatusMessage.d.ts +2 -0
  508. package/dist/actions/telemetry/getStatusMessage.js +36 -0
  509. package/dist/actions/telemetry/getStatusMessage.js.map +1 -0
  510. package/dist/actions/telemetry/isValidApiConsentStatus.d.ts +20 -0
  511. package/dist/actions/telemetry/isValidApiConsentStatus.js +25 -0
  512. package/dist/actions/telemetry/isValidApiConsentStatus.js.map +1 -0
  513. package/dist/actions/telemetry/resolveConsent.d.ts +10 -0
  514. package/dist/actions/telemetry/resolveConsent.js +49 -0
  515. package/dist/actions/telemetry/resolveConsent.js.map +1 -0
  516. package/dist/actions/telemetry/setConsent.d.ts +16 -0
  517. package/dist/actions/telemetry/setConsent.js +87 -0
  518. package/dist/actions/telemetry/setConsent.js.map +1 -0
  519. package/dist/actions/telemetry/telemetryDebug.d.ts +1 -0
  520. package/dist/actions/telemetry/telemetryDebug.js +4 -0
  521. package/dist/actions/telemetry/telemetryDebug.js.map +1 -0
  522. package/dist/actions/telemetry/telemetryDisclosure.d.ts +1 -0
  523. package/dist/actions/telemetry/telemetryDisclosure.js +33 -0
  524. package/dist/actions/telemetry/telemetryDisclosure.js.map +1 -0
  525. package/dist/actions/telemetry/telemetryLearnMoreMessage.d.ts +2 -0
  526. package/dist/actions/telemetry/telemetryLearnMoreMessage.js +15 -0
  527. package/dist/actions/telemetry/telemetryLearnMoreMessage.js.map +1 -0
  528. package/dist/actions/telemetry/types.d.ts +14 -0
  529. package/dist/actions/telemetry/types.js +3 -0
  530. package/dist/actions/telemetry/types.js.map +1 -0
  531. package/dist/actions/tokens/constants.d.ts +4 -0
  532. package/dist/actions/tokens/constants.js +5 -0
  533. package/dist/actions/tokens/constants.js.map +1 -0
  534. package/dist/actions/tokens/types.d.ts +32 -0
  535. package/dist/actions/tokens/types.js +3 -0
  536. package/dist/actions/tokens/types.js.map +1 -0
  537. package/dist/actions/tokens/validateRole.d.ts +9 -0
  538. package/dist/actions/tokens/validateRole.js +23 -0
  539. package/dist/actions/tokens/validateRole.js.map +1 -0
  540. package/dist/actions/undeploy/getStudioOrAppUserApplication.d.ts +9 -0
  541. package/dist/actions/undeploy/getStudioOrAppUserApplication.js +36 -0
  542. package/dist/actions/undeploy/getStudioOrAppUserApplication.js.map +1 -0
  543. package/dist/actions/users/__tests__/validateEmail.test.js +16 -0
  544. package/dist/actions/users/__tests__/validateEmail.test.js.map +1 -0
  545. package/dist/actions/users/apiVersion.d.ts +6 -0
  546. package/dist/actions/users/apiVersion.js +7 -0
  547. package/dist/actions/users/apiVersion.js.map +1 -0
  548. package/dist/actions/users/getMembersForProject.d.ts +26 -0
  549. package/dist/actions/users/getMembersForProject.js +58 -0
  550. package/dist/actions/users/getMembersForProject.js.map +1 -0
  551. package/dist/actions/users/getPendingInvitations.d.ts +13 -0
  552. package/dist/actions/users/getPendingInvitations.js +15 -0
  553. package/dist/actions/users/getPendingInvitations.js.map +1 -0
  554. package/dist/actions/users/types.d.ts +50 -0
  555. package/dist/actions/users/types.js +3 -0
  556. package/dist/actions/users/types.js.map +1 -0
  557. package/dist/actions/users/usersDebug.d.ts +1 -0
  558. package/dist/actions/users/usersDebug.js +4 -0
  559. package/dist/actions/users/usersDebug.js.map +1 -0
  560. package/dist/actions/users/validateEmail.d.ts +1 -0
  561. package/dist/actions/users/validateEmail.js +14 -0
  562. package/dist/actions/users/validateEmail.js.map +1 -0
  563. package/dist/actions/versions/buildPackageArray.d.ts +18 -0
  564. package/dist/actions/versions/buildPackageArray.js +44 -0
  565. package/dist/actions/versions/buildPackageArray.js.map +1 -0
  566. package/dist/actions/versions/filterSanityModules.d.ts +8 -0
  567. package/dist/actions/versions/filterSanityModules.js +20 -0
  568. package/dist/actions/versions/filterSanityModules.js.map +1 -0
  569. package/dist/actions/versions/findSanityModulesVersions.d.ts +14 -0
  570. package/dist/actions/versions/findSanityModulesVersions.js +47 -0
  571. package/dist/actions/versions/findSanityModulesVersions.js.map +1 -0
  572. package/dist/actions/versions/getFormatters.d.ts +17 -0
  573. package/dist/actions/versions/getFormatters.js +30 -0
  574. package/dist/actions/versions/getFormatters.js.map +1 -0
  575. package/dist/actions/versions/tryFindLatestVersion.d.ts +8 -0
  576. package/dist/actions/versions/tryFindLatestVersion.js +21 -0
  577. package/dist/actions/versions/tryFindLatestVersion.js.map +1 -0
  578. package/dist/actions/versions/types.d.ts +14 -0
  579. package/dist/actions/versions/types.js +5 -0
  580. package/dist/actions/versions/types.js.map +1 -0
  581. package/dist/actions/versions/versionsDebug.d.ts +1 -0
  582. package/dist/actions/versions/versionsDebug.js +4 -0
  583. package/dist/actions/versions/versionsDebug.js.map +1 -0
  584. package/dist/commands/__tests__/blueprints.test.js +54 -0
  585. package/dist/commands/__tests__/blueprints.test.js.map +1 -0
  586. package/dist/commands/__tests__/build.test.js +132 -0
  587. package/dist/commands/__tests__/build.test.js.map +1 -0
  588. package/dist/commands/__tests__/codemod.test.js +271 -0
  589. package/dist/commands/__tests__/codemod.test.js.map +1 -0
  590. package/dist/commands/__tests__/debug.test.js +697 -0
  591. package/dist/commands/__tests__/debug.test.js.map +1 -0
  592. package/dist/commands/__tests__/deploy.test.js +1913 -0
  593. package/dist/commands/__tests__/deploy.test.js.map +1 -0
  594. package/dist/commands/__tests__/dev.test.js +410 -0
  595. package/dist/commands/__tests__/dev.test.js.map +1 -0
  596. package/dist/commands/__tests__/exec.test.js +207 -0
  597. package/dist/commands/__tests__/exec.test.js.map +1 -0
  598. package/dist/commands/__tests__/init.test.js +411 -0
  599. package/dist/commands/__tests__/init.test.js.map +1 -0
  600. package/dist/commands/__tests__/install.test.js +258 -0
  601. package/dist/commands/__tests__/install.test.js.map +1 -0
  602. package/dist/commands/__tests__/learn.test.js +29 -0
  603. package/dist/commands/__tests__/learn.test.js.map +1 -0
  604. package/dist/commands/__tests__/logout.test.js +88 -0
  605. package/dist/commands/__tests__/logout.test.js.map +1 -0
  606. package/dist/commands/__tests__/manage.test.js +105 -0
  607. package/dist/commands/__tests__/manage.test.js.map +1 -0
  608. package/dist/commands/__tests__/preview.test.js +261 -0
  609. package/dist/commands/__tests__/preview.test.js.map +1 -0
  610. package/dist/commands/__tests__/start.test.js +253 -0
  611. package/dist/commands/__tests__/start.test.js.map +1 -0
  612. package/dist/commands/__tests__/undeploy.test.js +382 -0
  613. package/dist/commands/__tests__/undeploy.test.js.map +1 -0
  614. package/dist/commands/__tests__/versions.test.js +134 -0
  615. package/dist/commands/__tests__/versions.test.js.map +1 -0
  616. package/dist/commands/backup/__tests__/disable.test.js +207 -0
  617. package/dist/commands/backup/__tests__/disable.test.js.map +1 -0
  618. package/dist/commands/backup/__tests__/download.test.js +679 -0
  619. package/dist/commands/backup/__tests__/download.test.js.map +1 -0
  620. package/dist/commands/backup/__tests__/enable.test.js +317 -0
  621. package/dist/commands/backup/__tests__/enable.test.js.map +1 -0
  622. package/dist/commands/backup/__tests__/list.test.js +321 -0
  623. package/dist/commands/backup/__tests__/list.test.js.map +1 -0
  624. package/dist/commands/backup/disable.d.ts +13 -0
  625. package/dist/commands/backup/disable.js +99 -0
  626. package/dist/commands/backup/disable.js.map +1 -0
  627. package/dist/commands/backup/download.d.ts +21 -0
  628. package/dist/commands/backup/download.js +291 -0
  629. package/dist/commands/backup/download.js.map +1 -0
  630. package/dist/commands/backup/enable.d.ts +12 -0
  631. package/dist/commands/backup/enable.js +105 -0
  632. package/dist/commands/backup/enable.js.map +1 -0
  633. package/dist/commands/backup/list.d.ts +19 -0
  634. package/dist/commands/backup/list.js +188 -0
  635. package/dist/commands/backup/list.js.map +1 -0
  636. package/dist/commands/build.d.ts +18 -0
  637. package/dist/commands/build.js +82 -0
  638. package/dist/commands/build.js.map +1 -0
  639. package/dist/commands/codemod.d.ts +19 -0
  640. package/dist/commands/codemod.js +141 -0
  641. package/dist/commands/codemod.js.map +1 -0
  642. package/dist/commands/cors/__tests__/add.test.js +346 -0
  643. package/dist/commands/cors/__tests__/add.test.js.map +1 -0
  644. package/dist/commands/cors/__tests__/delete.test.js +293 -0
  645. package/dist/commands/cors/__tests__/delete.test.js.map +1 -0
  646. package/dist/commands/cors/__tests__/list.test.js +218 -0
  647. package/dist/commands/cors/__tests__/list.test.js.map +1 -0
  648. package/dist/commands/cors/add.d.ts +29 -0
  649. package/dist/commands/cors/add.js +158 -0
  650. package/dist/commands/cors/add.js.map +1 -0
  651. package/dist/commands/cors/delete.d.ts +13 -0
  652. package/dist/commands/cors/delete.js +98 -0
  653. package/dist/commands/cors/delete.js.map +1 -0
  654. package/dist/commands/cors/list.d.ts +9 -0
  655. package/dist/commands/cors/list.js +48 -0
  656. package/dist/commands/cors/list.js.map +1 -0
  657. package/dist/commands/dataset/__tests__/copy.test.js +520 -0
  658. package/dist/commands/dataset/__tests__/copy.test.js.map +1 -0
  659. package/dist/commands/dataset/__tests__/create.test.js +312 -0
  660. package/dist/commands/dataset/__tests__/create.test.js.map +1 -0
  661. package/dist/commands/dataset/__tests__/delete.test.js +224 -0
  662. package/dist/commands/dataset/__tests__/delete.test.js.map +1 -0
  663. package/dist/commands/dataset/__tests__/export.test.js +561 -0
  664. package/dist/commands/dataset/__tests__/export.test.js.map +1 -0
  665. package/dist/commands/dataset/__tests__/import.test.js +53 -0
  666. package/dist/commands/dataset/__tests__/import.test.js.map +1 -0
  667. package/dist/commands/dataset/__tests__/list.test.js +174 -0
  668. package/dist/commands/dataset/__tests__/list.test.js.map +1 -0
  669. package/dist/commands/dataset/alias/__tests__/create.test.js +299 -0
  670. package/dist/commands/dataset/alias/__tests__/create.test.js.map +1 -0
  671. package/dist/commands/dataset/alias/__tests__/delete.test.js +236 -0
  672. package/dist/commands/dataset/alias/__tests__/delete.test.js.map +1 -0
  673. package/dist/commands/dataset/alias/__tests__/link.test.js +336 -0
  674. package/dist/commands/dataset/alias/__tests__/link.test.js.map +1 -0
  675. package/dist/commands/dataset/alias/__tests__/unlink.test.js +298 -0
  676. package/dist/commands/dataset/alias/__tests__/unlink.test.js.map +1 -0
  677. package/dist/commands/dataset/alias/create.d.ts +13 -0
  678. package/dist/commands/dataset/alias/create.js +118 -0
  679. package/dist/commands/dataset/alias/create.js.map +1 -0
  680. package/dist/commands/dataset/alias/delete.d.ts +16 -0
  681. package/dist/commands/dataset/alias/delete.js +88 -0
  682. package/dist/commands/dataset/alias/delete.js.map +1 -0
  683. package/dist/commands/dataset/alias/link.d.ts +17 -0
  684. package/dist/commands/dataset/alias/link.js +137 -0
  685. package/dist/commands/dataset/alias/link.js.map +1 -0
  686. package/dist/commands/dataset/alias/unlink.d.ts +16 -0
  687. package/dist/commands/dataset/alias/unlink.js +98 -0
  688. package/dist/commands/dataset/alias/unlink.js.map +1 -0
  689. package/dist/commands/dataset/copy.d.ts +27 -0
  690. package/dist/commands/dataset/copy.js +368 -0
  691. package/dist/commands/dataset/copy.js.map +1 -0
  692. package/dist/commands/dataset/create.d.ts +17 -0
  693. package/dist/commands/dataset/create.js +145 -0
  694. package/dist/commands/dataset/create.js.map +1 -0
  695. package/dist/commands/dataset/delete.d.ts +15 -0
  696. package/dist/commands/dataset/delete.js +94 -0
  697. package/dist/commands/dataset/delete.js.map +1 -0
  698. package/dist/commands/dataset/export.d.ts +26 -0
  699. package/dist/commands/dataset/export.js +272 -0
  700. package/dist/commands/dataset/export.js.map +1 -0
  701. package/dist/commands/dataset/import.d.ts +1 -0
  702. package/dist/commands/dataset/import.js +3 -0
  703. package/dist/commands/dataset/import.js.map +1 -0
  704. package/dist/commands/dataset/list.d.ts +9 -0
  705. package/dist/commands/dataset/list.js +50 -0
  706. package/dist/commands/dataset/list.js.map +1 -0
  707. package/dist/commands/dataset/visibility/__tests__/get.test.js +147 -0
  708. package/dist/commands/dataset/visibility/__tests__/get.test.js.map +1 -0
  709. package/dist/commands/dataset/visibility/__tests__/set.test.js +245 -0
  710. package/dist/commands/dataset/visibility/__tests__/set.test.js.map +1 -0
  711. package/dist/commands/dataset/visibility/get.d.ts +12 -0
  712. package/dist/commands/dataset/visibility/get.js +55 -0
  713. package/dist/commands/dataset/visibility/get.js.map +1 -0
  714. package/dist/commands/dataset/visibility/set.d.ts +13 -0
  715. package/dist/commands/dataset/visibility/set.js +88 -0
  716. package/dist/commands/dataset/visibility/set.js.map +1 -0
  717. package/dist/commands/debug.d.ts +9 -0
  718. package/dist/commands/debug.js +97 -0
  719. package/dist/commands/debug.js.map +1 -0
  720. package/dist/commands/deploy.d.ts +23 -0
  721. package/dist/commands/deploy.js +115 -0
  722. package/dist/commands/deploy.js.map +1 -0
  723. package/dist/commands/dev.d.ts +14 -0
  724. package/dist/commands/dev.js +63 -0
  725. package/dist/commands/dev.js.map +1 -0
  726. package/dist/commands/docs/__tests__/browse.test.js +29 -0
  727. package/dist/commands/docs/__tests__/browse.test.js.map +1 -0
  728. package/dist/commands/docs/__tests__/read.test.js +78 -0
  729. package/dist/commands/docs/__tests__/read.test.js.map +1 -0
  730. package/dist/commands/docs/__tests__/search.test.js +254 -0
  731. package/dist/commands/docs/__tests__/search.test.js.map +1 -0
  732. package/dist/commands/docs/browse.d.ts +6 -0
  733. package/dist/commands/docs/browse.js +15 -0
  734. package/dist/commands/docs/browse.js.map +1 -0
  735. package/dist/commands/docs/read.d.ts +15 -0
  736. package/dist/commands/docs/read.js +81 -0
  737. package/dist/commands/docs/read.js.map +1 -0
  738. package/dist/commands/docs/search.d.ts +15 -0
  739. package/dist/commands/docs/search.js +110 -0
  740. package/dist/commands/docs/search.js.map +1 -0
  741. package/dist/commands/documents/__tests__/create.test.js +967 -0
  742. package/dist/commands/documents/__tests__/create.test.js.map +1 -0
  743. package/dist/commands/documents/__tests__/delete.test.js +268 -0
  744. package/dist/commands/documents/__tests__/delete.test.js.map +1 -0
  745. package/dist/commands/documents/__tests__/get.test.js +209 -0
  746. package/dist/commands/documents/__tests__/get.test.js.map +1 -0
  747. package/dist/commands/documents/__tests__/query.test.js +405 -0
  748. package/dist/commands/documents/__tests__/query.test.js.map +1 -0
  749. package/dist/commands/documents/__tests__/validate.test.js +226 -0
  750. package/dist/commands/documents/__tests__/validate.test.js.map +1 -0
  751. package/dist/commands/documents/create.d.ts +38 -0
  752. package/dist/commands/documents/create.js +337 -0
  753. package/dist/commands/documents/create.js.map +1 -0
  754. package/dist/commands/documents/delete.d.ts +17 -0
  755. package/dist/commands/documents/delete.js +105 -0
  756. package/dist/commands/documents/delete.js.map +1 -0
  757. package/dist/commands/documents/get.d.ts +16 -0
  758. package/dist/commands/documents/get.js +86 -0
  759. package/dist/commands/documents/get.js.map +1 -0
  760. package/dist/commands/documents/query.d.ts +19 -0
  761. package/dist/commands/documents/query.js +106 -0
  762. package/dist/commands/documents/query.js.map +1 -0
  763. package/dist/commands/documents/validate.d.ts +29 -0
  764. package/dist/commands/documents/validate.js +158 -0
  765. package/dist/commands/documents/validate.js.map +1 -0
  766. package/dist/commands/exec.d.ts +19 -0
  767. package/dist/commands/exec.js +54 -0
  768. package/dist/commands/exec.js.map +1 -0
  769. package/dist/commands/graphql/__tests__/list.test.js +228 -0
  770. package/dist/commands/graphql/__tests__/list.test.js.map +1 -0
  771. package/dist/commands/graphql/__tests__/undeploy.test.js +384 -0
  772. package/dist/commands/graphql/__tests__/undeploy.test.js.map +1 -0
  773. package/dist/commands/graphql/list.d.ts +9 -0
  774. package/dist/commands/graphql/list.js +53 -0
  775. package/dist/commands/graphql/list.js.map +1 -0
  776. package/dist/commands/graphql/undeploy.d.ts +16 -0
  777. package/dist/commands/graphql/undeploy.js +148 -0
  778. package/dist/commands/graphql/undeploy.js.map +1 -0
  779. package/dist/commands/hook/__tests__/attempt.test.js +260 -0
  780. package/dist/commands/hook/__tests__/attempt.test.js.map +1 -0
  781. package/dist/commands/hook/__tests__/create.test.js +121 -0
  782. package/dist/commands/hook/__tests__/create.test.js.map +1 -0
  783. package/dist/commands/hook/__tests__/delete.test.js +220 -0
  784. package/dist/commands/hook/__tests__/delete.test.js.map +1 -0
  785. package/dist/commands/hook/__tests__/list.test.js +138 -0
  786. package/dist/commands/hook/__tests__/list.test.js.map +1 -0
  787. package/dist/commands/hook/__tests__/logs.test.js +770 -0
  788. package/dist/commands/hook/__tests__/logs.test.js.map +1 -0
  789. package/dist/commands/hook/attempt.d.ts +13 -0
  790. package/dist/commands/hook/attempt.js +66 -0
  791. package/dist/commands/hook/attempt.js.map +1 -0
  792. package/dist/commands/hook/create.d.ts +9 -0
  793. package/dist/commands/hook/create.js +50 -0
  794. package/dist/commands/hook/create.js.map +1 -0
  795. package/dist/commands/hook/delete.d.ts +13 -0
  796. package/dist/commands/hook/delete.js +98 -0
  797. package/dist/commands/hook/delete.js.map +1 -0
  798. package/dist/commands/hook/list.d.ts +9 -0
  799. package/dist/commands/hook/list.js +52 -0
  800. package/dist/commands/hook/list.js.map +1 -0
  801. package/dist/commands/hook/logs.d.ts +19 -0
  802. package/dist/commands/hook/logs.js +184 -0
  803. package/dist/commands/hook/logs.js.map +1 -0
  804. package/dist/commands/init.d.ts +46 -0
  805. package/dist/commands/init.js +397 -0
  806. package/dist/commands/init.js.map +1 -0
  807. package/dist/commands/install.d.ts +10 -0
  808. package/dist/commands/install.js +43 -0
  809. package/dist/commands/install.js.map +1 -0
  810. package/dist/commands/learn.d.ts +6 -0
  811. package/dist/commands/learn.js +15 -0
  812. package/dist/commands/learn.js.map +1 -0
  813. package/dist/commands/login.d.ts +13 -0
  814. package/dist/commands/login.js +50 -0
  815. package/dist/commands/login.js.map +1 -0
  816. package/dist/commands/logout.d.ts +6 -0
  817. package/dist/commands/logout.js +37 -0
  818. package/dist/commands/logout.js.map +1 -0
  819. package/dist/commands/manage.d.ts +6 -0
  820. package/dist/commands/manage.js +28 -0
  821. package/dist/commands/manage.js.map +1 -0
  822. package/dist/commands/manifest/__tests__/extract.test.js +123 -0
  823. package/dist/commands/manifest/__tests__/extract.test.js.map +1 -0
  824. package/dist/commands/manifest/extract.d.ts +12 -0
  825. package/dist/commands/manifest/extract.js +44 -0
  826. package/dist/commands/manifest/extract.js.map +1 -0
  827. package/dist/commands/mcp/__tests__/configure.test.js +397 -0
  828. package/dist/commands/mcp/__tests__/configure.test.js.map +1 -0
  829. package/dist/commands/mcp/configure.d.ts +9 -0
  830. package/dist/commands/mcp/configure.js +89 -0
  831. package/dist/commands/mcp/configure.js.map +1 -0
  832. package/dist/commands/media/__tests__/create-aspect.test.js +160 -0
  833. package/dist/commands/media/__tests__/create-aspect.test.js.map +1 -0
  834. package/dist/commands/media/__tests__/delete-aspect.test.js +333 -0
  835. package/dist/commands/media/__tests__/delete-aspect.test.js.map +1 -0
  836. package/dist/commands/media/__tests__/deploy-aspect.test.js +632 -0
  837. package/dist/commands/media/__tests__/deploy-aspect.test.js.map +1 -0
  838. package/dist/commands/media/__tests__/export.test.js +398 -0
  839. package/dist/commands/media/__tests__/export.test.js.map +1 -0
  840. package/dist/commands/media/__tests__/import.test.js +281 -0
  841. package/dist/commands/media/__tests__/import.test.js.map +1 -0
  842. package/dist/commands/media/create-aspect.d.ts +9 -0
  843. package/dist/commands/media/create-aspect.js +87 -0
  844. package/dist/commands/media/create-aspect.js.map +1 -0
  845. package/dist/commands/media/delete-aspect.d.ts +16 -0
  846. package/dist/commands/media/delete-aspect.js +84 -0
  847. package/dist/commands/media/delete-aspect.js.map +1 -0
  848. package/dist/commands/media/deploy-aspect.d.ts +20 -0
  849. package/dist/commands/media/deploy-aspect.js +150 -0
  850. package/dist/commands/media/deploy-aspect.js.map +1 -0
  851. package/dist/commands/media/export.d.ts +21 -0
  852. package/dist/commands/media/export.js +211 -0
  853. package/dist/commands/media/export.js.map +1 -0
  854. package/dist/commands/media/import.d.ts +18 -0
  855. package/dist/commands/media/import.js +160 -0
  856. package/dist/commands/media/import.js.map +1 -0
  857. package/dist/commands/migration/__tests__/create.test.js +296 -0
  858. package/dist/commands/migration/__tests__/create.test.js.map +1 -0
  859. package/dist/commands/migration/__tests__/list.test.js +166 -0
  860. package/dist/commands/migration/__tests__/list.test.js.map +1 -0
  861. package/dist/commands/migration/__tests__/run.test.js +481 -0
  862. package/dist/commands/migration/__tests__/run.test.js.map +1 -0
  863. package/dist/commands/migration/create.d.ts +17 -0
  864. package/dist/commands/migration/create.js +143 -0
  865. package/dist/commands/migration/create.js.map +1 -0
  866. package/dist/commands/migration/list.d.ts +9 -0
  867. package/dist/commands/migration/list.js +61 -0
  868. package/dist/commands/migration/list.js.map +1 -0
  869. package/dist/commands/migration/run.d.ts +26 -0
  870. package/dist/commands/migration/run.js +271 -0
  871. package/dist/commands/migration/run.js.map +1 -0
  872. package/dist/commands/openapi/__tests__/get.test.js +149 -0
  873. package/dist/commands/openapi/__tests__/get.test.js.map +1 -0
  874. package/dist/commands/openapi/__tests__/list.test.js +113 -0
  875. package/dist/commands/openapi/__tests__/list.test.js.map +1 -0
  876. package/dist/commands/openapi/get.d.ts +17 -0
  877. package/dist/commands/openapi/get.js +83 -0
  878. package/dist/commands/openapi/get.js.map +1 -0
  879. package/dist/commands/openapi/list.d.ts +14 -0
  880. package/dist/commands/openapi/list.js +80 -0
  881. package/dist/commands/openapi/list.js.map +1 -0
  882. package/dist/commands/preview.d.ts +17 -0
  883. package/dist/commands/preview.js +74 -0
  884. package/dist/commands/preview.js.map +1 -0
  885. package/dist/commands/projects/__tests__/list.test.js +153 -0
  886. package/dist/commands/projects/__tests__/list.test.js.map +1 -0
  887. package/dist/commands/projects/list.d.ts +13 -0
  888. package/dist/commands/projects/list.js +80 -0
  889. package/dist/commands/projects/list.js.map +1 -0
  890. package/dist/commands/schema/__tests__/delete.test.js +209 -0
  891. package/dist/commands/schema/__tests__/delete.test.js.map +1 -0
  892. package/dist/commands/schema/__tests__/extract.test.js +113 -0
  893. package/dist/commands/schema/__tests__/extract.test.js.map +1 -0
  894. package/dist/commands/schema/__tests__/validate.test.js +104 -0
  895. package/dist/commands/schema/__tests__/validate.test.js.map +1 -0
  896. package/dist/commands/schema/delete.d.ts +16 -0
  897. package/dist/commands/schema/delete.js +94 -0
  898. package/dist/commands/schema/delete.js.map +1 -0
  899. package/dist/commands/schema/extract.d.ts +15 -0
  900. package/dist/commands/schema/extract.js +51 -0
  901. package/dist/commands/schema/extract.js.map +1 -0
  902. package/dist/commands/schema/validate.d.ts +15 -0
  903. package/dist/commands/schema/validate.js +65 -0
  904. package/dist/commands/schema/validate.js.map +1 -0
  905. package/dist/commands/telemetry/__tests__/disable.test.js +145 -0
  906. package/dist/commands/telemetry/__tests__/disable.test.js.map +1 -0
  907. package/dist/commands/telemetry/__tests__/enable.test.js +131 -0
  908. package/dist/commands/telemetry/__tests__/enable.test.js.map +1 -0
  909. package/dist/commands/telemetry/__tests__/status.test.js +153 -0
  910. package/dist/commands/telemetry/__tests__/status.test.js.map +1 -0
  911. package/dist/commands/telemetry/disable.d.ts +8 -0
  912. package/dist/commands/telemetry/disable.js +34 -0
  913. package/dist/commands/telemetry/disable.js.map +1 -0
  914. package/dist/commands/telemetry/enable.d.ts +8 -0
  915. package/dist/commands/telemetry/enable.js +34 -0
  916. package/dist/commands/telemetry/enable.js.map +1 -0
  917. package/dist/commands/telemetry/status.d.ts +8 -0
  918. package/dist/commands/telemetry/status.js +27 -0
  919. package/dist/commands/telemetry/status.js.map +1 -0
  920. package/dist/commands/tokens/__tests__/add.test.js +420 -0
  921. package/dist/commands/tokens/__tests__/add.test.js.map +1 -0
  922. package/dist/commands/tokens/__tests__/delete.test.js +375 -0
  923. package/dist/commands/tokens/__tests__/delete.test.js.map +1 -0
  924. package/dist/commands/tokens/__tests__/list.test.js +368 -0
  925. package/dist/commands/tokens/__tests__/list.test.js.map +1 -0
  926. package/dist/commands/tokens/add.d.ts +19 -0
  927. package/dist/commands/tokens/add.js +137 -0
  928. package/dist/commands/tokens/add.js.map +1 -0
  929. package/dist/commands/tokens/delete.d.ts +17 -0
  930. package/dist/commands/tokens/delete.js +107 -0
  931. package/dist/commands/tokens/delete.js.map +1 -0
  932. package/dist/commands/tokens/list.d.ts +12 -0
  933. package/dist/commands/tokens/list.js +92 -0
  934. package/dist/commands/tokens/list.js.map +1 -0
  935. package/dist/commands/undeploy.d.ts +8 -0
  936. package/dist/commands/undeploy.js +92 -0
  937. package/dist/commands/undeploy.js.map +1 -0
  938. package/dist/commands/users/__tests__/invite.test.js +341 -0
  939. package/dist/commands/users/__tests__/invite.test.js.map +1 -0
  940. package/dist/commands/users/__tests__/list.test.js +401 -0
  941. package/dist/commands/users/__tests__/list.test.js.map +1 -0
  942. package/dist/commands/users/invite.d.ts +17 -0
  943. package/dist/commands/users/invite.js +111 -0
  944. package/dist/commands/users/invite.js.map +1 -0
  945. package/dist/commands/users/list.d.ts +16 -0
  946. package/dist/commands/users/list.js +104 -0
  947. package/dist/commands/users/list.js.map +1 -0
  948. package/dist/commands/versions.d.ts +6 -0
  949. package/dist/commands/versions.js +27 -0
  950. package/dist/commands/versions.js.map +1 -0
  951. package/dist/config/createCliConfig.d.ts +64 -0
  952. package/dist/config/createCliConfig.js +8 -0
  953. package/dist/config/createCliConfig.js.map +1 -0
  954. package/dist/config/defineCliConfig.d.ts +3 -0
  955. package/dist/config/defineCliConfig.js +5 -0
  956. package/dist/config/defineCliConfig.js.map +1 -0
  957. package/dist/hooks/prerun/__tests__/setupTelemetry.test.js +77 -0
  958. package/dist/hooks/prerun/__tests__/setupTelemetry.test.js.map +1 -0
  959. package/dist/hooks/prerun/setupTelemetry.d.ts +2 -0
  960. package/dist/hooks/prerun/setupTelemetry.js +7 -0
  961. package/dist/hooks/prerun/setupTelemetry.js.map +1 -0
  962. package/dist/index.d.ts +6 -0
  963. package/dist/index.js +7 -0
  964. package/dist/index.js.map +1 -0
  965. package/dist/prompts/promptForDataset.d.ts +17 -0
  966. package/dist/prompts/promptForDataset.js +32 -0
  967. package/dist/prompts/promptForDataset.js.map +1 -0
  968. package/dist/prompts/promptForDatasetAliasName.d.ts +4 -0
  969. package/dist/prompts/promptForDatasetAliasName.js +17 -0
  970. package/dist/prompts/promptForDatasetAliasName.js.map +1 -0
  971. package/dist/prompts/promptForDatasetName.d.ts +4 -0
  972. package/dist/prompts/promptForDatasetName.js +17 -0
  973. package/dist/prompts/promptForDatasetName.js.map +1 -0
  974. package/dist/prompts/promptForMediaLibrary.d.ts +15 -0
  975. package/dist/prompts/promptForMediaLibrary.js +37 -0
  976. package/dist/prompts/promptForMediaLibrary.js.map +1 -0
  977. package/dist/prompts/selectDataset.d.ts +3 -0
  978. package/dist/prompts/selectDataset.js +12 -0
  979. package/dist/prompts/selectDataset.js.map +1 -0
  980. package/dist/prompts/selectMediaLibrary.d.ts +5 -0
  981. package/dist/prompts/selectMediaLibrary.js +34 -0
  982. package/dist/prompts/selectMediaLibrary.js.map +1 -0
  983. package/dist/server/devServer.d.ts +24 -0
  984. package/dist/server/devServer.js +53 -0
  985. package/dist/server/devServer.js.map +1 -0
  986. package/dist/server/gracefulServerDeath.d.ts +3 -0
  987. package/dist/server/gracefulServerDeath.js +12 -0
  988. package/dist/server/gracefulServerDeath.js.map +1 -0
  989. package/dist/server/previewServer.d.ts +19 -0
  990. package/dist/server/previewServer.js +87 -0
  991. package/dist/server/previewServer.js.map +1 -0
  992. package/dist/server/serverDebug.d.ts +1 -0
  993. package/dist/server/serverDebug.js +4 -0
  994. package/dist/server/serverDebug.js.map +1 -0
  995. package/dist/server/vite/plugin-sanity-basepath-redirect.d.ts +2 -0
  996. package/dist/server/vite/plugin-sanity-basepath-redirect.js +25 -0
  997. package/dist/server/vite/plugin-sanity-basepath-redirect.js.map +1 -0
  998. package/dist/server/vite/plugin-sanity-build-entries.d.ts +9 -0
  999. package/dist/server/vite/plugin-sanity-build-entries.js +65 -0
  1000. package/dist/server/vite/plugin-sanity-build-entries.js.map +1 -0
  1001. package/dist/server/vite/plugin-sanity-favicons.d.ts +17 -0
  1002. package/dist/server/vite/plugin-sanity-favicons.js +72 -0
  1003. package/dist/server/vite/plugin-sanity-favicons.js.map +1 -0
  1004. package/dist/server/vite/plugin-sanity-runtime-rewrite.d.ts +2 -0
  1005. package/dist/server/vite/plugin-sanity-runtime-rewrite.js +18 -0
  1006. package/dist/server/vite/plugin-sanity-runtime-rewrite.js.map +1 -0
  1007. package/dist/services/__tests__/datasetAliases.test.js +131 -0
  1008. package/dist/services/__tests__/datasetAliases.test.js.map +1 -0
  1009. package/dist/services/__tests__/datasets.test.js +436 -0
  1010. package/dist/services/__tests__/datasets.test.js.map +1 -0
  1011. package/dist/services/__tests__/graphql.test.js +43 -0
  1012. package/dist/services/__tests__/graphql.test.js.map +1 -0
  1013. package/dist/services/__tests__/mediaLibraries.test.js +88 -0
  1014. package/dist/services/__tests__/mediaLibraries.test.js.map +1 -0
  1015. package/dist/services/__tests__/projects.test.js +41 -0
  1016. package/dist/services/__tests__/projects.test.js.map +1 -0
  1017. package/dist/services/__tests__/userApplications.test.js +113 -0
  1018. package/dist/services/__tests__/userApplications.test.js.map +1 -0
  1019. package/dist/services/auth.d.ts +2 -0
  1020. package/dist/services/auth.js +13 -0
  1021. package/dist/services/auth.js.map +1 -0
  1022. package/dist/services/backup.d.ts +29 -0
  1023. package/dist/services/backup.js +32 -0
  1024. package/dist/services/backup.js.map +1 -0
  1025. package/dist/services/datasetAliases.d.ts +31 -0
  1026. package/dist/services/datasetAliases.js +64 -0
  1027. package/dist/services/datasetAliases.js.map +1 -0
  1028. package/dist/services/datasets.d.ts +64 -0
  1029. package/dist/services/datasets.js +153 -0
  1030. package/dist/services/datasets.js.map +1 -0
  1031. package/dist/services/docs.d.ts +15 -0
  1032. package/dist/services/docs.js +46 -0
  1033. package/dist/services/docs.js.map +1 -0
  1034. package/dist/services/getProjectFeatures.d.ts +5 -0
  1035. package/dist/services/getProjectFeatures.js +16 -0
  1036. package/dist/services/getProjectFeatures.js.map +1 -0
  1037. package/dist/services/graphql.d.ts +16 -0
  1038. package/dist/services/graphql.js +21 -0
  1039. package/dist/services/graphql.js.map +1 -0
  1040. package/dist/services/hooks.d.ts +14 -0
  1041. package/dist/services/hooks.js +40 -0
  1042. package/dist/services/hooks.js.map +1 -0
  1043. package/dist/services/mcp.d.ts +29 -0
  1044. package/dist/services/mcp.js +34 -0
  1045. package/dist/services/mcp.js.map +1 -0
  1046. package/dist/services/mediaLibraries.d.ts +52 -0
  1047. package/dist/services/mediaLibraries.js +74 -0
  1048. package/dist/services/mediaLibraries.js.map +1 -0
  1049. package/dist/services/plans.d.ts +2 -0
  1050. package/dist/services/plans.js +37 -0
  1051. package/dist/services/plans.js.map +1 -0
  1052. package/dist/services/projects.d.ts +2 -0
  1053. package/dist/services/projects.js +12 -0
  1054. package/dist/services/projects.js.map +1 -0
  1055. package/dist/services/tokens.d.ts +43 -0
  1056. package/dist/services/tokens.js +72 -0
  1057. package/dist/services/tokens.js.map +1 -0
  1058. package/dist/services/userApplications.d.ts +75 -0
  1059. package/dist/services/userApplications.js +160 -0
  1060. package/dist/services/userApplications.js.map +1 -0
  1061. package/dist/threads/configClient.d.ts +1 -0
  1062. package/dist/threads/configClient.js +9 -0
  1063. package/dist/threads/configClient.js.map +1 -0
  1064. package/dist/threads/registerBrowserEnv.d.ts +1 -0
  1065. package/dist/threads/registerBrowserEnv.js +17 -0
  1066. package/dist/threads/registerBrowserEnv.js.map +1 -0
  1067. package/dist/threads/validateDocuments.d.ts +45 -0
  1068. package/dist/threads/validateDocuments.js +251 -0
  1069. package/dist/threads/validateDocuments.js.map +1 -0
  1070. package/dist/threads/validateSchema.d.ts +35 -0
  1071. package/dist/threads/validateSchema.js +115 -0
  1072. package/dist/threads/validateSchema.js.map +1 -0
  1073. package/dist/types.d.ts +16 -0
  1074. package/dist/types.js +3 -0
  1075. package/dist/types.js.map +1 -0
  1076. package/dist/util/__tests__/appId.test.js +31 -0
  1077. package/dist/util/__tests__/appId.test.js.map +1 -0
  1078. package/dist/util/__tests__/cliClient.test.js +184 -0
  1079. package/dist/util/__tests__/cliClient.test.js.map +1 -0
  1080. package/dist/util/__tests__/compareDependencyVersions.test.js +426 -0
  1081. package/dist/util/__tests__/compareDependencyVersions.test.js.map +1 -0
  1082. package/dist/util/__tests__/extractDocumentsFromNdjsonOrTarball.test.js +74 -0
  1083. package/dist/util/__tests__/extractDocumentsFromNdjsonOrTarball.test.js.map +1 -0
  1084. package/dist/util/__tests__/findNdjsonEntry.test.js +54 -0
  1085. package/dist/util/__tests__/findNdjsonEntry.test.js.map +1 -0
  1086. package/dist/util/__tests__/getCliVersion.test.js +28 -0
  1087. package/dist/util/__tests__/getCliVersion.test.js.map +1 -0
  1088. package/dist/util/__tests__/getLocalPackageVersion.test.js +84 -0
  1089. package/dist/util/__tests__/getLocalPackageVersion.test.js.map +1 -0
  1090. package/dist/util/__tests__/getWorkspace.test.js +37 -0
  1091. package/dist/util/__tests__/getWorkspace.test.js.map +1 -0
  1092. package/dist/util/__tests__/readPackageJson.test.js +69 -0
  1093. package/dist/util/__tests__/readPackageJson.test.js.map +1 -0
  1094. package/dist/util/__tests__/warnAboutMissingAppId.test.js +28 -0
  1095. package/dist/util/__tests__/warnAboutMissingAppId.test.js.map +1 -0
  1096. package/dist/util/absolutify.d.ts +6 -0
  1097. package/dist/util/absolutify.js +26 -0
  1098. package/dist/util/absolutify.js.map +1 -0
  1099. package/dist/util/appId.d.ts +18 -0
  1100. package/dist/util/appId.js +58 -0
  1101. package/dist/util/appId.js.map +1 -0
  1102. package/dist/util/canLaunchBrowser.d.ts +1 -0
  1103. package/dist/util/canLaunchBrowser.js +14 -0
  1104. package/dist/util/canLaunchBrowser.js.map +1 -0
  1105. package/dist/util/cliClient.d.ts +13 -0
  1106. package/dist/util/cliClient.js +40 -0
  1107. package/dist/util/cliClient.js.map +1 -0
  1108. package/dist/util/compareDependencyVersions.d.ts +35 -0
  1109. package/dist/util/compareDependencyVersions.js +73 -0
  1110. package/dist/util/compareDependencyVersions.js.map +1 -0
  1111. package/dist/util/copyDir.d.ts +20 -0
  1112. package/dist/util/copyDir.js +63 -0
  1113. package/dist/util/copyDir.js.map +1 -0
  1114. package/dist/util/determineIsApp.d.ts +7 -0
  1115. package/dist/util/determineIsApp.js +9 -0
  1116. package/dist/util/determineIsApp.js.map +1 -0
  1117. package/dist/util/dirIsEmptyOrNonExistent.d.ts +1 -0
  1118. package/dist/util/dirIsEmptyOrNonExistent.js +18 -0
  1119. package/dist/util/dirIsEmptyOrNonExistent.js.map +1 -0
  1120. package/dist/util/ensureTrailingSlash.d.ts +9 -0
  1121. package/dist/util/ensureTrailingSlash.js +12 -0
  1122. package/dist/util/ensureTrailingSlash.js.map +1 -0
  1123. package/dist/util/errorMessages.d.ts +3 -0
  1124. package/dist/util/errorMessages.js +5 -0
  1125. package/dist/util/errorMessages.js.map +1 -0
  1126. package/dist/util/extractDocumentsFromNdjsonOrTarball.d.ts +6 -0
  1127. package/dist/util/extractDocumentsFromNdjsonOrTarball.js +88 -0
  1128. package/dist/util/extractDocumentsFromNdjsonOrTarball.js.map +1 -0
  1129. package/dist/util/findNdjsonEntry.d.ts +7 -0
  1130. package/dist/util/findNdjsonEntry.js +21 -0
  1131. package/dist/util/findNdjsonEntry.js.map +1 -0
  1132. package/dist/util/formatSize.d.ts +6 -0
  1133. package/dist/util/formatSize.js +10 -0
  1134. package/dist/util/formatSize.js.map +1 -0
  1135. package/dist/util/getCliVersion.d.ts +7 -0
  1136. package/dist/util/getCliVersion.js +28 -0
  1137. package/dist/util/getCliVersion.js.map +1 -0
  1138. package/dist/util/getErrorMessage.d.ts +8 -0
  1139. package/dist/util/getErrorMessage.js +19 -0
  1140. package/dist/util/getErrorMessage.js.map +1 -0
  1141. package/dist/util/getLocalPackageVersion.d.ts +9 -0
  1142. package/dist/util/getLocalPackageVersion.js +32 -0
  1143. package/dist/util/getLocalPackageVersion.js.map +1 -0
  1144. package/dist/util/getSharedServerConfig.d.ts +30 -0
  1145. package/dist/util/getSharedServerConfig.js +31 -0
  1146. package/dist/util/getSharedServerConfig.js.map +1 -0
  1147. package/dist/util/getWorkspace.d.ts +3 -0
  1148. package/dist/util/getWorkspace.js +18 -0
  1149. package/dist/util/getWorkspace.js.map +1 -0
  1150. package/dist/util/humanFileSize.d.ts +1 -0
  1151. package/dist/util/humanFileSize.js +12 -0
  1152. package/dist/util/humanFileSize.js.map +1 -0
  1153. package/dist/util/importStudioConfig.d.ts +1 -0
  1154. package/dist/util/importStudioConfig.js +43 -0
  1155. package/dist/util/importStudioConfig.js.map +1 -0
  1156. package/dist/util/isPathDirName.d.ts +1 -0
  1157. package/dist/util/isPathDirName.js +6 -0
  1158. package/dist/util/isPathDirName.js.map +1 -0
  1159. package/dist/util/isSanityDocumentish.d.ts +19 -0
  1160. package/dist/util/isSanityDocumentish.js +20 -0
  1161. package/dist/util/isSanityDocumentish.js.map +1 -0
  1162. package/dist/util/loadEnv.d.ts +1 -0
  1163. package/dist/util/loadEnv.js +8 -0
  1164. package/dist/util/loadEnv.js.map +1 -0
  1165. package/dist/util/migration/constants.d.ts +3 -0
  1166. package/dist/util/migration/constants.js +10 -0
  1167. package/dist/util/migration/constants.js.map +1 -0
  1168. package/dist/util/migration/ensureApiVersionFormat.d.ts +9 -0
  1169. package/dist/util/migration/ensureApiVersionFormat.js +16 -0
  1170. package/dist/util/migration/ensureApiVersionFormat.js.map +1 -0
  1171. package/dist/util/migration/prettyMutationFormatter.d.ts +8 -0
  1172. package/dist/util/migration/prettyMutationFormatter.js +141 -0
  1173. package/dist/util/migration/prettyMutationFormatter.js.map +1 -0
  1174. package/dist/util/moduleFormatUtils.d.ts +3 -0
  1175. package/dist/util/moduleFormatUtils.js +18 -0
  1176. package/dist/util/moduleFormatUtils.js.map +1 -0
  1177. package/dist/util/packageManager/__tests__/installPackages.test.js +388 -0
  1178. package/dist/util/packageManager/__tests__/installPackages.test.js.map +1 -0
  1179. package/dist/util/packageManager/installPackages.d.ts +18 -0
  1180. package/dist/util/packageManager/installPackages.js +87 -0
  1181. package/dist/util/packageManager/installPackages.js.map +1 -0
  1182. package/dist/util/packageManager/packageManagerChoice.d.ts +29 -0
  1183. package/dist/util/packageManager/packageManagerChoice.js +173 -0
  1184. package/dist/util/packageManager/packageManagerChoice.js.map +1 -0
  1185. package/dist/util/packageManager/upgradePackages.d.ts +17 -0
  1186. package/dist/util/packageManager/upgradePackages.js +69 -0
  1187. package/dist/util/packageManager/upgradePackages.js.map +1 -0
  1188. package/dist/util/pluralize.d.ts +8 -0
  1189. package/dist/util/pluralize.js +11 -0
  1190. package/dist/util/pluralize.js.map +1 -0
  1191. package/dist/util/readModuleVersion.d.ts +8 -0
  1192. package/dist/util/readModuleVersion.js +15 -0
  1193. package/dist/util/readModuleVersion.js.map +1 -0
  1194. package/dist/util/readPackageJson.d.ts +45 -0
  1195. package/dist/util/readPackageJson.js +42 -0
  1196. package/dist/util/readPackageJson.js.map +1 -0
  1197. package/dist/util/readPackageManifest.d.ts +21 -0
  1198. package/dist/util/readPackageManifest.js +46 -0
  1199. package/dist/util/readPackageManifest.js.map +1 -0
  1200. package/dist/util/toInt.d.ts +1 -0
  1201. package/dist/util/toInt.js +9 -0
  1202. package/dist/util/toInt.js.map +1 -0
  1203. package/dist/util/trimHashFromVersion.d.ts +5 -0
  1204. package/dist/util/trimHashFromVersion.js +8 -0
  1205. package/dist/util/trimHashFromVersion.js.map +1 -0
  1206. package/dist/util/validation/ __tests__/validateDocuments.test.js +274 -0
  1207. package/dist/util/validation/ __tests__/validateDocuments.test.js.map +1 -0
  1208. package/dist/util/validation/validateDocumentsUtils.d.ts +12 -0
  1209. package/dist/util/validation/validateDocumentsUtils.js +33 -0
  1210. package/dist/util/validation/validateDocumentsUtils.js.map +1 -0
  1211. package/dist/util/warnAboutMissingAppId.d.ts +7 -0
  1212. package/dist/util/warnAboutMissingAppId.js +11 -0
  1213. package/dist/util/warnAboutMissingAppId.js.map +1 -0
  1214. package/dist/util/workerChannels.d.ts +59 -0
  1215. package/dist/util/workerChannels.js +172 -0
  1216. package/dist/util/workerChannels.js.map +1 -0
  1217. package/dist/utils/migration/resolveMigrationScript.d.ts +44 -0
  1218. package/dist/utils/migration/resolveMigrationScript.js +74 -0
  1219. package/dist/utils/migration/resolveMigrationScript.js.map +1 -0
  1220. package/oclif.config.js +11 -0
  1221. package/oclif.manifest.json +3957 -0
  1222. package/package.json +120 -100
  1223. package/bin/dev.js +0 -30
  1224. package/bin/sanity +0 -14
  1225. package/lib/_chunks-cjs/cli.js +0 -70981
  1226. package/lib/_chunks-cjs/cli.js.map +0 -1
  1227. package/lib/_chunks-cjs/cliWorker.js +0 -19
  1228. package/lib/_chunks-cjs/cliWorker.js.map +0 -1
  1229. package/lib/_chunks-cjs/generateAction.js +0 -162
  1230. package/lib/_chunks-cjs/generateAction.js.map +0 -1
  1231. package/lib/_chunks-cjs/getCliConfig.js +0 -89
  1232. package/lib/_chunks-cjs/getCliConfig.js.map +0 -1
  1233. package/lib/_chunks-cjs/index.js +0 -31
  1234. package/lib/_chunks-cjs/index.js.map +0 -1
  1235. package/lib/_chunks-cjs/journeyConfig.js +0 -113
  1236. package/lib/_chunks-cjs/journeyConfig.js.map +0 -1
  1237. package/lib/_chunks-cjs/loadEnv.js +0 -347
  1238. package/lib/_chunks-cjs/loadEnv.js.map +0 -1
  1239. package/lib/cli.d.ts +0 -28
  1240. package/lib/cli.js +0 -10
  1241. package/lib/cli.js.map +0 -1
  1242. package/lib/index.d.ts +0 -512
  1243. package/lib/index.js +0 -44
  1244. package/lib/index.js.map +0 -1
  1245. package/lib/run.d.ts +0 -1
  1246. package/lib/run.js +0 -8
  1247. package/lib/run.js.map +0 -1
  1248. package/lib/workers/getAndWriteJourneySchema.d.ts +0 -1
  1249. package/lib/workers/getAndWriteJourneySchema.js +0 -4
  1250. package/lib/workers/getAndWriteJourneySchema.js.map +0 -1
  1251. package/lib/workers/getCliConfig.d.ts +0 -1
  1252. package/lib/workers/getCliConfig.js +0 -10
  1253. package/lib/workers/getCliConfig.js.map +0 -1
  1254. package/lib/workers/typegenGenerate.d.ts +0 -23
  1255. package/lib/workers/typegenGenerate.js +0 -47
  1256. package/lib/workers/typegenGenerate.js.map +0 -1
  1257. package/templates/app-quickstart/src/App.css +0 -18
  1258. package/templates/app-quickstart/src/App.tsx +0 -25
  1259. package/templates/app-quickstart/src/ExampleComponent.css +0 -90
  1260. package/templates/app-quickstart/src/ExampleComponent.tsx +0 -37
  1261. package/templates/app-sanity-ui/src/App.tsx +0 -34
  1262. package/templates/app-sanity-ui/src/ExampleComponent.tsx +0 -33
  1263. package/templates/app-sanity-ui/src/SanityUI.tsx +0 -23
  1264. package/templates/blog/README.md +0 -11
  1265. package/templates/blog/schemaTypes/author.js +0 -50
  1266. package/templates/blog/schemaTypes/blockContent.js +0 -67
  1267. package/templates/blog/schemaTypes/category.js +0 -19
  1268. package/templates/blog/schemaTypes/index.js +0 -6
  1269. package/templates/blog/schemaTypes/post.js +0 -65
  1270. package/templates/blog/static/.gitkeep +0 -1
  1271. package/templates/clean/README.md +0 -9
  1272. package/templates/clean/schemaTypes/index.js +0 -1
  1273. package/templates/clean/static/.gitkeep +0 -1
  1274. package/templates/ecommerce/README.md +0 -11
  1275. package/templates/ecommerce/plugins/.gitkeep +0 -1
  1276. package/templates/ecommerce/plugins/barcode-input/BarcodeInput.js +0 -62
  1277. package/templates/ecommerce/plugins/barcode-input/index.js +0 -9
  1278. package/templates/ecommerce/plugins/barcode-input/schemaType.js +0 -60
  1279. package/templates/ecommerce/schemaTypes/blockContent.js +0 -67
  1280. package/templates/ecommerce/schemaTypes/category.js +0 -39
  1281. package/templates/ecommerce/schemaTypes/index.js +0 -23
  1282. package/templates/ecommerce/schemaTypes/locale/localeBlockContent.js +0 -19
  1283. package/templates/ecommerce/schemaTypes/locale/localeString.js +0 -19
  1284. package/templates/ecommerce/schemaTypes/locale/localeText.js +0 -19
  1285. package/templates/ecommerce/schemaTypes/locale/supportedLanguages.js +0 -5
  1286. package/templates/ecommerce/schemaTypes/product.js +0 -83
  1287. package/templates/ecommerce/schemaTypes/productVariant.js +0 -52
  1288. package/templates/ecommerce/schemaTypes/vendor.js +0 -39
  1289. package/templates/ecommerce/static/.gitkeep +0 -1
  1290. package/templates/get-started/README.md +0 -9
  1291. package/templates/get-started/plugins/.gitkeep +0 -1
  1292. package/templates/get-started/plugins/sanity-plugin-tutorial/CustomDefaultLayout.tsx +0 -16
  1293. package/templates/get-started/plugins/sanity-plugin-tutorial/GetStartedTutorial.tsx +0 -104
  1294. package/templates/get-started/plugins/sanity-plugin-tutorial/index.ts +0 -11
  1295. package/templates/get-started/schemaTypes/index.ts +0 -1
  1296. package/templates/get-started/static/.gitkeep +0 -1
  1297. package/templates/moviedb/README.md +0 -10
  1298. package/templates/moviedb/schemaTypes/blockContent.js +0 -67
  1299. package/templates/moviedb/schemaTypes/castMember.js +0 -37
  1300. package/templates/moviedb/schemaTypes/crewMember.js +0 -52
  1301. package/templates/moviedb/schemaTypes/index.js +0 -22
  1302. package/templates/moviedb/schemaTypes/movie.js +0 -85
  1303. package/templates/moviedb/schemaTypes/person.js +0 -37
  1304. package/templates/moviedb/schemaTypes/plotSummaries.js +0 -20
  1305. package/templates/moviedb/schemaTypes/plotSummary.js +0 -24
  1306. package/templates/moviedb/schemaTypes/screening.js +0 -81
  1307. package/templates/moviedb/static/.gitkeep +0 -1
  1308. package/templates/quickstart/README.md +0 -9
  1309. package/templates/quickstart/schemaTypes/index.js +0 -1
  1310. package/templates/quickstart/static/.gitkeep +0 -1
  1311. package/templates/shared/gitignore.txt +0 -29
  1312. package/templates/shared/tsconfig.json +0 -17
  1313. package/templates/shopify/LICENSE +0 -21
  1314. package/templates/shopify/README.md +0 -85
  1315. package/templates/shopify/components/hotspots/ProductTooltip.tsx +0 -38
  1316. package/templates/shopify/components/icons/Shopify.tsx +0 -22
  1317. package/templates/shopify/components/inputs/CollectionHidden.tsx +0 -24
  1318. package/templates/shopify/components/inputs/PlaceholderString.tsx +0 -20
  1319. package/templates/shopify/components/inputs/ProductHidden.tsx +0 -64
  1320. package/templates/shopify/components/inputs/ProductVariantHidden.tsx +0 -24
  1321. package/templates/shopify/components/inputs/ProxyString.tsx +0 -32
  1322. package/templates/shopify/components/media/ColorTheme.tsx +0 -38
  1323. package/templates/shopify/components/media/ShopifyDocumentStatus.tsx +0 -82
  1324. package/templates/shopify/components/studio/Navbar.tsx +0 -29
  1325. package/templates/shopify/constants.ts +0 -61
  1326. package/templates/shopify/docs/features.md +0 -158
  1327. package/templates/shopify/plugins/customDocumentActions/index.ts +0 -55
  1328. package/templates/shopify/plugins/customDocumentActions/shopifyDelete.tsx +0 -144
  1329. package/templates/shopify/plugins/customDocumentActions/shopifyLink.ts +0 -39
  1330. package/templates/shopify/plugins/customDocumentActions/types.ts +0 -14
  1331. package/templates/shopify/schemaTypes/documents/collection.tsx +0 -143
  1332. package/templates/shopify/schemaTypes/documents/colorTheme.tsx +0 -44
  1333. package/templates/shopify/schemaTypes/documents/page.ts +0 -70
  1334. package/templates/shopify/schemaTypes/documents/product.tsx +0 -132
  1335. package/templates/shopify/schemaTypes/documents/productVariant.tsx +0 -68
  1336. package/templates/shopify/schemaTypes/index.ts +0 -108
  1337. package/templates/shopify/schemaTypes/objects/collection/collectionGroupType.ts +0 -27
  1338. package/templates/shopify/schemaTypes/objects/collection/collectionLinksType.ts +0 -16
  1339. package/templates/shopify/schemaTypes/objects/customProductOption/customProductOptionColorObjectType.tsx +0 -49
  1340. package/templates/shopify/schemaTypes/objects/customProductOption/customProductOptionColorType.tsx +0 -50
  1341. package/templates/shopify/schemaTypes/objects/customProductOption/customProductOptionSizeObjectType.ts +0 -40
  1342. package/templates/shopify/schemaTypes/objects/customProductOption/customProductOptionSizeType.ts +0 -49
  1343. package/templates/shopify/schemaTypes/objects/global/footerType.ts +0 -22
  1344. package/templates/shopify/schemaTypes/objects/global/menuLinksType.ts +0 -21
  1345. package/templates/shopify/schemaTypes/objects/global/menuType.ts +0 -17
  1346. package/templates/shopify/schemaTypes/objects/global/notFoundPageType.ts +0 -37
  1347. package/templates/shopify/schemaTypes/objects/hotspot/imageWithProductHotspotsType.ts +0 -48
  1348. package/templates/shopify/schemaTypes/objects/hotspot/productHotspotsType.tsx +0 -19
  1349. package/templates/shopify/schemaTypes/objects/hotspot/spotType.tsx +0 -60
  1350. package/templates/shopify/schemaTypes/objects/link/linkEmailType.tsx +0 -34
  1351. package/templates/shopify/schemaTypes/objects/link/linkExternalType.tsx +0 -37
  1352. package/templates/shopify/schemaTypes/objects/link/linkInternalType.tsx +0 -33
  1353. package/templates/shopify/schemaTypes/objects/link/linkProductType.tsx +0 -60
  1354. package/templates/shopify/schemaTypes/objects/module/accordionGroupType.ts +0 -33
  1355. package/templates/shopify/schemaTypes/objects/module/accordionType.ts +0 -28
  1356. package/templates/shopify/schemaTypes/objects/module/callToActionType.tsx +0 -85
  1357. package/templates/shopify/schemaTypes/objects/module/calloutType.ts +0 -38
  1358. package/templates/shopify/schemaTypes/objects/module/collectionReferenceType.tsx +0 -48
  1359. package/templates/shopify/schemaTypes/objects/module/gridItemType.ts +0 -41
  1360. package/templates/shopify/schemaTypes/objects/module/gridType.ts +0 -28
  1361. package/templates/shopify/schemaTypes/objects/module/heroType.tsx +0 -40
  1362. package/templates/shopify/schemaTypes/objects/module/imageCallToActionType.tsx +0 -19
  1363. package/templates/shopify/schemaTypes/objects/module/imageFeatureType.ts +0 -80
  1364. package/templates/shopify/schemaTypes/objects/module/imageFeaturesType.tsx +0 -51
  1365. package/templates/shopify/schemaTypes/objects/module/instagramType.ts +0 -35
  1366. package/templates/shopify/schemaTypes/objects/module/productFeaturesType.tsx +0 -50
  1367. package/templates/shopify/schemaTypes/objects/module/productReferenceType.tsx +0 -42
  1368. package/templates/shopify/schemaTypes/objects/seoType.ts +0 -31
  1369. package/templates/shopify/schemaTypes/objects/shopify/collectionRuleType.tsx +0 -37
  1370. package/templates/shopify/schemaTypes/objects/shopify/inventoryType.ts +0 -25
  1371. package/templates/shopify/schemaTypes/objects/shopify/optionType.tsx +0 -31
  1372. package/templates/shopify/schemaTypes/objects/shopify/placeholderStringType.ts +0 -12
  1373. package/templates/shopify/schemaTypes/objects/shopify/priceRangeType.ts +0 -20
  1374. package/templates/shopify/schemaTypes/objects/shopify/productWithVariantType.tsx +0 -142
  1375. package/templates/shopify/schemaTypes/objects/shopify/proxyStringType.ts +0 -12
  1376. package/templates/shopify/schemaTypes/objects/shopify/shopType.ts +0 -15
  1377. package/templates/shopify/schemaTypes/objects/shopify/shopifyCollectionType.ts +0 -85
  1378. package/templates/shopify/schemaTypes/objects/shopify/shopifyProductType.ts +0 -132
  1379. package/templates/shopify/schemaTypes/objects/shopify/shopifyProductVariantType.ts +0 -121
  1380. package/templates/shopify/schemaTypes/portableText/portableTextSimpleType.tsx +0 -45
  1381. package/templates/shopify/schemaTypes/portableText/portableTextType.tsx +0 -52
  1382. package/templates/shopify/schemaTypes/singletons/homeType.ts +0 -49
  1383. package/templates/shopify/schemaTypes/singletons/settingsType.ts +0 -96
  1384. package/templates/shopify/static/.gitkeep +0 -1
  1385. package/templates/shopify/structure/collectionStructure.ts +0 -6
  1386. package/templates/shopify/structure/colorThemeStructure.ts +0 -9
  1387. package/templates/shopify/structure/homeStructure.ts +0 -9
  1388. package/templates/shopify/structure/index.ts +0 -57
  1389. package/templates/shopify/structure/pageStructure.ts +0 -11
  1390. package/templates/shopify/structure/productStructure.ts +0 -51
  1391. package/templates/shopify/structure/settingStructure.ts +0 -9
  1392. package/templates/shopify/utils/blocksToText.ts +0 -20
  1393. package/templates/shopify/utils/defineStructure.ts +0 -11
  1394. package/templates/shopify/utils/getPriceRange.ts +0 -24
  1395. package/templates/shopify/utils/shopifyUrls.ts +0 -22
  1396. package/templates/shopify/utils/validateSlug.ts +0 -18
  1397. package/templates/shopify-online-storefront/README.md +0 -54
  1398. package/templates/shopify-online-storefront/components/icons/Shopify.tsx +0 -22
  1399. package/templates/shopify-online-storefront/components/inputs/CollectionHidden.tsx +0 -23
  1400. package/templates/shopify-online-storefront/components/inputs/PlaceholderString.tsx +0 -25
  1401. package/templates/shopify-online-storefront/components/inputs/ProductHidden.tsx +0 -66
  1402. package/templates/shopify-online-storefront/components/inputs/ProductVariantHidden.tsx +0 -25
  1403. package/templates/shopify-online-storefront/components/inputs/ProxyString.tsx +0 -38
  1404. package/templates/shopify-online-storefront/components/media/ShopifyDocumentStatus.tsx +0 -83
  1405. package/templates/shopify-online-storefront/constants.ts +0 -18
  1406. package/templates/shopify-online-storefront/plugins/shopifyDocumentActions/index.ts +0 -45
  1407. package/templates/shopify-online-storefront/plugins/shopifyDocumentActions/shopifyDelete.tsx +0 -144
  1408. package/templates/shopify-online-storefront/plugins/shopifyDocumentActions/shopifyLink.ts +0 -39
  1409. package/templates/shopify-online-storefront/plugins/shopifyDocumentActions/types.ts +0 -14
  1410. package/templates/shopify-online-storefront/schemaTypes/blocks/blockContent.ts +0 -32
  1411. package/templates/shopify-online-storefront/schemaTypes/documents/collection.tsx +0 -83
  1412. package/templates/shopify-online-storefront/schemaTypes/documents/product.tsx +0 -102
  1413. package/templates/shopify-online-storefront/schemaTypes/documents/productVariant.tsx +0 -82
  1414. package/templates/shopify-online-storefront/schemaTypes/index.ts +0 -43
  1415. package/templates/shopify-online-storefront/schemaTypes/objects/accordion.ts +0 -31
  1416. package/templates/shopify-online-storefront/schemaTypes/objects/accordionGroup.ts +0 -35
  1417. package/templates/shopify-online-storefront/schemaTypes/objects/callout.ts +0 -40
  1418. package/templates/shopify-online-storefront/schemaTypes/objects/inventory.ts +0 -30
  1419. package/templates/shopify-online-storefront/schemaTypes/objects/option.ts +0 -30
  1420. package/templates/shopify-online-storefront/schemaTypes/objects/priceRange.ts +0 -22
  1421. package/templates/shopify-online-storefront/schemaTypes/objects/proxyString.ts +0 -11
  1422. package/templates/shopify-online-storefront/schemaTypes/objects/shopifyCollection.ts +0 -109
  1423. package/templates/shopify-online-storefront/schemaTypes/objects/shopifyCollectionRule.tsx +0 -45
  1424. package/templates/shopify-online-storefront/schemaTypes/objects/shopifyProduct.ts +0 -165
  1425. package/templates/shopify-online-storefront/schemaTypes/objects/shopifyProductVariant.ts +0 -151
  1426. package/templates/shopify-online-storefront/structure/collectionStructure.ts +0 -6
  1427. package/templates/shopify-online-storefront/structure/index.ts +0 -37
  1428. package/templates/shopify-online-storefront/structure/productStructure.ts +0 -35
  1429. package/templates/shopify-online-storefront/utils/defineStructure.ts +0 -11
  1430. package/templates/shopify-online-storefront/utils/getPriceRange.ts +0 -24
  1431. package/templates/shopify-online-storefront/utils/shopifyUrls.ts +0 -22
@@ -0,0 +1,3957 @@
1
+ {
2
+ "commands": {
3
+ "build": {
4
+ "aliases": [],
5
+ "args": {
6
+ "outputDir": {
7
+ "description": "Output directory",
8
+ "name": "outputDir"
9
+ }
10
+ },
11
+ "description": "Builds the Sanity Studio configuration into a static bundle",
12
+ "examples": [
13
+ "<%= config.bin %> <%= command.id %>",
14
+ "<%= config.bin %> <%= command.id %> --no-minify --source-maps"
15
+ ],
16
+ "flags": {
17
+ "auto-updates": {
18
+ "description": "Enable/disable auto updates of studio versions",
19
+ "name": "auto-updates",
20
+ "allowNo": true,
21
+ "type": "boolean"
22
+ },
23
+ "minify": {
24
+ "description": "Enable/disable minifying of built bundles",
25
+ "name": "minify",
26
+ "allowNo": true,
27
+ "type": "boolean"
28
+ },
29
+ "source-maps": {
30
+ "description": "Enable source maps for built bundles (increases size of bundle)",
31
+ "name": "source-maps",
32
+ "allowNo": true,
33
+ "type": "boolean"
34
+ },
35
+ "stats": {
36
+ "description": "Show stats about the built bundles",
37
+ "name": "stats",
38
+ "allowNo": false,
39
+ "type": "boolean"
40
+ },
41
+ "yes": {
42
+ "char": "y",
43
+ "description": "Unattended mode, answers \"yes\" to any \"yes/no\" prompt and otherwise uses defaults",
44
+ "name": "yes",
45
+ "allowNo": false,
46
+ "type": "boolean"
47
+ }
48
+ },
49
+ "hasDynamicHelp": false,
50
+ "hiddenAliases": [],
51
+ "id": "build",
52
+ "pluginAlias": "@sanity/cli",
53
+ "pluginName": "@sanity/cli",
54
+ "pluginType": "core",
55
+ "strict": true,
56
+ "isESM": true,
57
+ "relativePath": [
58
+ "dist",
59
+ "commands",
60
+ "build.js"
61
+ ]
62
+ },
63
+ "codemod": {
64
+ "aliases": [],
65
+ "args": {
66
+ "codemodName": {
67
+ "description": "Name of the codemod to run",
68
+ "name": "codemodName",
69
+ "required": false
70
+ }
71
+ },
72
+ "description": "Updates Sanity Studio codebase with a code modification script",
73
+ "examples": [
74
+ {
75
+ "command": "<%= config.bin %> <%= command.id %>",
76
+ "description": "Show available code mods"
77
+ },
78
+ {
79
+ "command": "<%= config.bin %> <%= command.id %> reactIconsV3 --dry",
80
+ "description": "Run codemod to transform react-icons imports (dry run)"
81
+ }
82
+ ],
83
+ "flags": {
84
+ "dry": {
85
+ "description": "Dry run (no changes are made to files)",
86
+ "name": "dry",
87
+ "allowNo": false,
88
+ "type": "boolean"
89
+ },
90
+ "extensions": {
91
+ "description": "Transform files with these file extensions (comma separated)",
92
+ "name": "extensions",
93
+ "default": "js,ts,tsx",
94
+ "hasDynamicHelp": false,
95
+ "multiple": false,
96
+ "type": "option"
97
+ },
98
+ "no-verify": {
99
+ "description": "Skip verification steps before running codemod",
100
+ "name": "no-verify",
101
+ "allowNo": false,
102
+ "type": "boolean"
103
+ }
104
+ },
105
+ "hasDynamicHelp": false,
106
+ "hiddenAliases": [],
107
+ "id": "codemod",
108
+ "pluginAlias": "@sanity/cli",
109
+ "pluginName": "@sanity/cli",
110
+ "pluginType": "core",
111
+ "strict": true,
112
+ "isESM": true,
113
+ "relativePath": [
114
+ "dist",
115
+ "commands",
116
+ "codemod.js"
117
+ ]
118
+ },
119
+ "debug": {
120
+ "aliases": [],
121
+ "args": {},
122
+ "description": "Provides diagnostic info for Sanity Studio troubleshooting",
123
+ "examples": [
124
+ "<%= config.bin %> <%= command.id %>",
125
+ "<%= config.bin %> <%= command.id %> --secrets"
126
+ ],
127
+ "flags": {
128
+ "secrets": {
129
+ "description": "Include API keys in output",
130
+ "name": "secrets",
131
+ "allowNo": false,
132
+ "type": "boolean"
133
+ }
134
+ },
135
+ "hasDynamicHelp": false,
136
+ "hiddenAliases": [],
137
+ "id": "debug",
138
+ "pluginAlias": "@sanity/cli",
139
+ "pluginName": "@sanity/cli",
140
+ "pluginType": "core",
141
+ "strict": true,
142
+ "isESM": true,
143
+ "relativePath": [
144
+ "dist",
145
+ "commands",
146
+ "debug.js"
147
+ ]
148
+ },
149
+ "deploy": {
150
+ "aliases": [],
151
+ "args": {
152
+ "sourceDir": {
153
+ "description": "Source directory",
154
+ "name": "sourceDir"
155
+ }
156
+ },
157
+ "description": "Builds and deploys Sanity Studio or application to Sanity hosting",
158
+ "examples": [
159
+ {
160
+ "command": "<%= config.bin %> <%= command.id %>",
161
+ "description": "Build the studio"
162
+ },
163
+ {
164
+ "command": "<%= config.bin %> <%= command.id %> --no-minify --source-maps",
165
+ "description": "Deploys non-minified build with source maps"
166
+ },
167
+ {
168
+ "command": "<%= config.bin %> <%= command.id %> --schema-required",
169
+ "description": "Fail fast on schema store fails - for when other services rely on the stored schema"
170
+ }
171
+ ],
172
+ "flags": {
173
+ "auto-updates": {
174
+ "deprecated": true,
175
+ "description": "Automatically update the studio to the latest version",
176
+ "name": "auto-updates",
177
+ "allowNo": true,
178
+ "type": "boolean"
179
+ },
180
+ "build": {
181
+ "description": "Don't build the studio prior to deploy, instead deploying the version currently in `dist/`",
182
+ "name": "build",
183
+ "allowNo": true,
184
+ "type": "boolean"
185
+ },
186
+ "minify": {
187
+ "description": "Skip minifying built JavaScript (speeds up build, increases size of bundle)",
188
+ "name": "minify",
189
+ "allowNo": true,
190
+ "type": "boolean"
191
+ },
192
+ "schema-required": {
193
+ "description": "Fail-fast deployment if schema store fails",
194
+ "name": "schema-required",
195
+ "allowNo": false,
196
+ "type": "boolean"
197
+ },
198
+ "source-maps": {
199
+ "description": "Enable source maps for built bundles (increases size of bundle)",
200
+ "name": "source-maps",
201
+ "allowNo": false,
202
+ "type": "boolean"
203
+ },
204
+ "verbose": {
205
+ "description": "Enable verbose logging",
206
+ "name": "verbose",
207
+ "allowNo": false,
208
+ "type": "boolean"
209
+ },
210
+ "yes": {
211
+ "char": "y",
212
+ "description": "Unattended mode, answers \"yes\" to any \"yes/no\" prompt and otherwise uses defaults",
213
+ "name": "yes",
214
+ "allowNo": false,
215
+ "type": "boolean"
216
+ }
217
+ },
218
+ "hasDynamicHelp": false,
219
+ "hiddenAliases": [],
220
+ "id": "deploy",
221
+ "pluginAlias": "@sanity/cli",
222
+ "pluginName": "@sanity/cli",
223
+ "pluginType": "core",
224
+ "strict": true,
225
+ "isESM": true,
226
+ "relativePath": [
227
+ "dist",
228
+ "commands",
229
+ "deploy.js"
230
+ ]
231
+ },
232
+ "dev": {
233
+ "aliases": [],
234
+ "args": {},
235
+ "description": "Starts a local development server for Sanity Studio with live reloading",
236
+ "examples": [
237
+ "<%= config.bin %> <%= command.id %> --host=0.0.0.0",
238
+ "<%= config.bin %> <%= command.id %> --port=1942",
239
+ "<%= config.bin %> <%= command.id %> --load-in-dashboard"
240
+ ],
241
+ "flags": {
242
+ "auto-updates": {
243
+ "description": "Automatically update Sanity Studio dependencies.",
244
+ "name": "auto-updates",
245
+ "allowNo": true,
246
+ "type": "boolean"
247
+ },
248
+ "host": {
249
+ "description": "The local network interface at which to listen.",
250
+ "name": "host",
251
+ "default": "localhost",
252
+ "hasDynamicHelp": false,
253
+ "multiple": false,
254
+ "type": "option"
255
+ },
256
+ "load-in-dashboard": {
257
+ "description": "Load the app/studio in the Sanity dashboard.",
258
+ "name": "load-in-dashboard",
259
+ "allowNo": true,
260
+ "type": "boolean"
261
+ },
262
+ "port": {
263
+ "description": "TCP port to start server on.",
264
+ "name": "port",
265
+ "default": "3333",
266
+ "hasDynamicHelp": false,
267
+ "multiple": false,
268
+ "type": "option"
269
+ }
270
+ },
271
+ "hasDynamicHelp": false,
272
+ "hiddenAliases": [],
273
+ "id": "dev",
274
+ "pluginAlias": "@sanity/cli",
275
+ "pluginName": "@sanity/cli",
276
+ "pluginType": "core",
277
+ "strict": true,
278
+ "isESM": true,
279
+ "relativePath": [
280
+ "dist",
281
+ "commands",
282
+ "dev.js"
283
+ ]
284
+ },
285
+ "exec": {
286
+ "aliases": [],
287
+ "args": {
288
+ "script": {
289
+ "description": "Path to the script to execute",
290
+ "name": "script",
291
+ "required": true
292
+ }
293
+ },
294
+ "description": "Executes a script within the Sanity Studio context",
295
+ "examples": [
296
+ {
297
+ "command": "<%= config.bin %> <%= command.id %> some/script.js",
298
+ "description": "Run the script at some/script.js in Sanity context"
299
+ },
300
+ {
301
+ "command": "<%= config.bin %> <%= command.id %> migrations/fullname.ts --with-user-token",
302
+ "description": "Run the script at migrations/fullname.ts and configure `getCliClient()` from `sanity/cli` to include the current user's token"
303
+ },
304
+ {
305
+ "command": "<%= config.bin %> <%= command.id %> scripts/browserScript.js --mock-browser-env",
306
+ "description": "Run the script at scripts/browserScript.js in a mock browser environment"
307
+ },
308
+ {
309
+ "command": "<%= config.bin %> <%= command.id %> --mock-browser-env myscript.js -- --dry-run positional-argument",
310
+ "description": "Pass arbitrary arguments to scripts by separating them with a `--`. Arguments are available in `process.argv` as they would in regular node scripts (eg the following command would yield a `process.argv` of: `['/path/to/node', '/path/to/myscript.js', '--dry-run', 'positional-argument']`)"
311
+ }
312
+ ],
313
+ "flags": {
314
+ "mock-browser-env": {
315
+ "description": "Mocks a browser-like environment using jsdom",
316
+ "name": "mock-browser-env",
317
+ "allowNo": false,
318
+ "type": "boolean"
319
+ },
320
+ "with-user-token": {
321
+ "description": "Prime access token from CLI config into getCliClient()",
322
+ "name": "with-user-token",
323
+ "allowNo": false,
324
+ "type": "boolean"
325
+ }
326
+ },
327
+ "hasDynamicHelp": false,
328
+ "hiddenAliases": [],
329
+ "id": "exec",
330
+ "pluginAlias": "@sanity/cli",
331
+ "pluginName": "@sanity/cli",
332
+ "pluginType": "core",
333
+ "strict": false,
334
+ "isESM": true,
335
+ "relativePath": [
336
+ "dist",
337
+ "commands",
338
+ "exec.js"
339
+ ]
340
+ },
341
+ "init": {
342
+ "aliases": [],
343
+ "args": {
344
+ "type": {
345
+ "hidden": true,
346
+ "name": "type"
347
+ }
348
+ },
349
+ "description": "Initialize a new Sanity Studio, project and/or app",
350
+ "examples": [
351
+ "<%= config.bin %> <%= command.id %>",
352
+ {
353
+ "command": "<%= config.bin %> <%= command.id %> --dataset-default",
354
+ "description": "Initialize a new project with a public dataset named \"production\""
355
+ },
356
+ {
357
+ "command": "<%= config.bin %> <%= command.id %> -y --project abc123 --dataset production --output-path ~/myproj",
358
+ "description": "Initialize a project with the given project ID and dataset to the given path"
359
+ },
360
+ {
361
+ "command": "<%= config.bin %> <%= command.id %> -y --project abc123 --dataset staging --template moviedb --output-path .",
362
+ "description": "Initialize a project with the given project ID and dataset using the moviedb template to the given path"
363
+ },
364
+ {
365
+ "command": "<%= config.bin %> <%= command.id %> -y --create-project \"Movies Unlimited\" --dataset moviedb --visibility private --template moviedb --output-path /Users/espenh/movies-unlimited",
366
+ "description": "Create a brand new project with name \"Movies Unlimited\""
367
+ }
368
+ ],
369
+ "flags": {
370
+ "json": {
371
+ "description": "Format output as json.",
372
+ "helpGroup": "GLOBAL",
373
+ "name": "json",
374
+ "allowNo": false,
375
+ "type": "boolean"
376
+ },
377
+ "auto-updates": {
378
+ "description": "Enable auto updates of studio versions",
379
+ "exclusive": [
380
+ "bare"
381
+ ],
382
+ "name": "auto-updates",
383
+ "allowNo": true,
384
+ "type": "boolean"
385
+ },
386
+ "bare": {
387
+ "description": "Skip the Studio initialization and only print the selected project ID and dataset name to stdout",
388
+ "name": "bare",
389
+ "allowNo": false,
390
+ "type": "boolean"
391
+ },
392
+ "coupon": {
393
+ "description": "Optionally select a coupon for a new project (cannot be used with --project-plan)",
394
+ "exclusive": [
395
+ "project-plan"
396
+ ],
397
+ "name": "coupon",
398
+ "hasDynamicHelp": false,
399
+ "helpValue": "<code>",
400
+ "multiple": false,
401
+ "type": "option"
402
+ },
403
+ "create-project": {
404
+ "description": "Create a new project with the given name",
405
+ "name": "create-project",
406
+ "hasDynamicHelp": false,
407
+ "helpValue": "<name>",
408
+ "multiple": false,
409
+ "type": "option"
410
+ },
411
+ "dataset": {
412
+ "description": "Dataset name for the studio",
413
+ "exclusive": [
414
+ "dataset-default"
415
+ ],
416
+ "name": "dataset",
417
+ "hasDynamicHelp": false,
418
+ "helpValue": "<name>",
419
+ "multiple": false,
420
+ "type": "option"
421
+ },
422
+ "dataset-default": {
423
+ "description": "Set up a project with a public dataset named \"production\"",
424
+ "name": "dataset-default",
425
+ "allowNo": false,
426
+ "type": "boolean"
427
+ },
428
+ "env": {
429
+ "description": "Write environment variables to file",
430
+ "exclusive": [
431
+ "bare"
432
+ ],
433
+ "name": "env",
434
+ "hasDynamicHelp": false,
435
+ "helpValue": "<filename>",
436
+ "multiple": false,
437
+ "type": "option"
438
+ },
439
+ "from-create": {
440
+ "description": "Internal flag to indicate that the command is run from create-sanity",
441
+ "hidden": true,
442
+ "name": "from-create",
443
+ "allowNo": false,
444
+ "type": "boolean"
445
+ },
446
+ "git": {
447
+ "description": "Specify a commit message for initial commit, or disable git init",
448
+ "exclusive": [
449
+ "bare"
450
+ ],
451
+ "helpLabel": " --[no-]git",
452
+ "name": "git",
453
+ "hasDynamicHelp": false,
454
+ "helpValue": "<message>",
455
+ "multiple": false,
456
+ "type": "option"
457
+ },
458
+ "mcp": {
459
+ "description": "Enable AI editor integration (MCP) setup",
460
+ "name": "mcp",
461
+ "allowNo": true,
462
+ "type": "boolean"
463
+ },
464
+ "nextjs-add-config-files": {
465
+ "description": "Add config files to Next.js project",
466
+ "helpGroup": "Next.js",
467
+ "name": "nextjs-add-config-files",
468
+ "allowNo": true,
469
+ "type": "boolean"
470
+ },
471
+ "nextjs-append-env": {
472
+ "description": "Append project ID and dataset to .env file",
473
+ "helpGroup": "Next.js",
474
+ "name": "nextjs-append-env",
475
+ "allowNo": true,
476
+ "type": "boolean"
477
+ },
478
+ "nextjs-embed-studio": {
479
+ "description": "Embed the Studio in Next.js application",
480
+ "helpGroup": "Next.js",
481
+ "name": "nextjs-embed-studio",
482
+ "allowNo": true,
483
+ "type": "boolean"
484
+ },
485
+ "no-git": {
486
+ "description": "Disable git initialization",
487
+ "exclusive": [
488
+ "git"
489
+ ],
490
+ "hidden": true,
491
+ "name": "no-git",
492
+ "allowNo": false,
493
+ "type": "boolean"
494
+ },
495
+ "organization": {
496
+ "description": "Organization ID to use for the project",
497
+ "name": "organization",
498
+ "hasDynamicHelp": false,
499
+ "helpValue": "<id>",
500
+ "multiple": false,
501
+ "type": "option"
502
+ },
503
+ "output-path": {
504
+ "description": "Path to write studio project to",
505
+ "exclusive": [
506
+ "bare"
507
+ ],
508
+ "name": "output-path",
509
+ "hasDynamicHelp": false,
510
+ "helpValue": "<path>",
511
+ "multiple": false,
512
+ "type": "option"
513
+ },
514
+ "overwrite-files": {
515
+ "description": "Overwrite existing files",
516
+ "name": "overwrite-files",
517
+ "allowNo": false,
518
+ "type": "boolean"
519
+ },
520
+ "package-manager": {
521
+ "description": "Specify which package manager to use [allowed: npm, yarn, pnpm]",
522
+ "exclusive": [
523
+ "bare"
524
+ ],
525
+ "name": "package-manager",
526
+ "hasDynamicHelp": false,
527
+ "helpValue": "<manager>",
528
+ "multiple": false,
529
+ "options": [
530
+ "npm",
531
+ "yarn",
532
+ "pnpm"
533
+ ],
534
+ "type": "option"
535
+ },
536
+ "project": {
537
+ "description": "Project ID to use for the studio",
538
+ "name": "project",
539
+ "hasDynamicHelp": false,
540
+ "helpValue": "<id>",
541
+ "multiple": false,
542
+ "type": "option"
543
+ },
544
+ "project-plan": {
545
+ "description": "Optionally select a plan for a new project",
546
+ "name": "project-plan",
547
+ "hasDynamicHelp": false,
548
+ "helpValue": "<name>",
549
+ "multiple": false,
550
+ "type": "option"
551
+ },
552
+ "provider": {
553
+ "description": "Login provider to use",
554
+ "name": "provider",
555
+ "hasDynamicHelp": false,
556
+ "helpValue": "<provider>",
557
+ "multiple": false,
558
+ "type": "option"
559
+ },
560
+ "reconfigure": {
561
+ "deprecated": {
562
+ "message": "This flag is no longer supported",
563
+ "version": "3.0.0"
564
+ },
565
+ "description": "Reconfigure an existing project",
566
+ "hidden": true,
567
+ "name": "reconfigure",
568
+ "allowNo": false,
569
+ "type": "boolean"
570
+ },
571
+ "template": {
572
+ "description": "Project template to use [default: \"clean\"]",
573
+ "exclusive": [
574
+ "bare"
575
+ ],
576
+ "name": "template",
577
+ "default": "clean",
578
+ "hasDynamicHelp": false,
579
+ "helpValue": "<template>",
580
+ "multiple": false,
581
+ "type": "option"
582
+ },
583
+ "template-token": {
584
+ "description": "Used for accessing private GitHub repo templates",
585
+ "hidden": true,
586
+ "name": "template-token",
587
+ "hasDynamicHelp": false,
588
+ "multiple": false,
589
+ "type": "option"
590
+ },
591
+ "typescript": {
592
+ "description": "Enable TypeScript support",
593
+ "exclusive": [
594
+ "bare"
595
+ ],
596
+ "name": "typescript",
597
+ "allowNo": true,
598
+ "type": "boolean"
599
+ },
600
+ "visibility": {
601
+ "description": "Visibility mode for dataset",
602
+ "name": "visibility",
603
+ "hasDynamicHelp": false,
604
+ "helpValue": "<mode>",
605
+ "multiple": false,
606
+ "options": [
607
+ "public",
608
+ "private"
609
+ ],
610
+ "type": "option"
611
+ },
612
+ "yes": {
613
+ "char": "y",
614
+ "description": "Unattended mode, answers \"yes\" to any \"yes/no\" prompt and otherwise uses defaults",
615
+ "name": "yes",
616
+ "allowNo": false,
617
+ "type": "boolean"
618
+ }
619
+ },
620
+ "hasDynamicHelp": false,
621
+ "hiddenAliases": [],
622
+ "id": "init",
623
+ "pluginAlias": "@sanity/cli",
624
+ "pluginName": "@sanity/cli",
625
+ "pluginType": "core",
626
+ "strict": true,
627
+ "enableJsonFlag": true,
628
+ "isESM": true,
629
+ "relativePath": [
630
+ "dist",
631
+ "commands",
632
+ "init.js"
633
+ ]
634
+ },
635
+ "install": {
636
+ "aliases": [],
637
+ "args": {
638
+ "packages": {
639
+ "description": "Packages to install",
640
+ "name": "packages",
641
+ "required": false
642
+ }
643
+ },
644
+ "description": "Installs dependencies for Sanity Studio project",
645
+ "examples": [
646
+ "<%= config.bin %> <%= command.id %>",
647
+ "<%= config.bin %> <%= command.id %> @sanity/vision",
648
+ "<%= config.bin %> <%= command.id %> some-package another-package"
649
+ ],
650
+ "flags": {},
651
+ "hasDynamicHelp": false,
652
+ "hiddenAliases": [],
653
+ "id": "install",
654
+ "pluginAlias": "@sanity/cli",
655
+ "pluginName": "@sanity/cli",
656
+ "pluginType": "core",
657
+ "strict": false,
658
+ "isESM": true,
659
+ "relativePath": [
660
+ "dist",
661
+ "commands",
662
+ "install.js"
663
+ ]
664
+ },
665
+ "learn": {
666
+ "aliases": [],
667
+ "args": {},
668
+ "description": "Opens Sanity Learn in your web browser",
669
+ "flags": {},
670
+ "hasDynamicHelp": false,
671
+ "hiddenAliases": [],
672
+ "id": "learn",
673
+ "pluginAlias": "@sanity/cli",
674
+ "pluginName": "@sanity/cli",
675
+ "pluginType": "core",
676
+ "strict": true,
677
+ "enableJsonFlag": false,
678
+ "isESM": true,
679
+ "relativePath": [
680
+ "dist",
681
+ "commands",
682
+ "learn.js"
683
+ ]
684
+ },
685
+ "login": {
686
+ "aliases": [],
687
+ "args": {},
688
+ "description": "Authenticates the CLI for access to Sanity projects",
689
+ "examples": [
690
+ {
691
+ "command": "<%= config.bin %> <%= command.id %>",
692
+ "description": "Log in using default settings"
693
+ },
694
+ {
695
+ "command": "<%= config.bin %> <%= command.id %> --sso my-organization",
696
+ "description": "Log in using Single Sign-On with the \"my-organization\" slug"
697
+ },
698
+ {
699
+ "command": "<%= config.bin %> <%= command.id %> --provider github --no-open",
700
+ "description": "Login with GitHub provider, but do not open a browser window automatically"
701
+ }
702
+ ],
703
+ "flags": {
704
+ "experimental": {
705
+ "hidden": true,
706
+ "name": "experimental",
707
+ "allowNo": false,
708
+ "type": "boolean"
709
+ },
710
+ "open": {
711
+ "description": "Open a browser window to log in (`--no-open` only prints URL)",
712
+ "name": "open",
713
+ "allowNo": true,
714
+ "type": "boolean"
715
+ },
716
+ "provider": {
717
+ "description": "Log in using the given provider",
718
+ "name": "provider",
719
+ "hasDynamicHelp": false,
720
+ "helpValue": "<providerId>",
721
+ "multiple": false,
722
+ "type": "option"
723
+ },
724
+ "sso": {
725
+ "description": "Log in using Single Sign-On, using the given organization slug",
726
+ "name": "sso",
727
+ "hasDynamicHelp": false,
728
+ "helpValue": "<slug>",
729
+ "multiple": false,
730
+ "type": "option"
731
+ }
732
+ },
733
+ "hasDynamicHelp": false,
734
+ "hiddenAliases": [],
735
+ "id": "login",
736
+ "pluginAlias": "@sanity/cli",
737
+ "pluginName": "@sanity/cli",
738
+ "pluginType": "core",
739
+ "strict": true,
740
+ "isESM": true,
741
+ "relativePath": [
742
+ "dist",
743
+ "commands",
744
+ "login.js"
745
+ ]
746
+ },
747
+ "logout": {
748
+ "aliases": [],
749
+ "args": {},
750
+ "description": "Logs out the CLI from the current user session",
751
+ "flags": {},
752
+ "hasDynamicHelp": false,
753
+ "hiddenAliases": [],
754
+ "id": "logout",
755
+ "pluginAlias": "@sanity/cli",
756
+ "pluginName": "@sanity/cli",
757
+ "pluginType": "core",
758
+ "strict": true,
759
+ "isESM": true,
760
+ "relativePath": [
761
+ "dist",
762
+ "commands",
763
+ "logout.js"
764
+ ]
765
+ },
766
+ "manage": {
767
+ "aliases": [],
768
+ "args": {},
769
+ "description": "Opens project management interface in your web browser",
770
+ "flags": {},
771
+ "hasDynamicHelp": false,
772
+ "hiddenAliases": [],
773
+ "id": "manage",
774
+ "pluginAlias": "@sanity/cli",
775
+ "pluginName": "@sanity/cli",
776
+ "pluginType": "core",
777
+ "strict": true,
778
+ "isESM": true,
779
+ "relativePath": [
780
+ "dist",
781
+ "commands",
782
+ "manage.js"
783
+ ]
784
+ },
785
+ "preview": {
786
+ "aliases": [
787
+ "start"
788
+ ],
789
+ "args": {
790
+ "outputDir": {
791
+ "description": "Output directory",
792
+ "name": "outputDir"
793
+ }
794
+ },
795
+ "description": "Starts a server to preview a production build",
796
+ "examples": [
797
+ "<%= config.bin %> <%= command.id %> --host=0.0.0.0",
798
+ "<%= config.bin %> <%= command.id %> --port=1942",
799
+ "<%= config.bin %> <%= command.id %> some/build-output-dir"
800
+ ],
801
+ "flags": {
802
+ "host": {
803
+ "description": "The local network interface at which to listen.",
804
+ "name": "host",
805
+ "default": "localhost",
806
+ "hasDynamicHelp": false,
807
+ "multiple": false,
808
+ "type": "option"
809
+ },
810
+ "port": {
811
+ "description": "TCP port to start server on.",
812
+ "name": "port",
813
+ "default": "3333",
814
+ "hasDynamicHelp": false,
815
+ "multiple": false,
816
+ "type": "option"
817
+ }
818
+ },
819
+ "hasDynamicHelp": false,
820
+ "hiddenAliases": [],
821
+ "id": "preview",
822
+ "pluginAlias": "@sanity/cli",
823
+ "pluginName": "@sanity/cli",
824
+ "pluginType": "core",
825
+ "strict": true,
826
+ "isESM": true,
827
+ "relativePath": [
828
+ "dist",
829
+ "commands",
830
+ "preview.js"
831
+ ]
832
+ },
833
+ "undeploy": {
834
+ "aliases": [],
835
+ "args": {},
836
+ "description": "Removes the deployed Sanity Studio/App from Sanity hosting",
837
+ "flags": {
838
+ "yes": {
839
+ "char": "y",
840
+ "description": "Unattended mode, answers \"yes\" to any \"yes/no\" prompt and otherwise uses defaults",
841
+ "name": "yes",
842
+ "allowNo": false,
843
+ "type": "boolean"
844
+ }
845
+ },
846
+ "hasDynamicHelp": false,
847
+ "hiddenAliases": [],
848
+ "id": "undeploy",
849
+ "pluginAlias": "@sanity/cli",
850
+ "pluginName": "@sanity/cli",
851
+ "pluginType": "core",
852
+ "strict": true,
853
+ "isESM": true,
854
+ "relativePath": [
855
+ "dist",
856
+ "commands",
857
+ "undeploy.js"
858
+ ]
859
+ },
860
+ "versions": {
861
+ "aliases": [],
862
+ "args": {},
863
+ "description": "Shows installed versions of Sanity Studio and components",
864
+ "examples": [
865
+ "<%= config.bin %> <%= command.id %>"
866
+ ],
867
+ "flags": {},
868
+ "hasDynamicHelp": false,
869
+ "hiddenAliases": [],
870
+ "id": "versions",
871
+ "pluginAlias": "@sanity/cli",
872
+ "pluginName": "@sanity/cli",
873
+ "pluginType": "core",
874
+ "strict": true,
875
+ "isESM": true,
876
+ "relativePath": [
877
+ "dist",
878
+ "commands",
879
+ "versions.js"
880
+ ]
881
+ },
882
+ "backup:disable": {
883
+ "aliases": [],
884
+ "args": {
885
+ "dataset": {
886
+ "description": "Dataset name to disable backup for",
887
+ "name": "dataset",
888
+ "required": false
889
+ }
890
+ },
891
+ "description": "Disable backup for a dataset.",
892
+ "examples": [
893
+ {
894
+ "command": "<%= config.bin %> <%= command.id %>",
895
+ "description": "Interactively disable backup for a dataset"
896
+ },
897
+ {
898
+ "command": "<%= config.bin %> <%= command.id %> production",
899
+ "description": "Disable backup for the production dataset"
900
+ }
901
+ ],
902
+ "flags": {},
903
+ "hasDynamicHelp": false,
904
+ "hiddenAliases": [],
905
+ "id": "backup:disable",
906
+ "pluginAlias": "@sanity/cli",
907
+ "pluginName": "@sanity/cli",
908
+ "pluginType": "core",
909
+ "strict": true,
910
+ "isESM": true,
911
+ "relativePath": [
912
+ "dist",
913
+ "commands",
914
+ "backup",
915
+ "disable.js"
916
+ ]
917
+ },
918
+ "backup:download": {
919
+ "aliases": [],
920
+ "args": {
921
+ "dataset": {
922
+ "description": "Dataset name to download backup from",
923
+ "name": "dataset",
924
+ "required": false
925
+ }
926
+ },
927
+ "description": "Download a dataset backup to a local file.",
928
+ "examples": [
929
+ {
930
+ "command": "<%= config.bin %> <%= command.id %>",
931
+ "description": "Interactively download a backup"
932
+ },
933
+ {
934
+ "command": "<%= config.bin %> <%= command.id %> production --backup-id 2024-01-01-backup-1",
935
+ "description": "Download a specific backup for the production dataset"
936
+ },
937
+ {
938
+ "command": "<%= config.bin %> <%= command.id %> production --backup-id 2024-01-01-backup-2 --out /path/to/file",
939
+ "description": "Download backup to a specific file"
940
+ },
941
+ {
942
+ "command": "<%= config.bin %> <%= command.id %> production --backup-id 2024-01-01-backup-3 --out /path/to/file --overwrite",
943
+ "description": "Download backup and overwrite existing file"
944
+ }
945
+ ],
946
+ "flags": {
947
+ "backup-id": {
948
+ "description": "The backup ID to download",
949
+ "name": "backup-id",
950
+ "hasDynamicHelp": false,
951
+ "multiple": false,
952
+ "type": "option"
953
+ },
954
+ "concurrency": {
955
+ "description": "Concurrent number of backup item downloads (max: 24)",
956
+ "name": "concurrency",
957
+ "default": 10,
958
+ "hasDynamicHelp": false,
959
+ "multiple": false,
960
+ "type": "option"
961
+ },
962
+ "out": {
963
+ "description": "The file or directory path the backup should download to",
964
+ "name": "out",
965
+ "hasDynamicHelp": false,
966
+ "multiple": false,
967
+ "type": "option"
968
+ },
969
+ "overwrite": {
970
+ "description": "Allows overwriting of existing backup file",
971
+ "name": "overwrite",
972
+ "allowNo": false,
973
+ "type": "boolean"
974
+ }
975
+ },
976
+ "hasDynamicHelp": false,
977
+ "hiddenAliases": [],
978
+ "id": "backup:download",
979
+ "pluginAlias": "@sanity/cli",
980
+ "pluginName": "@sanity/cli",
981
+ "pluginType": "core",
982
+ "strict": true,
983
+ "isESM": true,
984
+ "relativePath": [
985
+ "dist",
986
+ "commands",
987
+ "backup",
988
+ "download.js"
989
+ ]
990
+ },
991
+ "backup:enable": {
992
+ "aliases": [],
993
+ "args": {
994
+ "dataset": {
995
+ "description": "Dataset name to enable backup for",
996
+ "name": "dataset",
997
+ "required": false
998
+ }
999
+ },
1000
+ "description": "Enable backup for a dataset.",
1001
+ "examples": [
1002
+ {
1003
+ "command": "<%= config.bin %> <%= command.id %>",
1004
+ "description": "Interactively enable backup for a dataset"
1005
+ },
1006
+ {
1007
+ "command": "<%= config.bin %> <%= command.id %> production",
1008
+ "description": "Enable backup for the production dataset"
1009
+ }
1010
+ ],
1011
+ "flags": {},
1012
+ "hasDynamicHelp": false,
1013
+ "hiddenAliases": [],
1014
+ "id": "backup:enable",
1015
+ "pluginAlias": "@sanity/cli",
1016
+ "pluginName": "@sanity/cli",
1017
+ "pluginType": "core",
1018
+ "strict": true,
1019
+ "isESM": true,
1020
+ "relativePath": [
1021
+ "dist",
1022
+ "commands",
1023
+ "backup",
1024
+ "enable.js"
1025
+ ]
1026
+ },
1027
+ "backup:list": {
1028
+ "aliases": [],
1029
+ "args": {
1030
+ "dataset": {
1031
+ "description": "Dataset name to list backups for",
1032
+ "name": "dataset",
1033
+ "required": false
1034
+ }
1035
+ },
1036
+ "description": "List available backups for a dataset.",
1037
+ "examples": [
1038
+ {
1039
+ "command": "<%= config.bin %> <%= command.id %>",
1040
+ "description": "List backups for a dataset interactively"
1041
+ },
1042
+ {
1043
+ "command": "<%= config.bin %> <%= command.id %> production",
1044
+ "description": "List backups for the production dataset"
1045
+ },
1046
+ {
1047
+ "command": "<%= config.bin %> <%= command.id %> production --limit 50",
1048
+ "description": "List up to 50 backups for the production dataset"
1049
+ },
1050
+ {
1051
+ "command": "<%= config.bin %> <%= command.id %> production --after 2024-01-31 --limit 10",
1052
+ "description": "List up to 10 backups created after 2024-01-31"
1053
+ }
1054
+ ],
1055
+ "flags": {
1056
+ "after": {
1057
+ "description": "Only return backups after this date (inclusive, YYYY-MM-DD format)",
1058
+ "name": "after",
1059
+ "hasDynamicHelp": false,
1060
+ "multiple": false,
1061
+ "type": "option"
1062
+ },
1063
+ "before": {
1064
+ "description": "Only return backups before this date (exclusive, YYYY-MM-DD format)",
1065
+ "name": "before",
1066
+ "hasDynamicHelp": false,
1067
+ "multiple": false,
1068
+ "type": "option"
1069
+ },
1070
+ "limit": {
1071
+ "char": "l",
1072
+ "description": "Maximum number of backups returned",
1073
+ "name": "limit",
1074
+ "default": 30,
1075
+ "hasDynamicHelp": false,
1076
+ "multiple": false,
1077
+ "type": "option"
1078
+ }
1079
+ },
1080
+ "hasDynamicHelp": false,
1081
+ "hiddenAliases": [],
1082
+ "id": "backup:list",
1083
+ "pluginAlias": "@sanity/cli",
1084
+ "pluginName": "@sanity/cli",
1085
+ "pluginType": "core",
1086
+ "strict": true,
1087
+ "isESM": true,
1088
+ "relativePath": [
1089
+ "dist",
1090
+ "commands",
1091
+ "backup",
1092
+ "list.js"
1093
+ ]
1094
+ },
1095
+ "cors:add": {
1096
+ "aliases": [],
1097
+ "args": {
1098
+ "origin": {
1099
+ "description": "Origin to allow (e.g., https://example.com)",
1100
+ "name": "origin",
1101
+ "required": true
1102
+ }
1103
+ },
1104
+ "description": "Allow a new origin to use your project API through CORS",
1105
+ "examples": [
1106
+ {
1107
+ "command": "<%= config.bin %> <%= command.id %>",
1108
+ "description": "Interactively add a CORS origin"
1109
+ },
1110
+ {
1111
+ "command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
1112
+ "description": "Add a localhost origin without credentials"
1113
+ },
1114
+ {
1115
+ "command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
1116
+ "description": "Add a production origin with credentials allowed"
1117
+ }
1118
+ ],
1119
+ "flags": {
1120
+ "credentials": {
1121
+ "description": "Allow credentials (token/cookie) to be sent from this origin",
1122
+ "name": "credentials",
1123
+ "required": false,
1124
+ "allowNo": true,
1125
+ "type": "boolean"
1126
+ }
1127
+ },
1128
+ "hasDynamicHelp": false,
1129
+ "hiddenAliases": [],
1130
+ "id": "cors:add",
1131
+ "pluginAlias": "@sanity/cli",
1132
+ "pluginName": "@sanity/cli",
1133
+ "pluginType": "core",
1134
+ "strict": true,
1135
+ "isESM": true,
1136
+ "relativePath": [
1137
+ "dist",
1138
+ "commands",
1139
+ "cors",
1140
+ "add.js"
1141
+ ]
1142
+ },
1143
+ "cors:delete": {
1144
+ "aliases": [],
1145
+ "args": {
1146
+ "origin": {
1147
+ "description": "Origin to delete (will prompt if not provided)",
1148
+ "name": "origin",
1149
+ "required": false
1150
+ }
1151
+ },
1152
+ "description": "Delete an existing CORS origin from your project",
1153
+ "examples": [
1154
+ {
1155
+ "command": "<%= config.bin %> <%= command.id %>",
1156
+ "description": "Interactively select and delete a CORS origin"
1157
+ },
1158
+ {
1159
+ "command": "<%= config.bin %> <%= command.id %> https://example.com",
1160
+ "description": "Delete a specific CORS origin"
1161
+ }
1162
+ ],
1163
+ "flags": {},
1164
+ "hasDynamicHelp": false,
1165
+ "hiddenAliases": [],
1166
+ "id": "cors:delete",
1167
+ "pluginAlias": "@sanity/cli",
1168
+ "pluginName": "@sanity/cli",
1169
+ "pluginType": "core",
1170
+ "strict": true,
1171
+ "isESM": true,
1172
+ "relativePath": [
1173
+ "dist",
1174
+ "commands",
1175
+ "cors",
1176
+ "delete.js"
1177
+ ]
1178
+ },
1179
+ "cors:list": {
1180
+ "aliases": [],
1181
+ "args": {},
1182
+ "description": "List all origins allowed to access the API for this project",
1183
+ "examples": [
1184
+ {
1185
+ "command": "<%= config.bin %> <%= command.id %>",
1186
+ "description": "List CORS origins for the current project"
1187
+ }
1188
+ ],
1189
+ "flags": {},
1190
+ "hasDynamicHelp": false,
1191
+ "hiddenAliases": [],
1192
+ "id": "cors:list",
1193
+ "pluginAlias": "@sanity/cli",
1194
+ "pluginName": "@sanity/cli",
1195
+ "pluginType": "core",
1196
+ "strict": true,
1197
+ "isESM": true,
1198
+ "relativePath": [
1199
+ "dist",
1200
+ "commands",
1201
+ "cors",
1202
+ "list.js"
1203
+ ]
1204
+ },
1205
+ "dataset:copy": {
1206
+ "aliases": [],
1207
+ "args": {
1208
+ "source": {
1209
+ "description": "Name of the dataset to copy from",
1210
+ "name": "source",
1211
+ "required": false
1212
+ },
1213
+ "target": {
1214
+ "description": "Name of the dataset to copy to",
1215
+ "name": "target",
1216
+ "required": false
1217
+ }
1218
+ },
1219
+ "description": "Manages dataset copying, including starting a new copy job, listing copy jobs and following the progress of a running copy job",
1220
+ "examples": [
1221
+ {
1222
+ "command": "<%= config.bin %> <%= command.id %>",
1223
+ "description": "Interactively copy a dataset"
1224
+ },
1225
+ {
1226
+ "command": "<%= config.bin %> <%= command.id %> source-dataset",
1227
+ "description": "Copy from source-dataset (prompts for target)"
1228
+ },
1229
+ {
1230
+ "command": "<%= config.bin %> <%= command.id %> source-dataset target-dataset",
1231
+ "description": "Copy from source-dataset to target-dataset"
1232
+ },
1233
+ {
1234
+ "command": "<%= config.bin %> <%= command.id %> --skip-history source target",
1235
+ "description": "Copy without preserving document history (faster for large datasets)"
1236
+ },
1237
+ {
1238
+ "command": "<%= config.bin %> <%= command.id %> --detach source target",
1239
+ "description": "Start copy job without waiting for completion"
1240
+ },
1241
+ {
1242
+ "command": "<%= config.bin %> <%= command.id %> --attach <job-id>",
1243
+ "description": "Attach to a running copy job to follow progress"
1244
+ },
1245
+ {
1246
+ "command": "<%= config.bin %> <%= command.id %> --list",
1247
+ "description": "List all dataset copy jobs"
1248
+ },
1249
+ {
1250
+ "command": "<%= config.bin %> <%= command.id %> --list --offset 2 --limit 10",
1251
+ "description": "List copy jobs with pagination"
1252
+ }
1253
+ ],
1254
+ "flags": {
1255
+ "attach": {
1256
+ "description": "Attach to the running copy process to show progress",
1257
+ "exclusive": [
1258
+ "list",
1259
+ "detach",
1260
+ "skip-history"
1261
+ ],
1262
+ "name": "attach",
1263
+ "required": false,
1264
+ "hasDynamicHelp": false,
1265
+ "multiple": false,
1266
+ "type": "option"
1267
+ },
1268
+ "detach": {
1269
+ "description": "Start the copy without waiting for it to finish",
1270
+ "exclusive": [
1271
+ "list",
1272
+ "attach"
1273
+ ],
1274
+ "name": "detach",
1275
+ "required": false,
1276
+ "allowNo": false,
1277
+ "type": "boolean"
1278
+ },
1279
+ "limit": {
1280
+ "dependsOn": [
1281
+ "list"
1282
+ ],
1283
+ "description": "Maximum number of jobs returned (default 10, max 1000)",
1284
+ "name": "limit",
1285
+ "required": false,
1286
+ "hasDynamicHelp": false,
1287
+ "multiple": false,
1288
+ "type": "option"
1289
+ },
1290
+ "list": {
1291
+ "description": "Lists all dataset copy jobs",
1292
+ "exclusive": [
1293
+ "attach",
1294
+ "detach",
1295
+ "skip-history"
1296
+ ],
1297
+ "name": "list",
1298
+ "required": false,
1299
+ "allowNo": false,
1300
+ "type": "boolean"
1301
+ },
1302
+ "offset": {
1303
+ "dependsOn": [
1304
+ "list"
1305
+ ],
1306
+ "description": "Start position in the list of jobs (default 0)",
1307
+ "name": "offset",
1308
+ "required": false,
1309
+ "hasDynamicHelp": false,
1310
+ "multiple": false,
1311
+ "type": "option"
1312
+ },
1313
+ "skip-history": {
1314
+ "description": "Don't preserve document history on copy",
1315
+ "exclusive": [
1316
+ "list",
1317
+ "attach"
1318
+ ],
1319
+ "name": "skip-history",
1320
+ "required": false,
1321
+ "allowNo": false,
1322
+ "type": "boolean"
1323
+ }
1324
+ },
1325
+ "hasDynamicHelp": false,
1326
+ "hiddenAliases": [],
1327
+ "id": "dataset:copy",
1328
+ "pluginAlias": "@sanity/cli",
1329
+ "pluginName": "@sanity/cli",
1330
+ "pluginType": "core",
1331
+ "strict": true,
1332
+ "isESM": true,
1333
+ "relativePath": [
1334
+ "dist",
1335
+ "commands",
1336
+ "dataset",
1337
+ "copy.js"
1338
+ ]
1339
+ },
1340
+ "dataset:create": {
1341
+ "aliases": [],
1342
+ "args": {
1343
+ "name": {
1344
+ "description": "Name of the dataset to create",
1345
+ "name": "name",
1346
+ "required": false
1347
+ }
1348
+ },
1349
+ "description": "Create a new dataset within your project",
1350
+ "examples": [
1351
+ {
1352
+ "command": "<%= config.bin %> <%= command.id %>",
1353
+ "description": "Interactively create a dataset"
1354
+ },
1355
+ {
1356
+ "command": "<%= config.bin %> <%= command.id %> my-dataset",
1357
+ "description": "Create a dataset named \"my-dataset\""
1358
+ },
1359
+ {
1360
+ "command": "<%= config.bin %> <%= command.id %> my-dataset --visibility private",
1361
+ "description": "Create a private dataset named \"my-dataset\""
1362
+ }
1363
+ ],
1364
+ "flags": {
1365
+ "visibility": {
1366
+ "description": "Set visibility for this dataset (custom/private/public)",
1367
+ "name": "visibility",
1368
+ "required": false,
1369
+ "hasDynamicHelp": false,
1370
+ "multiple": false,
1371
+ "options": [
1372
+ "custom",
1373
+ "private",
1374
+ "public"
1375
+ ],
1376
+ "type": "option"
1377
+ }
1378
+ },
1379
+ "hasDynamicHelp": false,
1380
+ "hiddenAliases": [],
1381
+ "id": "dataset:create",
1382
+ "pluginAlias": "@sanity/cli",
1383
+ "pluginName": "@sanity/cli",
1384
+ "pluginType": "core",
1385
+ "strict": true,
1386
+ "isESM": true,
1387
+ "relativePath": [
1388
+ "dist",
1389
+ "commands",
1390
+ "dataset",
1391
+ "create.js"
1392
+ ]
1393
+ },
1394
+ "dataset:delete": {
1395
+ "aliases": [],
1396
+ "args": {
1397
+ "datasetName": {
1398
+ "description": "Dataset name to delete",
1399
+ "name": "datasetName",
1400
+ "required": true
1401
+ }
1402
+ },
1403
+ "description": "Delete a dataset within your project",
1404
+ "examples": [
1405
+ {
1406
+ "command": "<%= config.bin %> <%= command.id %> my-dataset",
1407
+ "description": "Delete a specific dataset"
1408
+ },
1409
+ {
1410
+ "command": "<%= config.bin %> <%= command.id %> my-dataset --force",
1411
+ "description": "Delete a specific dataset without confirmation"
1412
+ }
1413
+ ],
1414
+ "flags": {
1415
+ "force": {
1416
+ "description": "Do not prompt for delete confirmation - forcefully delete",
1417
+ "name": "force",
1418
+ "required": false,
1419
+ "allowNo": false,
1420
+ "type": "boolean"
1421
+ }
1422
+ },
1423
+ "hasDynamicHelp": false,
1424
+ "hiddenAliases": [],
1425
+ "id": "dataset:delete",
1426
+ "pluginAlias": "@sanity/cli",
1427
+ "pluginName": "@sanity/cli",
1428
+ "pluginType": "core",
1429
+ "strict": true,
1430
+ "isESM": true,
1431
+ "relativePath": [
1432
+ "dist",
1433
+ "commands",
1434
+ "dataset",
1435
+ "delete.js"
1436
+ ]
1437
+ },
1438
+ "dataset:export": {
1439
+ "aliases": [],
1440
+ "args": {
1441
+ "name": {
1442
+ "description": "Name of the dataset to export",
1443
+ "name": "name"
1444
+ },
1445
+ "destination": {
1446
+ "description": "Output destination file path",
1447
+ "name": "destination"
1448
+ }
1449
+ },
1450
+ "description": "Export dataset to local filesystem as a gzipped tarball. Assets failing with HTTP status codes 401, 403 and 404 upon download are ignored and excluded from export.",
1451
+ "examples": [
1452
+ {
1453
+ "command": "<%= config.bin %> <%= command.id %> moviedb localPath.tar.gz",
1454
+ "description": "Export dataset \"moviedb\" to localPath.tar.gz"
1455
+ },
1456
+ {
1457
+ "command": "<%= config.bin %> <%= command.id %> moviedb assetless.tar.gz --no-assets",
1458
+ "description": "Export dataset without assets"
1459
+ },
1460
+ {
1461
+ "command": "<%= config.bin %> <%= command.id %> staging staging.tar.gz --raw",
1462
+ "description": "Export raw documents without asset reference rewriting"
1463
+ },
1464
+ {
1465
+ "command": "<%= config.bin %> <%= command.id %> staging staging.tar.gz --types products,shops",
1466
+ "description": "Export specific document types"
1467
+ }
1468
+ ],
1469
+ "flags": {
1470
+ "asset-concurrency": {
1471
+ "description": "Concurrent number of asset downloads",
1472
+ "name": "asset-concurrency",
1473
+ "default": 8,
1474
+ "hasDynamicHelp": false,
1475
+ "multiple": false,
1476
+ "type": "option"
1477
+ },
1478
+ "mode": {
1479
+ "description": "Mode to export documents with `cursor` might be more performant for larger datasets, but might not be as accurate if the dataset is being modified during export",
1480
+ "name": "mode",
1481
+ "default": "stream",
1482
+ "hasDynamicHelp": false,
1483
+ "multiple": false,
1484
+ "options": [
1485
+ "stream",
1486
+ "cursor"
1487
+ ],
1488
+ "type": "option"
1489
+ },
1490
+ "no-assets": {
1491
+ "description": "Export only non-asset documents and remove references to image assets",
1492
+ "name": "no-assets",
1493
+ "allowNo": false,
1494
+ "type": "boolean"
1495
+ },
1496
+ "no-compress": {
1497
+ "description": "Skips compressing tarball entries (still generates a gzip file)",
1498
+ "name": "no-compress",
1499
+ "allowNo": false,
1500
+ "type": "boolean"
1501
+ },
1502
+ "no-drafts": {
1503
+ "description": "Export only published versions of documents",
1504
+ "name": "no-drafts",
1505
+ "allowNo": false,
1506
+ "type": "boolean"
1507
+ },
1508
+ "overwrite": {
1509
+ "description": "Overwrite any file with the same name",
1510
+ "name": "overwrite",
1511
+ "allowNo": false,
1512
+ "type": "boolean"
1513
+ },
1514
+ "raw": {
1515
+ "description": "Extract only documents, without rewriting asset references",
1516
+ "name": "raw",
1517
+ "allowNo": false,
1518
+ "type": "boolean"
1519
+ },
1520
+ "types": {
1521
+ "description": "Defines which document types to export (comma-separated)",
1522
+ "name": "types",
1523
+ "hasDynamicHelp": false,
1524
+ "multiple": false,
1525
+ "type": "option"
1526
+ }
1527
+ },
1528
+ "hasDynamicHelp": false,
1529
+ "hiddenAliases": [],
1530
+ "id": "dataset:export",
1531
+ "pluginAlias": "@sanity/cli",
1532
+ "pluginName": "@sanity/cli",
1533
+ "pluginType": "core",
1534
+ "strict": true,
1535
+ "isESM": true,
1536
+ "relativePath": [
1537
+ "dist",
1538
+ "commands",
1539
+ "dataset",
1540
+ "export.js"
1541
+ ]
1542
+ },
1543
+ "dataset:import": {
1544
+ "aliases": [],
1545
+ "args": {
1546
+ "source": {
1547
+ "description": "Source file (use \"-\" for stdin)",
1548
+ "name": "source",
1549
+ "required": true
1550
+ }
1551
+ },
1552
+ "description": "Import documents to a Sanity dataset",
1553
+ "examples": [
1554
+ {
1555
+ "description": "Import \"./my-dataset.ndjson\" into dataset \"staging\"",
1556
+ "command": "<%= config.bin %> <%= command.id %> -p myPrOj -d staging -t someSecretToken my-dataset.ndjson"
1557
+ },
1558
+ {
1559
+ "description": "Import into dataset \"test\" from stdin, read token from env var",
1560
+ "command": "cat my-dataset.ndjson | <%= config.bin %> <%= command.id %> -p myPrOj -d test -"
1561
+ }
1562
+ ],
1563
+ "flags": {
1564
+ "project": {
1565
+ "char": "p",
1566
+ "description": "Project ID to import to",
1567
+ "name": "project",
1568
+ "required": true,
1569
+ "hasDynamicHelp": false,
1570
+ "multiple": false,
1571
+ "type": "option"
1572
+ },
1573
+ "dataset": {
1574
+ "char": "d",
1575
+ "description": "Dataset to import to",
1576
+ "name": "dataset",
1577
+ "required": true,
1578
+ "hasDynamicHelp": false,
1579
+ "multiple": false,
1580
+ "type": "option"
1581
+ },
1582
+ "token": {
1583
+ "char": "t",
1584
+ "description": "Token to authenticate with",
1585
+ "env": "SANITY_IMPORT_TOKEN",
1586
+ "name": "token",
1587
+ "required": false,
1588
+ "hasDynamicHelp": false,
1589
+ "multiple": false,
1590
+ "type": "option"
1591
+ },
1592
+ "replace": {
1593
+ "description": "Replace documents with the same IDs",
1594
+ "exclusive": [
1595
+ "missing"
1596
+ ],
1597
+ "name": "replace",
1598
+ "allowNo": false,
1599
+ "type": "boolean"
1600
+ },
1601
+ "missing": {
1602
+ "description": "Skip documents that already exist",
1603
+ "exclusive": [
1604
+ "replace"
1605
+ ],
1606
+ "name": "missing",
1607
+ "allowNo": false,
1608
+ "type": "boolean"
1609
+ },
1610
+ "allow-failing-assets": {
1611
+ "description": "Skip assets that cannot be fetched/uploaded",
1612
+ "name": "allow-failing-assets",
1613
+ "allowNo": false,
1614
+ "type": "boolean"
1615
+ },
1616
+ "allow-assets-in-different-dataset": {
1617
+ "description": "Allow asset documents to reference different project/dataset",
1618
+ "name": "allow-assets-in-different-dataset",
1619
+ "allowNo": false,
1620
+ "type": "boolean"
1621
+ },
1622
+ "replace-assets": {
1623
+ "description": "Skip reuse of existing assets",
1624
+ "name": "replace-assets",
1625
+ "allowNo": false,
1626
+ "type": "boolean"
1627
+ },
1628
+ "skip-cross-dataset-references": {
1629
+ "description": "Skips references to other datasets",
1630
+ "name": "skip-cross-dataset-references",
1631
+ "allowNo": false,
1632
+ "type": "boolean"
1633
+ },
1634
+ "allow-system-documents": {
1635
+ "description": "Imports system documents",
1636
+ "name": "allow-system-documents",
1637
+ "allowNo": false,
1638
+ "type": "boolean"
1639
+ },
1640
+ "asset-concurrency": {
1641
+ "description": "Number of parallel asset imports",
1642
+ "name": "asset-concurrency",
1643
+ "hasDynamicHelp": false,
1644
+ "multiple": false,
1645
+ "type": "option"
1646
+ }
1647
+ },
1648
+ "hasDynamicHelp": false,
1649
+ "hiddenAliases": [],
1650
+ "id": "dataset:import",
1651
+ "pluginAlias": "@sanity/cli",
1652
+ "pluginName": "@sanity/cli",
1653
+ "pluginType": "core",
1654
+ "strict": true,
1655
+ "isESM": true,
1656
+ "relativePath": [
1657
+ "dist",
1658
+ "commands",
1659
+ "dataset",
1660
+ "import.js"
1661
+ ]
1662
+ },
1663
+ "dataset:list": {
1664
+ "aliases": [],
1665
+ "args": {},
1666
+ "description": "List datasets of your project",
1667
+ "examples": [
1668
+ {
1669
+ "command": "<%= config.bin %> <%= command.id %>",
1670
+ "description": "List datasets of your project"
1671
+ }
1672
+ ],
1673
+ "flags": {},
1674
+ "hasDynamicHelp": false,
1675
+ "hiddenAliases": [],
1676
+ "id": "dataset:list",
1677
+ "pluginAlias": "@sanity/cli",
1678
+ "pluginName": "@sanity/cli",
1679
+ "pluginType": "core",
1680
+ "strict": true,
1681
+ "isESM": true,
1682
+ "relativePath": [
1683
+ "dist",
1684
+ "commands",
1685
+ "dataset",
1686
+ "list.js"
1687
+ ]
1688
+ },
1689
+ "docs:browse": {
1690
+ "aliases": [],
1691
+ "args": {},
1692
+ "description": "Open Sanity docs in a web browser",
1693
+ "flags": {},
1694
+ "hasDynamicHelp": false,
1695
+ "hiddenAliases": [],
1696
+ "id": "docs:browse",
1697
+ "pluginAlias": "@sanity/cli",
1698
+ "pluginName": "@sanity/cli",
1699
+ "pluginType": "core",
1700
+ "strict": true,
1701
+ "enableJsonFlag": false,
1702
+ "isESM": true,
1703
+ "relativePath": [
1704
+ "dist",
1705
+ "commands",
1706
+ "docs",
1707
+ "browse.js"
1708
+ ]
1709
+ },
1710
+ "docs:read": {
1711
+ "aliases": [],
1712
+ "args": {
1713
+ "path": {
1714
+ "description": "Path or URL to article, found in search results and docs content as links",
1715
+ "name": "path",
1716
+ "required": true
1717
+ }
1718
+ },
1719
+ "description": "Read an article in terminal",
1720
+ "examples": [
1721
+ {
1722
+ "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation",
1723
+ "description": "Read as markdown in terminal"
1724
+ },
1725
+ {
1726
+ "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation",
1727
+ "description": "Read using full URL"
1728
+ },
1729
+ {
1730
+ "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation --web",
1731
+ "description": "Open in web browser"
1732
+ },
1733
+ {
1734
+ "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation -w",
1735
+ "description": "Open using full URL in web browser"
1736
+ }
1737
+ ],
1738
+ "flags": {
1739
+ "web": {
1740
+ "aliases": [
1741
+ "w"
1742
+ ],
1743
+ "description": "Open in a web browser",
1744
+ "name": "web",
1745
+ "allowNo": false,
1746
+ "type": "boolean"
1747
+ }
1748
+ },
1749
+ "hasDynamicHelp": false,
1750
+ "hiddenAliases": [],
1751
+ "id": "docs:read",
1752
+ "pluginAlias": "@sanity/cli",
1753
+ "pluginName": "@sanity/cli",
1754
+ "pluginType": "core",
1755
+ "strict": true,
1756
+ "isESM": true,
1757
+ "relativePath": [
1758
+ "dist",
1759
+ "commands",
1760
+ "docs",
1761
+ "read.js"
1762
+ ]
1763
+ },
1764
+ "docs:search": {
1765
+ "aliases": [],
1766
+ "args": {
1767
+ "query": {
1768
+ "description": "Search query for documentation",
1769
+ "name": "query",
1770
+ "required": true
1771
+ }
1772
+ },
1773
+ "description": "Search Sanity docs",
1774
+ "examples": [
1775
+ {
1776
+ "command": "<%= config.bin %> <%= command.id %> schema",
1777
+ "description": "Search for documentation about schemas"
1778
+ },
1779
+ {
1780
+ "command": "<%= config.bin %> <%= command.id %> \"groq functions\"",
1781
+ "description": "Search with phrase"
1782
+ },
1783
+ {
1784
+ "command": "<%= config.bin %> <%= command.id %> \"deployment\" --limit=5",
1785
+ "description": "Limit search results"
1786
+ }
1787
+ ],
1788
+ "flags": {
1789
+ "limit": {
1790
+ "description": "Maximum number of results to return",
1791
+ "name": "limit",
1792
+ "default": 10,
1793
+ "hasDynamicHelp": false,
1794
+ "multiple": false,
1795
+ "type": "option"
1796
+ }
1797
+ },
1798
+ "hasDynamicHelp": false,
1799
+ "hiddenAliases": [],
1800
+ "id": "docs:search",
1801
+ "pluginAlias": "@sanity/cli",
1802
+ "pluginName": "@sanity/cli",
1803
+ "pluginType": "core",
1804
+ "strict": true,
1805
+ "isESM": true,
1806
+ "relativePath": [
1807
+ "dist",
1808
+ "commands",
1809
+ "docs",
1810
+ "search.js"
1811
+ ]
1812
+ },
1813
+ "documents:create": {
1814
+ "aliases": [],
1815
+ "args": {
1816
+ "file": {
1817
+ "description": "JSON file to create document(s) from",
1818
+ "name": "file",
1819
+ "required": false
1820
+ }
1821
+ },
1822
+ "description": "Create one or more documents",
1823
+ "examples": [
1824
+ {
1825
+ "command": "<%= config.bin %> <%= command.id %> myDocument.json",
1826
+ "description": "Create the document specified in \"myDocument.json\""
1827
+ },
1828
+ {
1829
+ "command": "<%= config.bin %> <%= command.id %>",
1830
+ "description": "Open configured $EDITOR and create the specified document(s)"
1831
+ },
1832
+ {
1833
+ "command": "<%= config.bin %> <%= command.id %> --id myDocId --replace",
1834
+ "description": "Fetch document with the ID \"myDocId\" and open configured $EDITOR with the current document content (if any). Replace document with the edited version when the editor closes"
1835
+ },
1836
+ {
1837
+ "command": "<%= config.bin %> <%= command.id %> --id myDocId --watch --replace --json5",
1838
+ "description": "Open configured $EDITOR and replace the document with the given content on each save. Use JSON5 file extension and parser for simplified syntax."
1839
+ }
1840
+ ],
1841
+ "flags": {
1842
+ "dataset": {
1843
+ "char": "d",
1844
+ "description": "Dataset to create document(s) in (overrides config)",
1845
+ "name": "dataset",
1846
+ "hasDynamicHelp": false,
1847
+ "multiple": false,
1848
+ "type": "option"
1849
+ },
1850
+ "id": {
1851
+ "description": "Specify a document ID to use. Will fetch remote document ID and populate editor.",
1852
+ "name": "id",
1853
+ "hasDynamicHelp": false,
1854
+ "multiple": false,
1855
+ "type": "option"
1856
+ },
1857
+ "json5": {
1858
+ "description": "Use JSON5 file type to allow a \"simplified\" version of JSON",
1859
+ "name": "json5",
1860
+ "allowNo": false,
1861
+ "type": "boolean"
1862
+ },
1863
+ "missing": {
1864
+ "description": "On duplicate document IDs, don't modify the target document(s)",
1865
+ "name": "missing",
1866
+ "allowNo": false,
1867
+ "type": "boolean"
1868
+ },
1869
+ "replace": {
1870
+ "description": "On duplicate document IDs, replace existing document with specified document(s)",
1871
+ "name": "replace",
1872
+ "allowNo": false,
1873
+ "type": "boolean"
1874
+ },
1875
+ "watch": {
1876
+ "description": "Write the documents whenever the target file or buffer changes",
1877
+ "name": "watch",
1878
+ "allowNo": false,
1879
+ "type": "boolean"
1880
+ }
1881
+ },
1882
+ "hasDynamicHelp": false,
1883
+ "hiddenAliases": [],
1884
+ "id": "documents:create",
1885
+ "pluginAlias": "@sanity/cli",
1886
+ "pluginName": "@sanity/cli",
1887
+ "pluginType": "core",
1888
+ "strict": true,
1889
+ "isESM": true,
1890
+ "relativePath": [
1891
+ "dist",
1892
+ "commands",
1893
+ "documents",
1894
+ "create.js"
1895
+ ]
1896
+ },
1897
+ "documents:delete": {
1898
+ "aliases": [],
1899
+ "args": {
1900
+ "id": {
1901
+ "description": "Document ID to delete",
1902
+ "name": "id",
1903
+ "required": true
1904
+ },
1905
+ "ids": {
1906
+ "description": "Additional document IDs to delete",
1907
+ "name": "ids",
1908
+ "required": false
1909
+ }
1910
+ },
1911
+ "description": "Delete one or more documents from the projects configured dataset",
1912
+ "examples": [
1913
+ {
1914
+ "command": "<%= config.bin %> <%= command.id %> myDocId",
1915
+ "description": "Delete the document with the ID \"myDocId\""
1916
+ },
1917
+ {
1918
+ "command": "<%= config.bin %> <%= command.id %> 'myDocId'",
1919
+ "description": "ID wrapped in double or single quote works equally well"
1920
+ },
1921
+ {
1922
+ "command": "<%= config.bin %> <%= command.id %> --dataset=blog someDocId",
1923
+ "description": "Delete document with ID \"someDocId\" from dataset \"blog\""
1924
+ },
1925
+ {
1926
+ "command": "<%= config.bin %> <%= command.id %> doc1 doc2",
1927
+ "description": "Delete the document with ID \"doc1\" and \"doc2\""
1928
+ }
1929
+ ],
1930
+ "flags": {
1931
+ "dataset": {
1932
+ "description": "NAME to override dataset",
1933
+ "name": "dataset",
1934
+ "hasDynamicHelp": false,
1935
+ "multiple": false,
1936
+ "type": "option"
1937
+ }
1938
+ },
1939
+ "hasDynamicHelp": false,
1940
+ "hiddenAliases": [],
1941
+ "id": "documents:delete",
1942
+ "pluginAlias": "@sanity/cli",
1943
+ "pluginName": "@sanity/cli",
1944
+ "pluginType": "core",
1945
+ "strict": false,
1946
+ "isESM": true,
1947
+ "relativePath": [
1948
+ "dist",
1949
+ "commands",
1950
+ "documents",
1951
+ "delete.js"
1952
+ ]
1953
+ },
1954
+ "documents:get": {
1955
+ "aliases": [],
1956
+ "args": {
1957
+ "documentId": {
1958
+ "description": "Document ID to retrieve",
1959
+ "name": "documentId",
1960
+ "required": true
1961
+ }
1962
+ },
1963
+ "description": "Get and print a document by ID",
1964
+ "examples": [
1965
+ {
1966
+ "command": "<%= config.bin %> <%= command.id %> myDocId",
1967
+ "description": "Get the document with ID \"myDocId\""
1968
+ },
1969
+ {
1970
+ "command": "<%= config.bin %> <%= command.id %> myDocId --pretty",
1971
+ "description": "Get document with colorized JSON output"
1972
+ },
1973
+ {
1974
+ "command": "<%= config.bin %> <%= command.id %> myDocId --dataset production",
1975
+ "description": "Get document from a specific dataset"
1976
+ }
1977
+ ],
1978
+ "flags": {
1979
+ "dataset": {
1980
+ "char": "d",
1981
+ "description": "Dataset to get document from (overrides config)",
1982
+ "name": "dataset",
1983
+ "hasDynamicHelp": false,
1984
+ "multiple": false,
1985
+ "type": "option"
1986
+ },
1987
+ "pretty": {
1988
+ "description": "Colorize JSON output",
1989
+ "name": "pretty",
1990
+ "allowNo": false,
1991
+ "type": "boolean"
1992
+ }
1993
+ },
1994
+ "hasDynamicHelp": false,
1995
+ "hiddenAliases": [],
1996
+ "id": "documents:get",
1997
+ "pluginAlias": "@sanity/cli",
1998
+ "pluginName": "@sanity/cli",
1999
+ "pluginType": "core",
2000
+ "strict": true,
2001
+ "isESM": true,
2002
+ "relativePath": [
2003
+ "dist",
2004
+ "commands",
2005
+ "documents",
2006
+ "get.js"
2007
+ ]
2008
+ },
2009
+ "documents:query": {
2010
+ "aliases": [],
2011
+ "args": {
2012
+ "query": {
2013
+ "description": "GROQ query to run against the dataset",
2014
+ "name": "query",
2015
+ "required": true
2016
+ }
2017
+ },
2018
+ "description": "Query for documents",
2019
+ "examples": [
2020
+ {
2021
+ "command": "<%= config.bin %> <%= command.id %> '*[_type == \"movie\"][0..4]'",
2022
+ "description": "Fetch 5 documents of type \"movie\""
2023
+ },
2024
+ {
2025
+ "command": "<%= config.bin %> <%= command.id %> '*[_type == \"movie\"]|order(releaseDate asc)[0]{title}' --dataset staging",
2026
+ "description": "Fetch title of the oldest movie in the dataset named \"staging\""
2027
+ },
2028
+ {
2029
+ "command": "<%= config.bin %> <%= command.id %> '*[_id == \"header\"] { \"headerText\": pt::text(body) }' --api-version v2021-06-07",
2030
+ "description": "Use API version v2021-06-07 and do a query"
2031
+ }
2032
+ ],
2033
+ "flags": {
2034
+ "anonymous": {
2035
+ "description": "Send the query without any authorization token",
2036
+ "name": "anonymous",
2037
+ "allowNo": false,
2038
+ "type": "boolean"
2039
+ },
2040
+ "api-version": {
2041
+ "description": "API version to use (defaults to 2025-08-15)",
2042
+ "env": "SANITY_CLI_QUERY_API_VERSION",
2043
+ "name": "api-version",
2044
+ "hasDynamicHelp": false,
2045
+ "multiple": false,
2046
+ "type": "option"
2047
+ },
2048
+ "dataset": {
2049
+ "char": "d",
2050
+ "description": "Dataset to query (overrides config)",
2051
+ "name": "dataset",
2052
+ "hasDynamicHelp": false,
2053
+ "multiple": false,
2054
+ "type": "option"
2055
+ },
2056
+ "pretty": {
2057
+ "description": "Colorize JSON output",
2058
+ "name": "pretty",
2059
+ "allowNo": false,
2060
+ "type": "boolean"
2061
+ },
2062
+ "project": {
2063
+ "char": "p",
2064
+ "description": "Project ID to query (overrides config)",
2065
+ "name": "project",
2066
+ "hasDynamicHelp": false,
2067
+ "multiple": false,
2068
+ "type": "option"
2069
+ }
2070
+ },
2071
+ "hasDynamicHelp": false,
2072
+ "hiddenAliases": [],
2073
+ "id": "documents:query",
2074
+ "pluginAlias": "@sanity/cli",
2075
+ "pluginName": "@sanity/cli",
2076
+ "pluginType": "core",
2077
+ "strict": true,
2078
+ "isESM": true,
2079
+ "relativePath": [
2080
+ "dist",
2081
+ "commands",
2082
+ "documents",
2083
+ "query.js"
2084
+ ]
2085
+ },
2086
+ "documents:validate": {
2087
+ "aliases": [],
2088
+ "args": {},
2089
+ "description": "Validate documents in a dataset against the studio schema",
2090
+ "examples": [
2091
+ {
2092
+ "command": "<%= config.bin %> <%= command.id %> --workspace default",
2093
+ "description": "Validates all documents in a Sanity project with more than one workspace"
2094
+ },
2095
+ {
2096
+ "command": "<%= config.bin %> <%= command.id %> --workspace default --dataset staging",
2097
+ "description": "Override the dataset specified in the workspace"
2098
+ },
2099
+ {
2100
+ "command": "<%= config.bin %> <%= command.id %> --yes > report.txt",
2101
+ "description": "Save the results of the report into a file"
2102
+ },
2103
+ {
2104
+ "command": "<%= config.bin %> <%= command.id %> --level info",
2105
+ "description": "Report out info level validation markers too"
2106
+ }
2107
+ ],
2108
+ "flags": {
2109
+ "dataset": {
2110
+ "char": "d",
2111
+ "description": "Override the dataset used. By default, this is derived from the given workspace",
2112
+ "name": "dataset",
2113
+ "hasDynamicHelp": false,
2114
+ "multiple": false,
2115
+ "type": "option"
2116
+ },
2117
+ "file": {
2118
+ "description": "Provide a path to either an .ndjson file or a tarball containing an .ndjson file",
2119
+ "name": "file",
2120
+ "hasDynamicHelp": false,
2121
+ "multiple": false,
2122
+ "type": "option"
2123
+ },
2124
+ "format": {
2125
+ "description": "The output format used to print the found validation markers and report progress",
2126
+ "name": "format",
2127
+ "hasDynamicHelp": false,
2128
+ "multiple": false,
2129
+ "type": "option"
2130
+ },
2131
+ "level": {
2132
+ "description": "The minimum level reported out. Defaults to warning",
2133
+ "name": "level",
2134
+ "default": "warning",
2135
+ "hasDynamicHelp": false,
2136
+ "multiple": false,
2137
+ "options": [
2138
+ "error",
2139
+ "warning",
2140
+ "info"
2141
+ ],
2142
+ "type": "option"
2143
+ },
2144
+ "max-custom-validation-concurrency": {
2145
+ "description": "Specify how many custom validators can run concurrently",
2146
+ "name": "max-custom-validation-concurrency",
2147
+ "default": 5,
2148
+ "hasDynamicHelp": false,
2149
+ "multiple": false,
2150
+ "type": "option"
2151
+ },
2152
+ "max-fetch-concurrency": {
2153
+ "description": "Specify how many `client.fetch` requests are allow concurrency at once",
2154
+ "name": "max-fetch-concurrency",
2155
+ "default": 25,
2156
+ "hasDynamicHelp": false,
2157
+ "multiple": false,
2158
+ "type": "option"
2159
+ },
2160
+ "workspace": {
2161
+ "description": "The name of the workspace to use when downloading and validating all documents",
2162
+ "name": "workspace",
2163
+ "hasDynamicHelp": false,
2164
+ "multiple": false,
2165
+ "type": "option"
2166
+ },
2167
+ "yes": {
2168
+ "char": "y",
2169
+ "description": "Skips the first confirmation prompt",
2170
+ "name": "yes",
2171
+ "allowNo": false,
2172
+ "type": "boolean"
2173
+ }
2174
+ },
2175
+ "hasDynamicHelp": false,
2176
+ "hiddenAliases": [],
2177
+ "id": "documents:validate",
2178
+ "pluginAlias": "@sanity/cli",
2179
+ "pluginName": "@sanity/cli",
2180
+ "pluginType": "core",
2181
+ "strict": true,
2182
+ "isESM": true,
2183
+ "relativePath": [
2184
+ "dist",
2185
+ "commands",
2186
+ "documents",
2187
+ "validate.js"
2188
+ ]
2189
+ },
2190
+ "graphql:list": {
2191
+ "aliases": [],
2192
+ "args": {},
2193
+ "description": "List all GraphQL endpoints deployed for this project",
2194
+ "examples": [
2195
+ {
2196
+ "command": "<%= config.bin %> <%= command.id %>",
2197
+ "description": "List GraphQL endpoints for the current project"
2198
+ }
2199
+ ],
2200
+ "flags": {},
2201
+ "hasDynamicHelp": false,
2202
+ "hiddenAliases": [],
2203
+ "id": "graphql:list",
2204
+ "pluginAlias": "@sanity/cli",
2205
+ "pluginName": "@sanity/cli",
2206
+ "pluginType": "core",
2207
+ "strict": true,
2208
+ "isESM": true,
2209
+ "relativePath": [
2210
+ "dist",
2211
+ "commands",
2212
+ "graphql",
2213
+ "list.js"
2214
+ ]
2215
+ },
2216
+ "graphql:undeploy": {
2217
+ "aliases": [],
2218
+ "args": {},
2219
+ "description": "Remove a deployed GraphQL API",
2220
+ "examples": [
2221
+ {
2222
+ "command": "<%= config.bin %> <%= command.id %>",
2223
+ "description": "Undeploy GraphQL API for current project and dataset"
2224
+ },
2225
+ {
2226
+ "command": "<%= config.bin %> <%= command.id %> --api ios",
2227
+ "description": "Undeploy API with ID \"ios\""
2228
+ },
2229
+ {
2230
+ "command": "<%= config.bin %> <%= command.id %> --dataset staging",
2231
+ "description": "Undeploy GraphQL API for staging dataset"
2232
+ },
2233
+ {
2234
+ "command": "<%= config.bin %> <%= command.id %> --dataset staging --tag next",
2235
+ "description": "Undeploy GraphQL API for staging dataset with \"next\" tag"
2236
+ },
2237
+ {
2238
+ "command": "<%= config.bin %> <%= command.id %> --force",
2239
+ "description": "Undeploy GraphQL API without confirmation prompt"
2240
+ }
2241
+ ],
2242
+ "flags": {
2243
+ "api": {
2244
+ "description": "Undeploy API with this ID (project, dataset and tag flags take precedence)",
2245
+ "name": "api",
2246
+ "required": false,
2247
+ "hasDynamicHelp": false,
2248
+ "multiple": false,
2249
+ "type": "option"
2250
+ },
2251
+ "dataset": {
2252
+ "description": "Dataset to undeploy GraphQL API from",
2253
+ "name": "dataset",
2254
+ "required": false,
2255
+ "hasDynamicHelp": false,
2256
+ "multiple": false,
2257
+ "type": "option"
2258
+ },
2259
+ "force": {
2260
+ "description": "Skip confirmation prompt",
2261
+ "name": "force",
2262
+ "required": false,
2263
+ "allowNo": false,
2264
+ "type": "boolean"
2265
+ },
2266
+ "project": {
2267
+ "description": "Project ID to delete GraphQL API for",
2268
+ "name": "project",
2269
+ "required": false,
2270
+ "hasDynamicHelp": false,
2271
+ "multiple": false,
2272
+ "type": "option"
2273
+ },
2274
+ "tag": {
2275
+ "description": "Tag to undeploy GraphQL API from",
2276
+ "name": "tag",
2277
+ "required": false,
2278
+ "default": "default",
2279
+ "hasDynamicHelp": false,
2280
+ "multiple": false,
2281
+ "type": "option"
2282
+ }
2283
+ },
2284
+ "hasDynamicHelp": false,
2285
+ "hiddenAliases": [],
2286
+ "id": "graphql:undeploy",
2287
+ "pluginAlias": "@sanity/cli",
2288
+ "pluginName": "@sanity/cli",
2289
+ "pluginType": "core",
2290
+ "strict": true,
2291
+ "isESM": true,
2292
+ "relativePath": [
2293
+ "dist",
2294
+ "commands",
2295
+ "graphql",
2296
+ "undeploy.js"
2297
+ ]
2298
+ },
2299
+ "hook:attempt": {
2300
+ "aliases": [],
2301
+ "args": {
2302
+ "attemptId": {
2303
+ "description": "The delivery attempt ID to get details for",
2304
+ "name": "attemptId",
2305
+ "required": true
2306
+ }
2307
+ },
2308
+ "description": "Print details of a given webhook delivery attempt",
2309
+ "examples": [
2310
+ {
2311
+ "command": "<%= config.bin %> <%= command.id %> abc123",
2312
+ "description": "Print details of webhook delivery attempt with ID abc123"
2313
+ }
2314
+ ],
2315
+ "flags": {},
2316
+ "hasDynamicHelp": false,
2317
+ "hiddenAliases": [],
2318
+ "id": "hook:attempt",
2319
+ "pluginAlias": "@sanity/cli",
2320
+ "pluginName": "@sanity/cli",
2321
+ "pluginType": "core",
2322
+ "strict": true,
2323
+ "isESM": true,
2324
+ "relativePath": [
2325
+ "dist",
2326
+ "commands",
2327
+ "hook",
2328
+ "attempt.js"
2329
+ ]
2330
+ },
2331
+ "hook:create": {
2332
+ "aliases": [],
2333
+ "args": {},
2334
+ "description": "Create a new webhook for the current project",
2335
+ "examples": [
2336
+ {
2337
+ "command": "<%= config.bin %> <%= command.id %>",
2338
+ "description": "Create a new webhook for the current project"
2339
+ }
2340
+ ],
2341
+ "flags": {},
2342
+ "hasDynamicHelp": false,
2343
+ "hiddenAliases": [],
2344
+ "id": "hook:create",
2345
+ "pluginAlias": "@sanity/cli",
2346
+ "pluginName": "@sanity/cli",
2347
+ "pluginType": "core",
2348
+ "strict": true,
2349
+ "isESM": true,
2350
+ "relativePath": [
2351
+ "dist",
2352
+ "commands",
2353
+ "hook",
2354
+ "create.js"
2355
+ ]
2356
+ },
2357
+ "hook:delete": {
2358
+ "aliases": [],
2359
+ "args": {
2360
+ "name": {
2361
+ "description": "Name of hook to delete (will prompt if not provided)",
2362
+ "name": "name",
2363
+ "required": false
2364
+ }
2365
+ },
2366
+ "description": "Delete a hook within your project",
2367
+ "examples": [
2368
+ {
2369
+ "command": "<%= config.bin %> <%= command.id %>",
2370
+ "description": "Interactively select and delete a hook"
2371
+ },
2372
+ {
2373
+ "command": "<%= config.bin %> <%= command.id %> my-hook",
2374
+ "description": "Delete a specific hook by name"
2375
+ }
2376
+ ],
2377
+ "flags": {},
2378
+ "hasDynamicHelp": false,
2379
+ "hiddenAliases": [],
2380
+ "id": "hook:delete",
2381
+ "pluginAlias": "@sanity/cli",
2382
+ "pluginName": "@sanity/cli",
2383
+ "pluginType": "core",
2384
+ "strict": true,
2385
+ "isESM": true,
2386
+ "relativePath": [
2387
+ "dist",
2388
+ "commands",
2389
+ "hook",
2390
+ "delete.js"
2391
+ ]
2392
+ },
2393
+ "hook:list": {
2394
+ "aliases": [],
2395
+ "args": {},
2396
+ "description": "List hooks for a given project",
2397
+ "examples": [
2398
+ {
2399
+ "command": "<%= config.bin %> <%= command.id %>",
2400
+ "description": "List hooks for a given project"
2401
+ }
2402
+ ],
2403
+ "flags": {},
2404
+ "hasDynamicHelp": false,
2405
+ "hiddenAliases": [],
2406
+ "id": "hook:list",
2407
+ "pluginAlias": "@sanity/cli",
2408
+ "pluginName": "@sanity/cli",
2409
+ "pluginType": "core",
2410
+ "strict": true,
2411
+ "isESM": true,
2412
+ "relativePath": [
2413
+ "dist",
2414
+ "commands",
2415
+ "hook",
2416
+ "list.js"
2417
+ ]
2418
+ },
2419
+ "hook:logs": {
2420
+ "aliases": [],
2421
+ "args": {
2422
+ "name": {
2423
+ "description": "Name of the hook to show logs for",
2424
+ "name": "name",
2425
+ "required": false
2426
+ }
2427
+ },
2428
+ "description": "List latest log entries for a given hook",
2429
+ "examples": [
2430
+ {
2431
+ "command": "<%= config.bin %> <%= command.id %>",
2432
+ "description": "List latest log entries for a given hook"
2433
+ },
2434
+ {
2435
+ "command": "<%= config.bin %> <%= command.id %> [NAME]",
2436
+ "description": "List latest log entries for a specific hook by name"
2437
+ }
2438
+ ],
2439
+ "flags": {
2440
+ "detailed": {
2441
+ "description": "Include detailed payload and attempts",
2442
+ "name": "detailed",
2443
+ "required": false,
2444
+ "allowNo": false,
2445
+ "type": "boolean"
2446
+ }
2447
+ },
2448
+ "hasDynamicHelp": false,
2449
+ "hiddenAliases": [],
2450
+ "id": "hook:logs",
2451
+ "pluginAlias": "@sanity/cli",
2452
+ "pluginName": "@sanity/cli",
2453
+ "pluginType": "core",
2454
+ "strict": true,
2455
+ "isESM": true,
2456
+ "relativePath": [
2457
+ "dist",
2458
+ "commands",
2459
+ "hook",
2460
+ "logs.js"
2461
+ ]
2462
+ },
2463
+ "manifest:extract": {
2464
+ "aliases": [],
2465
+ "args": {},
2466
+ "description": "Extracts the studio configuration as one or more JSON manifest files.\n\n**Note**: This command is experimental and subject to change. It is currently intended for use with Create only.",
2467
+ "examples": [
2468
+ {
2469
+ "command": "<%= config.bin %> <%= command.id %>",
2470
+ "description": "Extracts manifests"
2471
+ },
2472
+ {
2473
+ "command": "<%= config.bin %> <%= command.id %> --path /public/static",
2474
+ "description": "Extracts manifests into /public/static"
2475
+ }
2476
+ ],
2477
+ "flags": {
2478
+ "path": {
2479
+ "description": "Optional path to specify destination directory of the manifest files",
2480
+ "name": "path",
2481
+ "default": "/dist/static",
2482
+ "hasDynamicHelp": false,
2483
+ "multiple": false,
2484
+ "type": "option"
2485
+ }
2486
+ },
2487
+ "hasDynamicHelp": false,
2488
+ "hiddenAliases": [],
2489
+ "id": "manifest:extract",
2490
+ "pluginAlias": "@sanity/cli",
2491
+ "pluginName": "@sanity/cli",
2492
+ "pluginType": "core",
2493
+ "strict": true,
2494
+ "isESM": true,
2495
+ "relativePath": [
2496
+ "dist",
2497
+ "commands",
2498
+ "manifest",
2499
+ "extract.js"
2500
+ ]
2501
+ },
2502
+ "mcp:configure": {
2503
+ "aliases": [],
2504
+ "args": {},
2505
+ "description": "Configure Sanity MCP server for AI editors (Cursor, VS Code, Claude Code)",
2506
+ "examples": [
2507
+ {
2508
+ "command": "<%= config.bin %> <%= command.id %>",
2509
+ "description": "Configure Sanity MCP server for detected AI editors"
2510
+ }
2511
+ ],
2512
+ "flags": {},
2513
+ "hasDynamicHelp": false,
2514
+ "hiddenAliases": [],
2515
+ "id": "mcp:configure",
2516
+ "pluginAlias": "@sanity/cli",
2517
+ "pluginName": "@sanity/cli",
2518
+ "pluginType": "core",
2519
+ "strict": true,
2520
+ "isESM": true,
2521
+ "relativePath": [
2522
+ "dist",
2523
+ "commands",
2524
+ "mcp",
2525
+ "configure.js"
2526
+ ]
2527
+ },
2528
+ "media:create-aspect": {
2529
+ "aliases": [],
2530
+ "args": {},
2531
+ "description": "Create a new aspect definition file",
2532
+ "examples": [
2533
+ {
2534
+ "command": "<%= config.bin %> <%= command.id %>",
2535
+ "description": "Create a new aspect definition file"
2536
+ }
2537
+ ],
2538
+ "flags": {},
2539
+ "hasDynamicHelp": false,
2540
+ "hiddenAliases": [],
2541
+ "id": "media:create-aspect",
2542
+ "pluginAlias": "@sanity/cli",
2543
+ "pluginName": "@sanity/cli",
2544
+ "pluginType": "core",
2545
+ "strict": true,
2546
+ "isESM": true,
2547
+ "relativePath": [
2548
+ "dist",
2549
+ "commands",
2550
+ "media",
2551
+ "create-aspect.js"
2552
+ ]
2553
+ },
2554
+ "media:delete-aspect": {
2555
+ "aliases": [],
2556
+ "args": {
2557
+ "aspectName": {
2558
+ "description": "Name of the aspect to delete",
2559
+ "name": "aspectName",
2560
+ "required": true
2561
+ }
2562
+ },
2563
+ "description": "Undeploy an aspect",
2564
+ "examples": [
2565
+ {
2566
+ "command": "<%= config.bin %> <%= command.id %> someAspect",
2567
+ "description": "Delete the aspect named \"someAspect\""
2568
+ }
2569
+ ],
2570
+ "flags": {
2571
+ "media-library-id": {
2572
+ "description": "The id of the target media library",
2573
+ "name": "media-library-id",
2574
+ "required": false,
2575
+ "hasDynamicHelp": false,
2576
+ "multiple": false,
2577
+ "type": "option"
2578
+ },
2579
+ "yes": {
2580
+ "aliases": [
2581
+ "y"
2582
+ ],
2583
+ "description": "Skip confirmation prompt",
2584
+ "name": "yes",
2585
+ "required": false,
2586
+ "allowNo": false,
2587
+ "type": "boolean"
2588
+ }
2589
+ },
2590
+ "hasDynamicHelp": false,
2591
+ "hiddenAliases": [],
2592
+ "id": "media:delete-aspect",
2593
+ "pluginAlias": "@sanity/cli",
2594
+ "pluginName": "@sanity/cli",
2595
+ "pluginType": "core",
2596
+ "strict": true,
2597
+ "isESM": true,
2598
+ "relativePath": [
2599
+ "dist",
2600
+ "commands",
2601
+ "media",
2602
+ "delete-aspect.js"
2603
+ ]
2604
+ },
2605
+ "media:deploy-aspect": {
2606
+ "aliases": [],
2607
+ "args": {
2608
+ "aspectName": {
2609
+ "description": "Name of the aspect to deploy",
2610
+ "name": "aspectName",
2611
+ "required": false
2612
+ }
2613
+ },
2614
+ "description": "Deploy an aspect",
2615
+ "examples": [
2616
+ {
2617
+ "command": "<%= config.bin %> <%= command.id %> someAspect",
2618
+ "description": "Deploy the aspect named \"someAspect\""
2619
+ },
2620
+ {
2621
+ "command": "<%= config.bin %> <%= command.id %> --all",
2622
+ "description": "Deploy all aspects"
2623
+ }
2624
+ ],
2625
+ "flags": {
2626
+ "all": {
2627
+ "description": "Deploy all aspects",
2628
+ "name": "all",
2629
+ "required": false,
2630
+ "allowNo": false,
2631
+ "type": "boolean"
2632
+ },
2633
+ "media-library-id": {
2634
+ "description": "The id of the target media library",
2635
+ "name": "media-library-id",
2636
+ "required": false,
2637
+ "hasDynamicHelp": false,
2638
+ "multiple": false,
2639
+ "type": "option"
2640
+ }
2641
+ },
2642
+ "hasDynamicHelp": false,
2643
+ "hiddenAliases": [],
2644
+ "id": "media:deploy-aspect",
2645
+ "pluginAlias": "@sanity/cli",
2646
+ "pluginName": "@sanity/cli",
2647
+ "pluginType": "core",
2648
+ "strict": true,
2649
+ "isESM": true,
2650
+ "relativePath": [
2651
+ "dist",
2652
+ "commands",
2653
+ "media",
2654
+ "deploy-aspect.js"
2655
+ ]
2656
+ },
2657
+ "media:export": {
2658
+ "aliases": [],
2659
+ "args": {
2660
+ "destination": {
2661
+ "description": "Output destination file path",
2662
+ "name": "destination"
2663
+ }
2664
+ },
2665
+ "description": "Export an archive of all file and image assets including their aspect data from the target media library. Video assets are excluded from the export.",
2666
+ "examples": [
2667
+ {
2668
+ "command": "<%= config.bin %> <%= command.id %>",
2669
+ "description": "Export media library interactively"
2670
+ },
2671
+ {
2672
+ "command": "<%= config.bin %> <%= command.id %> output.tar.gz",
2673
+ "description": "Export media library to output.tar.gz"
2674
+ },
2675
+ {
2676
+ "command": "<%= config.bin %> <%= command.id %> --media-library-id my-library-id",
2677
+ "description": "Export specific media library"
2678
+ }
2679
+ ],
2680
+ "flags": {
2681
+ "asset-concurrency": {
2682
+ "description": "Concurrent number of asset downloads",
2683
+ "name": "asset-concurrency",
2684
+ "default": 8,
2685
+ "hasDynamicHelp": false,
2686
+ "multiple": false,
2687
+ "type": "option"
2688
+ },
2689
+ "media-library-id": {
2690
+ "description": "The id of the target media library",
2691
+ "name": "media-library-id",
2692
+ "hasDynamicHelp": false,
2693
+ "multiple": false,
2694
+ "type": "option"
2695
+ },
2696
+ "no-compress": {
2697
+ "description": "Skips compressing tarball entries (still generates a gzip file)",
2698
+ "name": "no-compress",
2699
+ "allowNo": false,
2700
+ "type": "boolean"
2701
+ },
2702
+ "overwrite": {
2703
+ "description": "Overwrite any file with the same name",
2704
+ "name": "overwrite",
2705
+ "allowNo": false,
2706
+ "type": "boolean"
2707
+ }
2708
+ },
2709
+ "hasDynamicHelp": false,
2710
+ "hiddenAliases": [],
2711
+ "id": "media:export",
2712
+ "pluginAlias": "@sanity/cli",
2713
+ "pluginName": "@sanity/cli",
2714
+ "pluginType": "core",
2715
+ "strict": true,
2716
+ "isESM": true,
2717
+ "relativePath": [
2718
+ "dist",
2719
+ "commands",
2720
+ "media",
2721
+ "export.js"
2722
+ ]
2723
+ },
2724
+ "media:import": {
2725
+ "aliases": [],
2726
+ "args": {
2727
+ "source": {
2728
+ "description": "Image file or folder to import from",
2729
+ "name": "source",
2730
+ "required": true
2731
+ }
2732
+ },
2733
+ "description": "Import a set of assets to the target media library.",
2734
+ "examples": [
2735
+ {
2736
+ "command": "<%= config.bin %> <%= command.id %> products",
2737
+ "description": "Import all assets from the \"products\" directory"
2738
+ },
2739
+ {
2740
+ "command": "<%= config.bin %> <%= command.id %> gallery.tar.gz",
2741
+ "description": "Import all assets from \"gallery\" archive"
2742
+ },
2743
+ {
2744
+ "command": "<%= config.bin %> <%= command.id %> products --replace-aspects",
2745
+ "description": "Import all assets from the \"products\" directory and replace aspects"
2746
+ }
2747
+ ],
2748
+ "flags": {
2749
+ "media-library-id": {
2750
+ "description": "The id of the target media library",
2751
+ "name": "media-library-id",
2752
+ "hasDynamicHelp": false,
2753
+ "multiple": false,
2754
+ "type": "option"
2755
+ },
2756
+ "replace-aspects": {
2757
+ "description": "Replace existing aspect data. All versions will be replaced (e.g. published and draft aspect data)",
2758
+ "name": "replace-aspects",
2759
+ "allowNo": false,
2760
+ "type": "boolean"
2761
+ }
2762
+ },
2763
+ "hasDynamicHelp": false,
2764
+ "hiddenAliases": [],
2765
+ "id": "media:import",
2766
+ "pluginAlias": "@sanity/cli",
2767
+ "pluginName": "@sanity/cli",
2768
+ "pluginType": "core",
2769
+ "strict": true,
2770
+ "isESM": true,
2771
+ "relativePath": [
2772
+ "dist",
2773
+ "commands",
2774
+ "media",
2775
+ "import.js"
2776
+ ]
2777
+ },
2778
+ "migration:create": {
2779
+ "aliases": [],
2780
+ "args": {
2781
+ "title": {
2782
+ "description": "Title of migration",
2783
+ "name": "title",
2784
+ "required": false
2785
+ }
2786
+ },
2787
+ "description": "Create a new migration within your project",
2788
+ "examples": [
2789
+ {
2790
+ "command": "<%= config.bin %> <%= command.id %>",
2791
+ "description": "Create a new migration, prompting for title and options"
2792
+ },
2793
+ {
2794
+ "command": "<%= config.bin %> <%= command.id %> \"Rename field from location to address\"",
2795
+ "description": "Create a new migration with the provided title, prompting for options"
2796
+ }
2797
+ ],
2798
+ "flags": {},
2799
+ "hasDynamicHelp": false,
2800
+ "hiddenAliases": [],
2801
+ "id": "migration:create",
2802
+ "pluginAlias": "@sanity/cli",
2803
+ "pluginName": "@sanity/cli",
2804
+ "pluginType": "core",
2805
+ "strict": true,
2806
+ "isESM": true,
2807
+ "relativePath": [
2808
+ "dist",
2809
+ "commands",
2810
+ "migration",
2811
+ "create.js"
2812
+ ]
2813
+ },
2814
+ "migration:list": {
2815
+ "aliases": [],
2816
+ "args": {},
2817
+ "description": "List available migrations",
2818
+ "examples": [
2819
+ {
2820
+ "command": "<%= config.bin %> <%= command.id %>",
2821
+ "description": "List all available migrations in the project"
2822
+ }
2823
+ ],
2824
+ "flags": {},
2825
+ "hasDynamicHelp": false,
2826
+ "hiddenAliases": [],
2827
+ "id": "migration:list",
2828
+ "pluginAlias": "@sanity/cli",
2829
+ "pluginName": "@sanity/cli",
2830
+ "pluginType": "core",
2831
+ "strict": true,
2832
+ "isESM": true,
2833
+ "relativePath": [
2834
+ "dist",
2835
+ "commands",
2836
+ "migration",
2837
+ "list.js"
2838
+ ]
2839
+ },
2840
+ "migration:run": {
2841
+ "aliases": [],
2842
+ "args": {
2843
+ "id": {
2844
+ "description": "ID",
2845
+ "name": "id",
2846
+ "required": false
2847
+ }
2848
+ },
2849
+ "description": "Run a migration against a dataset",
2850
+ "examples": [
2851
+ {
2852
+ "command": "<%= config.bin %> <%= command.id %> <id>",
2853
+ "description": "dry run the migration"
2854
+ },
2855
+ {
2856
+ "command": "<%= config.bin %> <%= command.id %> <id> --no-dry-run --project xyz --dataset staging",
2857
+ "description": "execute the migration against a dataset"
2858
+ },
2859
+ {
2860
+ "command": "<%= config.bin %> <%= command.id %> <id> --from-export=production.tar.gz --no-dry-run --project xyz --dataset staging",
2861
+ "description": "execute the migration using a dataset export as the source"
2862
+ }
2863
+ ],
2864
+ "flags": {
2865
+ "api-version": {
2866
+ "description": "API version to use when migrating. Defaults to v2024-01-29.",
2867
+ "name": "api-version",
2868
+ "hasDynamicHelp": false,
2869
+ "multiple": false,
2870
+ "type": "option"
2871
+ },
2872
+ "concurrency": {
2873
+ "description": "How many mutation requests to run in parallel. Must be between 1 and 10. Default: 6.",
2874
+ "name": "concurrency",
2875
+ "default": 6,
2876
+ "hasDynamicHelp": false,
2877
+ "multiple": false,
2878
+ "type": "option"
2879
+ },
2880
+ "confirm": {
2881
+ "description": "Prompt for confirmation before running the migration (default: true). Use --no-confirm to skip.",
2882
+ "name": "confirm",
2883
+ "allowNo": true,
2884
+ "type": "boolean"
2885
+ },
2886
+ "dataset": {
2887
+ "description": "Dataset to migrate. Defaults to the dataset configured in your Sanity CLI config.",
2888
+ "name": "dataset",
2889
+ "hasDynamicHelp": false,
2890
+ "multiple": false,
2891
+ "type": "option"
2892
+ },
2893
+ "dry-run": {
2894
+ "description": "By default the migration runs in dry mode. Use --no-dry-run to migrate dataset.",
2895
+ "name": "dry-run",
2896
+ "allowNo": true,
2897
+ "type": "boolean"
2898
+ },
2899
+ "from-export": {
2900
+ "description": "Use a local dataset export as source for migration instead of calling the Sanity API. Note: this is only supported for dry runs.",
2901
+ "name": "from-export",
2902
+ "hasDynamicHelp": false,
2903
+ "multiple": false,
2904
+ "type": "option"
2905
+ },
2906
+ "progress": {
2907
+ "description": "Display progress during migration (default: true). Use --no-progress to hide output.",
2908
+ "name": "progress",
2909
+ "allowNo": true,
2910
+ "type": "boolean"
2911
+ },
2912
+ "project": {
2913
+ "description": "Project ID of the dataset to migrate. Defaults to the projectId configured in your Sanity CLI config.",
2914
+ "name": "project",
2915
+ "hasDynamicHelp": false,
2916
+ "multiple": false,
2917
+ "type": "option"
2918
+ }
2919
+ },
2920
+ "hasDynamicHelp": false,
2921
+ "hiddenAliases": [],
2922
+ "id": "migration:run",
2923
+ "pluginAlias": "@sanity/cli",
2924
+ "pluginName": "@sanity/cli",
2925
+ "pluginType": "core",
2926
+ "strict": true,
2927
+ "isESM": true,
2928
+ "relativePath": [
2929
+ "dist",
2930
+ "commands",
2931
+ "migration",
2932
+ "run.js"
2933
+ ]
2934
+ },
2935
+ "openapi:get": {
2936
+ "aliases": [],
2937
+ "args": {
2938
+ "slug": {
2939
+ "description": "Slug of the OpenAPI specification to retrieve",
2940
+ "name": "slug",
2941
+ "required": true
2942
+ }
2943
+ },
2944
+ "description": "Get an OpenAPI specification by slug",
2945
+ "examples": [
2946
+ {
2947
+ "command": "<%= config.bin %> <%= command.id %> query",
2948
+ "description": "Get a specification (YAML format, default)"
2949
+ },
2950
+ {
2951
+ "command": "<%= config.bin %> <%= command.id %> query --format=json",
2952
+ "description": "Get specification in JSON format"
2953
+ },
2954
+ {
2955
+ "command": "<%= config.bin %> <%= command.id %> query --web",
2956
+ "description": "Open specification in browser"
2957
+ },
2958
+ {
2959
+ "command": "<%= config.bin %> <%= command.id %> query > query-api.yaml",
2960
+ "description": "Pipe to file"
2961
+ }
2962
+ ],
2963
+ "flags": {
2964
+ "format": {
2965
+ "description": "Output format: yaml (default), json",
2966
+ "name": "format",
2967
+ "default": "yaml",
2968
+ "hasDynamicHelp": false,
2969
+ "multiple": false,
2970
+ "options": [
2971
+ "yaml",
2972
+ "json"
2973
+ ],
2974
+ "type": "option"
2975
+ },
2976
+ "web": {
2977
+ "char": "w",
2978
+ "description": "Open in web browser",
2979
+ "name": "web",
2980
+ "allowNo": false,
2981
+ "type": "boolean"
2982
+ }
2983
+ },
2984
+ "hasDynamicHelp": false,
2985
+ "hiddenAliases": [],
2986
+ "id": "openapi:get",
2987
+ "pluginAlias": "@sanity/cli",
2988
+ "pluginName": "@sanity/cli",
2989
+ "pluginType": "core",
2990
+ "strict": true,
2991
+ "isESM": true,
2992
+ "relativePath": [
2993
+ "dist",
2994
+ "commands",
2995
+ "openapi",
2996
+ "get.js"
2997
+ ]
2998
+ },
2999
+ "openapi:list": {
3000
+ "aliases": [],
3001
+ "args": {},
3002
+ "description": "List all available OpenAPI specifications",
3003
+ "examples": [
3004
+ {
3005
+ "command": "<%= config.bin %> <%= command.id %>",
3006
+ "description": "List all available OpenAPI specs"
3007
+ },
3008
+ {
3009
+ "command": "<%= config.bin %> <%= command.id %> --json",
3010
+ "description": "List with JSON output"
3011
+ },
3012
+ {
3013
+ "command": "<%= config.bin %> <%= command.id %> --web",
3014
+ "description": "Open HTTP Reference in browser"
3015
+ }
3016
+ ],
3017
+ "flags": {
3018
+ "json": {
3019
+ "description": "Output JSON",
3020
+ "name": "json",
3021
+ "allowNo": false,
3022
+ "type": "boolean"
3023
+ },
3024
+ "web": {
3025
+ "char": "w",
3026
+ "description": "Open HTTP Reference in web browser",
3027
+ "name": "web",
3028
+ "allowNo": false,
3029
+ "type": "boolean"
3030
+ }
3031
+ },
3032
+ "hasDynamicHelp": false,
3033
+ "hiddenAliases": [],
3034
+ "id": "openapi:list",
3035
+ "pluginAlias": "@sanity/cli",
3036
+ "pluginName": "@sanity/cli",
3037
+ "pluginType": "core",
3038
+ "strict": true,
3039
+ "isESM": true,
3040
+ "relativePath": [
3041
+ "dist",
3042
+ "commands",
3043
+ "openapi",
3044
+ "list.js"
3045
+ ]
3046
+ },
3047
+ "projects:list": {
3048
+ "aliases": [],
3049
+ "args": {},
3050
+ "description": "Lists projects connected to your user",
3051
+ "examples": [
3052
+ {
3053
+ "command": "<%= config.bin %> <%= command.id %>",
3054
+ "description": "List projects"
3055
+ },
3056
+ {
3057
+ "command": "<%= config.bin %> <%= command.id %> --sort=members --order=asc",
3058
+ "description": "List all users of the project, but exclude pending invitations and robots"
3059
+ }
3060
+ ],
3061
+ "flags": {
3062
+ "order": {
3063
+ "name": "order",
3064
+ "default": "desc",
3065
+ "hasDynamicHelp": false,
3066
+ "multiple": false,
3067
+ "options": [
3068
+ "asc",
3069
+ "desc"
3070
+ ],
3071
+ "type": "option"
3072
+ },
3073
+ "sort": {
3074
+ "name": "sort",
3075
+ "default": "created",
3076
+ "hasDynamicHelp": false,
3077
+ "multiple": false,
3078
+ "options": [
3079
+ "id",
3080
+ "members",
3081
+ "name",
3082
+ "url",
3083
+ "created"
3084
+ ],
3085
+ "type": "option"
3086
+ }
3087
+ },
3088
+ "hasDynamicHelp": false,
3089
+ "hiddenAliases": [],
3090
+ "id": "projects:list",
3091
+ "pluginAlias": "@sanity/cli",
3092
+ "pluginName": "@sanity/cli",
3093
+ "pluginType": "core",
3094
+ "strict": true,
3095
+ "isESM": true,
3096
+ "relativePath": [
3097
+ "dist",
3098
+ "commands",
3099
+ "projects",
3100
+ "list.js"
3101
+ ]
3102
+ },
3103
+ "schema:delete": {
3104
+ "aliases": [],
3105
+ "args": {},
3106
+ "description": "Delete schema documents by id",
3107
+ "examples": [
3108
+ {
3109
+ "command": "<%= config.bin %> <%= command.id %> --ids sanity.workspace.schema.workspaceName",
3110
+ "description": "Delete a single schema"
3111
+ },
3112
+ {
3113
+ "command": "<%= config.bin %> <%= command.id %> --ids sanity.workspace.schema.workspaceName,prefix.sanity.workspace.schema.otherWorkspace",
3114
+ "description": "Delete multiple schemas"
3115
+ },
3116
+ {
3117
+ "command": "<%= config.bin %> <%= command.id %> --no-extract-manifest --ids sanity.workspace.schema.workspaceName",
3118
+ "description": "Delete using a pre-existing manifest file (config changes in sanity.config will not be picked up)"
3119
+ }
3120
+ ],
3121
+ "flags": {
3122
+ "dataset": {
3123
+ "description": "Delete schemas from a specific dataset",
3124
+ "name": "dataset",
3125
+ "hasDynamicHelp": false,
3126
+ "multiple": false,
3127
+ "type": "option"
3128
+ },
3129
+ "extract-manifest": {
3130
+ "description": "Generate manifest file (disable with --no-extract-manifest)",
3131
+ "name": "extract-manifest",
3132
+ "allowNo": true,
3133
+ "type": "boolean"
3134
+ },
3135
+ "ids": {
3136
+ "description": "Comma-separated list of schema ids to delete",
3137
+ "name": "ids",
3138
+ "required": true,
3139
+ "hasDynamicHelp": false,
3140
+ "multiple": false,
3141
+ "type": "option"
3142
+ },
3143
+ "manifest-dir": {
3144
+ "description": "Directory containing manifest file",
3145
+ "name": "manifest-dir",
3146
+ "hasDynamicHelp": false,
3147
+ "multiple": false,
3148
+ "type": "option"
3149
+ },
3150
+ "verbose": {
3151
+ "description": "Enable verbose logging",
3152
+ "name": "verbose",
3153
+ "allowNo": false,
3154
+ "type": "boolean"
3155
+ }
3156
+ },
3157
+ "hasDynamicHelp": false,
3158
+ "hiddenAliases": [],
3159
+ "id": "schema:delete",
3160
+ "pluginAlias": "@sanity/cli",
3161
+ "pluginName": "@sanity/cli",
3162
+ "pluginType": "core",
3163
+ "strict": true,
3164
+ "isESM": true,
3165
+ "relativePath": [
3166
+ "dist",
3167
+ "commands",
3168
+ "schema",
3169
+ "delete.js"
3170
+ ]
3171
+ },
3172
+ "schema:extract": {
3173
+ "aliases": [],
3174
+ "args": {},
3175
+ "description": "Extracts a JSON representation of a Sanity schema within a Studio context.\n\n**Note**: This command is experimental and subject to change.",
3176
+ "examples": [
3177
+ {
3178
+ "command": "<%= config.bin %> <%= command.id %> --workspace default",
3179
+ "description": "Extracts schema types in a Sanity project with more than one workspace"
3180
+ }
3181
+ ],
3182
+ "flags": {
3183
+ "enforce-required-fields": {
3184
+ "description": "Makes the schema generated treat fields marked as required as non-optional",
3185
+ "name": "enforce-required-fields",
3186
+ "allowNo": false,
3187
+ "type": "boolean"
3188
+ },
3189
+ "format": {
3190
+ "description": "Format the schema as GROQ type nodes. Only available format at the moment.",
3191
+ "name": "format",
3192
+ "default": "groq-type-nodes",
3193
+ "hasDynamicHelp": false,
3194
+ "helpValue": "<format>",
3195
+ "multiple": false,
3196
+ "type": "option"
3197
+ },
3198
+ "path": {
3199
+ "description": "Optional path to specify destination of the schema file",
3200
+ "name": "path",
3201
+ "hasDynamicHelp": false,
3202
+ "multiple": false,
3203
+ "type": "option"
3204
+ },
3205
+ "workspace": {
3206
+ "description": "The name of the workspace to generate a schema for",
3207
+ "name": "workspace",
3208
+ "hasDynamicHelp": false,
3209
+ "helpValue": "<name>",
3210
+ "multiple": false,
3211
+ "type": "option"
3212
+ }
3213
+ },
3214
+ "hasDynamicHelp": false,
3215
+ "hiddenAliases": [],
3216
+ "id": "schema:extract",
3217
+ "pluginAlias": "@sanity/cli",
3218
+ "pluginName": "@sanity/cli",
3219
+ "pluginType": "core",
3220
+ "strict": true,
3221
+ "isESM": true,
3222
+ "relativePath": [
3223
+ "dist",
3224
+ "commands",
3225
+ "schema",
3226
+ "extract.js"
3227
+ ]
3228
+ },
3229
+ "schema:validate": {
3230
+ "aliases": [],
3231
+ "args": {},
3232
+ "description": "Validates all schema types specified in a workspace",
3233
+ "examples": [
3234
+ {
3235
+ "command": "<%= config.bin %> <%= command.id %> --workspace default",
3236
+ "description": "Validates all schema types in a Sanity project with more than one workspace"
3237
+ },
3238
+ {
3239
+ "command": "<%= config.bin %> <%= command.id %> > report.txt",
3240
+ "description": "Save the results of the report into a file"
3241
+ },
3242
+ {
3243
+ "command": "<%= config.bin %> <%= command.id %> --level error",
3244
+ "description": "Report out only errors"
3245
+ },
3246
+ {
3247
+ "command": "<%= config.bin %> <%= command.id %> --debug-metafile-path metafile.json",
3248
+ "description": "Generate a report which can be analyzed with https://esbuild.github.io/analyze/"
3249
+ }
3250
+ ],
3251
+ "flags": {
3252
+ "debug-metafile-path": {
3253
+ "description": "Optional path where a metafile will be written for build analysis. Only written on successful validation. Can be analyzed at https://esbuild.github.io/analyze/",
3254
+ "helpGroup": "DEBUG",
3255
+ "name": "debug-metafile-path",
3256
+ "hasDynamicHelp": false,
3257
+ "multiple": false,
3258
+ "type": "option"
3259
+ },
3260
+ "format": {
3261
+ "description": "The output format used to print schema errors and warnings",
3262
+ "name": "format",
3263
+ "default": "pretty",
3264
+ "hasDynamicHelp": false,
3265
+ "multiple": false,
3266
+ "options": [
3267
+ "pretty",
3268
+ "ndjson",
3269
+ "json"
3270
+ ],
3271
+ "type": "option"
3272
+ },
3273
+ "level": {
3274
+ "description": "The minimum level reported out",
3275
+ "name": "level",
3276
+ "default": "warning",
3277
+ "hasDynamicHelp": false,
3278
+ "multiple": false,
3279
+ "options": [
3280
+ "error",
3281
+ "warning"
3282
+ ],
3283
+ "type": "option"
3284
+ },
3285
+ "workspace": {
3286
+ "description": "The name of the workspace to use when validating all schema types",
3287
+ "name": "workspace",
3288
+ "hasDynamicHelp": false,
3289
+ "multiple": false,
3290
+ "type": "option"
3291
+ }
3292
+ },
3293
+ "hasDynamicHelp": false,
3294
+ "hiddenAliases": [],
3295
+ "id": "schema:validate",
3296
+ "pluginAlias": "@sanity/cli",
3297
+ "pluginName": "@sanity/cli",
3298
+ "pluginType": "core",
3299
+ "strict": true,
3300
+ "isESM": true,
3301
+ "relativePath": [
3302
+ "dist",
3303
+ "commands",
3304
+ "schema",
3305
+ "validate.js"
3306
+ ]
3307
+ },
3308
+ "telemetry:disable": {
3309
+ "aliases": [],
3310
+ "args": {},
3311
+ "description": "Disable telemetry for your logged in user",
3312
+ "examples": [
3313
+ {
3314
+ "command": "<%= config.bin %> telemetry <%= command.id %>",
3315
+ "description": "Disable telemetry for your logged in user"
3316
+ }
3317
+ ],
3318
+ "flags": {},
3319
+ "hasDynamicHelp": false,
3320
+ "hiddenAliases": [],
3321
+ "id": "telemetry:disable",
3322
+ "pluginAlias": "@sanity/cli",
3323
+ "pluginName": "@sanity/cli",
3324
+ "pluginType": "core",
3325
+ "strict": true,
3326
+ "isESM": true,
3327
+ "relativePath": [
3328
+ "dist",
3329
+ "commands",
3330
+ "telemetry",
3331
+ "disable.js"
3332
+ ]
3333
+ },
3334
+ "telemetry:enable": {
3335
+ "aliases": [],
3336
+ "args": {},
3337
+ "description": "Enable telemetry for your logged in user",
3338
+ "examples": [
3339
+ {
3340
+ "command": "<%= config.bin %> telemetry <%= command.id %>",
3341
+ "description": "Enable telemetry for your logged in user"
3342
+ }
3343
+ ],
3344
+ "flags": {},
3345
+ "hasDynamicHelp": false,
3346
+ "hiddenAliases": [],
3347
+ "id": "telemetry:enable",
3348
+ "pluginAlias": "@sanity/cli",
3349
+ "pluginName": "@sanity/cli",
3350
+ "pluginType": "core",
3351
+ "strict": true,
3352
+ "isESM": true,
3353
+ "relativePath": [
3354
+ "dist",
3355
+ "commands",
3356
+ "telemetry",
3357
+ "enable.js"
3358
+ ]
3359
+ },
3360
+ "telemetry:status": {
3361
+ "aliases": [],
3362
+ "args": {},
3363
+ "description": "Check telemetry consent status for your logged in user",
3364
+ "examples": [
3365
+ {
3366
+ "command": "<%= config.bin %> telemetry <%= command.id %>",
3367
+ "description": "Check telemetry consent status for your logged in user"
3368
+ }
3369
+ ],
3370
+ "flags": {},
3371
+ "hasDynamicHelp": false,
3372
+ "hiddenAliases": [],
3373
+ "id": "telemetry:status",
3374
+ "pluginAlias": "@sanity/cli",
3375
+ "pluginName": "@sanity/cli",
3376
+ "pluginType": "core",
3377
+ "strict": true,
3378
+ "isESM": true,
3379
+ "relativePath": [
3380
+ "dist",
3381
+ "commands",
3382
+ "telemetry",
3383
+ "status.js"
3384
+ ]
3385
+ },
3386
+ "tokens:add": {
3387
+ "aliases": [],
3388
+ "args": {
3389
+ "label": {
3390
+ "description": "Label for the new token",
3391
+ "name": "label",
3392
+ "required": false
3393
+ }
3394
+ },
3395
+ "description": "Create a new API token for this project",
3396
+ "examples": [
3397
+ {
3398
+ "command": "<%= config.bin %> <%= command.id %> \"My API Token\"",
3399
+ "description": "Create a token with a label"
3400
+ },
3401
+ {
3402
+ "command": "<%= config.bin %> <%= command.id %> \"My API Token\" --role=editor",
3403
+ "description": "Create a token with editor role"
3404
+ },
3405
+ {
3406
+ "command": "<%= config.bin %> <%= command.id %> \"CI Token\" --role=editor --yes",
3407
+ "description": "Create a token in unattended mode"
3408
+ },
3409
+ {
3410
+ "command": "<%= config.bin %> <%= command.id %> \"API Token\" --json",
3411
+ "description": "Output token information as JSON"
3412
+ }
3413
+ ],
3414
+ "flags": {
3415
+ "json": {
3416
+ "description": "Output as JSON",
3417
+ "name": "json",
3418
+ "allowNo": false,
3419
+ "type": "boolean"
3420
+ },
3421
+ "role": {
3422
+ "description": "Role to assign to the token",
3423
+ "name": "role",
3424
+ "hasDynamicHelp": false,
3425
+ "helpValue": "viewer",
3426
+ "multiple": false,
3427
+ "type": "option"
3428
+ },
3429
+ "yes": {
3430
+ "char": "y",
3431
+ "description": "Skip prompts and use defaults (unattended mode)",
3432
+ "name": "yes",
3433
+ "allowNo": false,
3434
+ "type": "boolean"
3435
+ }
3436
+ },
3437
+ "hasDynamicHelp": false,
3438
+ "hiddenAliases": [],
3439
+ "id": "tokens:add",
3440
+ "pluginAlias": "@sanity/cli",
3441
+ "pluginName": "@sanity/cli",
3442
+ "pluginType": "core",
3443
+ "strict": true,
3444
+ "isESM": true,
3445
+ "relativePath": [
3446
+ "dist",
3447
+ "commands",
3448
+ "tokens",
3449
+ "add.js"
3450
+ ]
3451
+ },
3452
+ "tokens:delete": {
3453
+ "aliases": [],
3454
+ "args": {
3455
+ "tokenId": {
3456
+ "description": "Token ID to delete (will prompt if not provided)",
3457
+ "name": "tokenId",
3458
+ "required": false
3459
+ }
3460
+ },
3461
+ "description": "Delete an API token from this project",
3462
+ "examples": [
3463
+ {
3464
+ "command": "<%= config.bin %> <%= command.id %>",
3465
+ "description": "Interactively select and delete a token"
3466
+ },
3467
+ {
3468
+ "command": "<%= config.bin %> <%= command.id %> silJ2lFmK6dONB",
3469
+ "description": "Delete a specific token by ID"
3470
+ },
3471
+ {
3472
+ "command": "<%= config.bin %> <%= command.id %> silJ2lFmK6dONB --yes",
3473
+ "description": "Delete a specific token without confirmation prompt"
3474
+ }
3475
+ ],
3476
+ "flags": {
3477
+ "yes": {
3478
+ "aliases": [
3479
+ "y"
3480
+ ],
3481
+ "description": "Skip confirmation prompt (unattended mode)",
3482
+ "name": "yes",
3483
+ "required": false,
3484
+ "allowNo": false,
3485
+ "type": "boolean"
3486
+ }
3487
+ },
3488
+ "hasDynamicHelp": false,
3489
+ "hiddenAliases": [],
3490
+ "id": "tokens:delete",
3491
+ "pluginAlias": "@sanity/cli",
3492
+ "pluginName": "@sanity/cli",
3493
+ "pluginType": "core",
3494
+ "strict": true,
3495
+ "isESM": true,
3496
+ "relativePath": [
3497
+ "dist",
3498
+ "commands",
3499
+ "tokens",
3500
+ "delete.js"
3501
+ ]
3502
+ },
3503
+ "tokens:list": {
3504
+ "aliases": [],
3505
+ "args": {},
3506
+ "description": "List API tokens for the current project",
3507
+ "examples": [
3508
+ {
3509
+ "command": "<%= config.bin %> <%= command.id %>",
3510
+ "description": "List tokens for the current project"
3511
+ },
3512
+ {
3513
+ "command": "<%= config.bin %> <%= command.id %> --json",
3514
+ "description": "List tokens in JSON format"
3515
+ }
3516
+ ],
3517
+ "flags": {
3518
+ "json": {
3519
+ "description": "Output tokens in JSON format",
3520
+ "name": "json",
3521
+ "allowNo": false,
3522
+ "type": "boolean"
3523
+ }
3524
+ },
3525
+ "hasDynamicHelp": false,
3526
+ "hiddenAliases": [],
3527
+ "id": "tokens:list",
3528
+ "pluginAlias": "@sanity/cli",
3529
+ "pluginName": "@sanity/cli",
3530
+ "pluginType": "core",
3531
+ "strict": true,
3532
+ "isESM": true,
3533
+ "relativePath": [
3534
+ "dist",
3535
+ "commands",
3536
+ "tokens",
3537
+ "list.js"
3538
+ ]
3539
+ },
3540
+ "users:invite": {
3541
+ "aliases": [],
3542
+ "args": {
3543
+ "email": {
3544
+ "description": "Email address to invite",
3545
+ "name": "email",
3546
+ "required": false
3547
+ }
3548
+ },
3549
+ "description": "Invite a new user to the project",
3550
+ "examples": [
3551
+ {
3552
+ "command": "<%= config.bin %> <%= command.id %>",
3553
+ "description": "Invite a new user to the project (prompt for details)"
3554
+ },
3555
+ {
3556
+ "command": "<%= config.bin %> <%= command.id %> pippi@sanity.io",
3557
+ "description": "Send a new user invite to the email \"pippi@sanity.io\", prompt for role"
3558
+ },
3559
+ {
3560
+ "command": "<%= config.bin %> <%= command.id %> pippi@sanity.io --role administrator",
3561
+ "description": "Send a new user invite to the email \"pippi@sanity.io\", as administrator"
3562
+ }
3563
+ ],
3564
+ "flags": {
3565
+ "role": {
3566
+ "description": "Role to invite the user as",
3567
+ "name": "role",
3568
+ "required": false,
3569
+ "hasDynamicHelp": false,
3570
+ "multiple": false,
3571
+ "type": "option"
3572
+ }
3573
+ },
3574
+ "hasDynamicHelp": false,
3575
+ "hiddenAliases": [],
3576
+ "id": "users:invite",
3577
+ "pluginAlias": "@sanity/cli",
3578
+ "pluginName": "@sanity/cli",
3579
+ "pluginType": "core",
3580
+ "strict": true,
3581
+ "isESM": true,
3582
+ "relativePath": [
3583
+ "dist",
3584
+ "commands",
3585
+ "users",
3586
+ "invite.js"
3587
+ ]
3588
+ },
3589
+ "users:list": {
3590
+ "aliases": [],
3591
+ "args": {},
3592
+ "description": "List all users of the project",
3593
+ "examples": [
3594
+ {
3595
+ "command": "<%= config.bin %> <%= command.id %>",
3596
+ "description": "List all users of the project"
3597
+ },
3598
+ {
3599
+ "command": "<%= config.bin %> <%= command.id %> --no-invitations --no-robots",
3600
+ "description": "List all users of the project, but exclude pending invitations and robots"
3601
+ },
3602
+ {
3603
+ "command": "<%= config.bin %> <%= command.id %> --sort role",
3604
+ "description": "List all users, sorted by role"
3605
+ }
3606
+ ],
3607
+ "flags": {
3608
+ "invitations": {
3609
+ "description": "Includes or excludes pending invitations",
3610
+ "name": "invitations",
3611
+ "allowNo": true,
3612
+ "type": "boolean"
3613
+ },
3614
+ "order": {
3615
+ "description": "Sort output ascending/descending",
3616
+ "name": "order",
3617
+ "default": "asc",
3618
+ "hasDynamicHelp": false,
3619
+ "multiple": false,
3620
+ "options": [
3621
+ "asc",
3622
+ "desc"
3623
+ ],
3624
+ "type": "option"
3625
+ },
3626
+ "robots": {
3627
+ "description": "Includes or excludes robots (token users)",
3628
+ "name": "robots",
3629
+ "allowNo": true,
3630
+ "type": "boolean"
3631
+ },
3632
+ "sort": {
3633
+ "description": "Sort users by specified column",
3634
+ "name": "sort",
3635
+ "default": "date",
3636
+ "hasDynamicHelp": false,
3637
+ "multiple": false,
3638
+ "options": [
3639
+ "id",
3640
+ "name",
3641
+ "role",
3642
+ "date"
3643
+ ],
3644
+ "type": "option"
3645
+ }
3646
+ },
3647
+ "hasDynamicHelp": false,
3648
+ "hiddenAliases": [],
3649
+ "id": "users:list",
3650
+ "pluginAlias": "@sanity/cli",
3651
+ "pluginName": "@sanity/cli",
3652
+ "pluginType": "core",
3653
+ "strict": true,
3654
+ "isESM": true,
3655
+ "relativePath": [
3656
+ "dist",
3657
+ "commands",
3658
+ "users",
3659
+ "list.js"
3660
+ ]
3661
+ },
3662
+ "dataset:alias:create": {
3663
+ "aliases": [],
3664
+ "args": {
3665
+ "aliasName": {
3666
+ "description": "Dataset alias name to create",
3667
+ "name": "aliasName",
3668
+ "required": false
3669
+ },
3670
+ "targetDataset": {
3671
+ "description": "Target dataset name to link the alias to",
3672
+ "name": "targetDataset",
3673
+ "required": false
3674
+ }
3675
+ },
3676
+ "description": "Create a dataset alias within your project",
3677
+ "examples": [
3678
+ {
3679
+ "command": "<%= config.bin %> <%= command.id %>",
3680
+ "description": "Create an alias with interactive prompts"
3681
+ },
3682
+ {
3683
+ "command": "<%= config.bin %> <%= command.id %> conference",
3684
+ "description": "Create alias named \"conference\" with interactive dataset selection"
3685
+ },
3686
+ {
3687
+ "command": "<%= config.bin %> <%= command.id %> conference conf-2025",
3688
+ "description": "Create alias \"conference\" linked to \"conf-2025\" dataset"
3689
+ },
3690
+ {
3691
+ "command": "<%= config.bin %> <%= command.id %> ~conference conf-2025",
3692
+ "description": "Create alias with explicit ~ prefix"
3693
+ }
3694
+ ],
3695
+ "flags": {},
3696
+ "hasDynamicHelp": false,
3697
+ "hiddenAliases": [],
3698
+ "id": "dataset:alias:create",
3699
+ "pluginAlias": "@sanity/cli",
3700
+ "pluginName": "@sanity/cli",
3701
+ "pluginType": "core",
3702
+ "strict": true,
3703
+ "isESM": true,
3704
+ "relativePath": [
3705
+ "dist",
3706
+ "commands",
3707
+ "dataset",
3708
+ "alias",
3709
+ "create.js"
3710
+ ]
3711
+ },
3712
+ "dataset:alias:delete": {
3713
+ "aliases": [],
3714
+ "args": {
3715
+ "aliasName": {
3716
+ "description": "Dataset alias name to delete",
3717
+ "name": "aliasName",
3718
+ "required": true
3719
+ }
3720
+ },
3721
+ "description": "Delete a dataset alias within your project",
3722
+ "examples": [
3723
+ {
3724
+ "command": "<%= config.bin %> <%= command.id %> conference",
3725
+ "description": "Delete alias named \"conference\" with confirmation prompt"
3726
+ },
3727
+ {
3728
+ "command": "<%= config.bin %> <%= command.id %> ~conference",
3729
+ "description": "Delete alias with explicit ~ prefix"
3730
+ },
3731
+ {
3732
+ "command": "<%= config.bin %> <%= command.id %> conference --force",
3733
+ "description": "Delete alias named \"conference\" without confirmation prompt"
3734
+ }
3735
+ ],
3736
+ "flags": {
3737
+ "force": {
3738
+ "description": "Skip confirmation prompt and delete immediately",
3739
+ "name": "force",
3740
+ "required": false,
3741
+ "allowNo": false,
3742
+ "type": "boolean"
3743
+ }
3744
+ },
3745
+ "hasDynamicHelp": false,
3746
+ "hiddenAliases": [],
3747
+ "id": "dataset:alias:delete",
3748
+ "pluginAlias": "@sanity/cli",
3749
+ "pluginName": "@sanity/cli",
3750
+ "pluginType": "core",
3751
+ "strict": true,
3752
+ "isESM": true,
3753
+ "relativePath": [
3754
+ "dist",
3755
+ "commands",
3756
+ "dataset",
3757
+ "alias",
3758
+ "delete.js"
3759
+ ]
3760
+ },
3761
+ "dataset:alias:link": {
3762
+ "aliases": [],
3763
+ "args": {
3764
+ "aliasName": {
3765
+ "description": "Dataset alias name to link",
3766
+ "name": "aliasName",
3767
+ "required": false
3768
+ },
3769
+ "targetDataset": {
3770
+ "description": "Target dataset name to link the alias to",
3771
+ "name": "targetDataset",
3772
+ "required": false
3773
+ }
3774
+ },
3775
+ "description": "Link a dataset alias to a dataset within your project",
3776
+ "examples": [
3777
+ {
3778
+ "command": "<%= config.bin %> <%= command.id %>",
3779
+ "description": "Link an alias with interactive prompts"
3780
+ },
3781
+ {
3782
+ "command": "<%= config.bin %> <%= command.id %> conference",
3783
+ "description": "Link alias named \"conference\" with interactive dataset selection"
3784
+ },
3785
+ {
3786
+ "command": "<%= config.bin %> <%= command.id %> conference conf-2025",
3787
+ "description": "Link alias \"conference\" to \"conf-2025\" dataset"
3788
+ },
3789
+ {
3790
+ "command": "<%= config.bin %> <%= command.id %> ~conference conf-2025",
3791
+ "description": "Link alias with explicit ~ prefix"
3792
+ },
3793
+ {
3794
+ "command": "<%= config.bin %> <%= command.id %> conference conf-2025 --force",
3795
+ "description": "Force link without confirmation (skip relink prompt)"
3796
+ }
3797
+ ],
3798
+ "flags": {
3799
+ "force": {
3800
+ "description": "Skip confirmation prompt when relinking existing alias",
3801
+ "name": "force",
3802
+ "required": false,
3803
+ "allowNo": false,
3804
+ "type": "boolean"
3805
+ }
3806
+ },
3807
+ "hasDynamicHelp": false,
3808
+ "hiddenAliases": [],
3809
+ "id": "dataset:alias:link",
3810
+ "pluginAlias": "@sanity/cli",
3811
+ "pluginName": "@sanity/cli",
3812
+ "pluginType": "core",
3813
+ "strict": true,
3814
+ "isESM": true,
3815
+ "relativePath": [
3816
+ "dist",
3817
+ "commands",
3818
+ "dataset",
3819
+ "alias",
3820
+ "link.js"
3821
+ ]
3822
+ },
3823
+ "dataset:alias:unlink": {
3824
+ "aliases": [],
3825
+ "args": {
3826
+ "aliasName": {
3827
+ "description": "Dataset alias name to unlink",
3828
+ "name": "aliasName",
3829
+ "required": false
3830
+ }
3831
+ },
3832
+ "description": "Unlink a dataset alias from its dataset within your project",
3833
+ "examples": [
3834
+ {
3835
+ "command": "<%= config.bin %> <%= command.id %>",
3836
+ "description": "Unlink an alias with interactive selection"
3837
+ },
3838
+ {
3839
+ "command": "<%= config.bin %> <%= command.id %> conference",
3840
+ "description": "Unlink alias \"conference\" with confirmation prompt"
3841
+ },
3842
+ {
3843
+ "command": "<%= config.bin %> <%= command.id %> ~conference",
3844
+ "description": "Unlink alias with explicit ~ prefix"
3845
+ },
3846
+ {
3847
+ "command": "<%= config.bin %> <%= command.id %> conference --force",
3848
+ "description": "Unlink alias \"conference\" without confirmation prompt"
3849
+ }
3850
+ ],
3851
+ "flags": {
3852
+ "force": {
3853
+ "description": "Skip confirmation prompt and unlink immediately",
3854
+ "name": "force",
3855
+ "required": false,
3856
+ "allowNo": false,
3857
+ "type": "boolean"
3858
+ }
3859
+ },
3860
+ "hasDynamicHelp": false,
3861
+ "hiddenAliases": [],
3862
+ "id": "dataset:alias:unlink",
3863
+ "pluginAlias": "@sanity/cli",
3864
+ "pluginName": "@sanity/cli",
3865
+ "pluginType": "core",
3866
+ "strict": true,
3867
+ "isESM": true,
3868
+ "relativePath": [
3869
+ "dist",
3870
+ "commands",
3871
+ "dataset",
3872
+ "alias",
3873
+ "unlink.js"
3874
+ ]
3875
+ },
3876
+ "dataset:visibility:get": {
3877
+ "aliases": [],
3878
+ "args": {
3879
+ "dataset": {
3880
+ "description": "The name of the dataset to get visibility for",
3881
+ "name": "dataset",
3882
+ "required": true
3883
+ }
3884
+ },
3885
+ "description": "Get the visibility of a dataset",
3886
+ "examples": [
3887
+ {
3888
+ "command": "<%= config.bin %> <%= command.id %> my-dataset",
3889
+ "description": "Check the visibility of a dataset"
3890
+ }
3891
+ ],
3892
+ "flags": {},
3893
+ "hasDynamicHelp": false,
3894
+ "hiddenAliases": [],
3895
+ "id": "dataset:visibility:get",
3896
+ "pluginAlias": "@sanity/cli",
3897
+ "pluginName": "@sanity/cli",
3898
+ "pluginType": "core",
3899
+ "strict": true,
3900
+ "isESM": true,
3901
+ "relativePath": [
3902
+ "dist",
3903
+ "commands",
3904
+ "dataset",
3905
+ "visibility",
3906
+ "get.js"
3907
+ ]
3908
+ },
3909
+ "dataset:visibility:set": {
3910
+ "aliases": [],
3911
+ "args": {
3912
+ "dataset": {
3913
+ "description": "The name of the dataset to set visibility for",
3914
+ "name": "dataset",
3915
+ "required": true
3916
+ },
3917
+ "mode": {
3918
+ "description": "The visibility mode to set",
3919
+ "name": "mode",
3920
+ "options": [
3921
+ "public",
3922
+ "private"
3923
+ ],
3924
+ "required": true
3925
+ }
3926
+ },
3927
+ "description": "Set the visibility of a dataset",
3928
+ "examples": [
3929
+ {
3930
+ "command": "<%= config.bin %> <%= command.id %> my-dataset private",
3931
+ "description": "Make a dataset private"
3932
+ },
3933
+ {
3934
+ "command": "<%= config.bin %> <%= command.id %> my-dataset public",
3935
+ "description": "Make a dataset public"
3936
+ }
3937
+ ],
3938
+ "flags": {},
3939
+ "hasDynamicHelp": false,
3940
+ "hiddenAliases": [],
3941
+ "id": "dataset:visibility:set",
3942
+ "pluginAlias": "@sanity/cli",
3943
+ "pluginName": "@sanity/cli",
3944
+ "pluginType": "core",
3945
+ "strict": true,
3946
+ "isESM": true,
3947
+ "relativePath": [
3948
+ "dist",
3949
+ "commands",
3950
+ "dataset",
3951
+ "visibility",
3952
+ "set.js"
3953
+ ]
3954
+ }
3955
+ },
3956
+ "version": "6.0.0-alpha.3"
3957
+ }