@sanity/cli 5.2.0-next.12 → 6.0.0-alpha.4

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