@hubspot/cli 7.5.3-experimental.0 → 7.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (413) hide show
  1. package/api/migrate.d.ts +12 -3
  2. package/api/migrate.js +9 -2
  3. package/bin/cli.js +100 -93
  4. package/commands/account/auth.d.ts +8 -0
  5. package/commands/account/auth.js +175 -0
  6. package/commands/account/clean.d.ts +3 -7
  7. package/commands/account/clean.js +54 -14
  8. package/commands/account/createOverride.d.ts +6 -0
  9. package/commands/account/createOverride.js +121 -0
  10. package/commands/account/info.d.ts +3 -7
  11. package/commands/account/info.js +36 -5
  12. package/commands/account/list.d.ts +3 -7
  13. package/commands/account/list.js +38 -15
  14. package/commands/account/remove.d.ts +3 -7
  15. package/commands/account/remove.js +49 -9
  16. package/commands/account/removeOverride.d.ts +6 -0
  17. package/commands/account/removeOverride.js +93 -0
  18. package/commands/account/rename.d.ts +3 -7
  19. package/commands/account/rename.js +16 -9
  20. package/commands/account/use.d.ts +5 -9
  21. package/commands/account/use.js +27 -6
  22. package/commands/account.d.ts +3 -4
  23. package/commands/account.js +33 -53
  24. package/commands/app/migrate.d.ts +5 -6
  25. package/commands/app/migrate.js +60 -44
  26. package/commands/app/secret/add.d.ts +7 -0
  27. package/commands/app/secret/add.js +64 -0
  28. package/commands/app/secret/delete.d.ts +8 -0
  29. package/commands/app/secret/delete.js +87 -0
  30. package/commands/app/secret/list.d.ts +6 -0
  31. package/commands/app/secret/list.js +64 -0
  32. package/commands/app/secret/update.d.ts +7 -0
  33. package/commands/app/secret/update.js +77 -0
  34. package/commands/app/secret.d.ts +3 -0
  35. package/commands/app/secret.js +30 -0
  36. package/commands/app.d.ts +2 -5
  37. package/commands/app.js +10 -10
  38. package/commands/auth.d.ts +5 -7
  39. package/commands/auth.js +37 -33
  40. package/commands/cms/convertFields.d.ts +7 -1
  41. package/commands/cms/convertFields.js +57 -41
  42. package/commands/cms/getReactModule.d.ts +7 -1
  43. package/commands/cms/getReactModule.js +52 -34
  44. package/commands/cms/lighthouseScore.d.ts +8 -1
  45. package/commands/cms/lighthouseScore.js +129 -100
  46. package/commands/cms.d.ts +3 -1
  47. package/commands/cms.js +22 -16
  48. package/commands/completion.d.ts +3 -1
  49. package/commands/completion.js +23 -13
  50. package/commands/config/migrate.d.ts +6 -0
  51. package/commands/config/migrate.js +75 -0
  52. package/commands/config/set.d.ts +10 -1
  53. package/commands/config/set.js +56 -32
  54. package/commands/config.d.ts +3 -1
  55. package/commands/config.js +19 -11
  56. package/commands/create/api-sample.d.ts +3 -1
  57. package/commands/create/api-sample.js +34 -38
  58. package/commands/create/app.d.ts +3 -1
  59. package/commands/create/app.js +9 -7
  60. package/commands/create/function.d.ts +3 -1
  61. package/commands/create/function.js +11 -10
  62. package/commands/create/index.d.ts +5 -1
  63. package/commands/create/index.js +23 -11
  64. package/commands/create/module.d.ts +3 -1
  65. package/commands/create/module.js +14 -13
  66. package/commands/create/react-app.d.ts +3 -1
  67. package/commands/create/react-app.js +10 -7
  68. package/commands/create/template.d.ts +3 -1
  69. package/commands/create/template.js +14 -14
  70. package/commands/create/vue-app.d.ts +3 -1
  71. package/commands/create/vue-app.js +10 -7
  72. package/commands/create/webpack-serverless.d.ts +3 -1
  73. package/commands/create/webpack-serverless.js +10 -7
  74. package/commands/create/website-theme.d.ts +3 -1
  75. package/commands/create/website-theme.js +10 -9
  76. package/commands/create.d.ts +4 -24
  77. package/commands/create.js +62 -75
  78. package/commands/customObject/create.d.ts +4 -9
  79. package/commands/customObject/create.js +17 -10
  80. package/commands/customObject/schema/create.d.ts +4 -9
  81. package/commands/customObject/schema/create.js +18 -11
  82. package/commands/customObject/schema/delete.d.ts +4 -9
  83. package/commands/customObject/schema/delete.js +17 -10
  84. package/commands/customObject/schema/fetch-all.d.ts +4 -9
  85. package/commands/customObject/schema/fetch-all.js +17 -10
  86. package/commands/customObject/schema/fetch.d.ts +4 -9
  87. package/commands/customObject/schema/fetch.js +17 -10
  88. package/commands/customObject/schema/list.d.ts +4 -8
  89. package/commands/customObject/schema/list.js +17 -10
  90. package/commands/customObject/schema/update.d.ts +4 -9
  91. package/commands/customObject/schema/update.js +18 -11
  92. package/commands/customObject/schema.d.ts +3 -5
  93. package/commands/customObject/schema.js +27 -54
  94. package/commands/customObject.d.ts +3 -4
  95. package/commands/customObject.js +20 -48
  96. package/commands/doctor.d.ts +6 -8
  97. package/commands/doctor.js +30 -22
  98. package/commands/feedback.d.ts +4 -1
  99. package/commands/feedback.js +38 -48
  100. package/commands/fetch.d.ts +12 -1
  101. package/commands/fetch.js +49 -34
  102. package/commands/filemanager/fetch.d.ts +4 -9
  103. package/commands/filemanager/fetch.js +18 -11
  104. package/commands/filemanager/upload.d.ts +4 -9
  105. package/commands/filemanager/upload.js +17 -11
  106. package/commands/filemanager.d.ts +3 -4
  107. package/commands/filemanager.js +18 -42
  108. package/commands/function/deploy.d.ts +6 -1
  109. package/commands/function/deploy.js +70 -50
  110. package/commands/function/list.d.ts +6 -1
  111. package/commands/function/list.js +44 -32
  112. package/commands/function/server.d.ts +10 -1
  113. package/commands/function/server.js +49 -38
  114. package/commands/function.d.ts +5 -1
  115. package/commands/function.js +22 -11
  116. package/commands/getStarted.d.ts +9 -0
  117. package/commands/getStarted.js +227 -0
  118. package/commands/hubdb/clear.d.ts +4 -9
  119. package/commands/hubdb/clear.js +21 -15
  120. package/commands/hubdb/create.d.ts +4 -9
  121. package/commands/hubdb/create.js +23 -17
  122. package/commands/hubdb/delete.d.ts +4 -9
  123. package/commands/hubdb/delete.js +24 -16
  124. package/commands/hubdb/fetch.d.ts +4 -9
  125. package/commands/hubdb/fetch.js +20 -14
  126. package/commands/hubdb/list.d.ts +4 -0
  127. package/commands/hubdb/list.js +83 -0
  128. package/commands/hubdb.d.ts +3 -2
  129. package/commands/hubdb.js +24 -47
  130. package/commands/init.d.ts +3 -7
  131. package/commands/init.js +31 -24
  132. package/commands/lint.d.ts +6 -4
  133. package/commands/lint.js +42 -44
  134. package/commands/list.d.ts +3 -7
  135. package/commands/list.js +21 -16
  136. package/commands/logs.d.ts +10 -1
  137. package/commands/logs.js +53 -45
  138. package/commands/mcp/setup.d.ts +7 -0
  139. package/commands/mcp/setup.js +50 -0
  140. package/commands/mcp/start.d.ts +3 -0
  141. package/commands/mcp/start.js +75 -0
  142. package/commands/mcp.d.ts +3 -0
  143. package/commands/mcp.js +26 -0
  144. package/commands/module/marketplace-validate.d.ts +6 -1
  145. package/commands/module/marketplace-validate.js +39 -30
  146. package/commands/module.d.ts +3 -1
  147. package/commands/module.js +23 -12
  148. package/commands/mv.d.ts +3 -7
  149. package/commands/mv.js +20 -15
  150. package/commands/open.d.ts +3 -7
  151. package/commands/open.js +20 -15
  152. package/commands/project/add.d.ts +8 -9
  153. package/commands/project/add.js +53 -85
  154. package/commands/project/cloneApp.d.ts +6 -8
  155. package/commands/project/cloneApp.js +51 -47
  156. package/commands/project/create.d.ts +4 -1
  157. package/commands/project/create.js +132 -81
  158. package/commands/project/deploy.d.ts +5 -6
  159. package/commands/project/deploy.js +93 -37
  160. package/commands/project/dev/deprecatedFlow.d.ts +8 -2
  161. package/commands/project/dev/deprecatedFlow.js +41 -26
  162. package/commands/project/dev/index.d.ts +4 -5
  163. package/commands/project/dev/index.js +103 -33
  164. package/commands/project/dev/unifiedFlow.d.ts +11 -2
  165. package/commands/project/dev/unifiedFlow.js +85 -46
  166. package/commands/project/download.d.ts +3 -7
  167. package/commands/project/download.js +18 -19
  168. package/commands/project/installDeps.d.ts +6 -1
  169. package/commands/project/installDeps.js +48 -32
  170. package/commands/project/listBuilds.d.ts +3 -7
  171. package/commands/project/listBuilds.js +32 -30
  172. package/commands/project/logs.d.ts +10 -1
  173. package/commands/project/logs.js +73 -65
  174. package/commands/project/migrate.d.ts +7 -8
  175. package/commands/project/migrate.js +49 -26
  176. package/commands/project/migrateApp.d.ts +3 -8
  177. package/commands/project/migrateApp.js +23 -20
  178. package/commands/project/open.d.ts +3 -7
  179. package/commands/project/open.js +29 -21
  180. package/commands/project/profile/add.d.ts +7 -0
  181. package/commands/project/profile/add.js +209 -0
  182. package/commands/project/profile/delete.d.ts +6 -0
  183. package/commands/project/profile/delete.js +123 -0
  184. package/commands/project/profile.d.ts +3 -0
  185. package/commands/project/profile.js +25 -0
  186. package/commands/project/upload.d.ts +10 -1
  187. package/commands/project/upload.js +94 -56
  188. package/commands/project/validate.d.ts +6 -0
  189. package/commands/project/validate.js +81 -0
  190. package/commands/project/watch.d.ts +6 -1
  191. package/commands/project/watch.js +95 -61
  192. package/commands/project.d.ts +3 -1
  193. package/commands/project.js +49 -37
  194. package/commands/remove.d.ts +3 -7
  195. package/commands/remove.js +22 -20
  196. package/commands/sandbox/create.d.ts +4 -9
  197. package/commands/sandbox/create.js +27 -21
  198. package/commands/sandbox/delete.d.ts +4 -9
  199. package/commands/sandbox/delete.js +35 -29
  200. package/commands/sandbox.d.ts +3 -4
  201. package/commands/sandbox.js +18 -44
  202. package/commands/secret/addSecret.d.ts +4 -9
  203. package/commands/secret/addSecret.js +21 -15
  204. package/commands/secret/deleteSecret.d.ts +4 -9
  205. package/commands/secret/deleteSecret.js +28 -18
  206. package/commands/secret/listSecret.d.ts +4 -9
  207. package/commands/secret/listSecret.js +19 -13
  208. package/commands/secret/updateSecret.d.ts +4 -9
  209. package/commands/secret/updateSecret.js +25 -17
  210. package/commands/secret.d.ts +3 -4
  211. package/commands/secret.js +23 -49
  212. package/commands/theme/generate-selectors.d.ts +3 -7
  213. package/commands/theme/generate-selectors.js +20 -16
  214. package/commands/theme/marketplace-validate.d.ts +4 -9
  215. package/commands/theme/marketplace-validate.js +22 -18
  216. package/commands/theme/preview.d.ts +4 -9
  217. package/commands/theme/preview.js +36 -30
  218. package/commands/theme.d.ts +3 -4
  219. package/commands/theme.js +22 -48
  220. package/commands/upload.d.ts +12 -1
  221. package/commands/upload.js +116 -135
  222. package/commands/watch.d.ts +14 -1
  223. package/commands/watch.js +74 -76
  224. package/lang/en.d.ts +3218 -0
  225. package/lang/en.js +3075 -3313
  226. package/lang/en.lyaml +96 -228
  227. package/lib/accountTypes.d.ts +1 -0
  228. package/lib/accountTypes.js +11 -0
  229. package/lib/app/migrate.d.ts +33 -4
  230. package/lib/app/migrate.js +179 -88
  231. package/lib/app/migrate_legacy.d.ts +2 -2
  232. package/lib/app/migrate_legacy.js +12 -11
  233. package/lib/app/urls.d.ts +16 -0
  234. package/lib/app/urls.js +16 -0
  235. package/lib/buildAccount.d.ts +1 -2
  236. package/lib/buildAccount.js +11 -10
  237. package/lib/commonOpts.d.ts +4 -7
  238. package/lib/commonOpts.js +47 -19
  239. package/lib/configMigrate.d.ts +2 -0
  240. package/lib/configMigrate.js +83 -0
  241. package/lib/configOptions.d.ts +4 -0
  242. package/lib/configOptions.js +41 -45
  243. package/lib/constants.d.ts +33 -0
  244. package/lib/constants.js +34 -1
  245. package/lib/dependencyManagement.d.ts +0 -5
  246. package/lib/dependencyManagement.js +14 -40
  247. package/lib/doctor/Diagnosis.d.ts +1 -2
  248. package/lib/doctor/Diagnosis.js +19 -16
  249. package/lib/doctor/DiagnosticInfoBuilder.d.ts +2 -1
  250. package/lib/doctor/DiagnosticInfoBuilder.js +10 -9
  251. package/lib/doctor/Doctor.d.ts +1 -0
  252. package/lib/doctor/Doctor.js +60 -46
  253. package/lib/errorHandlers/index.js +13 -7
  254. package/lib/errorHandlers/suppressError.js +18 -26
  255. package/lib/filesystem.d.ts +1 -1
  256. package/lib/generateSelectors.js +3 -6
  257. package/lib/hasFeature.d.ts +3 -1
  258. package/lib/interpolation.d.ts +2 -3
  259. package/lib/lang.d.ts +2 -3
  260. package/lib/marketplaceValidate.d.ts +12 -2
  261. package/lib/marketplaceValidate.js +22 -29
  262. package/lib/mcp/setup.d.ts +12 -0
  263. package/lib/mcp/setup.js +216 -0
  264. package/lib/middleware/__test__/yargsChecksMiddleware.test.js +3 -3
  265. package/lib/middleware/autoUpdateMiddleware.d.ts +1 -0
  266. package/lib/middleware/autoUpdateMiddleware.js +89 -0
  267. package/lib/middleware/configMiddleware.js +37 -3
  268. package/lib/middleware/fireAlarmMiddleware.d.ts +4 -0
  269. package/lib/middleware/fireAlarmMiddleware.js +125 -0
  270. package/lib/middleware/yargsChecksMiddleware.js +2 -2
  271. package/lib/npm.d.ts +9 -0
  272. package/lib/npm.js +36 -0
  273. package/lib/oauth.js +1 -2
  274. package/lib/process.js +1 -2
  275. package/lib/projectProfiles.d.ts +7 -0
  276. package/lib/projectProfiles.js +83 -0
  277. package/lib/projects/ProjectLogsManager.d.ts +1 -1
  278. package/lib/projects/ProjectLogsManager.js +16 -21
  279. package/lib/projects/add/legacyAddComponent.d.ts +5 -0
  280. package/lib/projects/add/legacyAddComponent.js +48 -0
  281. package/lib/projects/add/v3AddComponent.d.ts +8 -0
  282. package/lib/projects/add/v3AddComponent.js +85 -0
  283. package/lib/projects/buildAndDeploy.js +46 -42
  284. package/lib/projects/components.d.ts +2 -0
  285. package/lib/projects/components.js +82 -0
  286. package/lib/projects/config.d.ts +9 -0
  287. package/lib/projects/config.js +79 -0
  288. package/lib/projects/create/index.d.ts +23 -0
  289. package/lib/projects/create/index.js +33 -0
  290. package/lib/projects/create/legacy.d.ts +6 -0
  291. package/lib/projects/{create.js → create/legacy.js} +23 -15
  292. package/lib/projects/create/v3.d.ts +27 -0
  293. package/lib/projects/create/v3.js +158 -0
  294. package/lib/projects/ensureProjectExists.d.ts +11 -0
  295. package/lib/projects/ensureProjectExists.js +97 -0
  296. package/lib/projects/localDev/AppDevModeInterface.d.ts +30 -0
  297. package/lib/projects/localDev/AppDevModeInterface.js +215 -0
  298. package/lib/{DevServerManager.d.ts → projects/localDev/DevServerManager.d.ts} +1 -1
  299. package/lib/{DevServerManager.js → projects/localDev/DevServerManager.js} +6 -6
  300. package/lib/projects/localDev/DevServerManagerV2.d.ts +22 -0
  301. package/lib/{DevServerManagerV2.js → projects/localDev/DevServerManagerV2.js} +22 -19
  302. package/lib/projects/localDev/LocalDevLogger.d.ts +30 -0
  303. package/lib/projects/localDev/LocalDevLogger.js +159 -0
  304. package/lib/{LocalDevManager.d.ts → projects/localDev/LocalDevManager.d.ts} +1 -1
  305. package/lib/{LocalDevManager.js → projects/localDev/LocalDevManager.js} +57 -83
  306. package/lib/projects/localDev/LocalDevProcess.d.ts +34 -0
  307. package/lib/projects/localDev/LocalDevProcess.js +201 -0
  308. package/lib/projects/localDev/LocalDevState.d.ts +50 -0
  309. package/lib/projects/localDev/LocalDevState.js +119 -0
  310. package/lib/projects/localDev/LocalDevWatcher.d.ts +10 -0
  311. package/lib/projects/localDev/LocalDevWatcher.js +53 -0
  312. package/lib/projects/localDev/LocalDevWebsocketServer.d.ts +20 -0
  313. package/lib/projects/localDev/LocalDevWebsocketServer.js +131 -0
  314. package/lib/{localDev.d.ts → projects/localDev/helpers.d.ts} +6 -4
  315. package/lib/{localDev.js → projects/localDev/helpers.js} +127 -114
  316. package/lib/projects/ui.d.ts +1 -0
  317. package/lib/projects/ui.js +15 -0
  318. package/lib/projects/upload.d.ts +17 -2
  319. package/lib/projects/upload.js +74 -50
  320. package/lib/projects/urls.d.ts +4 -0
  321. package/lib/projects/urls.js +23 -1
  322. package/lib/projects/watch.d.ts +1 -1
  323. package/lib/projects/watch.js +21 -18
  324. package/lib/prompts/accountNamePrompt.js +16 -13
  325. package/lib/prompts/accountsPrompt.js +1 -2
  326. package/lib/prompts/cmsFieldPrompt.js +1 -2
  327. package/lib/prompts/createApiSamplePrompt.d.ts +2 -10
  328. package/lib/prompts/createApiSamplePrompt.js +4 -5
  329. package/lib/prompts/createFunctionPrompt.js +13 -14
  330. package/lib/prompts/createModulePrompt.js +8 -9
  331. package/lib/prompts/createProjectPrompt.d.ts +20 -4
  332. package/lib/prompts/createProjectPrompt.js +43 -13
  333. package/lib/prompts/createTemplatePrompt.d.ts +22 -4
  334. package/lib/prompts/createTemplatePrompt.js +1 -2
  335. package/lib/prompts/downloadProjectPrompt.js +3 -4
  336. package/lib/prompts/installAppPrompt.d.ts +2 -0
  337. package/lib/prompts/installAppPrompt.js +45 -0
  338. package/lib/prompts/personalAccessKeyPrompt.js +35 -25
  339. package/lib/prompts/previewPrompt.js +5 -6
  340. package/lib/prompts/projectAddPrompt.d.ts +5 -1
  341. package/lib/prompts/projectAddPrompt.js +35 -8
  342. package/lib/prompts/projectDevTargetAccountPrompt.d.ts +6 -1
  343. package/lib/prompts/projectDevTargetAccountPrompt.js +15 -16
  344. package/lib/prompts/projectNamePrompt.js +5 -6
  345. package/lib/prompts/projectsLogsPrompt.js +3 -2
  346. package/lib/prompts/promptUtils.d.ts +4 -2
  347. package/lib/prompts/promptUtils.js +3 -1
  348. package/lib/prompts/sandboxesPrompt.js +5 -6
  349. package/lib/prompts/secretPrompt.js +2 -3
  350. package/lib/prompts/selectAppPrompt.d.ts +2 -0
  351. package/lib/prompts/selectAppPrompt.js +40 -0
  352. package/lib/prompts/selectHubDBTablePrompt.js +11 -8
  353. package/lib/prompts/{selectPublicAppPrompt.d.ts → selectPublicAppForMigrationPrompt.d.ts} +1 -1
  354. package/lib/prompts/{selectPublicAppPrompt.js → selectPublicAppForMigrationPrompt.js} +8 -9
  355. package/lib/prompts/setAsDefaultAccountPrompt.js +11 -2
  356. package/lib/prompts/uploadPrompt.js +4 -5
  357. package/lib/sandboxSync.js +15 -14
  358. package/lib/sandboxes.js +12 -13
  359. package/lib/serverlessLogs.js +4 -6
  360. package/lib/testUtils.d.ts +3 -3
  361. package/lib/testUtils.js +8 -9
  362. package/lib/ui/boxen.d.ts +5 -0
  363. package/lib/ui/boxen.js +30 -0
  364. package/lib/ui/git.js +8 -9
  365. package/lib/ui/index.d.ts +4 -2
  366. package/lib/ui/index.js +20 -17
  367. package/lib/ui/logger.d.ts +10 -0
  368. package/lib/ui/logger.js +15 -0
  369. package/lib/ui/serverlessFunctionLogs.js +2 -3
  370. package/lib/upload.d.ts +1 -1
  371. package/lib/validation.js +4 -5
  372. package/lib/yargsUtils.d.ts +5 -1
  373. package/lib/yargsUtils.js +6 -0
  374. package/mcp-server/server.d.ts +1 -0
  375. package/mcp-server/server.js +18 -0
  376. package/mcp-server/tools/index.d.ts +2 -0
  377. package/mcp-server/tools/index.js +17 -0
  378. package/mcp-server/tools/project/AddFeatureToProject.d.ts +29 -0
  379. package/mcp-server/tools/project/AddFeatureToProject.js +85 -0
  380. package/mcp-server/tools/project/CreateProjectTool.d.ts +35 -0
  381. package/mcp-server/tools/project/CreateProjectTool.js +100 -0
  382. package/mcp-server/tools/project/DeployProject.d.ts +20 -0
  383. package/mcp-server/tools/project/DeployProject.js +50 -0
  384. package/mcp-server/tools/project/GuidedWalkthroughTool.d.ts +17 -0
  385. package/mcp-server/tools/project/GuidedWalkthroughTool.js +58 -0
  386. package/mcp-server/tools/project/UploadProjectTools.d.ts +17 -0
  387. package/mcp-server/tools/project/UploadProjectTools.js +35 -0
  388. package/mcp-server/tools/project/constants.d.ts +3 -0
  389. package/mcp-server/tools/project/constants.js +13 -0
  390. package/mcp-server/types.d.ts +14 -0
  391. package/mcp-server/types.js +17 -0
  392. package/mcp-server/utils/command.d.ts +3 -0
  393. package/mcp-server/utils/command.js +16 -0
  394. package/mcp-server/utils/content.d.ts +3 -0
  395. package/mcp-server/utils/content.js +21 -0
  396. package/mcp-server/utils/project.d.ts +5 -0
  397. package/mcp-server/utils/project.js +17 -0
  398. package/package.json +19 -11
  399. package/types/Cms.d.ts +30 -0
  400. package/types/Cms.js +2 -0
  401. package/types/LocalDev.d.ts +35 -0
  402. package/types/LocalDev.js +2 -0
  403. package/types/Projects.d.ts +19 -2
  404. package/types/Prompts.d.ts +0 -7
  405. package/types/Yargs.d.ts +14 -14
  406. package/lib/DevServerManagerV2.d.ts +0 -33
  407. package/lib/LocalDevManagerV2.d.ts +0 -64
  408. package/lib/LocalDevManagerV2.js +0 -377
  409. package/lib/projects/create.d.ts +0 -5
  410. package/lib/projects/index.d.ts +0 -21
  411. package/lib/projects/index.js +0 -194
  412. package/lib/prompts/installPublicAppPrompt.d.ts +0 -1
  413. package/lib/prompts/installPublicAppPrompt.js +0 -40
package/lang/en.lyaml CHANGED
@@ -10,6 +10,9 @@ en:
10
10
  portalEnvVarDeprecated: "The HUBSPOT_PORTAL_ID environment variable is deprecated. Please use HUBSPOT_ACCOUNT_ID instead."
11
11
  loadConfigMiddleware:
12
12
  configFileExists: "A configuration file already exists at {{ configPath }}. To specify a new configuration file, delete the existing one and try again."
13
+ injectAccountIdMiddleware:
14
+ invalidAccountId: "In the default override file ({{ hsAccountFileName }}), the account ID must be a number. Please delete the current file and generate a new one using {{ overrideCommand }}."
15
+ accountNotFound: "The account in the default override file ({{ hsAccountFileName }}) wasn't found in your configured accounts. You can authorize this account using {{ authCommand }}."
13
16
  completion:
14
17
  describe: "Enable bash completion shortcuts for commands. Concat the generated script to your .bashrc, .bash_profile, or .zshrc file."
15
18
  examples:
@@ -17,11 +20,43 @@ en:
17
20
  account:
18
21
  describe: "Commands for managing configured accounts."
19
22
  subcommands:
23
+ createOverride:
24
+ describe: "Create a new default account override file ({{ hsAccountFileName }}) in the current working directory."
25
+ success: "Default account override file created at {{ overrideFilePath }}"
26
+ accountOverride: "An account override file already exists at {{ overrideFilePath }} associated with account \"{{ accountOverride }}\"."
27
+ prompts:
28
+ replaceOverrideFile: "Replace existing account override file?"
29
+ errors:
30
+ globalConfigNotFound: "This command is only compatible with our new global config. Run {{ authCommand }} to get started."
31
+ accountNotFound: "The specified account could not be found in the config file {{ configPath }}"
32
+ options:
33
+ account:
34
+ describe: "Name or ID of the account to create an override file for."
35
+ examples:
36
+ default: "Create a new default account override file ({{ hsAccountFileName }}) in the current working directory"
37
+ idBased: "Create a new default account override file ({{ hsAccountFileName }}) in the current working directory, using the account with accountId \"1234567\""
38
+ nameBased: "Create a new default account override file ({{ hsAccountFileName }}) in the current working directory, using the account with name \"MyAccount\""
39
+ removeOverride:
40
+ describe: "Remove the default account override file ({{ overrideFile }}) from the current working directory."
41
+ accountOverride: "There is an account override file at {{ overrideFilePath }} associated with account \"{{ accountOverride }}\"."
42
+ prompts:
43
+ deleteOverrideFile: "Delete account override file?"
44
+ success: "Removed the default account override file."
45
+ noOverrideFile: "No default account override file found in the current working directory. No action required."
46
+ errors:
47
+ globalConfigNotFound: "This command is only compatible with our new global config. Run {{ authCommand }} to get started."
48
+ options:
49
+ force:
50
+ describe: "Skip confirmation prompt when removing the override file"
20
51
  list:
21
- accounts: "{{#bold}}Accounts{{/bold}}:"
22
- defaultAccount: "{{#bold}}Default account{{/bold}}: {{ account }}"
23
52
  describe: "List names of accounts defined in config."
24
- configPath: "{{#bold}}Config path{{/bold}}: {{ configPath }}"
53
+ accounts: "{{#bold}}Accounts{{/bold}}:"
54
+ defaultAccountTitle: "{{#bold}}Default Account{{/bold}}"
55
+ defaultAccount: "Account: {{ account }}"
56
+ configPath: "Source: {{ configPath }}"
57
+ overrideFilePathTitle: "{{#bold}}Default Account Override{{/bold}}"
58
+ overrideFilePath: "Source: {{ overrideFilePath }}"
59
+ overrideAccount: "Account: {{ account }}"
25
60
  labels:
26
61
  accountId: "Account ID"
27
62
  authType: "Auth Type"
@@ -39,6 +74,8 @@ en:
39
74
  describe: "Set the Hubspot account to use as the default account. The default account can be overridden with the \"--account\" option."
40
75
  errors:
41
76
  accountNotFound: "The account \"{{ specifiedAccount }}\" could not be found in {{ configPath }}"
77
+ accountOverride: "This project currently has an account override set: \"{{ accountOverride }}\". Account \"{{accountOverride}}\" will continue to act as the default account for this project."
78
+ accountOverrideCommands: "Use {{ createOverrideCommand }} to change override accounts, or {{ removeOverrideCommand }} to remove the override and use your default account."
42
79
  examples:
43
80
  default: "Select a HubSpot account to use as the default account"
44
81
  idBased: "Set the default account to the account in the config with accountId equal to \"1234567\""
@@ -54,6 +91,7 @@ en:
54
91
  logs:
55
92
  replaceDefaultAccount: "The removed account was the default account."
56
93
  prompts:
94
+ deleteOverrideFile: "Delete the override file ({{ overrideFilePath }}) associated with {{ accountName }}?"
57
95
  selectAccountToRemove: "Select an account to remove from the config"
58
96
  errors:
59
97
  accountNotFound: "The account \"{{ specifiedAccount }}\" could not be found in {{ configPath }}"
@@ -69,6 +107,12 @@ en:
69
107
  info:
70
108
  accountId: "{{#bold}}Account ID{{/bold}}: {{ accountId }}"
71
109
  describe: "Print information about the default account, or about the account specified with the \"account\" option."
110
+ defaultAccountTitle: "{{#bold}}Default Account{{/bold}}"
111
+ defaultAccount: "Account: {{ account }}"
112
+ configPath: "Source: {{ configPath }}"
113
+ overrideFilePathTitle: "{{#bold}}Default Account Override{{/bold}}"
114
+ overrideFilePath: "Source: {{ overrideFilePath }}"
115
+ overrideAccount: "Account: {{ account }}"
72
116
  errors:
73
117
  notUsingPersonalAccessKey: "This command currently only supports fetching scopes for the personal access key auth type."
74
118
  options:
@@ -91,13 +135,15 @@ en:
91
135
  confirm:
92
136
  one: "Remove 1 inactive account from the CLI config?"
93
137
  other: "Remove {{ count }} inactive accounts from the CLI config?"
138
+ defaultAccountOverride: "\n(This will also delete the default account override file at {{ overrideFilePath }})"
139
+ replaceDefaultAccount: "The default account was removed."
94
140
  removeSuccess: "Removed {{ accountName }} from the CLI config."
95
141
  auth:
96
142
  describe: "Configure authentication for your HubSpot account."
97
143
  verboseDescribe: "Configure authentication for a HubSpot account. This will update the {{ configName }} file that stores your account information.\n\nThe recommended authentication method is {{#bold}}{{ authMethod }}{{/bold}}, which uses an access token tied to a specific user account."
98
144
  errors:
99
- noConfigFileFound: "No config file was found. To create a new config file, use the \"hs init\" command."
100
145
  unsupportedAuthType: "Unsupported auth type: {{ type }}. The only supported authentication protocols are {{ supportedProtocols }}."
146
+ globalConfigFileExists: "You are using our new global configuration for account management, which is not compatible with this command. Please use {{ accountAuthCommand }} instead."
101
147
  options:
102
148
  authType:
103
149
  describe: "Authentication method"
@@ -455,8 +501,6 @@ en:
455
501
  describe: "Authentication method"
456
502
  account:
457
503
  describe: "HubSpot account to authenticate"
458
- useHiddenConfig:
459
- describe: "Use the new HubSpot configuration file located in a hidden file in the user's home directory"
460
504
  success:
461
505
  configFileCreated: "Created config file \"{{ configPath }}\""
462
506
  configFileUpdated: "Connected account \"{{ account }}\" using \"{{ authType }}\" and set it as the default account"
@@ -464,7 +508,7 @@ en:
464
508
  updateConfig: "To update an existing config file, use the \"hs auth\" command."
465
509
  errors:
466
510
  configFileExists: "The config file {{ configPath }} already exists."
467
- bothConfigFilesNotAllowed: "Unable to create config file, because there is an existing one at \"{{ path }}\". To create a new config file, delete the existing one and try again."
511
+ globalConfigFileExists: "You are using our new global configuration for account management, which is not compatible with this command. Please use {{ accountAuthCommand }} instead."
468
512
  lint:
469
513
  issuesFound: "{{ count }} issues found."
470
514
  groupName: "Linting {{ path }}"
@@ -525,19 +569,26 @@ en:
525
569
  betaMessage: "HubSpot projects local development"
526
570
  placeholderAccountSelection: "Using default account as target account (for now)"
527
571
  learnMoreLocalDevServer: "Learn more about the projects local dev server"
572
+ accountTypeInformation: "Testing in a developer test account is strongly recommended, but you can use a sandbox account if your plan allows you to create one."
573
+ learnMoreMessage: "Visit our {{ learnMoreLink }} to learn more."
574
+ learnMoreLink: "docs on Developer Test and Sandbox accounts "
528
575
  errors:
529
576
  noProjectConfig: "No project detected. Please run this command again from a project directory."
530
577
  noAccount: "An error occurred while reading account {{ accountId }} from your config. Run {{ authCommand }} to re-auth this account."
531
578
  noAccountsInConfig: "No accounts found in your config. Run {{ authCommand }} to configure a HubSpot account with the CLI."
532
579
  invalidProjectComponents: "Projects cannot contain both private and public apps. Move your apps to separate projects before attempting local development."
533
580
  noRunnableComponents: "No supported components were found in this project. Run {{ command }} to see a list of available components and add one to your project."
534
- invalidUnifiedAppsAccount: "Local development of Unified Apps is currently only supported in standard and developer accounts. Target a standard or developer account with {{ authCommand }} and try again."
581
+ accountNotCombined: "Local development of Unified Apps is currently only compatible with accounts that are opted into the unified apps beta. Make sure that this account is opted in or switch accounts using {{ accountUseCommand }}."
535
582
  examples:
536
583
  default: "Start local dev for the current project"
584
+ options:
585
+ profile:
586
+ describe: "The profile to target during local dev"
537
587
  create:
538
588
  describe: "Create a new project."
539
589
  errors:
540
590
  failedToDownloadProject: "Failed to download project. Please try again later."
591
+ invalidTemplateSource: "Invalid template source provided. Use the format <Owner>/<Repo> and try again."
541
592
  failedToFetchProjectList: "Failed to fetch the list of available project templates. Please try again later."
542
593
  cannotNestProjects: "A project already exists at {{ projectDir }}. Projects cannot be nested within other projects. Please choose a different destination and try again."
543
594
  logs:
@@ -567,7 +618,7 @@ en:
567
618
  name:
568
619
  describe: "Project name (cannot be changed)"
569
620
  header:
570
- text: "Migrate an app to the projects framework"
621
+ text: "This command will migrate an app to the projects framework. It will walk you through the fields required to complete the migration and download the project source code into a directory of your choosing."
571
622
  link: "Learn more about migrating apps to the projects framework"
572
623
  deprecationWarning: "The {{ oldCommand }} command is deprecated and will be removed. Use {{ newCommand }} going forward."
573
624
  migrationStatus:
@@ -585,41 +636,15 @@ en:
585
636
  migrationInterrupted: "\nThe command is terminated, but app migration is still in progress. Please check your account to ensure that the project and associated app have been created successfully."
586
637
  createAppPrompt: "Proceed with migrating this app to a project component (this process can't be aborted)?"
587
638
  projectDetailsLink: "View project details in your developer account"
588
- componentsToBeMigrated: "The following component types will be migrated: {{ components }}"
639
+ componentsToBeMigrated: "The following features will be migrated: {{ components }}"
589
640
  componentsThatWillNotBeMigrated: "[NOTE] These component types are not yet supported for migration but will be available later: {{ components }}"
590
641
  errors:
591
642
  noAppsForProject: "No apps associated with project {{ projectName }}"
592
- noAppsEligible: "No apps in account {{ accountId }} are currently migratable"
593
643
  noAccountConfig: "There is no account associated with {{ accountId }} in the config file. Please choose another account and try again, or authenticate {{ accountId }} using {{ authCommand }}."
594
- invalidAccountTypeTitle: "{{#bold}}Developer account not targeted{{/bold}}"
595
- invalidAccountTypeDescription: "Only public apps created in a developer account can be converted to a project component. Select a connected developer account with {{useCommand}} or {{authCommand}} and try again."
596
644
  projectAlreadyExists: "A project with name {{ projectName }} already exists. Please choose another name."
597
645
  invalidApp: "Could not migrate appId {{ appId }}. This app cannot be migrated at this time. Please choose another public app."
598
- appWithAppIdNotFound: "Could not find an app with the id {{ appId }} "
599
646
  migrationFailed: 'Migration Failed'
600
- prompt:
601
- chooseApp: 'Which app would you like to migrate?'
602
- inputName: '[--name] What would you like to name the project?'
603
- inputDest: '[--dest] Where would you like to save the project?'
604
- uidForComponent: 'What UID would you like to use for {{ componentName }}?'
605
- proceed: 'Would you like to proceed?'
606
- spinners:
607
- beginningMigration: "Beginning migration"
608
- unableToStartMigration: "Unable to begin migration"
609
- finishingMigration: "Wrapping up migration"
610
- migrationComplete: "Migration completed"
611
- migrationFailed: "Migration failed"
612
- downloadingProjectContents: "Downloading migrated project files"
613
- downloadingProjectContentsComplete: "Migrated project files downloaded"
614
- downloadingProjectContentsFailed: "Unable to download migrated project files"
615
- copyingProjectFiles: "Copying migrated project files"
616
- copyingProjectFilesComplete: "Migrated project files copied"
617
- copyingProjectFilesFailed: "Unable to copy migrated project files"
618
- unmigratableReasons:
619
- upToDate: 'App is already up to date'
620
- isPrivateApp: 'Private apps are not currently migratable'
621
- listedInMarketplace: 'Listed apps are not currently migratable'
622
- generic: "Unable to migrate app: {{ reasonCode }}"
647
+ notAllowedWithinProject: 'This command cannot be run from within a project directory. Run the command again from outside a project directory. If you are trying to migrate a project, run {{ command }}'
623
648
  cloneApp:
624
649
  describe: "Clone a public app using the projects framework."
625
650
  examples:
@@ -656,12 +681,6 @@ en:
656
681
  examples:
657
682
  default: "Create a component within your project"
658
683
  withFlags: "Use --name and --type flags to bypass the prompt."
659
- migrate:
660
- describe: "Migrate a project to the projects framework."
661
- errors:
662
- noProjectConfig: "No project detected. Please run this command again from a project directory."
663
- examples:
664
- default: "Migrate a project to the projects framework"
665
684
  deploy:
666
685
  describe: "Deploy a project build."
667
686
  deployBuildIdPrompt: "[--build] Deploy which build?"
@@ -675,6 +694,7 @@ en:
675
694
  buildIdDoesNotExist: "Build {{ buildId }} does not exist for project {{ projectName }}. {{ linkToProject }}"
676
695
  buildAlreadyDeployed: "Build {{ buildId }} is already deployed. {{ linkToProject}}"
677
696
  viewProjectsBuilds: 'View project builds in HubSpot'
697
+ deployContainsRemovals: "- This deploy would remove the {{#bold}}{{ componentName }}{{/bold}} component. To proceed, run the deploy command with the {{ forceFlag }} flag"
678
698
  examples:
679
699
  default: "Deploy the latest build of the current project"
680
700
  withOptions: "Deploy build 5 of the project my-project"
@@ -683,6 +703,10 @@ en:
683
703
  describe: "Project build ID to be deployed"
684
704
  project:
685
705
  describe: "Project name"
706
+ profile:
707
+ describe: "The profile to target with this deploy"
708
+ force:
709
+ describe: "Skip warnings and force deploy. Use this carefully as it will bypass warnings for destructive actions."
686
710
  listBuilds:
687
711
  describe: "List the project's builds."
688
712
  continueOrExitPrompt: "Press <enter> to load more, or ctrl+c to exit"
@@ -750,6 +774,8 @@ en:
750
774
  describe: "Automatically create project if it does not exist"
751
775
  message:
752
776
  describe: "Add a message when you upload your project and create a build"
777
+ profile:
778
+ describe: "The profile to target with this upload"
753
779
  watch:
754
780
  describe: "Watch your local project for changes and automatically upload changed files to a new build in HubSpot."
755
781
  examples:
@@ -775,9 +801,12 @@ en:
775
801
  attemptNewBuild: "Attempting to create a new build"
776
802
  fileAlreadyQueued: "File \"{{ filePath }}\" is already queued for upload"
777
803
  errors:
804
+ projectConfigNotFound: "No project config found. Please ensure that you are in a project directory."
805
+ projectLockedError: "Your project is locked. This may mean that another user is running the {{#bold}}`hs project dev`{{/bold}} command for this project. If this is you, unlock the project in Projects UI."
778
806
  uploadFailed: "Failed to upload file \"{{ filePath }}\" to \"{{ remotePath }}\""
779
807
  deleteFileFailed: "Failed to delete file \"{{ remotePath }}\""
780
808
  deleteFolderFailed: "Failed to delete folder \"{{ remotePath }}\""
809
+ v3ApiError: "{{ command }} is not supported for platform version '{{ platformVersion}}', use {{ newCommand }} instead to develop locally. {{ linkToDocs }}"
781
810
  download:
782
811
  describe: "Download your project files from HubSpot."
783
812
  examples:
@@ -806,18 +835,10 @@ en:
806
835
  default: "Opens the projects page for the specified account"
807
836
  success: "Successfully opened \"{{ projectName }}\""
808
837
  feedback:
809
- describe: "Leave feedback on HubSpot projects or file a bug report."
810
- feedbackType:
811
- prompt: "What type of feedback would you like to leave?"
812
- bug: "[--bug] Report a bug"
813
- general: "[--general] Tell us about your experience with HubSpot's developer tools"
814
- openPrompt: "Create a Github issue in your browser?"
838
+ describe: "Leave feedback or file a bug report."
839
+ openPrompt: "Open the feedback form in your browser?"
815
840
  success: "We opened {{ url }} in your browser."
816
- options:
817
- bug:
818
- describe: "Open Github issues in your browser to report a bug."
819
- general:
820
- describe: "Open Github issues in your browser to give feedback."
841
+ error: "Navigate to {{ url }} to leave feedback."
821
842
  installDeps:
822
843
  help:
823
844
  describe: "Install the dependencies for your project, or add a dependency to a subcomponent of a project."
@@ -832,14 +853,6 @@ en:
832
853
  noProjectConfig: "No project detected. Run this command from a project directory."
833
854
  noPackageJsonInProject: "No dependencies to install. The project {{ projectName }} folder might be missing component or subcomponent files. {{ link }}"
834
855
  packageManagerNotInstalled: "This command depends on {{ packageManager }}, install {{#bold}}{{ link }}{{/bold}}"
835
- remove:
836
- describe: "Delete a file or folder from HubSpot."
837
- deleted: "Deleted \"{{ path }}\" from account {{ accountId }}"
838
- errors:
839
- deleteFailed: "Deleting \"{{ path }}\" from account {{ accountId }} failed"
840
- positionals:
841
- path:
842
- describe: "Remote hubspot path"
843
856
  sandbox:
844
857
  describe: "Commands for managing sandboxes."
845
858
  subcommands:
@@ -937,144 +950,6 @@ en:
937
950
  success:
938
951
  update: "The secret \"{{ secretName }}\" was updated in the HubSpot account: {{ accountIdentifier }}"
939
952
  updateExplanation: "Existing serverless functions will start using this new value within 10 seconds."
940
- theme:
941
- describe: "Commands for managing themes."
942
- subcommands:
943
- generateSelectors:
944
- describe: "Automatically generates an editor-preview.json file for the given theme. The selectors this command generates are not perfect, so please edit editor-preview.json after running."
945
- errors:
946
- invalidPath: "Could not find directory \"{{ themePath }}\""
947
- fieldsNotFound: "Unable to find theme's fields.json."
948
- noSelectorsFound: "No selectors found."
949
- success: "Selectors generated for {{ themePath }}, please double check the selectors generated at {{ selectorsPath }} before uploading the theme."
950
- positionals:
951
- path:
952
- describe: "The path of the theme you'd like to generate an editor-preview.json for."
953
- marketplaceValidate:
954
- describe: "Validate a theme for the marketplace."
955
- errors:
956
- invalidPath: "The path \"{{ path }}\" is not a path to a folder in the Design Manager"
957
- logs:
958
- validatingTheme: "Validating theme \"{{ path }}\" \n"
959
- results:
960
- required: "Required validation results:"
961
- recommended: "Recommended validation results:"
962
- warnings:
963
- file: "File: {{ file }}"
964
- lineNumber: "Line number: {{ line }}"
965
- noErrors: "No errors"
966
- positionals:
967
- path:
968
- describe: "Path to the theme within the Design Manager."
969
- preview:
970
- describe: "Upload and watch a theme directory on your computer for changes and start a local development server to preview theme changes on a site."
971
- errors:
972
- invalidPath: "The path \"{{ path }}\" is not a path to a directory"
973
- noThemeComponents: "Your project has no theme components available to preview."
974
- positionals:
975
- src:
976
- describe: "Path to the local directory your theme is in, relative to your current working directory"
977
- dest:
978
- describe: "Path in HubSpot Design Tools. Can be a net new path. If you wish to preview a site page using your theme changes it must match the path of the theme used by the site."
979
- options:
980
- notify:
981
- describe: "Log to specified file when a watch task is triggered and after workers have gone idle. Ex. --notify path/to/file"
982
- noSsl:
983
- describe: "Disable HTTPS"
984
- port:
985
- describe: "The port on which to start the local server"
986
- initialUploadProgressBar:
987
- start: "Starting..."
988
- uploading: "Uploading..."
989
- finish: "Complete!"
990
- logs:
991
- processExited: "Stopping dev server..."
992
- module:
993
- describe: "Commands for working with modules, including marketplace validation with the marketplace-validate subcommand."
994
- subcommands:
995
- marketplaceValidate:
996
- describe: "Validate a module for the marketplace. Make sure to include the suffix .module in the path to the module within the Design Manager."
997
- errors:
998
- invalidPath: "The path \"{{ path }}\" is not a path to a module within the Design Manager."
999
- logs:
1000
- validatingModule: "Validating module \"{{ path }}\" \n"
1001
- options:
1002
- json:
1003
- describe: "Output raw json data"
1004
- results:
1005
- required: "Required validation results:"
1006
- recommended: "Recommended validation results:"
1007
- warnings:
1008
- file: "File: {{ file }}"
1009
- lineNumber: "Line number: {{ line }}"
1010
- noErrors: "No errors"
1011
- positionals:
1012
- src:
1013
- describe: "Path to the module within the Design Manager."
1014
- upload:
1015
- describe: "Upload a folder or file from your computer to the HubSpot CMS."
1016
- errors:
1017
- destinationRequired: "A destination path needs to be passed"
1018
- fileIgnored: "The file \"{{ path }}\" is being ignored via an .hsignore rule"
1019
- invalidPath: "The path \"{{ path }}\" is not a path to a file or folder"
1020
- uploadFailed: "Uploading file \"{{ src }}\" to \"{{ dest }}\" failed"
1021
- someFilesFailed: "One or more files failed to upload to \"{{ dest }}\" in the Design Manager"
1022
- deleteFailed: "Deleting \"{{ path }}\" from account {{ accountId }} failed"
1023
- options:
1024
- options:
1025
- describe: "Options to pass to javascript fields files"
1026
- saveOutput:
1027
- describe: "If true, saves all output from javascript fields files as 'fields.output.json'."
1028
- convertFields:
1029
- describe: "If true, converts any javascript fields files contained in module folder or project root."
1030
- clean:
1031
- describe: "Will delete the destination directory and its contents before uploading. This will also clear the global content associated with any global partial templates and modules."
1032
- force:
1033
- describe: "Skips confirmation prompts when doing a clean upload."
1034
- previewUrl: "To preview this theme, visit: {{ previewUrl }}"
1035
- positionals:
1036
- src:
1037
- describe: "Path to the local file, relative to your current working directory."
1038
- dest:
1039
- describe: "Path in HubSpot Design Tools, can be a net new path."
1040
- success:
1041
- fileUploaded: "Uploaded file from \"{{ src }}\" to \"{{ dest }}\" in the Design Manager of account {{ accountId }}"
1042
- uploadComplete: "Uploading files to \"{{ dest }}\" in the Design Manager is complete"
1043
- uploading: "Uploading files from \"{{ src }}\" to \"{{ dest }}\" in the Design Manager of account {{ accountId }}"
1044
- notUploaded: "There was an error processing \"{{ src }}\". The file has not been uploaded."
1045
- cleaning: "Removing \"{{ filePath }}\" from account {{ accountId }} and uploading local..."
1046
- confirmCleanUpload: "You are about to delete the directory \"{{ filePath }}\" and its contents on HubSpot account {{ accountId }} before uploading. This will also clear the global content associated with any global partial templates and modules. Are you sure you want to do this?"
1047
- watch:
1048
- describe: "Watch a directory on your computer for changes and upload the changed files to the HubSpot CMS."
1049
- errors:
1050
- folderFailed: "Initial uploading of folder \"{{ src }}\" to \"{{ dest }}\" in account {{ accountId }} had failures"
1051
- fileFailed: "Upload of file \"{{ file }}\" to \"{{ dest }}\" in account {{ accountId }} failed"
1052
- destinationRequired: "A destination directory needs to be passed"
1053
- invalidPath: "The \"{{ path }}\" is not a path to a directory"
1054
- options:
1055
- disableInitial:
1056
- describe: "Disable the initial upload when watching a directory (default)"
1057
- initialUpload:
1058
- describe: "Upload directory before watching for updates"
1059
- notify:
1060
- describe: "Log to specified file when a watch task is triggered and after workers have gone idle. Ex. --notify path/to/file"
1061
- remove:
1062
- describe: "Will cause watch to delete files in your HubSpot account that are not found locally."
1063
- convertFields:
1064
- describe: "If true, converts any javascript fields files contained in module folder or project root."
1065
- saveOutput:
1066
- describe: "If true, saves all output from javascript fields files as 'fields.output.json'."
1067
- options:
1068
- describe: "Options to pass to javascript fields files"
1069
- positionals:
1070
- src:
1071
- describe: "Path to the local directory your files are in, relative to your current working directory"
1072
- dest:
1073
- describe: "Path in HubSpot Design Tools. Can be a net new path"
1074
- warnings:
1075
- disableInitial: "Passing the \"--disable-initial\" option is no longer necessary. Running \"hs watch\" no longer uploads the watched directory by default."
1076
- initialUpload: "To upload the directory run \"hs upload\" beforehand or add the \"--initial-upload\" option when running \"hs watch\"."
1077
- notUploaded: "The \"hs watch\" command no longer uploads the watched directory when started. The directory \"{{ path }}\" was not uploaded."
1078
953
  convertFields:
1079
954
  describe: "Converts a specific JavaScript fields file of a module or theme to JSON."
1080
955
  positionals:
@@ -1161,10 +1036,10 @@ en:
1161
1036
  errors:
1162
1037
  noProjectsInConfig: "Unable to find any projects in the target repository's config.json file. Please ensure that there is a \"projects\" array in the config file."
1163
1038
  missingConfigFileTemplateSource: "Failed to fetch the config.json file from the target repository. Please ensure that there is a valid config.json file at the root of the repository and try again."
1164
- missingPropertiesInConfig: "Found misconfigured projects in the target repository's config.json file. Please ensure that each project in the target repository's config.json file contains the following properties: [\"name\", \"label\", \"path\", \"insertPath\"]."
1039
+ missingPropertiesInConfig: "Found misconfigured projects in the target repository's config.json file. Please ensure that each project in the target repository's config.json file contains the following properties: [\"name\", \"label\", \"path\"]."
1165
1040
  validateProjectConfig:
1166
1041
  configNotFound: "Unable to locate a project configuration file. Try running again from a project directory, or run {{ createCommand }} to create a new project."
1167
- configMissingFields: "The project configuruation file is missing required fields."
1042
+ configMissingFields: "The project configuration file is missing required fields."
1168
1043
  srcDirNotFound: "Project source directory {{#bold}}{{ srcDir }}{{/bold}} could not be found in {{#bold}}{{ projectDir }}{{/bold}}."
1169
1044
  srcOutsideProjectDir: "Invalid value for 'srcDir' in {{ projectConfig }}: {{#bold}}srcDir: \"{{ srcDir }}\"{{/bold}}\n\t'srcDir' must be a relative path to a folder under the project root, such as \".\" or \"./src\""
1170
1045
  ensureProjectExists:
@@ -1177,19 +1052,6 @@ en:
1177
1052
  logFeedbackMessage:
1178
1053
  feedbackHeader: "We'd love to hear your feedback!"
1179
1054
  feedbackMessage: "How are you liking the new projects and developer tools? \n > Run `{{#yellow}}hs feedback{{/yellow}}` to let us know what you think!\n"
1180
- projectBuildAndDeploy:
1181
- makePollTaskStatusFunc:
1182
- componentCountSingular: "Found 1 component in this project"
1183
- componentCount: "Found {{ numComponents }} components in this project"
1184
- successStatusText: "DONE"
1185
- failedStatusText: "FAILED"
1186
- errorFetchingTaskStatus: "An error occurred while fetching the status of the current {{ taskType }}. For more information, view this project in HubSpot by running {{ openCommand }}."
1187
- pollBuildAutodeployStatusError: "Error fetching autodeploy status for build #{{ buildId }}"
1188
- pollProjectBuildAndDeploy:
1189
- buildSucceededAutomaticallyDeploying: "Build #{{ buildId }} succeeded. {{#bold}}Automatically deploying{{/bold}} to {{ accountIdentifier }}\n"
1190
- cleanedUpTempFile: "Cleaned up temporary file {{ path }}"
1191
- viewDeploys: "View all deploys for this project in HubSpot"
1192
- unableToFindAutodeployStatus: "Unable to find the auto deploy for build #{{ buildId }}. This deploy may have been skipped. {{ viewDeploysLink }}."
1193
1055
  projectUpload:
1194
1056
  uploadProjectFiles:
1195
1057
  add: "Uploading {{#bold}}{{ projectName }}{{/bold}} project files to {{ accountIdentifier }}"
@@ -1221,17 +1083,23 @@ en:
1221
1083
  command: "--account"
1222
1084
  message: "Use the {{ command }} option with any command to override the default account"
1223
1085
  accountsListCommand:
1224
- command: hs accounts list
1086
+ command: "hs account list"
1225
1087
  message: "Run {{ command }} to see a list of configured HubSpot accounts"
1226
1088
  accountsUseCommand:
1227
- command: "hs accounts use"
1089
+ command: "hs account use"
1228
1090
  message: "Run {{ command }} to set the Hubspot account that the CLI will target by default"
1091
+ accountAuthCommand:
1092
+ command: "hs account auth"
1093
+ message: "Run {{ command }} to connect the CLI to additional HubSpot accounts"
1229
1094
  authCommand:
1230
1095
  command: "hs auth"
1231
1096
  message: "Run {{ command }} to connect the CLI to additional HubSpot accounts"
1232
1097
  feedbackCommand:
1233
1098
  command: "hs feedback"
1234
1099
  message: "Run {{ command }} to report a bug or leave feedback"
1100
+ getStartedCommand:
1101
+ command: "hs get-started"
1102
+ message: "Run {{ command }} to get started with HubSpot development"
1235
1103
  helpCommand:
1236
1104
  command: "hs help"
1237
1105
  message: "Run {{ command }} to see a list of available commands"
@@ -1249,7 +1117,7 @@ en:
1249
1117
  message: "Run {{ command }} to upload your project to your HubSpot account"
1250
1118
  projectDevCommand:
1251
1119
  command: "hs project dev"
1252
- message: "Run {{ command }} to set up your test environment and start local development"
1120
+ message: "Run {{ command }} from within your project directory to set up your test environment and start local development"
1253
1121
  projectInstallDepsCommand:
1254
1122
  command: "hs project install-deps"
1255
1123
  message: "Run {{ command }} to install dependencies for your project components"
@@ -1299,7 +1167,7 @@ en:
1299
1167
  sandboxLimit: "Your account reached the limit of {{ limit }} development sandboxes"
1300
1168
  sandboxLimitWithSuggestion: "Your account reached the limit of {{ limit }} development sandboxes. Run {{ authCommand }} to add an existing one to the config."
1301
1169
  developerTestAccountLimit: "Your account reached the limit of {{ limit }} developer test accounts."
1302
- confirmDefaultAccount: "Continue testing on {{#bold}}{{ accountName }} ({{ accountType }}){{/bold}}? (Y/n)"
1170
+ confirmDefaultAccount: "Proceed with local development on {{#bold}}{{ accountName }} [{{ accountType }}]{{/bold}}? (Y/n)"
1303
1171
  confirmUseExistingDeveloperTestAccount: "Continue with {{ accountName }}? This account isn't currently connected to the HubSpot CLI. By continuing, you'll be prompted to generate a personal access key and connect it."
1304
1172
  noAccountId: "No account ID found for the selected account. Please try again."
1305
1173
  projectLogsPrompt:
@@ -1377,7 +1245,8 @@ en:
1377
1245
  invalidDest: "There is an existing project at this destination. Please provide a new path for this project."
1378
1246
  invalidCharacters: "The selected destination contains invalid characters. Please provide a new path and try again."
1379
1247
  invalidTemplate: "[--template] Could not find template \"{{ template }}\". Please choose an available template:"
1380
- selectPublicAppPrompt:
1248
+ projectTemplateRequired: "Project template is required when projectTemplates is provided"
1249
+ selectPublicAppForMigrationPrompt:
1381
1250
  selectAppIdMigrate: "[--appId] Choose an app under {{ accountName }} to migrate:"
1382
1251
  selectAppIdClone: "[--appId] Choose an app under {{ accountName }} to clone:"
1383
1252
  errors:
@@ -1400,8 +1269,8 @@ en:
1400
1269
  nameRequired: "A component name is required"
1401
1270
  invalidType: "[--type] Could not find type \"{{ type }}\". Please choose an available type:"
1402
1271
  secretPrompt:
1403
- enterValue: "Enter a value for your secret: "
1404
- enterName: "Enter a name for your secret: "
1272
+ enterValue: "Enter a value for the secret: "
1273
+ enterName: "Enter the name of the secret to add: "
1405
1274
  selectSecretUpdate: "Select the secret you want to update"
1406
1275
  selectSecretDelete: "Select the secret you want to delete"
1407
1276
  errors:
@@ -1432,12 +1301,6 @@ en:
1432
1301
  errors:
1433
1302
  srcRequired: "You must specify a source directory."
1434
1303
  destRequired: "You must specify a destination directory."
1435
- installPublicAppPrompt:
1436
- explanation: "Local development requires this app to be installed in the target test account"
1437
- reinstallExplanation: "This app's required scopes have been updated since it was last installed on the target test account. To avoid issues with local development, we recommend reinstalling the app with the updated scopes."
1438
- prompt: "Open HubSpot to install this app?"
1439
- reinstallPrompt: "Open HubSpot to reinstall this app?"
1440
- decline: "To continue local development of this app, install it in your target test account and re-run {{#bold}}`hs project dev`{{/bold}}"
1441
1304
  selectHubDBTablePrompt:
1442
1305
  selectTable: "Select a HubDB table:"
1443
1306
  enterDest: "Enter the destination path:"
@@ -1576,6 +1439,9 @@ en:
1576
1439
  doctor:
1577
1440
  runningDiagnostics: "Running diagnostics..."
1578
1441
  diagnosticsComplete: "Diagnostics complete"
1442
+ defaultAccountOverrideFileChecks:
1443
+ overrideActive: "Default account override file active: {{ defaultAccountOverrideFile }}"
1444
+ overrideAccountId: "Active account ID: {{ overrideAccountId }}"
1579
1445
  accountChecks:
1580
1446
  active: "Default account active"
1581
1447
  inactive: "Default account isn't active"
@@ -1627,6 +1493,8 @@ en:
1627
1493
  settings:
1628
1494
  httpUseLocalhost: "The setting {{#bold}}httpUseLocalhost{{/bold}} is enabled"
1629
1495
  httpUseLocalhostSecondary: "This setting causes all CLI requests to route to localhost"
1496
+ defaultAccountOverrideFile:
1497
+ header: "Default account override file path:"
1630
1498
  projectConfig:
1631
1499
  header: "Project configuration"
1632
1500
  projectDirSubHeader: "Project dir: {{#bold}}{{ projectDir }}{{/bold}}"
@@ -5,3 +5,4 @@ export declare function isStandardSandbox(accountConfig: CLIAccount): boolean;
5
5
  export declare function isDevelopmentSandbox(accountConfig: CLIAccount): boolean;
6
6
  export declare function isDeveloperTestAccount(accountConfig: CLIAccount): boolean;
7
7
  export declare function isAppDeveloperAccount(accountConfig: CLIAccount): boolean;
8
+ export declare function isUnifiedAccount(account: CLIAccount): Promise<boolean>;
@@ -6,7 +6,11 @@ exports.isStandardSandbox = isStandardSandbox;
6
6
  exports.isDevelopmentSandbox = isDevelopmentSandbox;
7
7
  exports.isDeveloperTestAccount = isDeveloperTestAccount;
8
8
  exports.isAppDeveloperAccount = isAppDeveloperAccount;
9
+ exports.isUnifiedAccount = isUnifiedAccount;
9
10
  const config_1 = require("@hubspot/local-dev-lib/constants/config");
11
+ const hasFeature_1 = require("./hasFeature");
12
+ const constants_1 = require("./constants");
13
+ const getAccountIdentifier_1 = require("@hubspot/local-dev-lib/config/getAccountIdentifier");
10
14
  function isAccountType(accountConfig, accountType) {
11
15
  return (Boolean(accountConfig.accountType) &&
12
16
  accountConfig.accountType === accountType);
@@ -30,3 +34,10 @@ function isDeveloperTestAccount(accountConfig) {
30
34
  function isAppDeveloperAccount(accountConfig) {
31
35
  return isAccountType(accountConfig, config_1.HUBSPOT_ACCOUNT_TYPES.APP_DEVELOPER);
32
36
  }
37
+ async function isUnifiedAccount(account) {
38
+ const accountId = (0, getAccountIdentifier_1.getAccountIdentifier)(account);
39
+ if (!accountId) {
40
+ return false;
41
+ }
42
+ return (0, hasFeature_1.hasFeature)(accountId, constants_1.FEATURES.UNIFIED_APPS);
43
+ }
@@ -1,5 +1,34 @@
1
1
  import { ArgumentsCamelCase } from 'yargs';
2
- import { LoadedProjectConfig } from '../projects';
3
- import { MigrateAppOptions } from '../../types/Yargs';
4
- export declare function migrateApp2025_2(derivedAccountId: number, options: ArgumentsCamelCase<MigrateAppOptions>, projectConfig?: LoadedProjectConfig): Promise<void>;
5
- export declare function logInvalidAccountError(i18nKey: string): void;
2
+ import { LoadedProjectConfig } from '../projects/config';
3
+ import { MigrationApp, MigrationFailed, MigrationStatus } from '../../api/migrate';
4
+ import { AccountArgs, CommonArgs, ConfigArgs, EnvironmentArgs } from '../../types/Yargs';
5
+ export type MigrateAppArgs = CommonArgs & AccountArgs & EnvironmentArgs & ConfigArgs & {
6
+ name?: string;
7
+ dest?: string;
8
+ appId?: number;
9
+ platformVersion: string;
10
+ unstable: boolean;
11
+ };
12
+ export declare function getUnmigratableReason(reasonCode: string, projectName: string | undefined, accountId: number): string;
13
+ export declare function generateFilterAppsByProjectNameFunction(projectConfig?: LoadedProjectConfig): (app: MigrationApp) => boolean;
14
+ export declare function buildErrorMessageFromMigrationStatus(error: MigrationFailed): string;
15
+ export declare function fetchMigrationApps(appId: MigrateAppArgs['appId'], derivedAccountId: number, platformVersion: string, projectConfig?: LoadedProjectConfig): Promise<MigrationApp[]>;
16
+ export declare function promptForAppToMigrate(allApps: MigrationApp[], derivedAccountId: number): Promise<number>;
17
+ export declare function selectAppToMigrate(allApps: MigrationApp[], derivedAccountId: number, appId?: number): Promise<{
18
+ proceed: boolean;
19
+ appIdToMigrate?: number;
20
+ }>;
21
+ export declare function handleMigrationSetup(derivedAccountId: number, options: ArgumentsCamelCase<MigrateAppArgs>, projectConfig?: LoadedProjectConfig): Promise<{
22
+ appIdToMigrate?: number | undefined;
23
+ projectName?: string;
24
+ projectDest?: string;
25
+ }>;
26
+ export declare function beginMigration(derivedAccountId: number, appId: number, platformVersion: string): Promise<{
27
+ migrationId: number;
28
+ uidMap: Record<string, string>;
29
+ } | undefined>;
30
+ export declare function pollMigrationStatus(derivedAccountId: number, migrationId: number, successStates?: string[]): Promise<MigrationStatus>;
31
+ export declare function finalizeMigration(derivedAccountId: number, migrationId: number, uidMap: Record<string, string>, projectName: string): Promise<number>;
32
+ export declare function downloadProjectFiles(derivedAccountId: number, projectName: string, buildId: number, projectDest: string, projectConfig?: LoadedProjectConfig): Promise<void>;
33
+ export declare function migrateApp2025_2(derivedAccountId: number, options: ArgumentsCamelCase<MigrateAppArgs>, projectConfig?: LoadedProjectConfig): Promise<void>;
34
+ export declare function logInvalidAccountError(): void;