@hubspot/cli 7.7.21-experimental.1 → 7.7.22-experimental.0
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.
- package/api/__tests__/migrate.test.js +27 -29
- package/api/migrate.js +14 -22
- package/bin/cli.js +92 -97
- package/bin/hs +2 -2
- package/bin/hscms +2 -2
- package/bin/silenceErrors.js +1 -2
- package/commands/__tests__/account.test.js +29 -34
- package/commands/__tests__/auth.test.js +11 -16
- package/commands/__tests__/cms.test.js +15 -20
- package/commands/__tests__/config.test.js +14 -19
- package/commands/__tests__/create.test.js +10 -15
- package/commands/__tests__/customObject.test.js +14 -19
- package/commands/__tests__/doctor.test.js +43 -48
- package/commands/__tests__/feedback.test.js +7 -45
- package/commands/__tests__/fetch.test.js +29 -28
- package/commands/__tests__/filemanager.test.js +14 -19
- package/commands/__tests__/function.test.js +16 -21
- package/commands/__tests__/getStarted.test.js +45 -50
- package/commands/__tests__/hubdb.test.js +17 -22
- package/commands/__tests__/init.test.js +12 -17
- package/commands/__tests__/lint.test.js +13 -18
- package/commands/__tests__/list.test.js +18 -23
- package/commands/__tests__/logs.test.js +28 -27
- package/commands/__tests__/mcp.test.js +14 -19
- package/commands/__tests__/mv.test.js +14 -52
- package/commands/__tests__/open.test.js +13 -51
- package/commands/__tests__/project.test.js +44 -49
- package/commands/__tests__/remove.test.js +13 -51
- package/commands/__tests__/sandbox.test.js +14 -19
- package/commands/__tests__/secret.test.js +16 -21
- package/commands/__tests__/testAccount.test.js +16 -21
- package/commands/__tests__/theme.test.js +15 -20
- package/commands/account/__tests__/auth.test.js +11 -16
- package/commands/account/__tests__/clean.test.js +12 -17
- package/commands/account/__tests__/createOverride.test.js +10 -15
- package/commands/account/__tests__/info.test.js +11 -16
- package/commands/account/__tests__/list.test.js +11 -16
- package/commands/account/__tests__/remove.test.js +13 -18
- package/commands/account/__tests__/removeOverride.js +8 -13
- package/commands/account/__tests__/rename.test.js +15 -20
- package/commands/account/__tests__/use.test.js +10 -15
- package/commands/account/auth.d.ts +1 -1
- package/commands/account/auth.js +65 -67
- package/commands/account/clean.d.ts +1 -1
- package/commands/account/clean.js +55 -60
- package/commands/account/createOverride.d.ts +1 -1
- package/commands/account/createOverride.js +52 -57
- package/commands/account/info.d.ts +1 -1
- package/commands/account/info.js +33 -35
- package/commands/account/list.d.ts +1 -1
- package/commands/account/list.js +43 -45
- package/commands/account/remove.d.ts +1 -1
- package/commands/account/remove.js +37 -42
- package/commands/account/removeOverride.d.ts +1 -1
- package/commands/account/removeOverride.js +38 -43
- package/commands/account/rename.d.ts +1 -1
- package/commands/account/rename.js +18 -20
- package/commands/account/use.d.ts +1 -1
- package/commands/account/use.js +29 -31
- package/commands/account.d.ts +1 -1
- package/commands/account.js +23 -28
- package/commands/app/__tests__/migrate.test.js +29 -34
- package/commands/app/migrate.d.ts +2 -2
- package/commands/app/migrate.js +40 -43
- package/commands/app/secret/__tests__/add.test.js +6 -11
- package/commands/app/secret/__tests__/delete.test.js +6 -11
- package/commands/app/secret/__tests__/list.test.js +6 -11
- package/commands/app/secret/__tests__/update.test.js +6 -11
- package/commands/app/secret/add.d.ts +1 -1
- package/commands/app/secret/add.js +28 -30
- package/commands/app/secret/delete.d.ts +1 -1
- package/commands/app/secret/delete.js +34 -36
- package/commands/app/secret/list.d.ts +1 -1
- package/commands/app/secret/list.js +25 -27
- package/commands/app/secret/update.d.ts +1 -1
- package/commands/app/secret/update.js +32 -34
- package/commands/app/secret.d.ts +1 -1
- package/commands/app/secret.js +12 -17
- package/commands/app.d.ts +1 -1
- package/commands/app.js +6 -16
- package/commands/auth.d.ts +1 -1
- package/commands/auth.js +70 -72
- package/commands/cms/convertFields.d.ts +1 -1
- package/commands/cms/convertFields.js +34 -39
- package/commands/cms/getReactModule.d.ts +1 -1
- package/commands/cms/getReactModule.js +32 -37
- package/commands/cms/lighthouseScore.d.ts +1 -1
- package/commands/cms/lighthouseScore.js +67 -72
- package/commands/cms.d.ts +1 -1
- package/commands/cms.js +11 -16
- package/commands/completion.d.ts +1 -1
- package/commands/completion.js +10 -15
- package/commands/config/migrate.d.ts +1 -1
- package/commands/config/migrate.js +27 -32
- package/commands/config/set.d.ts +1 -1
- package/commands/config/set.js +23 -25
- package/commands/config.d.ts +1 -1
- package/commands/config.js +8 -13
- package/commands/create/api-sample.d.ts +1 -1
- package/commands/create/api-sample.js +28 -33
- package/commands/create/app.d.ts +1 -1
- package/commands/create/app.js +3 -5
- package/commands/create/function.d.ts +1 -1
- package/commands/create/function.js +9 -11
- package/commands/create/index.d.ts +1 -1
- package/commands/create/index.js +19 -24
- package/commands/create/module.d.ts +1 -1
- package/commands/create/module.js +12 -14
- package/commands/create/react-app.d.ts +1 -1
- package/commands/create/react-app.js +3 -5
- package/commands/create/template.d.ts +1 -1
- package/commands/create/template.js +12 -14
- package/commands/create/vue-app.d.ts +1 -1
- package/commands/create/vue-app.js +3 -5
- package/commands/create/webpack-serverless.d.ts +1 -1
- package/commands/create/webpack-serverless.js +3 -5
- package/commands/create/website-theme.d.ts +1 -1
- package/commands/create/website-theme.js +5 -7
- package/commands/create.d.ts +2 -2
- package/commands/create.js +30 -35
- package/commands/customObject/__tests__/create.test.js +13 -18
- package/commands/customObject/__tests__/schema.test.js +18 -23
- package/commands/customObject/create.d.ts +1 -1
- package/commands/customObject/create.js +28 -30
- package/commands/customObject/schema/__tests__/create.test.js +13 -18
- package/commands/customObject/schema/__tests__/delete.test.js +13 -18
- package/commands/customObject/schema/__tests__/fetch-all.test.js +13 -18
- package/commands/customObject/schema/__tests__/fetch.test.js +13 -18
- package/commands/customObject/schema/__tests__/list.test.js +13 -18
- package/commands/customObject/schema/__tests__/update.test.js +13 -18
- package/commands/customObject/schema/create.d.ts +1 -1
- package/commands/customObject/schema/create.js +28 -30
- package/commands/customObject/schema/delete.d.ts +1 -1
- package/commands/customObject/schema/delete.js +24 -26
- package/commands/customObject/schema/fetch-all.d.ts +1 -1
- package/commands/customObject/schema/fetch-all.js +22 -24
- package/commands/customObject/schema/fetch.d.ts +1 -1
- package/commands/customObject/schema/fetch.js +24 -26
- package/commands/customObject/schema/list.d.ts +1 -1
- package/commands/customObject/schema/list.js +13 -15
- package/commands/customObject/schema/update.d.ts +1 -1
- package/commands/customObject/schema/update.js +32 -34
- package/commands/customObject/schema.d.ts +1 -1
- package/commands/customObject/schema.js +17 -22
- package/commands/customObject.d.ts +1 -1
- package/commands/customObject.js +13 -18
- package/commands/doctor.d.ts +1 -1
- package/commands/doctor.js +28 -33
- package/commands/feedback.d.ts +1 -1
- package/commands/feedback.js +19 -24
- package/commands/fetch.d.ts +1 -1
- package/commands/fetch.js +28 -30
- package/commands/filemanager/__tests__/fetch.test.js +17 -22
- package/commands/filemanager/__tests__/upload.test.js +15 -20
- package/commands/filemanager/fetch.d.ts +1 -1
- package/commands/filemanager/fetch.js +23 -25
- package/commands/filemanager/upload.d.ts +1 -1
- package/commands/filemanager/upload.js +39 -44
- package/commands/filemanager.d.ts +1 -1
- package/commands/filemanager.js +8 -13
- package/commands/function/deploy.d.ts +1 -1
- package/commands/function/deploy.js +35 -40
- package/commands/function/list.d.ts +1 -1
- package/commands/function/list.js +24 -29
- package/commands/function/server.d.ts +1 -1
- package/commands/function/server.js +15 -17
- package/commands/function.d.ts +1 -1
- package/commands/function.js +12 -18
- package/commands/getStarted.d.ts +1 -1
- package/commands/getStarted.js +119 -125
- package/commands/hubdb/__tests__/clear.test.js +13 -18
- package/commands/hubdb/__tests__/create.test.js +13 -18
- package/commands/hubdb/__tests__/delete.test.js +13 -18
- package/commands/hubdb/__tests__/fetch.test.js +13 -18
- package/commands/hubdb/__tests__/list.test.js +23 -28
- package/commands/hubdb/clear.d.ts +1 -1
- package/commands/hubdb/clear.js +20 -22
- package/commands/hubdb/create.d.ts +1 -1
- package/commands/hubdb/create.js +30 -35
- package/commands/hubdb/delete.d.ts +1 -1
- package/commands/hubdb/delete.js +24 -26
- package/commands/hubdb/fetch.d.ts +1 -1
- package/commands/hubdb/fetch.js +17 -19
- package/commands/hubdb/list.d.ts +1 -1
- package/commands/hubdb/list.js +33 -35
- package/commands/hubdb.d.ts +1 -1
- package/commands/hubdb.js +18 -24
- package/commands/init.d.ts +1 -1
- package/commands/init.js +83 -88
- package/commands/lint.d.ts +1 -1
- package/commands/lint.js +24 -26
- package/commands/list.d.ts +1 -1
- package/commands/list.js +32 -37
- package/commands/logs.d.ts +1 -1
- package/commands/logs.js +35 -37
- package/commands/mcp/__tests__/setup.test.js +7 -12
- package/commands/mcp/__tests__/start.test.js +7 -12
- package/commands/mcp/setup.d.ts +1 -1
- package/commands/mcp/setup.js +17 -19
- package/commands/mcp/start.d.ts +1 -1
- package/commands/mcp/start.js +29 -34
- package/commands/mcp.d.ts +1 -1
- package/commands/mcp.js +7 -12
- package/commands/module/marketplace-validate.d.ts +1 -1
- package/commands/module/marketplace-validate.js +21 -26
- package/commands/module.d.ts +1 -1
- package/commands/module.js +7 -13
- package/commands/mv.d.ts +1 -1
- package/commands/mv.js +20 -22
- package/commands/open.d.ts +1 -1
- package/commands/open.js +19 -21
- package/commands/project/__tests__/add.test.js +10 -15
- package/commands/project/__tests__/create.test.js +14 -19
- package/commands/project/__tests__/deploy.test.js +96 -134
- package/commands/project/__tests__/devUnifiedFlow.test.js +133 -139
- package/commands/project/__tests__/download.test.js +14 -19
- package/commands/project/__tests__/installDeps.test.js +32 -70
- package/commands/project/__tests__/listBuilds.test.js +14 -19
- package/commands/project/__tests__/logs.test.js +56 -94
- package/commands/project/__tests__/migrate.test.js +25 -30
- package/commands/project/__tests__/migrateApp.test.js +17 -22
- package/commands/project/__tests__/open.test.js +16 -21
- package/commands/project/__tests__/profile.test.js +14 -19
- package/commands/project/__tests__/upload.test.js +18 -23
- package/commands/project/__tests__/watch.test.js +14 -19
- package/commands/project/add.d.ts +1 -1
- package/commands/project/add.js +34 -36
- package/commands/project/cloneApp.d.ts +1 -1
- package/commands/project/cloneApp.js +67 -72
- package/commands/project/create.d.ts +2 -2
- package/commands/project/create.js +63 -68
- package/commands/project/deploy.d.ts +1 -1
- package/commands/project/deploy.js +67 -69
- package/commands/project/dev/deprecatedFlow.d.ts +2 -2
- package/commands/project/dev/deprecatedFlow.js +52 -58
- package/commands/project/dev/index.d.ts +1 -1
- package/commands/project/dev/index.js +44 -47
- package/commands/project/dev/unifiedFlow.d.ts +3 -3
- package/commands/project/dev/unifiedFlow.js +62 -68
- package/commands/project/download.d.ts +1 -1
- package/commands/project/download.js +35 -40
- package/commands/project/installDeps.d.ts +1 -1
- package/commands/project/installDeps.js +29 -34
- package/commands/project/listBuilds.d.ts +1 -1
- package/commands/project/listBuilds.js +40 -45
- package/commands/project/logs.d.ts +1 -1
- package/commands/project/logs.js +52 -54
- package/commands/project/migrate.d.ts +1 -1
- package/commands/project/migrate.js +24 -26
- package/commands/project/migrateApp.d.ts +2 -2
- package/commands/project/migrateApp.js +18 -20
- package/commands/project/open.d.ts +1 -1
- package/commands/project/open.js +25 -30
- package/commands/project/profile/add.d.ts +1 -1
- package/commands/project/profile/add.js +68 -73
- package/commands/project/profile/delete.d.ts +1 -1
- package/commands/project/profile/delete.js +51 -56
- package/commands/project/profile.d.ts +1 -1
- package/commands/project/profile.js +9 -14
- package/commands/project/upload.d.ts +1 -1
- package/commands/project/upload.js +50 -55
- package/commands/project/validate.d.ts +1 -1
- package/commands/project/validate.js +35 -40
- package/commands/project/watch.d.ts +1 -1
- package/commands/project/watch.js +59 -61
- package/commands/project.d.ts +1 -1
- package/commands/project.js +38 -43
- package/commands/remove.d.ts +1 -1
- package/commands/remove.js +15 -17
- package/commands/sandbox/__tests__/create.test.js +15 -20
- package/commands/sandbox/__tests__/delete.test.js +15 -20
- package/commands/sandbox/create.d.ts +1 -1
- package/commands/sandbox/create.js +67 -69
- package/commands/sandbox/delete.d.ts +1 -1
- package/commands/sandbox/delete.js +94 -96
- package/commands/sandbox.d.ts +1 -1
- package/commands/sandbox.js +9 -14
- package/commands/secret/__tests__/addSecret.test.js +13 -18
- package/commands/secret/__tests__/deleteSecret.test.js +13 -18
- package/commands/secret/__tests__/listSecret.test.js +13 -18
- package/commands/secret/__tests__/updateSecret.test.js +13 -18
- package/commands/secret/addSecret.d.ts +1 -1
- package/commands/secret/addSecret.js +26 -28
- package/commands/secret/deleteSecret.d.ts +1 -1
- package/commands/secret/deleteSecret.js +27 -29
- package/commands/secret/listSecret.d.ts +1 -1
- package/commands/secret/listSecret.js +19 -21
- package/commands/secret/updateSecret.d.ts +1 -1
- package/commands/secret/updateSecret.js +25 -27
- package/commands/secret.d.ts +1 -1
- package/commands/secret.js +13 -18
- package/commands/testAccount/__tests__/create.test.js +17 -22
- package/commands/testAccount/__tests__/createConfig.test.js +6 -11
- package/commands/testAccount/__tests__/delete.test.js +15 -20
- package/commands/testAccount/create.d.ts +1 -1
- package/commands/testAccount/create.js +45 -53
- package/commands/testAccount/createConfig.d.ts +1 -1
- package/commands/testAccount/createConfig.js +36 -41
- package/commands/testAccount/delete.d.ts +1 -1
- package/commands/testAccount/delete.js +17 -19
- package/commands/testAccount.d.ts +1 -1
- package/commands/testAccount.js +10 -15
- package/commands/theme/__tests__/generate-selectors.test.js +7 -12
- package/commands/theme/__tests__/marketplace-validate.test.js +14 -19
- package/commands/theme/__tests__/preview.test.js +12 -17
- package/commands/theme/generate-selectors.d.ts +1 -1
- package/commands/theme/generate-selectors.js +23 -28
- package/commands/theme/marketplace-validate.d.ts +1 -1
- package/commands/theme/marketplace-validate.js +19 -24
- package/commands/theme/preview.d.ts +1 -1
- package/commands/theme/preview.js +60 -65
- package/commands/theme.d.ts +1 -1
- package/commands/theme.js +11 -16
- package/commands/upload.d.ts +1 -1
- package/commands/upload.js +77 -82
- package/commands/watch.d.ts +1 -1
- package/commands/watch.js +45 -51
- package/lang/en.d.ts +0 -22
- package/lang/en.js +371 -399
- package/lib/__tests__/accountTypes.test.js +20 -22
- package/lib/__tests__/buildAccount.test.js +28 -63
- package/lib/__tests__/commonOpts.test.js +20 -22
- package/lib/__tests__/dependencyManagement.test.js +46 -51
- package/lib/__tests__/developerTestAccounts.test.js +27 -62
- package/lib/__tests__/hasFeature.test.js +6 -8
- package/lib/__tests__/npm.test.js +15 -20
- package/lib/__tests__/oauth.test.js +23 -28
- package/lib/__tests__/parsing.test.js +18 -20
- package/lib/__tests__/polling.test.js +24 -26
- package/lib/__tests__/process.test.js +14 -19
- package/lib/__tests__/projectProfiles.test.js +34 -39
- package/lib/__tests__/sandboxSync.test.js +30 -35
- package/lib/__tests__/sandboxes.test.js +29 -31
- package/lib/__tests__/serverlessLogs.test.js +8 -13
- package/lib/__tests__/usageTracking.test.js +33 -34
- package/lib/__tests__/validation.test.js +18 -20
- package/lib/__tests__/yargsUtils.test.js +6 -41
- package/lib/accountTypes.js +24 -34
- package/lib/app/__tests__/migrate.test.js +94 -99
- package/lib/app/__tests__/migrate_legacy.test.js +29 -31
- package/lib/app/migrate.d.ts +3 -3
- package/lib/app/migrate.js +127 -145
- package/lib/app/migrate_legacy.d.ts +1 -1
- package/lib/app/migrate_legacy.js +72 -78
- package/lib/app/urls.js +5 -9
- package/lib/buildAccount.d.ts +1 -1
- package/lib/buildAccount.js +71 -80
- package/lib/commonOpts.d.ts +1 -1
- package/lib/commonOpts.js +42 -59
- package/lib/configMigrate.js +34 -38
- package/lib/configOptions.js +34 -40
- package/lib/constants.js +31 -34
- package/lib/customObject.js +2 -6
- package/lib/dependencyManagement.js +37 -45
- package/lib/developerTestAccounts.d.ts +1 -1
- package/lib/developerTestAccounts.js +34 -39
- package/lib/doctor/Diagnosis.d.ts +1 -1
- package/lib/doctor/Diagnosis.js +25 -29
- package/lib/doctor/DiagnosticInfoBuilder.d.ts +1 -1
- package/lib/doctor/DiagnosticInfoBuilder.js +30 -37
- package/lib/doctor/Doctor.d.ts +1 -1
- package/lib/doctor/Doctor.js +94 -101
- package/lib/doctor/__tests__/Diagnosis.test.js +9 -14
- package/lib/doctor/__tests__/DiagnosticInfoBuilder.test.js +29 -34
- package/lib/doctor/__tests__/Doctor.test.js +24 -26
- package/lib/enums/exitCodes.js +1 -4
- package/lib/errorHandlers/index.js +32 -41
- package/lib/errorHandlers/suppressError.d.ts +1 -1
- package/lib/errorHandlers/suppressError.js +28 -31
- package/lib/filesystem.js +8 -15
- package/lib/generateSelectors.js +18 -29
- package/lib/hasFeature.d.ts +1 -1
- package/lib/hasFeature.js +3 -6
- package/lib/interpolation.js +11 -18
- package/lib/lang.d.ts +1 -1
- package/lib/lang.js +22 -27
- package/lib/links.js +16 -24
- package/lib/marketplaceValidate.js +29 -39
- package/lib/mcp/setup.js +70 -82
- package/lib/middleware/__test__/configMiddleware.test.js +20 -55
- package/lib/middleware/__test__/gitMiddleware.test.js +7 -42
- package/lib/middleware/__test__/notificationsMiddleware.test.js +2 -4
- package/lib/middleware/__test__/requestMiddleware.test.js +6 -11
- package/lib/middleware/__test__/utils.test.js +9 -11
- package/lib/middleware/__test__/yargsChecksMiddleware.test.js +9 -44
- package/lib/middleware/autoUpdateMiddleware.js +33 -40
- package/lib/middleware/configMiddleware.js +36 -42
- package/lib/middleware/fireAlarmMiddleware.js +12 -18
- package/lib/middleware/gitMiddleware.js +5 -8
- package/lib/middleware/notificationsMiddleware.js +16 -23
- package/lib/middleware/requestMiddleware.js +4 -10
- package/lib/middleware/utils.js +1 -4
- package/lib/middleware/yargsChecksMiddleware.js +10 -13
- package/lib/npm.js +14 -23
- package/lib/oauth.js +29 -35
- package/lib/parsing.js +3 -6
- package/lib/polling.js +11 -15
- package/lib/process.js +11 -19
- package/lib/projectProfiles.d.ts +2 -2
- package/lib/projectProfiles.js +32 -42
- package/lib/projects/ProjectLogsManager.js +18 -21
- package/lib/projects/__tests__/AppDevModeInterface.test.js +140 -145
- package/lib/projects/__tests__/LocalDevProcess.test.js +68 -73
- package/lib/projects/__tests__/LocalDevWebsocketServer.test.js +32 -37
- package/lib/projects/__tests__/ProjectLogsManager.test.js +56 -58
- package/lib/projects/__tests__/buildAndDeploy.test.js +7 -9
- package/lib/projects/__tests__/components.test.js +9 -14
- package/lib/projects/__tests__/projects.test.js +35 -40
- package/lib/projects/__tests__/structure.test.js +43 -81
- package/lib/projects/add/__tests__/legacyAddComponent.test.js +26 -28
- package/lib/projects/add/__tests__/v3AddComponent.test.js +25 -30
- package/lib/projects/add/legacyAddComponent.d.ts +1 -1
- package/lib/projects/add/legacyAddComponent.js +24 -30
- package/lib/projects/add/v3AddComponent.d.ts +1 -1
- package/lib/projects/add/v3AddComponent.js +36 -42
- package/lib/projects/buildAndDeploy.d.ts +1 -1
- package/lib/projects/buildAndDeploy.js +88 -97
- package/lib/projects/components.js +19 -25
- package/lib/projects/config.d.ts +1 -1
- package/lib/projects/config.js +32 -41
- package/lib/projects/create/__tests__/legacy.test.js +22 -57
- package/lib/projects/create/__tests__/v3.test.js +5 -7
- package/lib/projects/create/index.d.ts +3 -3
- package/lib/projects/create/index.js +19 -22
- package/lib/projects/create/legacy.d.ts +1 -1
- package/lib/projects/create/legacy.js +25 -31
- package/lib/projects/create/v3.d.ts +3 -3
- package/lib/projects/create/v3.js +49 -59
- package/lib/projects/ensureProjectExists.js +31 -37
- package/lib/projects/localDev/AppDevModeInterface.d.ts +3 -3
- package/lib/projects/localDev/AppDevModeInterface.js +58 -60
- package/lib/projects/localDev/DevServerManager.d.ts +1 -1
- package/lib/projects/localDev/DevServerManager.js +22 -24
- package/lib/projects/localDev/DevServerManagerV2.d.ts +2 -2
- package/lib/projects/localDev/DevServerManagerV2.js +15 -20
- package/lib/projects/localDev/LocalDevLogger.d.ts +1 -1
- package/lib/projects/localDev/LocalDevLogger.js +59 -64
- package/lib/projects/localDev/LocalDevManager.d.ts +1 -1
- package/lib/projects/localDev/LocalDevManager.js +106 -111
- package/lib/projects/localDev/LocalDevProcess.d.ts +4 -4
- package/lib/projects/localDev/LocalDevProcess.js +25 -30
- package/lib/projects/localDev/LocalDevState.d.ts +3 -3
- package/lib/projects/localDev/LocalDevState.js +3 -5
- package/lib/projects/localDev/LocalDevWatcher.d.ts +1 -1
- package/lib/projects/localDev/LocalDevWatcher.js +6 -11
- package/lib/projects/localDev/LocalDevWebsocketServer.d.ts +1 -1
- package/lib/projects/localDev/LocalDevWebsocketServer.js +25 -27
- package/lib/projects/localDev/helpers.d.ts +3 -3
- package/lib/projects/localDev/helpers.js +156 -174
- package/lib/projects/structure.d.ts +4 -4
- package/lib/projects/structure.js +32 -78
- package/lib/projects/ui.js +10 -13
- package/lib/projects/upload.d.ts +2 -3
- package/lib/projects/upload.js +55 -65
- package/lib/projects/urls.js +14 -24
- package/lib/projects/watch.d.ts +1 -1
- package/lib/projects/watch.js +48 -54
- package/lib/prompts/__tests__/downloadProjectPrompt.test.js +9 -11
- package/lib/prompts/__tests__/projectsLogsPrompt.test.js +11 -16
- package/lib/prompts/accountNamePrompt.d.ts +1 -1
- package/lib/prompts/accountNamePrompt.js +26 -31
- package/lib/prompts/accountsPrompt.js +12 -15
- package/lib/prompts/cmsFieldPrompt.js +13 -19
- package/lib/prompts/createApiSamplePrompt.d.ts +1 -1
- package/lib/prompts/createApiSamplePrompt.js +9 -12
- package/lib/prompts/createDeveloperTestAccountConfigPrompt.d.ts +1 -1
- package/lib/prompts/createDeveloperTestAccountConfigPrompt.js +23 -26
- package/lib/prompts/createFunctionPrompt.js +17 -20
- package/lib/prompts/createModulePrompt.js +12 -15
- package/lib/prompts/createTemplatePrompt.js +5 -8
- package/lib/prompts/downloadProjectPrompt.js +17 -20
- package/lib/prompts/installAppPrompt.js +19 -26
- package/lib/prompts/personalAccessKeyPrompt.d.ts +2 -2
- package/lib/prompts/personalAccessKeyPrompt.js +40 -47
- package/lib/prompts/previewPrompt.js +15 -22
- package/lib/prompts/projectAddPrompt.d.ts +1 -1
- package/lib/prompts/projectAddPrompt.js +14 -18
- package/lib/prompts/projectDevTargetAccountPrompt.d.ts +1 -1
- package/lib/prompts/projectDevTargetAccountPrompt.js +48 -54
- package/lib/prompts/projectNameAndDestPrompt.d.ts +1 -1
- package/lib/prompts/projectNameAndDestPrompt.js +22 -29
- package/lib/prompts/projectNamePrompt.js +11 -14
- package/lib/prompts/projectsLogsPrompt.js +5 -8
- package/lib/prompts/promptUtils.d.ts +1 -1
- package/lib/prompts/promptUtils.js +17 -24
- package/lib/prompts/sandboxesPrompt.d.ts +1 -1
- package/lib/prompts/sandboxesPrompt.js +26 -30
- package/lib/prompts/secretPrompt.js +10 -15
- package/lib/prompts/selectAppPrompt.js +11 -14
- package/lib/prompts/selectHubDBTablePrompt.js +24 -30
- package/lib/prompts/selectProjectTemplatePrompt.d.ts +1 -1
- package/lib/prompts/selectProjectTemplatePrompt.js +10 -13
- package/lib/prompts/selectPublicAppForMigrationPrompt.js +22 -25
- package/lib/prompts/setAsDefaultAccountPrompt.js +13 -16
- package/lib/prompts/uploadPrompt.js +11 -17
- package/lib/sandboxSync.d.ts +1 -1
- package/lib/sandboxSync.js +58 -65
- package/lib/sandboxes.d.ts +1 -1
- package/lib/sandboxes.js +68 -76
- package/lib/schema.js +13 -20
- package/lib/serverlessLogs.js +45 -52
- package/lib/testUtils.js +4 -8
- package/lib/ui/SpinniesManager.d.ts +1 -1
- package/lib/ui/SpinniesManager.js +29 -34
- package/lib/ui/boxen.js +11 -14
- package/lib/ui/git.js +14 -20
- package/lib/ui/index.js +55 -73
- package/lib/ui/logger.js +10 -13
- package/lib/ui/serverlessFunctionLogs.js +14 -20
- package/lib/ui/spinniesUtils.js +24 -39
- package/lib/ui/supportHyperlinks.js +3 -6
- package/lib/ui/supportsColor.js +11 -17
- package/lib/ui/table.js +6 -13
- package/lib/upload.js +15 -21
- package/lib/usageTracking.js +35 -44
- package/lib/utils/hasFlag.js +2 -8
- package/lib/validation.js +48 -87
- package/lib/yargsUtils.d.ts +1 -1
- package/lib/yargsUtils.js +13 -16
- package/mcp-server/server.js +6 -8
- package/mcp-server/tools/index.js +13 -16
- package/mcp-server/tools/project/AddFeatureToProject.d.ts +1 -1
- package/mcp-server/tools/project/AddFeatureToProject.js +35 -39
- package/mcp-server/tools/project/CreateProjectTool.d.ts +1 -1
- package/mcp-server/tools/project/CreateProjectTool.js +46 -50
- package/mcp-server/tools/project/DeployProject.d.ts +1 -1
- package/mcp-server/tools/project/DeployProject.js +18 -22
- package/mcp-server/tools/project/GuidedWalkthroughTool.d.ts +1 -1
- package/mcp-server/tools/project/GuidedWalkthroughTool.js +21 -25
- package/mcp-server/tools/project/UploadProjectTools.d.ts +1 -1
- package/mcp-server/tools/project/UploadProjectTools.js +12 -19
- package/mcp-server/tools/project/ValidateProjectTool.d.ts +1 -1
- package/mcp-server/tools/project/ValidateProjectTool.js +13 -17
- package/mcp-server/tools/project/__tests__/AddFeatureToProject.test.js +12 -14
- package/mcp-server/tools/project/__tests__/CreateProjectTool.test.js +13 -15
- package/mcp-server/tools/project/__tests__/DeployProject.test.js +6 -8
- package/mcp-server/tools/project/__tests__/GuidedWalkthroughTool.test.js +4 -6
- package/mcp-server/tools/project/__tests__/UploadProjectTools.test.js +4 -6
- package/mcp-server/tools/project/__tests__/ValidateProjectTool.test.js +4 -6
- package/mcp-server/tools/project/constants.js +3 -9
- package/mcp-server/types.js +1 -5
- package/mcp-server/utils/__tests__/command.test.js +9 -11
- package/mcp-server/utils/__tests__/project.test.js +12 -17
- package/mcp-server/utils/command.d.ts +1 -1
- package/mcp-server/utils/command.js +4 -11
- package/mcp-server/utils/content.d.ts +1 -1
- package/mcp-server/utils/content.js +2 -6
- package/mcp-server/utils/project.js +8 -14
- package/mcp-server/utils/toolUsageTracking.js +11 -14
- package/package.json +15 -11
- package/types/Cms.d.ts +1 -1
- package/types/Cms.js +1 -2
- package/types/LocalDev.d.ts +4 -4
- package/types/LocalDev.js +1 -2
- package/types/ProjectComponents.d.ts +2 -2
- package/types/ProjectComponents.js +1 -2
- package/types/Projects.d.ts +1 -1
- package/types/Projects.js +2 -5
- package/types/Prompts.js +1 -2
- package/types/Sandboxes.js +1 -2
- package/types/Yargs.js +1 -2
- package/commands/app/__tests__/install.test.d.ts +0 -1
- package/commands/app/__tests__/install.test.js +0 -52
- package/commands/app/install.d.ts +0 -8
- package/commands/app/install.js +0 -127
package/lang/en.js
CHANGED
|
@@ -1,18 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
const config_1 = require("@hubspot/local-dev-lib/constants/config");
|
|
11
|
-
const ui_1 = require("../lib/ui");
|
|
12
|
-
const urls_1 = require("../lib/projects/urls");
|
|
13
|
-
const constants_1 = require("../lib/constants");
|
|
14
|
-
const v3_1 = require("../lib/projects/create/v3");
|
|
15
|
-
exports.commands = {
|
|
1
|
+
import chalk from 'chalk';
|
|
2
|
+
import { PLATFORM_VERSIONS } from '@hubspot/local-dev-lib/constants/projects';
|
|
3
|
+
import { PERSONAL_ACCESS_KEY_AUTH_METHOD } from '@hubspot/local-dev-lib/constants/auth';
|
|
4
|
+
import { ARCHIVED_HUBSPOT_CONFIG_YAML_FILE_NAME, GLOBAL_CONFIG_PATH, DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME, } from '@hubspot/local-dev-lib/constants/config';
|
|
5
|
+
import { uiAccountDescription, uiBetaTag, uiCommandReference, uiLink, UI_COLORS, } from '../lib/ui/index.js';
|
|
6
|
+
import { getProjectDetailUrl, getProjectSettingsUrl, getLocalDevUiUrl, } from '../lib/projects/urls.js';
|
|
7
|
+
import { PROJECT_CONFIG_FILE } from '../lib/constants.js';
|
|
8
|
+
import { PROJECT_WITH_APP } from '../lib/projects/create/v3.js';
|
|
9
|
+
export const commands = {
|
|
16
10
|
generalErrors: {
|
|
17
11
|
srcIsProject: (src, command) => `"${src}" is in a project folder. Did you mean "hs project ${command}"?`,
|
|
18
12
|
handleDeprecatedEnvVariables: {
|
|
@@ -52,12 +46,12 @@ exports.commands = {
|
|
|
52
46
|
},
|
|
53
47
|
uploadProject: 'Would you like to upload your project to HubSpot now?',
|
|
54
48
|
projectCreated: {
|
|
55
|
-
title:
|
|
56
|
-
description: `Let's prepare and upload your project to HubSpot.\nYou can use ${
|
|
49
|
+
title: chalk.bold('Next steps:'),
|
|
50
|
+
description: `Let's prepare and upload your project to HubSpot.\nYou can use ${uiCommandReference('hs project install-deps')} to ${chalk.bold('install dependencies')} and ${uiCommandReference('hs project upload')} to ${chalk.bold('upload')} your project.`,
|
|
57
51
|
},
|
|
58
52
|
},
|
|
59
53
|
logs: {
|
|
60
|
-
appSelected: `We'll create a new project with a sample app for you.\nProjects are what you can use to create apps, themes, and more at HubSpot.\nUsually you'll use the ${
|
|
54
|
+
appSelected: `We'll create a new project with a sample app for you.\nProjects are what you can use to create apps, themes, and more at HubSpot.\nUsually you'll use the ${uiCommandReference('hs project create')} command, but we'll go ahead and make one now.`,
|
|
61
55
|
dependenciesInstalled: 'Dependencies installed successfully.',
|
|
62
56
|
uploadingProject: 'Uploading your project to HubSpot...',
|
|
63
57
|
uploadSuccess: 'Project uploaded successfully!',
|
|
@@ -80,26 +74,26 @@ exports.commands = {
|
|
|
80
74
|
subcommands: {
|
|
81
75
|
auth: {
|
|
82
76
|
describe: 'Configure authentication for your HubSpot account.',
|
|
83
|
-
verboseDescribe: `Configure authentication for a HubSpot account. This will create or update the global config file at ${
|
|
77
|
+
verboseDescribe: `Configure authentication for a HubSpot account. This will create or update the global config file at ${GLOBAL_CONFIG_PATH} that stores your account information.\n\nThe authentication method is ${chalk.bold(PERSONAL_ACCESS_KEY_AUTH_METHOD.value)}, which is an access token tied to a specific user account.\n\nGlobal configuration replaces ${DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME}, and you will be prompted to migrate your existing config if one exists.`,
|
|
84
78
|
options: {
|
|
85
79
|
account: 'HubSpot account to authenticate',
|
|
86
80
|
personalAccessKey: 'Enter existing personal access key',
|
|
87
81
|
},
|
|
88
82
|
errors: {
|
|
89
83
|
failedToUpdateConfig: 'Failed to update the configuration file. Please try again.',
|
|
90
|
-
migrationNotConfirmed: `Did not migrate your configuration file. Run ${
|
|
91
|
-
mergeNotConfirmed: `Did not merge configuration files. When you are ready to merge the deprecated config file with the global config file, run ${
|
|
84
|
+
migrationNotConfirmed: `Did not migrate your configuration file. Run ${uiCommandReference('hs auth')} to update your existing config, or use ${uiCommandReference('hs config migrate')} to switch to the new global configuration.`,
|
|
85
|
+
mergeNotConfirmed: `Did not merge configuration files. When you are ready to merge the deprecated config file with the global config file, run ${uiCommandReference('hs config migrate')}.`,
|
|
92
86
|
},
|
|
93
87
|
success: {
|
|
94
88
|
configFileCreated: (configPath) => `Created config file "${configPath}"`,
|
|
95
|
-
configFileUpdated: (accountId) => `Connected account ${
|
|
89
|
+
configFileUpdated: (accountId) => `Connected account ${uiAccountDescription(accountId)} and set it as the default account`,
|
|
96
90
|
},
|
|
97
91
|
},
|
|
98
92
|
list: {
|
|
99
|
-
accounts: `${
|
|
100
|
-
defaultAccount: (account) => `${
|
|
93
|
+
accounts: `${chalk.bold('Accounts')}:`,
|
|
94
|
+
defaultAccount: (account) => `${chalk.bold('Default account')}: ${account}`,
|
|
101
95
|
describe: 'List names of accounts defined in config.',
|
|
102
|
-
configPath: (configPath) => `${
|
|
96
|
+
configPath: (configPath) => `${chalk.bold('Config path')}: ${configPath}`,
|
|
103
97
|
labels: {
|
|
104
98
|
accountId: 'Account ID',
|
|
105
99
|
authType: 'Auth Type',
|
|
@@ -166,7 +160,7 @@ exports.commands = {
|
|
|
166
160
|
},
|
|
167
161
|
},
|
|
168
162
|
info: {
|
|
169
|
-
accountId: (accountId) => `${
|
|
163
|
+
accountId: (accountId) => `${chalk.bold('Account ID')}: ${accountId}`,
|
|
170
164
|
describe: 'Print information about the default account, or about the account specified with the "account" option.',
|
|
171
165
|
errors: {
|
|
172
166
|
notUsingPersonalAccessKey: 'This command currently only supports fetching scopes for the personal access key auth type.',
|
|
@@ -176,8 +170,8 @@ exports.commands = {
|
|
|
176
170
|
idBased: 'Print information for the account with accountId equal to "1234567"',
|
|
177
171
|
nameBased: 'Print information for the account in the config with name equal to "MyAccount"',
|
|
178
172
|
},
|
|
179
|
-
name: (name) => `${
|
|
180
|
-
scopeGroups: `${
|
|
173
|
+
name: (name) => `${chalk.bold('Account name')}: ${name}`,
|
|
174
|
+
scopeGroups: `${chalk.bold('Scopes available')}:`,
|
|
181
175
|
},
|
|
182
176
|
clean: {
|
|
183
177
|
describe: 'Check for inactive accounts and removes them from the CLI config.',
|
|
@@ -199,10 +193,10 @@ exports.commands = {
|
|
|
199
193
|
},
|
|
200
194
|
auth: {
|
|
201
195
|
describe: 'Configure authentication for your HubSpot account.',
|
|
202
|
-
verboseDescribe: (configName, authMethod) => `Configure authentication for a HubSpot account. This will update the ${configName} file that stores your account information.\n\nThe recommended authentication method is ${
|
|
196
|
+
verboseDescribe: (configName, authMethod) => `Configure authentication for a HubSpot account. This will update the ${configName} file that stores your account information.\n\nThe recommended authentication method is ${chalk.bold(authMethod)}, which uses an access token tied to a specific user account.`,
|
|
203
197
|
errors: {
|
|
204
198
|
invalidAccountIdProvided: `--account must be a number.`,
|
|
205
|
-
globalConfigFileExists: (accountAuthCommand) => `You are using our new global configuration for account management, which is not compatible with this command. Please use ${
|
|
199
|
+
globalConfigFileExists: (accountAuthCommand) => `You are using our new global configuration for account management, which is not compatible with this command. Please use ${uiCommandReference(accountAuthCommand)} instead.`,
|
|
206
200
|
noConfigFileFound: 'No config file was found. To create a new config file, use the "hs init" command.',
|
|
207
201
|
unsupportedAuthType: (type, supportedProtocols) => `Unsupported auth type: ${type}. The only supported authentication protocols are ${supportedProtocols}.`,
|
|
208
202
|
},
|
|
@@ -226,18 +220,18 @@ exports.commands = {
|
|
|
226
220
|
describe: 'Commands for managing the CLI config file.',
|
|
227
221
|
subcommands: {
|
|
228
222
|
migrate: {
|
|
229
|
-
describe: `Migrate from the deprecated ${
|
|
230
|
-
verboseDescribe: `This command will create or update the global configuration file in your root directory. It will archive the current config as ${
|
|
223
|
+
describe: `Migrate from the deprecated ${DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME} file to the new global config file at ${GLOBAL_CONFIG_PATH}.`,
|
|
224
|
+
verboseDescribe: `This command will create or update the global configuration file in your root directory. It will archive the current config as ${ARCHIVED_HUBSPOT_CONFIG_YAML_FILE_NAME}.`,
|
|
231
225
|
errors: {
|
|
232
|
-
noConfigToMigrate: `No ${
|
|
226
|
+
noConfigToMigrate: `No ${DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME} was found. There is nothing to migrate.`,
|
|
233
227
|
configNotFound: (configPath) => `A configuration file at ${configPath} could not be found. Please try again with a valid file path.`,
|
|
234
228
|
},
|
|
235
229
|
options: {
|
|
236
230
|
force: 'Bypass prompts and overwrite any conflicting values in the global config with the deprecated config values.',
|
|
237
231
|
},
|
|
238
232
|
examples: {
|
|
239
|
-
default: `Migrate from the deprecated ${
|
|
240
|
-
configFlag: `Migrate a specific config file (specified with the config flag) to the new global config file at ${
|
|
233
|
+
default: `Migrate from the deprecated ${DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME} file to the new global config file at ${GLOBAL_CONFIG_PATH}`,
|
|
234
|
+
configFlag: `Migrate a specific config file (specified with the config flag) to the new global config file at ${GLOBAL_CONFIG_PATH}`,
|
|
241
235
|
},
|
|
242
236
|
},
|
|
243
237
|
set: {
|
|
@@ -324,7 +318,7 @@ exports.commands = {
|
|
|
324
318
|
create: {
|
|
325
319
|
describe: (supportedAssetTypes) => `Create HubSpot sample apps and CMS assets. Supported assets are ${supportedAssetTypes}.`,
|
|
326
320
|
errors: {
|
|
327
|
-
deprecatedAssetType: (assetType, newCommand, type) => `The CLI command for asset type ${assetType} has been deprecated in an effort to make it easier to know what asset types can be created. Run the ${
|
|
321
|
+
deprecatedAssetType: (assetType, newCommand, type) => `The CLI command for asset type ${assetType} has been deprecated in an effort to make it easier to know what asset types can be created. Run the ${uiCommandReference(newCommand)}" command instead. Then when prompted select "${type}".`,
|
|
328
322
|
unsupportedAssetType: (assetType, supportedAssetTypes) => `The asset type ${assetType} is not supported. Supported asset types are ${supportedAssetTypes}.`,
|
|
329
323
|
unusablePath: (path) => `The "${path}" is not a usable path to a directory.`,
|
|
330
324
|
},
|
|
@@ -366,7 +360,7 @@ exports.commands = {
|
|
|
366
360
|
},
|
|
367
361
|
},
|
|
368
362
|
customObject: {
|
|
369
|
-
betaMessage: `${
|
|
363
|
+
betaMessage: `${chalk.bold('[BETA]')} The Custom Object CLI is currently in beta and is subject to change.`,
|
|
370
364
|
describe: 'Commands for managing custom objects.',
|
|
371
365
|
seeMoreLink: 'View our docs to find out more.',
|
|
372
366
|
subcommands: {
|
|
@@ -518,9 +512,9 @@ exports.commands = {
|
|
|
518
512
|
},
|
|
519
513
|
errors: {
|
|
520
514
|
generatingDiagnosis: 'Error generating diagnosis',
|
|
521
|
-
unableToWriteOutputFile: (file, errorMessage) => `Unable to write output to ${
|
|
515
|
+
unableToWriteOutputFile: (file, errorMessage) => `Unable to write output to ${chalk.bold(file)}, ${errorMessage}`,
|
|
522
516
|
},
|
|
523
|
-
outputWritten: (filename) => `Output written to ${
|
|
517
|
+
outputWritten: (filename) => `Output written to ${chalk.bold(filename)}`,
|
|
524
518
|
},
|
|
525
519
|
fetch: {
|
|
526
520
|
describe: 'Fetch a file, directory or module from HubSpot and write to a path on your computer.',
|
|
@@ -730,7 +724,7 @@ exports.commands = {
|
|
|
730
724
|
},
|
|
731
725
|
},
|
|
732
726
|
list: {
|
|
733
|
-
tables: `${
|
|
727
|
+
tables: `${chalk.bold('Tables')}:`,
|
|
734
728
|
describe: 'List HubDB tables.',
|
|
735
729
|
labels: {
|
|
736
730
|
label: 'Label',
|
|
@@ -744,13 +738,13 @@ exports.commands = {
|
|
|
744
738
|
tablesDisplayed: (displayed, total, truncated) => `Displaying ${displayed} of ${total} tables${truncated
|
|
745
739
|
? `, the remaining ${truncated} tables were not displayed.`
|
|
746
740
|
: '.'}`,
|
|
747
|
-
viewTablesLink: (baseUrl, accountId) =>
|
|
741
|
+
viewTablesLink: (baseUrl, accountId) => uiLink('Manage tables in HubSpot', `${baseUrl}/hubdb/${accountId}`),
|
|
748
742
|
},
|
|
749
743
|
},
|
|
750
744
|
},
|
|
751
745
|
init: {
|
|
752
746
|
describe: 'Create a CLI config file and configure authentication for your HubSpot account.',
|
|
753
|
-
verboseDescribe: (configName, command, authMethod) => `Configure authentication for a HubSpot account. This will create a ${configName} file to store your account information. To configure authentication for additional accounts, run ${command}.\n\nThe recommended authentication method is ${
|
|
747
|
+
verboseDescribe: (configName, command, authMethod) => `Configure authentication for a HubSpot account. This will create a ${configName} file to store your account information. To configure authentication for additional accounts, run ${command}.\n\nThe recommended authentication method is ${chalk.bold(authMethod)}, which uses an access token tied to a specific user account.`,
|
|
754
748
|
options: {
|
|
755
749
|
authType: {
|
|
756
750
|
describe: 'Authentication mechanism',
|
|
@@ -774,7 +768,7 @@ exports.commands = {
|
|
|
774
768
|
invalidAccountIdProvided: `--account must be a number.`,
|
|
775
769
|
configFileExists: (configPath) => `The config file ${configPath} already exists.`,
|
|
776
770
|
bothConfigFilesNotAllowed: (path) => `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.`,
|
|
777
|
-
globalConfigFileExists: `You are using our new global configuration for account management, which is not compatible with this command. Please use ${
|
|
771
|
+
globalConfigFileExists: `You are using our new global configuration for account management, which is not compatible with this command. Please use ${uiCommandReference('hs account auth')} instead.`,
|
|
778
772
|
},
|
|
779
773
|
},
|
|
780
774
|
lint: {
|
|
@@ -841,10 +835,10 @@ exports.commands = {
|
|
|
841
835
|
client: 'Target applications to configure',
|
|
842
836
|
docsSearch: 'Should the docs search mcp server be installed',
|
|
843
837
|
},
|
|
844
|
-
success: (derivedTargets) => `You can now use the HubSpot CLI MCP Server in ${derivedTargets.join(', ')}. ${
|
|
838
|
+
success: (derivedTargets) => `You can now use the HubSpot CLI MCP Server in ${derivedTargets.join(', ')}. ${chalk.bold('You may need to restart these tools to apply the changes')}.`,
|
|
845
839
|
errors: {
|
|
846
840
|
needsNode20: `This feature requires node >=20`,
|
|
847
|
-
errorParsingJsonFIle: (filename, errorMessage) => `Unable to update ${
|
|
841
|
+
errorParsingJsonFIle: (filename, errorMessage) => `Unable to update ${chalk.bold(filename)} due to invalid JSON: ${errorMessage}`,
|
|
848
842
|
},
|
|
849
843
|
spinners: {
|
|
850
844
|
failedToConfigure: 'Failed to configure the HubSpot mcp server.',
|
|
@@ -905,15 +899,15 @@ exports.commands = {
|
|
|
905
899
|
project: {
|
|
906
900
|
profile: {
|
|
907
901
|
describe: 'Commands for managing project profiles',
|
|
908
|
-
verboseDescribe: `Commands for managing project profiles\n\nProfiles are stored at the root of your project's source directory and they make configuration dynamic. Use them to couple specialized configurations of your project to specific HubSpot accounts.\n\nRun ${
|
|
902
|
+
verboseDescribe: `Commands for managing project profiles\n\nProfiles are stored at the root of your project's source directory and they make configuration dynamic. Use them to couple specialized configurations of your project to specific HubSpot accounts.\n\nRun ${uiCommandReference('hs project profile add')} to get started!`,
|
|
909
903
|
add: {
|
|
910
904
|
describe: 'Add a new project profile',
|
|
911
|
-
verboseDescribe: `Add a new project profile\n\nProfiles enable you to reference variables in your component configuration files. Use the syntax ${
|
|
905
|
+
verboseDescribe: `Add a new project profile\n\nProfiles enable you to reference variables in your component configuration files. Use the syntax ${chalk.bold('\${VARIABLE_NAME}')} to reference profile variables in your component configuration files. Then target the profile using the ${uiCommandReference('--profile')} flag when you upload your project.`,
|
|
912
906
|
example: 'Add a new project profile named hsprofile.qa.json',
|
|
913
907
|
logs: {
|
|
914
|
-
copyExistingProfile: (profileName) => `Found an existing profile. We can copy the variables from ${
|
|
908
|
+
copyExistingProfile: (profileName) => `Found an existing profile. We can copy the variables from ${chalk.bold(profileName)} into your new profile.`,
|
|
915
909
|
copyExistingProfiles: 'We can copy the variables from one of your existing profiles into your new profile.',
|
|
916
|
-
profileAdded: (profileName) => `Project profile ${
|
|
910
|
+
profileAdded: (profileName) => `Project profile ${chalk.bold(profileName)} was successfully added`,
|
|
917
911
|
},
|
|
918
912
|
prompts: {
|
|
919
913
|
namePrompt: 'Enter a name for the new project profile: ',
|
|
@@ -924,14 +918,14 @@ exports.commands = {
|
|
|
924
918
|
invalidProfileName: 'Profile name cannot contain special characters or spaces',
|
|
925
919
|
},
|
|
926
920
|
warnings: {
|
|
927
|
-
duplicateTargetAccount: (targetAccountId) => `The account ${
|
|
921
|
+
duplicateTargetAccount: (targetAccountId) => `The account ${uiAccountDescription(targetAccountId)} is being used in an existing profile. Make sure to edit your project's name between uploads if you do not want to overwrite the existing project in this account.`,
|
|
928
922
|
},
|
|
929
923
|
errors: {
|
|
930
924
|
noProjectConfig: 'No project config found. Please run this command from a project directory.',
|
|
931
|
-
profileExists: (profileName) => `Profile ${
|
|
925
|
+
profileExists: (profileName) => `Profile ${chalk.bold(profileName)} already exists. Please choose a different name.`,
|
|
932
926
|
invalidTargetAccount: 'Target account is not configured in the CLI',
|
|
933
927
|
noAccountsConfigured: 'No accounts configured in the CLI',
|
|
934
|
-
failedToLoadProfile: (profileName) => `Unable to copy variables. Failed to load profile ${
|
|
928
|
+
failedToLoadProfile: (profileName) => `Unable to copy variables. Failed to load profile ${chalk.bold(profileName)}`,
|
|
935
929
|
failedToCreateProfile: 'Failed to create profile',
|
|
936
930
|
},
|
|
937
931
|
positionals: {
|
|
@@ -945,22 +939,22 @@ exports.commands = {
|
|
|
945
939
|
describe: 'Delete an existing project profile',
|
|
946
940
|
example: 'Delete a project profile named hsprofile.qa.json',
|
|
947
941
|
logs: {
|
|
948
|
-
profileDeleted: (profileName) => `Project profile ${
|
|
949
|
-
deletedProject: (accountId) => `Successfully deleted the project from ${
|
|
950
|
-
didNotDeleteProject: (accountId) => `Did not delete the project from ${
|
|
942
|
+
profileDeleted: (profileName) => `Project profile ${chalk.bold(profileName)} was successfully deleted`,
|
|
943
|
+
deletedProject: (accountId) => `Successfully deleted the project from ${uiAccountDescription(accountId)}`,
|
|
944
|
+
didNotDeleteProject: (accountId) => `Did not delete the project from ${uiAccountDescription(accountId)}`,
|
|
951
945
|
},
|
|
952
946
|
debug: {
|
|
953
|
-
failedToLoadProfile: (profileName) => `Failed to load profile ${
|
|
947
|
+
failedToLoadProfile: (profileName) => `Failed to load profile ${chalk.bold(profileName)}`,
|
|
954
948
|
},
|
|
955
949
|
prompts: {
|
|
956
950
|
deleteProfilePrompt: 'Select a profile to delete from your project',
|
|
957
|
-
deleteProjectPrompt: (accountId) => `Would you like to delete this project from ${
|
|
951
|
+
deleteProjectPrompt: (accountId) => `Would you like to delete this project from ${uiAccountDescription(accountId)}?`,
|
|
958
952
|
},
|
|
959
953
|
errors: {
|
|
960
954
|
noProjectConfig: 'No project config found. Please run this command from a project directory.',
|
|
961
|
-
noProfileFound: (profileName) => `No profile with filename ${
|
|
955
|
+
noProfileFound: (profileName) => `No profile with filename ${chalk.bold(profileName)} found in your project.`,
|
|
962
956
|
noProfilesFound: 'No profiles found in your project.',
|
|
963
|
-
failedToDeleteProfile: (profileName) => `Unable to delete profile ${
|
|
957
|
+
failedToDeleteProfile: (profileName) => `Unable to delete profile ${chalk.bold(profileName)}. Please try again.`,
|
|
964
958
|
},
|
|
965
959
|
positionals: {
|
|
966
960
|
name: 'The name of the project profile',
|
|
@@ -974,15 +968,15 @@ exports.commands = {
|
|
|
974
968
|
placeholderAccountSelection: 'Using default account as target account (for now)',
|
|
975
969
|
learnMoreLocalDevServer: 'Learn more about the projects local dev server',
|
|
976
970
|
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.',
|
|
977
|
-
learnMoreMessage: `\nVisit our ${
|
|
971
|
+
learnMoreMessage: `\nVisit our ${uiLink('docs on Developer Test and Sandbox accounts', 'https://developers.hubspot.com/docs/getting-started/account-types')} to learn more.`,
|
|
978
972
|
},
|
|
979
973
|
errors: {
|
|
980
974
|
noProjectConfig: 'No project detected. Please run this command again from a project directory.',
|
|
981
|
-
noAccount: (accountId) => `An error occurred while reading account ${
|
|
982
|
-
noAccountsInConfig: (authCommand) => `No accounts found in your config. Run ${
|
|
975
|
+
noAccount: (accountId) => `An error occurred while reading account ${uiAccountDescription(accountId)} from your config. Run ${uiCommandReference('hs auth')} to re-auth this account.`,
|
|
976
|
+
noAccountsInConfig: (authCommand) => `No accounts found in your config. Run ${chalk.bold(authCommand)} to configure a HubSpot account with the CLI.`,
|
|
983
977
|
invalidProjectComponents: 'Projects cannot contain both private and public apps. Move your apps to separate projects before attempting local development.',
|
|
984
|
-
noRunnableComponents: `No supported components were found in this project. Run ${
|
|
985
|
-
accountNotCombined: `\nLocal 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 ${
|
|
978
|
+
noRunnableComponents: `No supported components were found in this project. Run ${uiCommandReference('hs project add')} to see a list of available components and add one to your project.`,
|
|
979
|
+
accountNotCombined: `\nLocal 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 ${uiCommandReference('hs account use')}.`,
|
|
986
980
|
unsupportedAccountFlagLegacy: 'The --projectAccount and --testingAccount flags are not supported for projects with platform versions earlier than 2025.2.',
|
|
987
981
|
unsupportedAccountFlagV3: 'The --account flag is is not supported supported for projects with platform versions 2025.2 and newer. Use --testingAccount and --projectAccount flags to specify accounts to use for local dev',
|
|
988
982
|
},
|
|
@@ -1004,8 +998,8 @@ exports.commands = {
|
|
|
1004
998
|
cannotNestProjects: (projectDir) => `A project already exists at ${projectDir}. Projects cannot be nested within other projects. Please choose a different destination and try again.`,
|
|
1005
999
|
},
|
|
1006
1000
|
logs: {
|
|
1007
|
-
success: (projectName, projectDest) => `\nProject ${
|
|
1008
|
-
welcomeMessage: `\n${
|
|
1001
|
+
success: (projectName, projectDest) => `\nProject ${chalk.bold(projectName)} was successfully created in ${projectDest}`,
|
|
1002
|
+
welcomeMessage: `\n${chalk.bold('Welcome to HubSpot Developer Projects!')}`,
|
|
1009
1003
|
},
|
|
1010
1004
|
prompts: {
|
|
1011
1005
|
parentComponents: '[--project-base] What would you like in your project?',
|
|
@@ -1042,7 +1036,7 @@ exports.commands = {
|
|
|
1042
1036
|
describe: 'Authentication model for the application.',
|
|
1043
1037
|
},
|
|
1044
1038
|
features: {
|
|
1045
|
-
describe: `Features to include in the project. Only valid if project-base is ${
|
|
1039
|
+
describe: `Features to include in the project. Only valid if project-base is ${PROJECT_WITH_APP}`,
|
|
1046
1040
|
},
|
|
1047
1041
|
},
|
|
1048
1042
|
},
|
|
@@ -1068,17 +1062,17 @@ exports.commands = {
|
|
|
1068
1062
|
},
|
|
1069
1063
|
deprecationWarning: (oldCommand, newCommand) => `The ${oldCommand} command is deprecated and will be removed. Use ${newCommand} going forward.`,
|
|
1070
1064
|
migrationStatus: {
|
|
1071
|
-
inProgress: () => `Converting app configuration to ${
|
|
1072
|
-
success: () => `${
|
|
1065
|
+
inProgress: () => `Converting app configuration to ${chalk.bold('public-app.json')} component definition ...`,
|
|
1066
|
+
success: () => `${chalk.bold('Your app was converted and build #1 is deployed')}`,
|
|
1073
1067
|
done: () => 'Converting app configuration to public-app.json component definition ... DONE',
|
|
1074
1068
|
failure: () => 'Converting app configuration to public-app.json component definition ... FAILED',
|
|
1075
1069
|
},
|
|
1076
1070
|
warning: {
|
|
1077
|
-
title: () => `${
|
|
1078
|
-
projectConversion: () => `${
|
|
1079
|
-
appConfig: () => `All supported app configuration will be moved to the ${
|
|
1071
|
+
title: () => `${chalk.bold('You are about to migrate an app to the projects framework')}`,
|
|
1072
|
+
projectConversion: () => `${chalk.bold('The selected app will be converted to a project component.')}`,
|
|
1073
|
+
appConfig: () => `All supported app configuration will be moved to the ${chalk.bold('public-app.json')} component definition file. Future updates to those features must be made through the project build and deploy pipeline, not the developer account UI.`,
|
|
1080
1074
|
buildAndDeploy: 'This will create a new project with a single app component and immediately build and deploy it to your developer account (build #1).',
|
|
1081
|
-
existingApps: () => `${
|
|
1075
|
+
existingApps: () => `${chalk.bold('This will not affect existing app users or installs.')}`,
|
|
1082
1076
|
copyApp: 'We strongly recommend making a copy of your app to test this process in a development app before replacing production.',
|
|
1083
1077
|
},
|
|
1084
1078
|
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.',
|
|
@@ -1109,13 +1103,13 @@ exports.commands = {
|
|
|
1109
1103
|
},
|
|
1110
1104
|
},
|
|
1111
1105
|
cloneStatus: {
|
|
1112
|
-
inProgress: () => `Cloning app configuration to ${
|
|
1106
|
+
inProgress: () => `Cloning app configuration to ${chalk.bold('public-app.json')} component definition ...`,
|
|
1113
1107
|
done: 'Cloning app configuration to public-app.json component definition ... DONE',
|
|
1114
1108
|
success: (dest) => `Your cloned project was created in ${dest}`,
|
|
1115
1109
|
failure: 'Cloning app configuration to public-app.json component definition ... FAILED',
|
|
1116
1110
|
},
|
|
1117
1111
|
errors: {
|
|
1118
|
-
invalidAccountTypeTitle: () => `${
|
|
1112
|
+
invalidAccountTypeTitle: () => `${chalk.bold('Developer account not targeted')}`,
|
|
1119
1113
|
invalidAccountTypeDescription: (useCommand, authCommand) => `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.`,
|
|
1120
1114
|
couldNotWriteConfigPath: (configPath) => `Failed to write project config at ${configPath}`,
|
|
1121
1115
|
},
|
|
@@ -1139,7 +1133,7 @@ exports.commands = {
|
|
|
1139
1133
|
describe: 'Which features to include with the application.',
|
|
1140
1134
|
},
|
|
1141
1135
|
},
|
|
1142
|
-
creatingComponent: (projectName) => `\nAdding a new app feature to ${
|
|
1136
|
+
creatingComponent: (projectName) => `\nAdding a new app feature to ${chalk.bold(projectName)}\n`,
|
|
1143
1137
|
success: (componentName, multiple = false) => `${componentName || 'An app'} ${multiple ? 'were' : 'was'} successfully added to your ${componentName ? 'app' : 'project'}.`,
|
|
1144
1138
|
error: {
|
|
1145
1139
|
failedToDownloadComponent: 'Failed to download project. Please try again later.',
|
|
@@ -1165,10 +1159,10 @@ exports.commands = {
|
|
|
1165
1159
|
deploy: 'Deploy error: an unknown error occurred.',
|
|
1166
1160
|
noBuilds: 'Deploy error: no builds for this project were found.',
|
|
1167
1161
|
noBuildId: 'You must specify a build to deploy',
|
|
1168
|
-
projectNotFound: (accountId, projectName) => `The project ${
|
|
1169
|
-
buildIdDoesNotExist: (accountId, buildId, projectName) => `Build ${buildId} does not exist for project ${
|
|
1170
|
-
buildAlreadyDeployed: (accountId, buildId, projectName) => `Build ${buildId} is already deployed. ${
|
|
1171
|
-
deployContainsRemovals: (componentName) => `- This deploy would remove the ${
|
|
1162
|
+
projectNotFound: (accountId, projectName) => `The project ${chalk.bold(projectName)} does not exist in account ${uiAccountDescription(accountId)}. Run ${uiCommandReference('hs project upload')} to upload your project files to HubSpot.`,
|
|
1163
|
+
buildIdDoesNotExist: (accountId, buildId, projectName) => `Build ${buildId} does not exist for project ${chalk.bold(projectName)}. ${uiLink('View project builds in HubSpot', getProjectDetailUrl(projectName, accountId))}`,
|
|
1164
|
+
buildAlreadyDeployed: (accountId, buildId, projectName) => `Build ${buildId} is already deployed. ${uiLink('View project builds in HubSpot', getProjectDetailUrl(projectName, accountId))}`,
|
|
1165
|
+
deployContainsRemovals: (componentName) => `- This deploy would remove the ${chalk.bold(componentName)} component. To proceed, run the deploy command with the ${uiCommandReference('--force')} flag`,
|
|
1172
1166
|
},
|
|
1173
1167
|
examples: {
|
|
1174
1168
|
default: 'Deploy the latest build of the current project',
|
|
@@ -1210,7 +1204,7 @@ exports.commands = {
|
|
|
1210
1204
|
noProjectConfig: 'No project detected. Run this command again from a project directory.',
|
|
1211
1205
|
failedToFetchProjectDetails: 'There was an error fetching project details',
|
|
1212
1206
|
noFunctionsLinkText: 'Visit developer docs',
|
|
1213
|
-
noFunctionsInProject: `There aren't any functions in this project\n\t- Run ${
|
|
1207
|
+
noFunctionsInProject: `There aren't any functions in this project\n\t- Run ${uiCommandReference('hs project logs --help')} to learn more about logs\n\t- ${uiLink('Visit developer docs', 'https://developers.hubspot.com/docs/platform/serverless-functions')} to learn more about serverless functions`,
|
|
1214
1208
|
noFunctionWithName: (name) => `No function with name "${name}"`,
|
|
1215
1209
|
functionNotDeployed: (name) => `The function with name "${name}" is not deployed`,
|
|
1216
1210
|
projectLogsManagerNotInitialized: 'Function called on ProjectLogsManager before initialization',
|
|
@@ -1263,7 +1257,7 @@ exports.commands = {
|
|
|
1263
1257
|
autoDeployDisabled: (deployCommand) => `Automatic deploys are disabled for this project. Run ${deployCommand} to deploy this build.`,
|
|
1264
1258
|
},
|
|
1265
1259
|
errors: {
|
|
1266
|
-
projectLockedError: () => `Your project is locked. This may mean that another user is running the ${
|
|
1260
|
+
projectLockedError: () => `Your project is locked. This may mean that another user is running the ${chalk.bold('`hs project dev`')} command for this project. If this is you, unlock the project in Projects UI.`,
|
|
1267
1261
|
},
|
|
1268
1262
|
options: {
|
|
1269
1263
|
forceCreate: {
|
|
@@ -1281,7 +1275,7 @@ exports.commands = {
|
|
|
1281
1275
|
},
|
|
1282
1276
|
logs: {
|
|
1283
1277
|
processExited: 'Stopping watcher...',
|
|
1284
|
-
watchCancelledFromUi: `The watch process has been cancelled from the UI. Any changes made since cancelling have not been uploaded. To resume watching, rerun ${
|
|
1278
|
+
watchCancelledFromUi: `The watch process has been cancelled from the UI. Any changes made since cancelling have not been uploaded. To resume watching, rerun ${uiCommandReference('hs project watch')}.`,
|
|
1285
1279
|
resuming: 'Resuming watcher...',
|
|
1286
1280
|
uploadSucceeded: (remotePath, filePath) => `Uploaded file "${filePath}" to "${remotePath}"`,
|
|
1287
1281
|
deleteFileSucceeded: (remotePath) => `Deleted file "${remotePath}"`,
|
|
@@ -1305,7 +1299,7 @@ exports.commands = {
|
|
|
1305
1299
|
},
|
|
1306
1300
|
errors: {
|
|
1307
1301
|
projectConfigNotFound: 'No project config found. Please ensure that you are in a project directory.',
|
|
1308
|
-
projectLockedError: `Your project is locked. This may mean that another user is running the ${
|
|
1302
|
+
projectLockedError: `Your project is locked. This may mean that another user is running the ${chalk.bold(`hs project dev`)} command for this project. If this is you, unlock the project in Projects UI.`,
|
|
1309
1303
|
uploadFailed: (remotePath, filePath) => `Failed to upload file "${filePath}" to "${remotePath}"`,
|
|
1310
1304
|
deleteFileFailed: (remotePath) => `Failed to delete file "${remotePath}"`,
|
|
1311
1305
|
deleteFolderFailed: (remotePath) => `Failed to delete folder "${remotePath}"`,
|
|
@@ -1322,7 +1316,7 @@ exports.commands = {
|
|
|
1322
1316
|
},
|
|
1323
1317
|
errors: {
|
|
1324
1318
|
downloadFailed: 'Something went wrong downloading the project',
|
|
1325
|
-
projectNotFound: (projectName, accountId) => `Your project ${
|
|
1319
|
+
projectNotFound: (projectName, accountId) => `Your project ${chalk.bold(projectName)} could not be found in ${accountId}`,
|
|
1326
1320
|
},
|
|
1327
1321
|
warnings: {
|
|
1328
1322
|
cannotDownloadWithinProject: 'Cancelling project download. Please run the command again outside the context of an existing project.',
|
|
@@ -1354,8 +1348,8 @@ exports.commands = {
|
|
|
1354
1348
|
feedback: {
|
|
1355
1349
|
describe: 'Leave feedback or file a bug report.',
|
|
1356
1350
|
openPrompt: 'Open the feedback form in your browser?',
|
|
1357
|
-
success: (url) => `We opened ${
|
|
1358
|
-
error: (url) => `Navigate to ${
|
|
1351
|
+
success: (url) => `We opened ${uiLink('the developer feedback form', url)} in your browser.`,
|
|
1352
|
+
error: (url) => `Navigate to ${uiLink('the developer feedback form', url)} to leave feedback.`,
|
|
1359
1353
|
},
|
|
1360
1354
|
installDeps: {
|
|
1361
1355
|
help: {
|
|
@@ -1371,7 +1365,7 @@ exports.commands = {
|
|
|
1371
1365
|
installingDependenciesFailed: (directory) => `Installing dependencies for ${directory} failed`,
|
|
1372
1366
|
noProjectConfig: 'No project detected. Run this command from a project directory.',
|
|
1373
1367
|
noPackageJsonInProject: (projectName, link) => `No dependencies to install. The project ${projectName} folder might be missing component or subcomponent files. ${link}`,
|
|
1374
|
-
packageManagerNotInstalled: (packageManager, link) => `This command depends on ${packageManager}, install ${
|
|
1368
|
+
packageManagerNotInstalled: (packageManager, link) => `This command depends on ${packageManager}, install ${chalk.bold(link)}`,
|
|
1375
1369
|
},
|
|
1376
1370
|
validate: {
|
|
1377
1371
|
describe: 'Validate the project before uploading',
|
|
@@ -1390,9 +1384,9 @@ exports.commands = {
|
|
|
1390
1384
|
},
|
|
1391
1385
|
remove: {
|
|
1392
1386
|
describe: 'Delete a file or folder from the HubSpot CMS.',
|
|
1393
|
-
deleted: (path, accountId) => `Deleted "${path}" from account ${
|
|
1387
|
+
deleted: (path, accountId) => `Deleted "${path}" from account ${uiAccountDescription(accountId)}`,
|
|
1394
1388
|
errors: {
|
|
1395
|
-
deleteFailed: (path, accountId) => `Deleting "${path}" from account ${
|
|
1389
|
+
deleteFailed: (path, accountId) => `Deleting "${path}" from account ${uiAccountDescription(accountId)} failed`,
|
|
1396
1390
|
},
|
|
1397
1391
|
positionals: {
|
|
1398
1392
|
path: 'Remote hubspot path',
|
|
@@ -1404,39 +1398,39 @@ exports.commands = {
|
|
|
1404
1398
|
create: {
|
|
1405
1399
|
developer: {
|
|
1406
1400
|
loading: {
|
|
1407
|
-
add: (accountName) => `Creating developer sandbox ${
|
|
1408
|
-
fail: (accountName) => `Failed to create a developer sandbox ${
|
|
1409
|
-
succeed: (accountName, accountId) => `Successfully created a developer sandbox ${
|
|
1401
|
+
add: (accountName) => `Creating developer sandbox ${chalk.bold(accountName)}`,
|
|
1402
|
+
fail: (accountName) => `Failed to create a developer sandbox ${chalk.bold(accountName)}.`,
|
|
1403
|
+
succeed: (accountName, accountId) => `Successfully created a developer sandbox ${chalk.bold(accountName)} with portalId ${chalk.bold(accountId)}.`,
|
|
1410
1404
|
},
|
|
1411
1405
|
success: {
|
|
1412
1406
|
configFileUpdated: (accountName, authType) => `Account "${accountName}" updated using "${authType}"`,
|
|
1413
1407
|
},
|
|
1414
1408
|
failure: {
|
|
1415
|
-
invalidUser: (accountName, parentAccountName) => `Couldn't create ${
|
|
1416
|
-
limit: (accountName, limit) => `${
|
|
1417
|
-
alreadyInConfig: (accountName, limit) => `${
|
|
1409
|
+
invalidUser: (accountName, parentAccountName) => `Couldn't create ${chalk.bold(accountName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to create the sandbox. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
|
|
1410
|
+
limit: (accountName, limit) => `${chalk.bold(accountName)} reached the limit of ${limit} developer sandboxes. \n- To connect a developer sandbox to your HubSpot CLI, run ${chalk.bold('hs auth')} and follow the prompts.`,
|
|
1411
|
+
alreadyInConfig: (accountName, limit) => `${chalk.bold(accountName)} reached the limit of ${limit} developer sandboxes. \n- To use an existing developer sandbox, run ${chalk.bold('hs accounts use')}.`,
|
|
1418
1412
|
scopes: {
|
|
1419
1413
|
message: "The personal access key you provided doesn't include developer sandbox permissions.",
|
|
1420
|
-
instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes developer sandbox permissions. \n- Update the CLI config for this account by running ${
|
|
1414
|
+
instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes developer sandbox permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
|
|
1421
1415
|
},
|
|
1422
1416
|
},
|
|
1423
1417
|
},
|
|
1424
1418
|
standard: {
|
|
1425
1419
|
loading: {
|
|
1426
|
-
add: (accountName) => `Creating standard sandbox ${
|
|
1427
|
-
fail: (accountName) => `Failed to create a standard sandbox ${
|
|
1428
|
-
succeed: (accountName, accountId) => `Successfully created a standard sandbox ${
|
|
1420
|
+
add: (accountName) => `Creating standard sandbox ${chalk.bold(accountName)}`,
|
|
1421
|
+
fail: (accountName) => `Failed to create a standard sandbox ${chalk.bold(accountName)}.`,
|
|
1422
|
+
succeed: (accountName, accountId) => `Successfully created a standard sandbox ${chalk.bold(accountName)} with portalId ${chalk.bold(accountId)}.`,
|
|
1429
1423
|
},
|
|
1430
1424
|
success: {
|
|
1431
1425
|
configFileUpdated: (accountName, authType) => `Account "${accountName}" updated using "${authType}"`,
|
|
1432
1426
|
},
|
|
1433
1427
|
failure: {
|
|
1434
|
-
invalidUser: (accountName, parentAccountName) => `Couldn't create ${
|
|
1435
|
-
limit: (accountName, limit) => `${
|
|
1436
|
-
alreadyInConfig: (accountName, limit) => `${
|
|
1428
|
+
invalidUser: (accountName, parentAccountName) => `Couldn't create ${chalk.bold(accountName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to create the sandbox. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
|
|
1429
|
+
limit: (accountName, limit) => `${chalk.bold(accountName)} reached the limit of ${limit} standard sandboxes. \n- To connect a standard sandbox to your HubSpot CLI, run ${chalk.bold('hs auth')} and follow the prompts.`,
|
|
1430
|
+
alreadyInConfig: (accountName, limit) => `${chalk.bold(accountName)} reached the limit of ${limit} standard sandboxes. \n- To use an existing standard sandbox, run ${chalk.bold('hs accounts use')}.`,
|
|
1437
1431
|
scopes: {
|
|
1438
1432
|
message: "The personal access key you provided doesn't include standard sandbox permissions.",
|
|
1439
|
-
instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes standard sandbox permissions. \n- Update the CLI config for this account by running ${
|
|
1433
|
+
instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes standard sandbox permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
|
|
1440
1434
|
},
|
|
1441
1435
|
},
|
|
1442
1436
|
},
|
|
@@ -1450,8 +1444,8 @@ exports.commands = {
|
|
|
1450
1444
|
examples: {
|
|
1451
1445
|
default: 'Deletes the sandbox account named MySandboxAccount.',
|
|
1452
1446
|
},
|
|
1453
|
-
confirm: (account) => `Delete sandbox ${
|
|
1454
|
-
defaultAccountWarning: (account) => `The sandbox ${
|
|
1447
|
+
confirm: (account) => `Delete sandbox ${chalk.bold(account)}? All data for this sandbox will be permanently deleted.`,
|
|
1448
|
+
defaultAccountWarning: (account) => `The sandbox ${chalk.bold(account)} is currently set as the default account.`,
|
|
1455
1449
|
success: {
|
|
1456
1450
|
delete: (account, sandboxHubId) => `Sandbox "${account}" with portalId "${sandboxHubId}" was deleted successfully.`,
|
|
1457
1451
|
deleteDefault: (account, sandboxHubId) => `Sandbox "${account}" with portalId "${sandboxHubId}" was deleted successfully and removed as the default account.`,
|
|
@@ -1463,9 +1457,9 @@ exports.commands = {
|
|
|
1463
1457
|
noSandboxAccounts: (authCommand) => `There are no sandboxes connected to the CLI. To add a sandbox, run ${authCommand}.`,
|
|
1464
1458
|
noSandboxAccountId: "This sandbox can't be deleted from the CLI because we could not find the associated sandbox account.",
|
|
1465
1459
|
noParentAccount: (authCommand) => `This sandbox can't be deleted from the CLI because you haven't given the CLI access to its parent account. To do this, run ${authCommand} and add the parent account.`,
|
|
1466
|
-
objectNotFound: (account) => `Sandbox ${
|
|
1467
|
-
noParentPortalAvailable: (command, url) => `This sandbox can't be deleted from the CLI because you haven't given the CLI access to its parent account. To do this, run ${command}. You can also delete the sandbox from the HubSpot management tool: ${
|
|
1468
|
-
invalidKey: (account, authCommand) => `Your personal access key for account ${
|
|
1460
|
+
objectNotFound: (account) => `Sandbox ${chalk.bold(account)} may have been deleted through the UI. The account has been removed from the config.`,
|
|
1461
|
+
noParentPortalAvailable: (command, url) => `This sandbox can't be deleted from the CLI because you haven't given the CLI access to its parent account. To do this, run ${command}. You can also delete the sandbox from the HubSpot management tool: ${chalk.bold(url)}.`,
|
|
1462
|
+
invalidKey: (account, authCommand) => `Your personal access key for account ${chalk.bold(account)} is inactive. To re-authenticate, please run ${authCommand}.`,
|
|
1469
1463
|
},
|
|
1470
1464
|
options: {
|
|
1471
1465
|
force: {
|
|
@@ -1479,18 +1473,18 @@ exports.commands = {
|
|
|
1479
1473
|
},
|
|
1480
1474
|
sync: {
|
|
1481
1475
|
loading: {
|
|
1482
|
-
add: (accountName) => `Syncing sandbox ${
|
|
1483
|
-
fail: (accountName) => `Failed to sync sandbox ${
|
|
1484
|
-
succeed: (accountName) => `Successfully synced sandbox ${
|
|
1476
|
+
add: (accountName) => `Syncing sandbox ${chalk.bold(accountName)}`,
|
|
1477
|
+
fail: (accountName) => `Failed to sync sandbox ${chalk.bold(accountName)}.`,
|
|
1478
|
+
succeed: (accountName) => `Successfully synced sandbox ${chalk.bold(accountName)}.`,
|
|
1485
1479
|
},
|
|
1486
1480
|
success: {
|
|
1487
1481
|
configFileUpdated: (accountName, authType) => `Account "${accountName}" updated using "${authType}"`,
|
|
1488
1482
|
},
|
|
1489
1483
|
failure: {
|
|
1490
|
-
invalidUser: (accountName, parentAccountName) => `Couldn't sync ${
|
|
1484
|
+
invalidUser: (accountName, parentAccountName) => `Couldn't sync ${chalk.bold(accountName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to sync the sandbox. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
|
|
1491
1485
|
scopes: {
|
|
1492
1486
|
message: "The personal access key you provided doesn't include sandbox sync permissions.",
|
|
1493
|
-
instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes sandbox sync permissions. \n- Update the CLI config for this account by running ${
|
|
1487
|
+
instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes sandbox sync permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
|
|
1494
1488
|
},
|
|
1495
1489
|
},
|
|
1496
1490
|
},
|
|
@@ -1498,28 +1492,6 @@ exports.commands = {
|
|
|
1498
1492
|
app: {
|
|
1499
1493
|
describe: 'Commands for managing apps.',
|
|
1500
1494
|
subcommands: {
|
|
1501
|
-
install: {
|
|
1502
|
-
describe: 'Install an OAuth app into a test account.',
|
|
1503
|
-
options: {
|
|
1504
|
-
appUid: 'The uid of the app to install',
|
|
1505
|
-
projectName: 'The name of the project that contains the app',
|
|
1506
|
-
},
|
|
1507
|
-
positionals: {
|
|
1508
|
-
testAccountId: 'The id of the test account to install the app into',
|
|
1509
|
-
},
|
|
1510
|
-
errors: {
|
|
1511
|
-
mustSpecifyProjectName: `You must specify a project name. Use the ${(0, ui_1.uiCommandReference)('--project-name')} flag to specify the project name or run this command from within a project directory.`,
|
|
1512
|
-
noAppUidFound: `No app uid found. Please specify the app uid with the ${(0, ui_1.uiCommandReference)('--app-uid')} flag or run this command from within a project that contains an app.`,
|
|
1513
|
-
appMustBeOauth: 'This command only supports installing oauth apps. Please specify an app with oauth auth type.',
|
|
1514
|
-
},
|
|
1515
|
-
polling: {
|
|
1516
|
-
start: 'Installing app...',
|
|
1517
|
-
success: 'App installed successfully',
|
|
1518
|
-
failure: 'App installation failed',
|
|
1519
|
-
error: 'Error installing app',
|
|
1520
|
-
},
|
|
1521
|
-
example: 'Install the app with uid my-app-uid from the project named "my-project" into the target account with id 1234567890',
|
|
1522
|
-
},
|
|
1523
1495
|
secret: {
|
|
1524
1496
|
describe: 'Commands for managing secrets.',
|
|
1525
1497
|
subcommands: {
|
|
@@ -1529,7 +1501,7 @@ exports.commands = {
|
|
|
1529
1501
|
name: 'Name of the secret',
|
|
1530
1502
|
},
|
|
1531
1503
|
errors: {
|
|
1532
|
-
noApps: `Please create a new app to add an app secret. Use ${
|
|
1504
|
+
noApps: `Please create a new app to add an app secret. Use ${uiCommandReference('hs project create')} to create a new project and begin the app creation process.`,
|
|
1533
1505
|
},
|
|
1534
1506
|
options: {
|
|
1535
1507
|
app: 'The app id to set the secret for',
|
|
@@ -1746,7 +1718,7 @@ exports.commands = {
|
|
|
1746
1718
|
invalidPath: (path) => `The path "${path}" is not a path to a file or folder`,
|
|
1747
1719
|
uploadFailed: (src, dest) => `Uploading file "${src}" to "${dest}" failed`,
|
|
1748
1720
|
someFilesFailed: (dest) => `One or more files failed to upload to "${dest}" in the Design Manager`,
|
|
1749
|
-
deleteFailed: (path, accountId) => `Deleting "${path}" from account ${
|
|
1721
|
+
deleteFailed: (path, accountId) => `Deleting "${path}" from account ${uiAccountDescription(accountId)} failed`,
|
|
1750
1722
|
},
|
|
1751
1723
|
options: {
|
|
1752
1724
|
options: 'Options to pass to javascript fields files',
|
|
@@ -1761,19 +1733,19 @@ exports.commands = {
|
|
|
1761
1733
|
dest: 'Path in HubSpot Design Tools, can be a net new path.',
|
|
1762
1734
|
},
|
|
1763
1735
|
success: {
|
|
1764
|
-
fileUploaded: (src, dest, accountId) => `Uploaded file from "${src}" to "${dest}" in the Design Manager of account ${
|
|
1736
|
+
fileUploaded: (src, dest, accountId) => `Uploaded file from "${src}" to "${dest}" in the Design Manager of account ${uiAccountDescription(accountId)}`,
|
|
1765
1737
|
uploadComplete: (dest) => `Uploading files to "${dest}" in the Design Manager is complete`,
|
|
1766
1738
|
},
|
|
1767
|
-
uploading: (src, dest, accountId) => `Uploading files from "${src}" to "${dest}" in the Design Manager of account ${
|
|
1739
|
+
uploading: (src, dest, accountId) => `Uploading files from "${src}" to "${dest}" in the Design Manager of account ${uiAccountDescription(accountId)}`,
|
|
1768
1740
|
notUploaded: (src) => `There was an error processing "${src}". The file has not been uploaded.`,
|
|
1769
|
-
cleaning: (filePath, accountId) => `Removing "${filePath}" from account ${
|
|
1770
|
-
confirmCleanUpload: (filePath, accountId) => `You are about to delete the directory "${filePath}" and its contents on HubSpot account ${
|
|
1741
|
+
cleaning: (filePath, accountId) => `Removing "${filePath}" from account ${uiAccountDescription(accountId)} and uploading local...`,
|
|
1742
|
+
confirmCleanUpload: (filePath, accountId) => `You are about to delete the directory "${filePath}" and its contents on HubSpot account ${uiAccountDescription(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?`,
|
|
1771
1743
|
},
|
|
1772
1744
|
watch: {
|
|
1773
1745
|
describe: 'Watch a directory on your computer for changes and upload the changed files to the HubSpot CMS.',
|
|
1774
1746
|
errors: {
|
|
1775
|
-
folderFailed: (src, dest, accountId) => `Initial uploading of folder "${src}" to "${dest}" in account ${
|
|
1776
|
-
fileFailed: (file, dest, accountId) => `Upload of file "${file}" to "${dest}" in account ${
|
|
1747
|
+
folderFailed: (src, dest, accountId) => `Initial uploading of folder "${src}" to "${dest}" in account ${uiAccountDescription(accountId)} had failures`,
|
|
1748
|
+
fileFailed: (file, dest, accountId) => `Upload of file "${file}" to "${dest}" in account ${uiAccountDescription(accountId)} failed`,
|
|
1777
1749
|
destinationRequired: 'A destination directory needs to be passed',
|
|
1778
1750
|
invalidPath: (path) => `The "${path}" is not a path to a directory`,
|
|
1779
1751
|
},
|
|
@@ -1791,9 +1763,9 @@ exports.commands = {
|
|
|
1791
1763
|
dest: 'Path in HubSpot Design Tools. Can be a net new path',
|
|
1792
1764
|
},
|
|
1793
1765
|
warnings: {
|
|
1794
|
-
disableInitial: `Passing the "${
|
|
1795
|
-
initialUpload: `To upload the directory run "${
|
|
1796
|
-
notUploaded: (path) => `The "${
|
|
1766
|
+
disableInitial: `Passing the "${chalk.bold('--disable-initial')}" option is no longer necessary. Running "${uiCommandReference('hs watch')}" no longer uploads the watched directory by default.`,
|
|
1767
|
+
initialUpload: `To upload the directory run "${uiCommandReference('hs upload')}" beforehand or add the "${chalk.bold('--initial-upload')}" option when running "${uiCommandReference('hs watch')}".`,
|
|
1768
|
+
notUploaded: (path) => `The "${uiCommandReference('hs watch')}" command no longer uploads the watched directory when started. The directory "${path}" was not uploaded.`,
|
|
1797
1769
|
},
|
|
1798
1770
|
},
|
|
1799
1771
|
convertFields: {
|
|
@@ -1822,13 +1794,13 @@ exports.commands = {
|
|
|
1822
1794
|
createFromConfigOption: 'Create test account from config file',
|
|
1823
1795
|
createFromScratchOption: 'Create test account from scratch',
|
|
1824
1796
|
errors: {
|
|
1825
|
-
configFileNotFound: (configPath) => `No test account config file exists at ${configPath}. Create a test account config file with the ${
|
|
1797
|
+
configFileNotFound: (configPath) => `No test account config file exists at ${configPath}. Create a test account config file with the ${uiCommandReference('hs test-account create-config')} command.`,
|
|
1826
1798
|
configFileParseFailed: (configPath) => `Failed to parse test account config file at ${configPath}`,
|
|
1827
1799
|
},
|
|
1828
1800
|
polling: {
|
|
1829
|
-
start: (testAccountName) => `Creating test account "${
|
|
1801
|
+
start: (testAccountName) => `Creating test account "${chalk.bold(testAccountName)}"...`,
|
|
1830
1802
|
syncing: 'Test account created! Syncing account data... (may take a few minutes - you can exit and the sync will continue)',
|
|
1831
|
-
success: (testAccountName, testAccountId) => `Test account "${
|
|
1803
|
+
success: (testAccountName, testAccountId) => `Test account "${chalk.bold(testAccountName)}" successfully created with id: ${chalk.bold(testAccountId)}`,
|
|
1832
1804
|
createFailure: 'Failed to create test account.',
|
|
1833
1805
|
},
|
|
1834
1806
|
options: {
|
|
@@ -1873,35 +1845,35 @@ exports.commands = {
|
|
|
1873
1845
|
secrets: {
|
|
1874
1846
|
add: {
|
|
1875
1847
|
loading: {
|
|
1876
|
-
add: (secretName) => `Adding secret ${
|
|
1877
|
-
fail: (secretName) => `Failed to add secret ${
|
|
1878
|
-
succeed: (secretName) => `Successfully added secret ${
|
|
1848
|
+
add: (secretName) => `Adding secret ${chalk.bold(secretName)}`,
|
|
1849
|
+
fail: (secretName) => `Failed to add secret ${chalk.bold(secretName)}.`,
|
|
1850
|
+
succeed: (secretName) => `Successfully added secret ${chalk.bold(secretName)}.`,
|
|
1879
1851
|
},
|
|
1880
1852
|
success: {
|
|
1881
1853
|
configFileUpdated: (secretName, authType) => `Secret "${secretName}" updated using "${authType}"`,
|
|
1882
1854
|
},
|
|
1883
1855
|
failure: {
|
|
1884
|
-
invalidUser: (secretName, parentAccountName) => `Couldn't add ${
|
|
1856
|
+
invalidUser: (secretName, parentAccountName) => `Couldn't add ${chalk.bold(secretName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add secrets. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
|
|
1885
1857
|
scopes: {
|
|
1886
1858
|
message: "The personal access key you provided doesn't include secrets permissions.",
|
|
1887
|
-
instructions: (secretName, url) => `To update CLI permissions for "${secretName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes secrets permissions. \n- Update the CLI config for this account by running ${
|
|
1859
|
+
instructions: (secretName, url) => `To update CLI permissions for "${secretName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes secrets permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
|
|
1888
1860
|
},
|
|
1889
1861
|
},
|
|
1890
1862
|
},
|
|
1891
1863
|
delete: {
|
|
1892
1864
|
loading: {
|
|
1893
|
-
add: (secretName) => `Deleting secret ${
|
|
1894
|
-
fail: (secretName) => `Failed to delete secret ${
|
|
1895
|
-
succeed: (secretName) => `Successfully deleted secret ${
|
|
1865
|
+
add: (secretName) => `Deleting secret ${chalk.bold(secretName)}`,
|
|
1866
|
+
fail: (secretName) => `Failed to delete secret ${chalk.bold(secretName)}.`,
|
|
1867
|
+
succeed: (secretName) => `Successfully deleted secret ${chalk.bold(secretName)}.`,
|
|
1896
1868
|
},
|
|
1897
1869
|
success: {
|
|
1898
1870
|
configFileUpdated: (secretName, authType) => `Secret "${secretName}" updated using "${authType}"`,
|
|
1899
1871
|
},
|
|
1900
1872
|
failure: {
|
|
1901
|
-
invalidUser: (secretName, parentAccountName) => `Couldn't delete ${
|
|
1873
|
+
invalidUser: (secretName, parentAccountName) => `Couldn't delete ${chalk.bold(secretName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete secrets. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
|
|
1902
1874
|
scopes: {
|
|
1903
1875
|
message: "The personal access key you provided doesn't include secrets permissions.",
|
|
1904
|
-
instructions: (secretName, url) => `To update CLI permissions for "${secretName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes secrets permissions. \n- Update the CLI config for this account by running ${
|
|
1876
|
+
instructions: (secretName, url) => `To update CLI permissions for "${secretName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes secrets permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
|
|
1905
1877
|
},
|
|
1906
1878
|
},
|
|
1907
1879
|
},
|
|
@@ -1915,10 +1887,10 @@ exports.commands = {
|
|
|
1915
1887
|
configFileUpdated: (authType) => `Secrets updated using "${authType}"`,
|
|
1916
1888
|
},
|
|
1917
1889
|
failure: {
|
|
1918
|
-
invalidUser: (parentAccountName) => `Couldn't list secrets because your account has been removed from ${
|
|
1890
|
+
invalidUser: (parentAccountName) => `Couldn't list secrets because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list secrets. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
|
|
1919
1891
|
scopes: {
|
|
1920
1892
|
message: "The personal access key you provided doesn't include secrets permissions.",
|
|
1921
|
-
instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes secrets permissions. \n- Update the CLI config for this account by running ${
|
|
1893
|
+
instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes secrets permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
|
|
1922
1894
|
},
|
|
1923
1895
|
},
|
|
1924
1896
|
},
|
|
@@ -1926,35 +1898,35 @@ exports.commands = {
|
|
|
1926
1898
|
serverless: {
|
|
1927
1899
|
add: {
|
|
1928
1900
|
loading: {
|
|
1929
|
-
add: (functionName) => `Adding serverless function ${
|
|
1930
|
-
fail: (functionName) => `Failed to add serverless function ${
|
|
1931
|
-
succeed: (functionName) => `Successfully added serverless function ${
|
|
1901
|
+
add: (functionName) => `Adding serverless function ${chalk.bold(functionName)}`,
|
|
1902
|
+
fail: (functionName) => `Failed to add serverless function ${chalk.bold(functionName)}.`,
|
|
1903
|
+
succeed: (functionName) => `Successfully added serverless function ${chalk.bold(functionName)}.`,
|
|
1932
1904
|
},
|
|
1933
1905
|
success: {
|
|
1934
1906
|
configFileUpdated: (functionName, authType) => `Serverless function "${functionName}" updated using "${authType}"`,
|
|
1935
1907
|
},
|
|
1936
1908
|
failure: {
|
|
1937
|
-
invalidUser: (functionName, parentAccountName) => `Couldn't add ${
|
|
1909
|
+
invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add serverless functions. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
|
|
1938
1910
|
scopes: {
|
|
1939
1911
|
message: "The personal access key you provided doesn't include serverless function permissions.",
|
|
1940
|
-
instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function permissions. \n- Update the CLI config for this account by running ${
|
|
1912
|
+
instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
|
|
1941
1913
|
},
|
|
1942
1914
|
},
|
|
1943
1915
|
},
|
|
1944
1916
|
delete: {
|
|
1945
1917
|
loading: {
|
|
1946
|
-
add: (functionName) => `Deleting serverless function ${
|
|
1947
|
-
fail: (functionName) => `Failed to delete serverless function ${
|
|
1948
|
-
succeed: (functionName) => `Successfully deleted serverless function ${
|
|
1918
|
+
add: (functionName) => `Deleting serverless function ${chalk.bold(functionName)}`,
|
|
1919
|
+
fail: (functionName) => `Failed to delete serverless function ${chalk.bold(functionName)}.`,
|
|
1920
|
+
succeed: (functionName) => `Successfully deleted serverless function ${chalk.bold(functionName)}.`,
|
|
1949
1921
|
},
|
|
1950
1922
|
success: {
|
|
1951
1923
|
configFileUpdated: (functionName, authType) => `Serverless function "${functionName}" updated using "${authType}"`,
|
|
1952
1924
|
},
|
|
1953
1925
|
failure: {
|
|
1954
|
-
invalidUser: (functionName, parentAccountName) => `Couldn't delete ${
|
|
1926
|
+
invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless functions. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
|
|
1955
1927
|
scopes: {
|
|
1956
1928
|
message: "The personal access key you provided doesn't include serverless function permissions.",
|
|
1957
|
-
instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function permissions. \n- Update the CLI config for this account by running ${
|
|
1929
|
+
instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
|
|
1958
1930
|
},
|
|
1959
1931
|
},
|
|
1960
1932
|
},
|
|
@@ -1968,10 +1940,10 @@ exports.commands = {
|
|
|
1968
1940
|
configFileUpdated: (authType) => `Serverless functions updated using "${authType}"`,
|
|
1969
1941
|
},
|
|
1970
1942
|
failure: {
|
|
1971
|
-
invalidUser: (parentAccountName) => `Couldn't list serverless functions because your account has been removed from ${
|
|
1943
|
+
invalidUser: (parentAccountName) => `Couldn't list serverless functions because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list serverless functions. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
|
|
1972
1944
|
scopes: {
|
|
1973
1945
|
message: "The personal access key you provided doesn't include serverless function permissions.",
|
|
1974
|
-
instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function permissions. \n- Update the CLI config for this account by running ${
|
|
1946
|
+
instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
|
|
1975
1947
|
},
|
|
1976
1948
|
},
|
|
1977
1949
|
},
|
|
@@ -1979,35 +1951,35 @@ exports.commands = {
|
|
|
1979
1951
|
serverlessFunctionLogs: {
|
|
1980
1952
|
add: {
|
|
1981
1953
|
loading: {
|
|
1982
|
-
add: (functionName) => `Adding serverless function logs ${
|
|
1983
|
-
fail: (functionName) => `Failed to add serverless function logs ${
|
|
1984
|
-
succeed: (functionName) => `Successfully added serverless function logs ${
|
|
1954
|
+
add: (functionName) => `Adding serverless function logs ${chalk.bold(functionName)}`,
|
|
1955
|
+
fail: (functionName) => `Failed to add serverless function logs ${chalk.bold(functionName)}.`,
|
|
1956
|
+
succeed: (functionName) => `Successfully added serverless function logs ${chalk.bold(functionName)}.`,
|
|
1985
1957
|
},
|
|
1986
1958
|
success: {
|
|
1987
1959
|
configFileUpdated: (functionName, authType) => `Serverless function logs "${functionName}" updated using "${authType}"`,
|
|
1988
1960
|
},
|
|
1989
1961
|
failure: {
|
|
1990
|
-
invalidUser: (functionName, parentAccountName) => `Couldn't add ${
|
|
1962
|
+
invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function logs. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
|
|
1991
1963
|
scopes: {
|
|
1992
1964
|
message: "The personal access key you provided doesn't include serverless function log permissions.",
|
|
1993
|
-
instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function log permissions. \n- Update the CLI config for this account by running ${
|
|
1965
|
+
instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function log permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
|
|
1994
1966
|
},
|
|
1995
1967
|
},
|
|
1996
1968
|
},
|
|
1997
1969
|
delete: {
|
|
1998
1970
|
loading: {
|
|
1999
|
-
add: (functionName) => `Deleting serverless function logs ${
|
|
2000
|
-
fail: (functionName) => `Failed to delete serverless function logs ${
|
|
2001
|
-
succeed: (functionName) => `Successfully deleted serverless function logs ${
|
|
1971
|
+
add: (functionName) => `Deleting serverless function logs ${chalk.bold(functionName)}`,
|
|
1972
|
+
fail: (functionName) => `Failed to delete serverless function logs ${chalk.bold(functionName)}.`,
|
|
1973
|
+
succeed: (functionName) => `Successfully deleted serverless function logs ${chalk.bold(functionName)}.`,
|
|
2002
1974
|
},
|
|
2003
1975
|
success: {
|
|
2004
1976
|
configFileUpdated: (functionName, authType) => `Serverless function logs "${functionName}" updated using "${authType}"`,
|
|
2005
1977
|
},
|
|
2006
1978
|
failure: {
|
|
2007
|
-
invalidUser: (functionName, parentAccountName) => `Couldn't delete ${
|
|
1979
|
+
invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function logs. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
|
|
2008
1980
|
scopes: {
|
|
2009
1981
|
message: "The personal access key you provided doesn't include serverless function log permissions.",
|
|
2010
|
-
instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function log permissions. \n- Update the CLI config for this account by running ${
|
|
1982
|
+
instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function log permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
|
|
2011
1983
|
},
|
|
2012
1984
|
},
|
|
2013
1985
|
},
|
|
@@ -2021,10 +1993,10 @@ exports.commands = {
|
|
|
2021
1993
|
configFileUpdated: (authType) => `Serverless function logs updated using "${authType}"`,
|
|
2022
1994
|
},
|
|
2023
1995
|
failure: {
|
|
2024
|
-
invalidUser: (parentAccountName) => `Couldn't list serverless function logs because your account has been removed from ${
|
|
1996
|
+
invalidUser: (parentAccountName) => `Couldn't list serverless function logs because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function logs. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
|
|
2025
1997
|
scopes: {
|
|
2026
1998
|
message: "The personal access key you provided doesn't include serverless function log permissions.",
|
|
2027
|
-
instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function log permissions. \n- Update the CLI config for this account by running ${
|
|
1999
|
+
instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function log permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
|
|
2028
2000
|
},
|
|
2029
2001
|
},
|
|
2030
2002
|
},
|
|
@@ -2032,35 +2004,35 @@ exports.commands = {
|
|
|
2032
2004
|
serverlessFunctionMetrics: {
|
|
2033
2005
|
add: {
|
|
2034
2006
|
loading: {
|
|
2035
|
-
add: (functionName) => `Adding serverless function metrics ${
|
|
2036
|
-
fail: (functionName) => `Failed to add serverless function metrics ${
|
|
2037
|
-
succeed: (functionName) => `Successfully added serverless function metrics ${
|
|
2007
|
+
add: (functionName) => `Adding serverless function metrics ${chalk.bold(functionName)}`,
|
|
2008
|
+
fail: (functionName) => `Failed to add serverless function metrics ${chalk.bold(functionName)}.`,
|
|
2009
|
+
succeed: (functionName) => `Successfully added serverless function metrics ${chalk.bold(functionName)}.`,
|
|
2038
2010
|
},
|
|
2039
2011
|
success: {
|
|
2040
2012
|
configFileUpdated: (functionName, authType) => `Serverless function metrics "${functionName}" updated using "${authType}"`,
|
|
2041
2013
|
},
|
|
2042
2014
|
failure: {
|
|
2043
|
-
invalidUser: (functionName, parentAccountName) => `Couldn't add ${
|
|
2015
|
+
invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function metrics. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
|
|
2044
2016
|
scopes: {
|
|
2045
2017
|
message: "The personal access key you provided doesn't include serverless function metric permissions.",
|
|
2046
|
-
instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function metric permissions. \n- Update the CLI config for this account by running ${
|
|
2018
|
+
instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function metric permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
|
|
2047
2019
|
},
|
|
2048
2020
|
},
|
|
2049
2021
|
},
|
|
2050
2022
|
delete: {
|
|
2051
2023
|
loading: {
|
|
2052
|
-
add: (functionName) => `Deleting serverless function metrics ${
|
|
2053
|
-
fail: (functionName) => `Failed to delete serverless function metrics ${
|
|
2054
|
-
succeed: (functionName) => `Successfully deleted serverless function metrics ${
|
|
2024
|
+
add: (functionName) => `Deleting serverless function metrics ${chalk.bold(functionName)}`,
|
|
2025
|
+
fail: (functionName) => `Failed to delete serverless function metrics ${chalk.bold(functionName)}.`,
|
|
2026
|
+
succeed: (functionName) => `Successfully deleted serverless function metrics ${chalk.bold(functionName)}.`,
|
|
2055
2027
|
},
|
|
2056
2028
|
success: {
|
|
2057
2029
|
configFileUpdated: (functionName, authType) => `Serverless function metrics "${functionName}" updated using "${authType}"`,
|
|
2058
2030
|
},
|
|
2059
2031
|
failure: {
|
|
2060
|
-
invalidUser: (functionName, parentAccountName) => `Couldn't delete ${
|
|
2032
|
+
invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function metrics. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
|
|
2061
2033
|
scopes: {
|
|
2062
2034
|
message: "The personal access key you provided doesn't include serverless function metric permissions.",
|
|
2063
|
-
instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function metric permissions. \n- Update the CLI config for this account by running ${
|
|
2035
|
+
instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function metric permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
|
|
2064
2036
|
},
|
|
2065
2037
|
},
|
|
2066
2038
|
},
|
|
@@ -2074,10 +2046,10 @@ exports.commands = {
|
|
|
2074
2046
|
configFileUpdated: (authType) => `Serverless function metrics updated using "${authType}"`,
|
|
2075
2047
|
},
|
|
2076
2048
|
failure: {
|
|
2077
|
-
invalidUser: (parentAccountName) => `Couldn't list serverless function metrics because your account has been removed from ${
|
|
2049
|
+
invalidUser: (parentAccountName) => `Couldn't list serverless function metrics because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function metrics. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
|
|
2078
2050
|
scopes: {
|
|
2079
2051
|
message: "The personal access key you provided doesn't include serverless function metric permissions.",
|
|
2080
|
-
instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function metric permissions. \n- Update the CLI config for this account by running ${
|
|
2052
|
+
instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function metric permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
|
|
2081
2053
|
},
|
|
2082
2054
|
},
|
|
2083
2055
|
},
|
|
@@ -2085,35 +2057,35 @@ exports.commands = {
|
|
|
2085
2057
|
serverlessFunctionSettings: {
|
|
2086
2058
|
add: {
|
|
2087
2059
|
loading: {
|
|
2088
|
-
add: (functionName) => `Adding serverless function settings ${
|
|
2089
|
-
fail: (functionName) => `Failed to add serverless function settings ${
|
|
2090
|
-
succeed: (functionName) => `Successfully added serverless function settings ${
|
|
2060
|
+
add: (functionName) => `Adding serverless function settings ${chalk.bold(functionName)}`,
|
|
2061
|
+
fail: (functionName) => `Failed to add serverless function settings ${chalk.bold(functionName)}.`,
|
|
2062
|
+
succeed: (functionName) => `Successfully added serverless function settings ${chalk.bold(functionName)}.`,
|
|
2091
2063
|
},
|
|
2092
2064
|
success: {
|
|
2093
2065
|
configFileUpdated: (functionName, authType) => `Serverless function settings "${functionName}" updated using "${authType}"`,
|
|
2094
2066
|
},
|
|
2095
2067
|
failure: {
|
|
2096
|
-
invalidUser: (functionName, parentAccountName) => `Couldn't add ${
|
|
2068
|
+
invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function settings. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
|
|
2097
2069
|
scopes: {
|
|
2098
2070
|
message: "The personal access key you provided doesn't include serverless function setting permissions.",
|
|
2099
|
-
instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function setting permissions. \n- Update the CLI config for this account by running ${
|
|
2071
|
+
instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function setting permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
|
|
2100
2072
|
},
|
|
2101
2073
|
},
|
|
2102
2074
|
},
|
|
2103
2075
|
delete: {
|
|
2104
2076
|
loading: {
|
|
2105
|
-
add: (functionName) => `Deleting serverless function settings ${
|
|
2106
|
-
fail: (functionName) => `Failed to delete serverless function settings ${
|
|
2107
|
-
succeed: (functionName) => `Successfully deleted serverless function settings ${
|
|
2077
|
+
add: (functionName) => `Deleting serverless function settings ${chalk.bold(functionName)}`,
|
|
2078
|
+
fail: (functionName) => `Failed to delete serverless function settings ${chalk.bold(functionName)}.`,
|
|
2079
|
+
succeed: (functionName) => `Successfully deleted serverless function settings ${chalk.bold(functionName)}.`,
|
|
2108
2080
|
},
|
|
2109
2081
|
success: {
|
|
2110
2082
|
configFileUpdated: (functionName, authType) => `Serverless function settings "${functionName}" updated using "${authType}"`,
|
|
2111
2083
|
},
|
|
2112
2084
|
failure: {
|
|
2113
|
-
invalidUser: (functionName, parentAccountName) => `Couldn't delete ${
|
|
2085
|
+
invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function settings. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
|
|
2114
2086
|
scopes: {
|
|
2115
2087
|
message: "The personal access key you provided doesn't include serverless function setting permissions.",
|
|
2116
|
-
instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function setting permissions. \n- Update the CLI config for this account by running ${
|
|
2088
|
+
instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function setting permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
|
|
2117
2089
|
},
|
|
2118
2090
|
},
|
|
2119
2091
|
},
|
|
@@ -2127,10 +2099,10 @@ exports.commands = {
|
|
|
2127
2099
|
configFileUpdated: (authType) => `Serverless function settings updated using "${authType}"`,
|
|
2128
2100
|
},
|
|
2129
2101
|
failure: {
|
|
2130
|
-
invalidUser: (parentAccountName) => `Couldn't list serverless function settings because your account has been removed from ${
|
|
2102
|
+
invalidUser: (parentAccountName) => `Couldn't list serverless function settings because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function settings. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
|
|
2131
2103
|
scopes: {
|
|
2132
2104
|
message: "The personal access key you provided doesn't include serverless function setting permissions.",
|
|
2133
|
-
instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function setting permissions. \n- Update the CLI config for this account by running ${
|
|
2105
|
+
instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function setting permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
|
|
2134
2106
|
},
|
|
2135
2107
|
},
|
|
2136
2108
|
},
|
|
@@ -2138,35 +2110,35 @@ exports.commands = {
|
|
|
2138
2110
|
serverlessFunctionVersions: {
|
|
2139
2111
|
add: {
|
|
2140
2112
|
loading: {
|
|
2141
|
-
add: (functionName) => `Adding serverless function versions ${
|
|
2142
|
-
fail: (functionName) => `Failed to add serverless function versions ${
|
|
2143
|
-
succeed: (functionName) => `Successfully added serverless function versions ${
|
|
2113
|
+
add: (functionName) => `Adding serverless function versions ${chalk.bold(functionName)}`,
|
|
2114
|
+
fail: (functionName) => `Failed to add serverless function versions ${chalk.bold(functionName)}.`,
|
|
2115
|
+
succeed: (functionName) => `Successfully added serverless function versions ${chalk.bold(functionName)}.`,
|
|
2144
2116
|
},
|
|
2145
2117
|
success: {
|
|
2146
2118
|
configFileUpdated: (functionName, authType) => `Serverless function versions "${functionName}" updated using "${authType}"`,
|
|
2147
2119
|
},
|
|
2148
2120
|
failure: {
|
|
2149
|
-
invalidUser: (functionName, parentAccountName) => `Couldn't add ${
|
|
2121
|
+
invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function versions. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
|
|
2150
2122
|
scopes: {
|
|
2151
2123
|
message: "The personal access key you provided doesn't include serverless function version permissions.",
|
|
2152
|
-
instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function version permissions. \n- Update the CLI config for this account by running ${
|
|
2124
|
+
instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function version permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
|
|
2153
2125
|
},
|
|
2154
2126
|
},
|
|
2155
2127
|
},
|
|
2156
2128
|
delete: {
|
|
2157
2129
|
loading: {
|
|
2158
|
-
add: (functionName) => `Deleting serverless function versions ${
|
|
2159
|
-
fail: (functionName) => `Failed to delete serverless function versions ${
|
|
2160
|
-
succeed: (functionName) => `Successfully deleted serverless function versions ${
|
|
2130
|
+
add: (functionName) => `Deleting serverless function versions ${chalk.bold(functionName)}`,
|
|
2131
|
+
fail: (functionName) => `Failed to delete serverless function versions ${chalk.bold(functionName)}.`,
|
|
2132
|
+
succeed: (functionName) => `Successfully deleted serverless function versions ${chalk.bold(functionName)}.`,
|
|
2161
2133
|
},
|
|
2162
2134
|
success: {
|
|
2163
2135
|
configFileUpdated: (functionName, authType) => `Serverless function versions "${functionName}" updated using "${authType}"`,
|
|
2164
2136
|
},
|
|
2165
2137
|
failure: {
|
|
2166
|
-
invalidUser: (functionName, parentAccountName) => `Couldn't delete ${
|
|
2138
|
+
invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function versions. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
|
|
2167
2139
|
scopes: {
|
|
2168
2140
|
message: "The personal access key you provided doesn't include serverless function version permissions.",
|
|
2169
|
-
instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function version permissions. \n- Update the CLI config for this account by running ${
|
|
2141
|
+
instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function version permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
|
|
2170
2142
|
},
|
|
2171
2143
|
},
|
|
2172
2144
|
},
|
|
@@ -2180,10 +2152,10 @@ exports.commands = {
|
|
|
2180
2152
|
configFileUpdated: (authType) => `Serverless function versions updated using "${authType}"`,
|
|
2181
2153
|
},
|
|
2182
2154
|
failure: {
|
|
2183
|
-
invalidUser: (parentAccountName) => `Couldn't list serverless function versions because your account has been removed from ${
|
|
2155
|
+
invalidUser: (parentAccountName) => `Couldn't list serverless function versions because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function versions. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
|
|
2184
2156
|
scopes: {
|
|
2185
2157
|
message: "The personal access key you provided doesn't include serverless function version permissions.",
|
|
2186
|
-
instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function version permissions. \n- Update the CLI config for this account by running ${
|
|
2158
|
+
instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function version permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
|
|
2187
2159
|
},
|
|
2188
2160
|
},
|
|
2189
2161
|
},
|
|
@@ -2191,35 +2163,35 @@ exports.commands = {
|
|
|
2191
2163
|
serverlessFunctionWebhooks: {
|
|
2192
2164
|
add: {
|
|
2193
2165
|
loading: {
|
|
2194
|
-
add: (functionName) => `Adding serverless function webhooks ${
|
|
2195
|
-
fail: (functionName) => `Failed to add serverless function webhooks ${
|
|
2196
|
-
succeed: (functionName) => `Successfully added serverless function webhooks ${
|
|
2166
|
+
add: (functionName) => `Adding serverless function webhooks ${chalk.bold(functionName)}`,
|
|
2167
|
+
fail: (functionName) => `Failed to add serverless function webhooks ${chalk.bold(functionName)}.`,
|
|
2168
|
+
succeed: (functionName) => `Successfully added serverless function webhooks ${chalk.bold(functionName)}.`,
|
|
2197
2169
|
},
|
|
2198
2170
|
success: {
|
|
2199
2171
|
configFileUpdated: (functionName, authType) => `Serverless function webhooks "${functionName}" updated using "${authType}"`,
|
|
2200
2172
|
},
|
|
2201
2173
|
failure: {
|
|
2202
|
-
invalidUser: (functionName, parentAccountName) => `Couldn't add ${
|
|
2174
|
+
invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function webhooks. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
|
|
2203
2175
|
scopes: {
|
|
2204
2176
|
message: "The personal access key you provided doesn't include serverless function webhook permissions.",
|
|
2205
|
-
instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook permissions. \n- Update the CLI config for this account by running ${
|
|
2177
|
+
instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
|
|
2206
2178
|
},
|
|
2207
2179
|
},
|
|
2208
2180
|
},
|
|
2209
2181
|
delete: {
|
|
2210
2182
|
loading: {
|
|
2211
|
-
add: (functionName) => `Deleting serverless function webhooks ${
|
|
2212
|
-
fail: (functionName) => `Failed to delete serverless function webhooks ${
|
|
2213
|
-
succeed: (functionName) => `Successfully deleted serverless function webhooks ${
|
|
2183
|
+
add: (functionName) => `Deleting serverless function webhooks ${chalk.bold(functionName)}`,
|
|
2184
|
+
fail: (functionName) => `Failed to delete serverless function webhooks ${chalk.bold(functionName)}.`,
|
|
2185
|
+
succeed: (functionName) => `Successfully deleted serverless function webhooks ${chalk.bold(functionName)}.`,
|
|
2214
2186
|
},
|
|
2215
2187
|
success: {
|
|
2216
2188
|
configFileUpdated: (functionName, authType) => `Serverless function webhooks "${functionName}" updated using "${authType}"`,
|
|
2217
2189
|
},
|
|
2218
2190
|
failure: {
|
|
2219
|
-
invalidUser: (functionName, parentAccountName) => `Couldn't delete ${
|
|
2191
|
+
invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function webhooks. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
|
|
2220
2192
|
scopes: {
|
|
2221
2193
|
message: "The personal access key you provided doesn't include serverless function webhook permissions.",
|
|
2222
|
-
instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook permissions. \n- Update the CLI config for this account by running ${
|
|
2194
|
+
instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
|
|
2223
2195
|
},
|
|
2224
2196
|
},
|
|
2225
2197
|
},
|
|
@@ -2233,10 +2205,10 @@ exports.commands = {
|
|
|
2233
2205
|
configFileUpdated: (authType) => `Serverless function webhooks updated using "${authType}"`,
|
|
2234
2206
|
},
|
|
2235
2207
|
failure: {
|
|
2236
|
-
invalidUser: (parentAccountName) => `Couldn't list serverless function webhooks because your account has been removed from ${
|
|
2208
|
+
invalidUser: (parentAccountName) => `Couldn't list serverless function webhooks because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhooks. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
|
|
2237
2209
|
scopes: {
|
|
2238
2210
|
message: "The personal access key you provided doesn't include serverless function webhook permissions.",
|
|
2239
|
-
instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook permissions. \n- Update the CLI config for this account by running ${
|
|
2211
|
+
instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
|
|
2240
2212
|
},
|
|
2241
2213
|
},
|
|
2242
2214
|
},
|
|
@@ -2244,35 +2216,35 @@ exports.commands = {
|
|
|
2244
2216
|
serverlessFunctionWebhookSubscriptions: {
|
|
2245
2217
|
add: {
|
|
2246
2218
|
loading: {
|
|
2247
|
-
add: (functionName) => `Adding serverless function webhook subscriptions ${
|
|
2248
|
-
fail: (functionName) => `Failed to add serverless function webhook subscriptions ${
|
|
2249
|
-
succeed: (functionName) => `Successfully added serverless function webhook subscriptions ${
|
|
2219
|
+
add: (functionName) => `Adding serverless function webhook subscriptions ${chalk.bold(functionName)}`,
|
|
2220
|
+
fail: (functionName) => `Failed to add serverless function webhook subscriptions ${chalk.bold(functionName)}.`,
|
|
2221
|
+
succeed: (functionName) => `Successfully added serverless function webhook subscriptions ${chalk.bold(functionName)}.`,
|
|
2250
2222
|
},
|
|
2251
2223
|
success: {
|
|
2252
2224
|
configFileUpdated: (functionName, authType) => `Serverless function webhook subscriptions "${functionName}" updated using "${authType}"`,
|
|
2253
2225
|
},
|
|
2254
2226
|
failure: {
|
|
2255
|
-
invalidUser: (functionName, parentAccountName) => `Couldn't add ${
|
|
2227
|
+
invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function webhook subscriptions. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
|
|
2256
2228
|
scopes: {
|
|
2257
2229
|
message: "The personal access key you provided doesn't include serverless function webhook subscription permissions.",
|
|
2258
|
-
instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription permissions. \n- Update the CLI config for this account by running ${
|
|
2230
|
+
instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
|
|
2259
2231
|
},
|
|
2260
2232
|
},
|
|
2261
2233
|
},
|
|
2262
2234
|
delete: {
|
|
2263
2235
|
loading: {
|
|
2264
|
-
add: (functionName) => `Deleting serverless function webhook subscriptions ${
|
|
2265
|
-
fail: (functionName) => `Failed to delete serverless function webhook subscriptions ${
|
|
2266
|
-
succeed: (functionName) => `Successfully deleted serverless function webhook subscriptions ${
|
|
2236
|
+
add: (functionName) => `Deleting serverless function webhook subscriptions ${chalk.bold(functionName)}`,
|
|
2237
|
+
fail: (functionName) => `Failed to delete serverless function webhook subscriptions ${chalk.bold(functionName)}.`,
|
|
2238
|
+
succeed: (functionName) => `Successfully deleted serverless function webhook subscriptions ${chalk.bold(functionName)}.`,
|
|
2267
2239
|
},
|
|
2268
2240
|
success: {
|
|
2269
2241
|
configFileUpdated: (functionName, authType) => `Serverless function webhook subscriptions "${functionName}" updated using "${authType}"`,
|
|
2270
2242
|
},
|
|
2271
2243
|
failure: {
|
|
2272
|
-
invalidUser: (functionName, parentAccountName) => `Couldn't delete ${
|
|
2244
|
+
invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function webhook subscriptions. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
|
|
2273
2245
|
scopes: {
|
|
2274
2246
|
message: "The personal access key you provided doesn't include serverless function webhook subscription permissions.",
|
|
2275
|
-
instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription permissions. \n- Update the CLI config for this account by running ${
|
|
2247
|
+
instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
|
|
2276
2248
|
},
|
|
2277
2249
|
},
|
|
2278
2250
|
},
|
|
@@ -2286,10 +2258,10 @@ exports.commands = {
|
|
|
2286
2258
|
configFileUpdated: (authType) => `Serverless function webhook subscriptions updated using "${authType}"`,
|
|
2287
2259
|
},
|
|
2288
2260
|
failure: {
|
|
2289
|
-
invalidUser: (parentAccountName) => `Couldn't list serverless function webhook subscriptions because your account has been removed from ${
|
|
2261
|
+
invalidUser: (parentAccountName) => `Couldn't list serverless function webhook subscriptions because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhook subscriptions. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
|
|
2290
2262
|
scopes: {
|
|
2291
2263
|
message: "The personal access key you provided doesn't include serverless function webhook subscription permissions.",
|
|
2292
|
-
instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription permissions. \n- Update the CLI config for this account by running ${
|
|
2264
|
+
instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
|
|
2293
2265
|
},
|
|
2294
2266
|
},
|
|
2295
2267
|
},
|
|
@@ -2297,35 +2269,35 @@ exports.commands = {
|
|
|
2297
2269
|
serverlessFunctionWebhookSubscriptionEvents: {
|
|
2298
2270
|
add: {
|
|
2299
2271
|
loading: {
|
|
2300
|
-
add: (functionName) => `Adding serverless function webhook subscription events ${
|
|
2301
|
-
fail: (functionName) => `Failed to add serverless function webhook subscription events ${
|
|
2302
|
-
succeed: (functionName) => `Successfully added serverless function webhook subscription events ${
|
|
2272
|
+
add: (functionName) => `Adding serverless function webhook subscription events ${chalk.bold(functionName)}`,
|
|
2273
|
+
fail: (functionName) => `Failed to add serverless function webhook subscription events ${chalk.bold(functionName)}.`,
|
|
2274
|
+
succeed: (functionName) => `Successfully added serverless function webhook subscription events ${chalk.bold(functionName)}.`,
|
|
2303
2275
|
},
|
|
2304
2276
|
success: {
|
|
2305
2277
|
configFileUpdated: (functionName, authType) => `Serverless function webhook subscription events "${functionName}" updated using "${authType}"`,
|
|
2306
2278
|
},
|
|
2307
2279
|
failure: {
|
|
2308
|
-
invalidUser: (functionName, parentAccountName) => `Couldn't add ${
|
|
2280
|
+
invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function webhook subscription events. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
|
|
2309
2281
|
scopes: {
|
|
2310
2282
|
message: "The personal access key you provided doesn't include serverless function webhook subscription event permissions.",
|
|
2311
|
-
instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event permissions. \n- Update the CLI config for this account by running ${
|
|
2283
|
+
instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
|
|
2312
2284
|
},
|
|
2313
2285
|
},
|
|
2314
2286
|
},
|
|
2315
2287
|
delete: {
|
|
2316
2288
|
loading: {
|
|
2317
|
-
add: (functionName) => `Deleting serverless function webhook subscription events ${
|
|
2318
|
-
fail: (functionName) => `Failed to delete serverless function webhook subscription events ${
|
|
2319
|
-
succeed: (functionName) => `Successfully deleted serverless function webhook subscription events ${
|
|
2289
|
+
add: (functionName) => `Deleting serverless function webhook subscription events ${chalk.bold(functionName)}`,
|
|
2290
|
+
fail: (functionName) => `Failed to delete serverless function webhook subscription events ${chalk.bold(functionName)}.`,
|
|
2291
|
+
succeed: (functionName) => `Successfully deleted serverless function webhook subscription events ${chalk.bold(functionName)}.`,
|
|
2320
2292
|
},
|
|
2321
2293
|
success: {
|
|
2322
2294
|
configFileUpdated: (functionName, authType) => `Serverless function webhook subscription events "${functionName}" updated using "${authType}"`,
|
|
2323
2295
|
},
|
|
2324
2296
|
failure: {
|
|
2325
|
-
invalidUser: (functionName, parentAccountName) => `Couldn't delete ${
|
|
2297
|
+
invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function webhook subscription events. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
|
|
2326
2298
|
scopes: {
|
|
2327
2299
|
message: "The personal access key you provided doesn't include serverless function webhook subscription event permissions.",
|
|
2328
|
-
instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event permissions. \n- Update the CLI config for this account by running ${
|
|
2300
|
+
instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
|
|
2329
2301
|
},
|
|
2330
2302
|
},
|
|
2331
2303
|
},
|
|
@@ -2339,10 +2311,10 @@ exports.commands = {
|
|
|
2339
2311
|
configFileUpdated: (authType) => `Serverless function webhook subscription events updated using "${authType}"`,
|
|
2340
2312
|
},
|
|
2341
2313
|
failure: {
|
|
2342
|
-
invalidUser: (parentAccountName) => `Couldn't list serverless function webhook subscription events because your account has been removed from ${
|
|
2314
|
+
invalidUser: (parentAccountName) => `Couldn't list serverless function webhook subscription events because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhook subscription events. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
|
|
2343
2315
|
scopes: {
|
|
2344
2316
|
message: "The personal access key you provided doesn't include serverless function webhook subscription event permissions.",
|
|
2345
|
-
instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event permissions. \n- Update the CLI config for this account by running ${
|
|
2317
|
+
instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
|
|
2346
2318
|
},
|
|
2347
2319
|
},
|
|
2348
2320
|
},
|
|
@@ -2350,35 +2322,35 @@ exports.commands = {
|
|
|
2350
2322
|
serverlessFunctionWebhookSubscriptionEventTypes: {
|
|
2351
2323
|
add: {
|
|
2352
2324
|
loading: {
|
|
2353
|
-
add: (functionName) => `Adding serverless function webhook subscription event types ${
|
|
2354
|
-
fail: (functionName) => `Failed to add serverless function webhook subscription event types ${
|
|
2355
|
-
succeed: (functionName) => `Successfully added serverless function webhook subscription event types ${
|
|
2325
|
+
add: (functionName) => `Adding serverless function webhook subscription event types ${chalk.bold(functionName)}`,
|
|
2326
|
+
fail: (functionName) => `Failed to add serverless function webhook subscription event types ${chalk.bold(functionName)}.`,
|
|
2327
|
+
succeed: (functionName) => `Successfully added serverless function webhook subscription event types ${chalk.bold(functionName)}.`,
|
|
2356
2328
|
},
|
|
2357
2329
|
success: {
|
|
2358
2330
|
configFileUpdated: (functionName, authType) => `Serverless function webhook subscription event types "${functionName}" updated using "${authType}"`,
|
|
2359
2331
|
},
|
|
2360
2332
|
failure: {
|
|
2361
|
-
invalidUser: (functionName, parentAccountName) => `Couldn't add ${
|
|
2333
|
+
invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function webhook subscription event types. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
|
|
2362
2334
|
scopes: {
|
|
2363
2335
|
message: "The personal access key you provided doesn't include serverless function webhook subscription event type permissions.",
|
|
2364
|
-
instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type permissions. \n- Update the CLI config for this account by running ${
|
|
2336
|
+
instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
|
|
2365
2337
|
},
|
|
2366
2338
|
},
|
|
2367
2339
|
},
|
|
2368
2340
|
delete: {
|
|
2369
2341
|
loading: {
|
|
2370
|
-
add: (functionName) => `Deleting serverless function webhook subscription event types ${
|
|
2371
|
-
fail: (functionName) => `Failed to delete serverless function webhook subscription event types ${
|
|
2372
|
-
succeed: (functionName) => `Successfully deleted serverless function webhook subscription event types ${
|
|
2342
|
+
add: (functionName) => `Deleting serverless function webhook subscription event types ${chalk.bold(functionName)}`,
|
|
2343
|
+
fail: (functionName) => `Failed to delete serverless function webhook subscription event types ${chalk.bold(functionName)}.`,
|
|
2344
|
+
succeed: (functionName) => `Successfully deleted serverless function webhook subscription event types ${chalk.bold(functionName)}.`,
|
|
2373
2345
|
},
|
|
2374
2346
|
success: {
|
|
2375
2347
|
configFileUpdated: (functionName, authType) => `Serverless function webhook subscription event types "${functionName}" updated using "${authType}"`,
|
|
2376
2348
|
},
|
|
2377
2349
|
failure: {
|
|
2378
|
-
invalidUser: (functionName, parentAccountName) => `Couldn't delete ${
|
|
2350
|
+
invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function webhook subscription event types. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
|
|
2379
2351
|
scopes: {
|
|
2380
2352
|
message: "The personal access key you provided doesn't include serverless function webhook subscription event type permissions.",
|
|
2381
|
-
instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type permissions. \n- Update the CLI config for this account by running ${
|
|
2353
|
+
instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
|
|
2382
2354
|
},
|
|
2383
2355
|
},
|
|
2384
2356
|
},
|
|
@@ -2392,10 +2364,10 @@ exports.commands = {
|
|
|
2392
2364
|
configFileUpdated: (authType) => `Serverless function webhook subscription event types updated using "${authType}"`,
|
|
2393
2365
|
},
|
|
2394
2366
|
failure: {
|
|
2395
|
-
invalidUser: (parentAccountName) => `Couldn't list serverless function webhook subscription event types because your account has been removed from ${
|
|
2367
|
+
invalidUser: (parentAccountName) => `Couldn't list serverless function webhook subscription event types because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhook subscription event types. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
|
|
2396
2368
|
scopes: {
|
|
2397
2369
|
message: "The personal access key you provided doesn't include serverless function webhook subscription event type permissions.",
|
|
2398
|
-
instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type permissions. \n- Update the CLI config for this account by running ${
|
|
2370
|
+
instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
|
|
2399
2371
|
},
|
|
2400
2372
|
},
|
|
2401
2373
|
},
|
|
@@ -2403,35 +2375,35 @@ exports.commands = {
|
|
|
2403
2375
|
serverlessFunctionWebhookSubscriptionEventTypeOptions: {
|
|
2404
2376
|
add: {
|
|
2405
2377
|
loading: {
|
|
2406
|
-
add: (functionName) => `Adding serverless function webhook subscription event type options ${
|
|
2407
|
-
fail: (functionName) => `Failed to add serverless function webhook subscription event type options ${
|
|
2408
|
-
succeed: (functionName) => `Successfully added serverless function webhook subscription event type options ${
|
|
2378
|
+
add: (functionName) => `Adding serverless function webhook subscription event type options ${chalk.bold(functionName)}`,
|
|
2379
|
+
fail: (functionName) => `Failed to add serverless function webhook subscription event type options ${chalk.bold(functionName)}.`,
|
|
2380
|
+
succeed: (functionName) => `Successfully added serverless function webhook subscription event type options ${chalk.bold(functionName)}.`,
|
|
2409
2381
|
},
|
|
2410
2382
|
success: {
|
|
2411
2383
|
configFileUpdated: (functionName, authType) => `Serverless function webhook subscription event type options "${functionName}" updated using "${authType}"`,
|
|
2412
2384
|
},
|
|
2413
2385
|
failure: {
|
|
2414
|
-
invalidUser: (functionName, parentAccountName) => `Couldn't add ${
|
|
2386
|
+
invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function webhook subscription event type options. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
|
|
2415
2387
|
scopes: {
|
|
2416
2388
|
message: "The personal access key you provided doesn't include serverless function webhook subscription event type option permissions.",
|
|
2417
|
-
instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type option permissions. \n- Update the CLI config for this account by running ${
|
|
2389
|
+
instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type option permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
|
|
2418
2390
|
},
|
|
2419
2391
|
},
|
|
2420
2392
|
},
|
|
2421
2393
|
delete: {
|
|
2422
2394
|
loading: {
|
|
2423
|
-
add: (functionName) => `Deleting serverless function webhook subscription event type options ${
|
|
2424
|
-
fail: (functionName) => `Failed to delete serverless function webhook subscription event type options ${
|
|
2425
|
-
succeed: (functionName) => `Successfully deleted serverless function webhook subscription event type options ${
|
|
2395
|
+
add: (functionName) => `Deleting serverless function webhook subscription event type options ${chalk.bold(functionName)}`,
|
|
2396
|
+
fail: (functionName) => `Failed to delete serverless function webhook subscription event type options ${chalk.bold(functionName)}.`,
|
|
2397
|
+
succeed: (functionName) => `Successfully deleted serverless function webhook subscription event type options ${chalk.bold(functionName)}.`,
|
|
2426
2398
|
},
|
|
2427
2399
|
success: {
|
|
2428
2400
|
configFileUpdated: (functionName, authType) => `Serverless function webhook subscription event type options "${functionName}" updated using "${authType}"`,
|
|
2429
2401
|
},
|
|
2430
2402
|
failure: {
|
|
2431
|
-
invalidUser: (functionName, parentAccountName) => `Couldn't delete ${
|
|
2403
|
+
invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function webhook subscription event type options. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
|
|
2432
2404
|
scopes: {
|
|
2433
2405
|
message: "The personal access key you provided doesn't include serverless function webhook subscription event type option permissions.",
|
|
2434
|
-
instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type option permissions. \n- Update the CLI config for this account by running ${
|
|
2406
|
+
instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type option permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
|
|
2435
2407
|
},
|
|
2436
2408
|
},
|
|
2437
2409
|
},
|
|
@@ -2445,16 +2417,16 @@ exports.commands = {
|
|
|
2445
2417
|
configFileUpdated: (authType) => `Serverless function webhook subscription event type options updated using "${authType}"`,
|
|
2446
2418
|
},
|
|
2447
2419
|
failure: {
|
|
2448
|
-
invalidUser: (parentAccountName) => `Couldn't list serverless function webhook subscription event type options because your account has been removed from ${
|
|
2420
|
+
invalidUser: (parentAccountName) => `Couldn't list serverless function webhook subscription event type options because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhook subscription event type options. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
|
|
2449
2421
|
scopes: {
|
|
2450
2422
|
message: "The personal access key you provided doesn't include serverless function webhook subscription event type option permissions.",
|
|
2451
|
-
instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type option permissions. \n- Update the CLI config for this account by running ${
|
|
2423
|
+
instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type option permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
|
|
2452
2424
|
},
|
|
2453
2425
|
},
|
|
2454
2426
|
},
|
|
2455
2427
|
},
|
|
2456
2428
|
};
|
|
2457
|
-
|
|
2429
|
+
export const lib = {
|
|
2458
2430
|
parsing: {
|
|
2459
2431
|
unableToParseStringToNumber: 'Unable to parse string to number',
|
|
2460
2432
|
},
|
|
@@ -2470,40 +2442,40 @@ exports.lib = {
|
|
|
2470
2442
|
noCompatibleComponents: (serverKey) => `Skipping call to ${serverKey} because there are no compatible components in the project.`,
|
|
2471
2443
|
},
|
|
2472
2444
|
LocalDevManager: {
|
|
2473
|
-
appNotFound: (accountId, appUid) => `Unable to find app with uid ${appUid} in account ${
|
|
2445
|
+
appNotFound: (accountId, appUid) => `Unable to find app with uid ${appUid} in account ${uiAccountDescription(accountId)}`,
|
|
2474
2446
|
failedToInitialize: 'Missing required arguments to initialize Local Dev',
|
|
2475
|
-
noDeployedBuild: (projectName, accountIdentifier, uploadCommand) => `Your project ${
|
|
2447
|
+
noDeployedBuild: (projectName, accountIdentifier, uploadCommand) => `Your project ${chalk.bold(projectName)} exists in ${accountIdentifier}, but has no deployed build. Projects must be successfully deployed to be developed locally. Address any build and deploy errors your project may have, then run ${uploadCommand} to upload and deploy your project.`,
|
|
2476
2448
|
noComponents: 'There are no components in this project.',
|
|
2477
2449
|
betaMessage: 'HubSpot projects local development',
|
|
2478
|
-
learnMoreLocalDevServer:
|
|
2479
|
-
running: (projectName, accountIdentifier) =>
|
|
2480
|
-
quitHelper: `Press ${
|
|
2481
|
-
viewProjectLink: (name, accountId) =>
|
|
2482
|
-
viewLocalDevUILink: (accountId) =>
|
|
2450
|
+
learnMoreLocalDevServer: uiLink('Learn more about the projects local dev server', 'https://developers.hubspot.com/docs/platform/project-cli-commands#start-a-local-development-server'),
|
|
2451
|
+
running: (projectName, accountIdentifier) => chalk.hex(UI_COLORS.SORBET)(`Running ${chalk.bold(projectName)} locally on ${accountIdentifier}, waiting for changes ...`),
|
|
2452
|
+
quitHelper: `Press ${chalk.bold('q')} to stop the local dev server`,
|
|
2453
|
+
viewProjectLink: (name, accountId) => uiLink('View project in HubSpot', getProjectDetailUrl(name, accountId) || ''),
|
|
2454
|
+
viewLocalDevUILink: (accountId) => uiLink('View local dev session in HubSpot', getLocalDevUiUrl(accountId)),
|
|
2483
2455
|
viewTestAccountLink: 'View developer test account in HubSpot',
|
|
2484
2456
|
exitingStart: 'Stopping local dev server ...',
|
|
2485
2457
|
exitingSucceed: 'Successfully exited',
|
|
2486
2458
|
exitingFail: 'Failed to cleanup before exiting',
|
|
2487
|
-
missingUid: `Could not find a uid for the selected app. Confirm that the app config file contains the uid field and re-run ${
|
|
2459
|
+
missingUid: `Could not find a uid for the selected app. Confirm that the app config file contains the uid field and re-run ${uiCommandReference('hs project dev')}.`,
|
|
2488
2460
|
uploadWarning: {
|
|
2489
2461
|
appLabel: '[App]',
|
|
2490
2462
|
uiExtensionLabel: '[UI Extension]',
|
|
2491
|
-
missingComponents: (missingComponents) => `Couldn't find the following components in the deployed build for this project: ${
|
|
2492
|
-
defaultWarning:
|
|
2493
|
-
defaultPublicAppWarning: (installCount, installText) => `${
|
|
2463
|
+
missingComponents: (missingComponents) => `Couldn't find the following components in the deployed build for this project: ${chalk.bold(missingComponents)}. This may cause issues in local development.`,
|
|
2464
|
+
defaultWarning: chalk.bold('Changing project configuration requires a new project build.'),
|
|
2465
|
+
defaultPublicAppWarning: (installCount, installText) => `${chalk.bold('Changing project configuration requires a new project build.')}\n\nThis will affect your public app's ${chalk.bold(`${installCount} existing ${installText}`)}. If your app has users in production, we strongly recommend creating a copy of this app to test your changes before proceding.`,
|
|
2494
2466
|
header: (warning) => `${warning} To reflect these changes and continue testing:`,
|
|
2495
2467
|
instructionsHeader: 'To reflect these changes and continue testing:',
|
|
2496
|
-
stopDev: ` * Stop ${
|
|
2468
|
+
stopDev: ` * Stop ${uiCommandReference('hs project dev')}`,
|
|
2497
2469
|
runUpload: (command) => ` * Run ${command}`,
|
|
2498
|
-
restartDev: ` * Re-run ${
|
|
2470
|
+
restartDev: ` * Re-run ${uiCommandReference('hs project dev')}`,
|
|
2499
2471
|
pushToGithub: ' * Commit and push your changes to GitHub',
|
|
2500
|
-
defaultMarketplaceAppWarning: (installCount, accountText) => `${
|
|
2472
|
+
defaultMarketplaceAppWarning: (installCount, accountText) => `${chalk.bold('Changing project configuration requires creating a new project build.')}\n\nYour marketplace app is currently installed in ${chalk.bold(`${installCount} ${accountText}`)}. Any uploaded changes will impact your app's users. We strongly recommend creating a copy of this app to test your changes before proceding.`,
|
|
2501
2473
|
},
|
|
2502
2474
|
activeInstallWarning: {
|
|
2503
|
-
installCount: (appName, installCount) => `${
|
|
2475
|
+
installCount: (appName, installCount) => `${chalk.bold(`The app ${appName} is installed in ${installCount} production ${installCount === 1 ? 'account' : 'accounts'}`)}`,
|
|
2504
2476
|
explanation: 'Some changes made during local development may need to be synced to HubSpot, which will impact those existing installs. We strongly recommend creating a copy of this app to use instead.',
|
|
2505
2477
|
confirmation: `You will always be asked to confirm any permanent changes to your app's configuration before uploading them.`,
|
|
2506
|
-
confirmationPrompt: `Proceed with local development of this ${
|
|
2478
|
+
confirmationPrompt: `Proceed with local development of this ${chalk.bold('production')} app?`,
|
|
2507
2479
|
},
|
|
2508
2480
|
devServer: {
|
|
2509
2481
|
cleanupError: (message) => `Failed to cleanup local dev server: ${message}`,
|
|
@@ -2513,10 +2485,10 @@ exports.lib = {
|
|
|
2513
2485
|
},
|
|
2514
2486
|
},
|
|
2515
2487
|
AppDevModeInterface: {
|
|
2516
|
-
defaultMarketplaceAppWarning: (installCount) => `\n\nYour marketplace app is currently installed in ${
|
|
2488
|
+
defaultMarketplaceAppWarning: (installCount) => `\n\nYour marketplace app is currently installed in ${chalk.bold(`${installCount} ${installCount === 1 ? 'account' : 'accounts'}`)}. Any uploaded changes will impact your app's users. We strongly recommend creating a copy of this app to test your changes before proceding.`,
|
|
2517
2489
|
autoInstallDeclined: 'You must install your app on your target test account to proceed with local development.',
|
|
2518
|
-
autoInstallSuccess: (appName, targetTestAccountId) => `Successfully installed app ${appName} on account ${
|
|
2519
|
-
autoInstallError: (appName, targetTestAccountId) => `Error installing app ${appName} on account ${
|
|
2490
|
+
autoInstallSuccess: (appName, targetTestAccountId) => `Successfully installed app ${appName} on account ${uiAccountDescription(targetTestAccountId)}\n`,
|
|
2491
|
+
autoInstallError: (appName, targetTestAccountId) => `Error installing app ${appName} on account ${uiAccountDescription(targetTestAccountId)}. You may still be able to install your app in your browser.`,
|
|
2520
2492
|
},
|
|
2521
2493
|
LocalDevWebsocketServer: {
|
|
2522
2494
|
errors: {
|
|
@@ -2532,29 +2504,29 @@ exports.lib = {
|
|
|
2532
2504
|
},
|
|
2533
2505
|
},
|
|
2534
2506
|
LocalDevProcess: {
|
|
2535
|
-
projectConfigMismatch: `Unable to upload project. The project config has been modified since starting ${
|
|
2507
|
+
projectConfigMismatch: `Unable to upload project. The project config has been modified since starting ${uiCommandReference('hs project dev')}.`,
|
|
2536
2508
|
uploadInitiated: 'Project upload initiated from Local Dev UI.',
|
|
2537
2509
|
uploadFailed: 'Project upload failed. To proceed with local development, fix any necessary errors, then re-upload your project.',
|
|
2538
2510
|
uploadSuccess: 'Project upload completed successfully. Resuming local dev...',
|
|
2539
2511
|
},
|
|
2540
2512
|
localDevHelpers: {
|
|
2541
2513
|
confirmDefaultAccountIsTarget: {
|
|
2542
|
-
configError: `An error occurred while reading the default account from your config. Run ${
|
|
2543
|
-
declineDefaultAccountExplanation: `To develop on a different account, run ${
|
|
2514
|
+
configError: `An error occurred while reading the default account from your config. Run ${uiCommandReference('hs auth')} to re-auth this account`,
|
|
2515
|
+
declineDefaultAccountExplanation: `To develop on a different account, run ${uiCommandReference('hs accounts use')} to change your default account, then re-run ${uiCommandReference('hs project dev')}.`,
|
|
2544
2516
|
},
|
|
2545
2517
|
checkIfDefaultAccountIsSupported: {
|
|
2546
|
-
publicApp: `This project contains a public app. Local development of public apps is only supported on developer accounts and developer test accounts. Change your default account using ${
|
|
2547
|
-
privateApp: `This project contains a private app. Local development of private apps is not supported in developer accounts. Change your default account using ${
|
|
2518
|
+
publicApp: `This project contains a public app. Local development of public apps is only supported on developer accounts and developer test accounts. Change your default account using ${uiCommandReference('hs accounts use')}, or link a new account with ${uiCommandReference('hs auth')}.`,
|
|
2519
|
+
privateApp: `This project contains a private app. Local development of private apps is not supported in developer accounts. Change your default account using ${uiCommandReference('hs accounts use')}, or link a new account with ${uiCommandReference('hs auth')}.`,
|
|
2548
2520
|
},
|
|
2549
2521
|
validateAccountOption: {
|
|
2550
|
-
invalidPublicAppAccount: `This project contains a public app. The "--account" flag must point to a developer test account to develop this project locally. Alternatively, change your default account to an App Developer Account using ${
|
|
2551
|
-
invalidPrivateAppAccount: `This project contains a private app. The account specified with the "--account" flag points to a developer account, which do not support the local development of private apps. Update the "--account" flag to point to a standard, sandbox, or developer test account, or change your default account by running ${
|
|
2552
|
-
nonSandboxWarning: `Testing in a sandbox is strongly recommended. To switch the target account, select an option below or run ${
|
|
2553
|
-
publicAppNonDeveloperTestAccountWarning: `Local development of public apps is only supported in ${
|
|
2522
|
+
invalidPublicAppAccount: `This project contains a public app. The "--account" flag must point to a developer test account to develop this project locally. Alternatively, change your default account to an App Developer Account using ${uiCommandReference('hs accounts use')} and run ${uiCommandReference('hs project dev')} to set up a new Developer Test Account.`,
|
|
2523
|
+
invalidPrivateAppAccount: `This project contains a private app. The account specified with the "--account" flag points to a developer account, which do not support the local development of private apps. Update the "--account" flag to point to a standard, sandbox, or developer test account, or change your default account by running ${uiCommandReference('hs accounts use')}.`,
|
|
2524
|
+
nonSandboxWarning: `Testing in a sandbox is strongly recommended. To switch the target account, select an option below or run ${uiCommandReference('hs accounts use')} before running the command again.`,
|
|
2525
|
+
publicAppNonDeveloperTestAccountWarning: `Local development of public apps is only supported in ${chalk.bold('developer test accounts')}.`,
|
|
2554
2526
|
},
|
|
2555
2527
|
createNewProjectForLocalDev: {
|
|
2556
|
-
projectMustExistExplanation: (projectName, accountId) => `The project ${projectName} does not exist in the target account ${
|
|
2557
|
-
publicAppProjectMustExistExplanation: (projectName, accountId) => `The project ${projectName} does not exist in ${
|
|
2528
|
+
projectMustExistExplanation: (projectName, accountId) => `The project ${projectName} does not exist in the target account ${uiAccountDescription(accountId)}. This command requires the project to exist in the target account.`,
|
|
2529
|
+
publicAppProjectMustExistExplanation: (projectName, accountId) => `The project ${projectName} does not exist in ${uiAccountDescription(accountId)}, the app developer account associated with your target account. This command requires the project to exist in this app developer account.`,
|
|
2558
2530
|
createProject: (projectName, accountIdentifier) => `Create new project ${projectName} in ${accountIdentifier}?`,
|
|
2559
2531
|
choseNotToCreateProject: 'Exiting because this command requires the project to exist in the target account.',
|
|
2560
2532
|
creatingProject: (projectName, accountIdentifier) => `Creating project ${projectName} in ${accountIdentifier}`,
|
|
@@ -2564,49 +2536,49 @@ exports.lib = {
|
|
|
2564
2536
|
createInitialBuildForNewProject: {
|
|
2565
2537
|
initialUploadMessage: 'HubSpot Local Dev Server Startup',
|
|
2566
2538
|
projectLockedError: 'Your project is locked. This may mean that another user is running the `hs project watch` command for this project. If this is you, unlock the project in Projects UI.',
|
|
2567
|
-
genericError: `An error occurred while creating the initial build for this project. Run ${
|
|
2539
|
+
genericError: `An error occurred while creating the initial build for this project. Run ${uiCommandReference('hs project upload')} to try again.`,
|
|
2568
2540
|
},
|
|
2569
2541
|
checkIfParentAccountIsAuthed: {
|
|
2570
|
-
notAuthedError: (parentAccountId, accountIdentifier) => `To develop this project locally, run ${
|
|
2542
|
+
notAuthedError: (parentAccountId, accountIdentifier) => `To develop this project locally, run ${uiCommandReference(`hs auth --account=${parentAccountId}`)} to authenticate the App Developer Account ${parentAccountId} associated with ${accountIdentifier}.`,
|
|
2571
2543
|
},
|
|
2572
2544
|
selectAccountTypePrompt: {
|
|
2573
2545
|
message: '[--account] Choose the type of account to test on',
|
|
2574
2546
|
developerTestAccountOption: 'Test on a developer test account',
|
|
2575
2547
|
sandboxAccountOption: 'Test on a sandbox account',
|
|
2576
2548
|
sandboxAccountOptionDisabled: 'Disabled - requires access to sandbox accounts',
|
|
2577
|
-
productionAccountOption: `<${
|
|
2549
|
+
productionAccountOption: `<${chalk.red('!')} Test on this account ${chalk.red('!')}>`,
|
|
2578
2550
|
},
|
|
2579
2551
|
},
|
|
2580
2552
|
middleware: {
|
|
2581
2553
|
updateNotification: {
|
|
2582
|
-
notifyTitle:
|
|
2583
|
-
cmsUpdateNotification: (packageName) => `${
|
|
2584
|
-
cliUpdateNotification: `HubSpot CLI version ${
|
|
2554
|
+
notifyTitle: chalk.bold('Update available'),
|
|
2555
|
+
cmsUpdateNotification: (packageName) => `${chalk.bold('The CMS CLI is now the HubSpot CLI')}\n\nTo upgrade, uninstall ${chalk.bold(packageName)}\nand then run ${uiCommandReference('{updateCommand}')}`,
|
|
2556
|
+
cliUpdateNotification: `HubSpot CLI version ${chalk.cyan(chalk.bold('{currentVersion}'))} is outdated.\nRun ${uiCommandReference('{updateCommand}')} to upgrade to version ${chalk.cyan(chalk.bold('{latestVersion}'))}`,
|
|
2585
2557
|
},
|
|
2586
2558
|
autoUpdateCLI: {
|
|
2587
|
-
updateAvailable: (latestVersion) => `There's a new HubSpot CLI version available! Updating to version ${
|
|
2588
|
-
updateSucceeded: (latestVersion) => `Successfully updated HubSpot CLI to version ${
|
|
2559
|
+
updateAvailable: (latestVersion) => `There's a new HubSpot CLI version available! Updating to version ${chalk.bold(latestVersion)}`,
|
|
2560
|
+
updateSucceeded: (latestVersion) => `Successfully updated HubSpot CLI to version ${chalk.bold(latestVersion)}`,
|
|
2589
2561
|
notInstalledGlobally: 'Cannot auto-update the HubSpot CLI because NPM is not installed globally',
|
|
2590
|
-
updateFailed: (latestVersion) => `Failed to update HubSpot CLI to version ${
|
|
2562
|
+
updateFailed: (latestVersion) => `Failed to update HubSpot CLI to version ${chalk.bold(latestVersion)}`,
|
|
2591
2563
|
},
|
|
2592
2564
|
},
|
|
2593
2565
|
projectProfiles: {
|
|
2594
2566
|
logs: {
|
|
2595
|
-
usingProfile: (profileName) => `Using profile from ${
|
|
2596
|
-
profileTargetAccount: (accountId) => `Targeting ${
|
|
2567
|
+
usingProfile: (profileName) => `Using profile from ${chalk.bold(profileName)}`,
|
|
2568
|
+
profileTargetAccount: (accountId) => `Targeting ${uiAccountDescription(accountId)}`,
|
|
2597
2569
|
profileVariables: 'Profile variables',
|
|
2598
2570
|
},
|
|
2599
2571
|
exitIfUsingProfiles: {
|
|
2600
2572
|
errors: {
|
|
2601
|
-
noProfileSpecified: `This project is configured to use profiles, but no profile was specified. Target a profile using the ${
|
|
2573
|
+
noProfileSpecified: `This project is configured to use profiles, but no profile was specified. Target a profile using the ${uiCommandReference('--profile')} flag.`,
|
|
2602
2574
|
},
|
|
2603
2575
|
},
|
|
2604
2576
|
loadProfile: {
|
|
2605
2577
|
errors: {
|
|
2606
2578
|
noProjectConfig: 'No project config found. Please run this command from a project directory.',
|
|
2607
|
-
profileNotFound: (profileName) => `Profile ${
|
|
2608
|
-
missingAccountId: (profileName) => `Profile ${
|
|
2609
|
-
failedToLoadProfile: (profileName) => `Failed to load profile ${
|
|
2579
|
+
profileNotFound: (profileName) => `Profile ${chalk.bold(profileName)} not found.`,
|
|
2580
|
+
missingAccountId: (profileName) => `Profile ${chalk.bold(profileName)} is missing an account id.`,
|
|
2581
|
+
failedToLoadProfile: (profileName) => `Failed to load profile ${chalk.bold(profileName)}.`,
|
|
2610
2582
|
},
|
|
2611
2583
|
},
|
|
2612
2584
|
},
|
|
@@ -2633,10 +2605,10 @@ exports.lib = {
|
|
|
2633
2605
|
nothingAdded: 'No features added.',
|
|
2634
2606
|
},
|
|
2635
2607
|
validateProjectConfig: {
|
|
2636
|
-
configNotFound: `Unable to locate a project configuration file. Try running again from a project directory, or run ${
|
|
2608
|
+
configNotFound: `Unable to locate a project configuration file. Try running again from a project directory, or run ${uiCommandReference('hs project create')} to create a new project.`,
|
|
2637
2609
|
configMissingFields: 'The project configuration file is missing required fields.',
|
|
2638
|
-
srcDirNotFound: (srcDir, projectDir) => `Project source directory ${
|
|
2639
|
-
srcOutsideProjectDir: (projectConfig, srcDir) => `Invalid value for 'srcDir' in ${projectConfig}: ${
|
|
2610
|
+
srcDirNotFound: (srcDir, projectDir) => `Project source directory ${chalk.bold(srcDir)} could not be found in ${chalk.bold(projectDir)}.`,
|
|
2611
|
+
srcOutsideProjectDir: (projectConfig, srcDir) => `Invalid value for 'srcDir' in ${projectConfig}: ${chalk.bold(`srcDir: "${srcDir}"`)}\n\t'srcDir' must be a relative path to a folder under the project root, such as "." or "./src"`,
|
|
2640
2612
|
},
|
|
2641
2613
|
getProjectConfig: {
|
|
2642
2614
|
error: 'Could not read from project config',
|
|
@@ -2644,15 +2616,15 @@ exports.lib = {
|
|
|
2644
2616
|
ensureProjectExists: {
|
|
2645
2617
|
createPrompt: (projectName, accountIdentifier) => `The project ${projectName} does not exist in ${accountIdentifier}. Would you like to create it?`,
|
|
2646
2618
|
createPromptUpload: (projectName, accountIdentifier) => `[--forceCreate] The project ${projectName} does not exist in ${accountIdentifier}. Would you like to create it?`,
|
|
2647
|
-
createSuccess: (projectName, accountIdentifier) => `New project ${
|
|
2648
|
-
notFound: (projectName, accountIdentifier) => `Your project ${
|
|
2619
|
+
createSuccess: (projectName, accountIdentifier) => `New project ${chalk.bold(projectName)} successfully created in ${chalk.bold(accountIdentifier)}.`,
|
|
2620
|
+
notFound: (projectName, accountIdentifier) => `Your project ${chalk.bold(projectName)} could not be found in ${chalk.bold(accountIdentifier)}.`,
|
|
2649
2621
|
},
|
|
2650
2622
|
pollFetchProject: {
|
|
2651
2623
|
checkingProject: (accountIdentifier) => `Checking if project exists in ${accountIdentifier}`,
|
|
2652
2624
|
},
|
|
2653
2625
|
logFeedbackMessage: {
|
|
2654
2626
|
feedbackHeader: "We'd love to hear your feedback!",
|
|
2655
|
-
feedbackMessage: `How are you liking the new projects and developer tools? \n > Run ${
|
|
2627
|
+
feedbackMessage: `How are you liking the new projects and developer tools? \n > Run ${uiCommandReference('hs feedback')} to let us know what you think!\n`,
|
|
2656
2628
|
},
|
|
2657
2629
|
},
|
|
2658
2630
|
projectBuildAndDeploy: {
|
|
@@ -2666,22 +2638,22 @@ exports.lib = {
|
|
|
2666
2638
|
},
|
|
2667
2639
|
pollBuildAutodeployStatusError: (buildId) => `Error fetching autodeploy status for build #${buildId}`,
|
|
2668
2640
|
pollProjectBuildAndDeploy: {
|
|
2669
|
-
buildSucceededAutomaticallyDeploying: (buildId, accountIdentifier) => `Build #${buildId} succeeded. ${
|
|
2641
|
+
buildSucceededAutomaticallyDeploying: (buildId, accountIdentifier) => `Build #${buildId} succeeded. ${chalk.bold('Automatically deploying')} to ${accountIdentifier}\n`,
|
|
2670
2642
|
cleanedUpTempFile: (path) => `Cleaned up temporary file ${path}`,
|
|
2671
2643
|
viewDeploys: 'view all deploys for this project in HubSpot',
|
|
2672
|
-
unableToFindAutodeployStatus: (buildId, viewDeploysLink) => `Unable to find the auto deploy for build #${buildId}. This deploy may have been skipped or blocked due to components being removed. Manually deploy with ${
|
|
2644
|
+
unableToFindAutodeployStatus: (buildId, viewDeploysLink) => `Unable to find the auto deploy for build #${buildId}. This deploy may have been skipped or blocked due to components being removed. Manually deploy with ${uiCommandReference('hs project deploy')} or ${viewDeploysLink}.`,
|
|
2673
2645
|
},
|
|
2674
2646
|
},
|
|
2675
2647
|
projectUpload: {
|
|
2676
|
-
wrongPlatformVersionMetaFiles: `Detected components that require a minimum platform version of ${
|
|
2648
|
+
wrongPlatformVersionMetaFiles: `Detected components that require a minimum platform version of ${PLATFORM_VERSIONS.v2025_2}. You need to update your platform version in your ${PROJECT_CONFIG_FILE} and run ${uiCommandReference('hs project upload')}`,
|
|
2677
2649
|
uploadProjectFiles: {
|
|
2678
|
-
add: (projectName, accountIdentifier) => `Uploading ${
|
|
2679
|
-
fail: (projectName, accountIdentifier) => `Failed to upload ${
|
|
2680
|
-
succeed: (projectName, accountIdentifier) => `Uploaded ${
|
|
2650
|
+
add: (projectName, accountIdentifier) => `Uploading ${chalk.bold(projectName)} project files to ${accountIdentifier}`,
|
|
2651
|
+
fail: (projectName, accountIdentifier) => `Failed to upload ${chalk.bold(projectName)} project files to ${accountIdentifier}`,
|
|
2652
|
+
succeed: (projectName, accountIdentifier) => `Uploaded ${chalk.bold(projectName)} project files to ${accountIdentifier}`,
|
|
2681
2653
|
buildCreated: (projectName, buildId) => `Project "${projectName}" uploaded and build #${buildId} created`,
|
|
2682
2654
|
},
|
|
2683
2655
|
handleProjectUpload: {
|
|
2684
|
-
emptySource: (srcDir) => `Source directory "${srcDir}" is empty. Add files to your project and rerun ${
|
|
2656
|
+
emptySource: (srcDir) => `Source directory "${srcDir}" is empty. Add files to your project and rerun ${uiCommandReference('hs project upload')} to upload them to HubSpot.`,
|
|
2685
2657
|
compressed: (byteCount) => `Project files compressed: ${byteCount} bytes`,
|
|
2686
2658
|
compressing: (path) => `Compressing build files to "${path}"`,
|
|
2687
2659
|
fileFiltered: (filename) => `Ignore rule triggered for "${filename}"`,
|
|
@@ -2691,14 +2663,14 @@ exports.lib = {
|
|
|
2691
2663
|
failedToLoad: 'Failed to load boxen util.',
|
|
2692
2664
|
},
|
|
2693
2665
|
ui: {
|
|
2694
|
-
betaTag:
|
|
2666
|
+
betaTag: chalk.bold('[BETA]'),
|
|
2695
2667
|
betaWarning: {
|
|
2696
|
-
header:
|
|
2697
|
-
footer:
|
|
2668
|
+
header: chalk.yellow('***************************** WARNING ****************************'),
|
|
2669
|
+
footer: chalk.yellow('******************************************************************'),
|
|
2698
2670
|
},
|
|
2699
|
-
infoTag:
|
|
2700
|
-
deprecatedTag:
|
|
2701
|
-
errorTag:
|
|
2671
|
+
infoTag: chalk.bold('[INFO]'),
|
|
2672
|
+
deprecatedTag: chalk.bold('[DEPRECATED]'),
|
|
2673
|
+
errorTag: chalk.bold('[ERROR]'),
|
|
2702
2674
|
deprecatedMessage: (command, url) => `The ${command} command is deprecated and will be disabled soon. ${url}`,
|
|
2703
2675
|
deprecatedDescription: (message, command, url) => `${message}. The ${command} command is deprecated and will be disabled soon. ${url}`,
|
|
2704
2676
|
deprecatedUrlText: 'Learn more.',
|
|
@@ -2833,13 +2805,13 @@ exports.lib = {
|
|
|
2833
2805
|
success: 'Your deprecated config file has been successfully migrated.',
|
|
2834
2806
|
},
|
|
2835
2807
|
handleMergeConfigProperties: {
|
|
2836
|
-
mergeConflictMessage: (count, propertyList) => `Conflict${count > 1 ? 's' : ''} detected for ${
|
|
2808
|
+
mergeConflictMessage: (count, propertyList) => `Conflict${count > 1 ? 's' : ''} detected for ${chalk.bold(propertyList)}.`,
|
|
2837
2809
|
mergeConfigConflictPrompt: (property, newValue, oldValue) => `Change ${property} from ${newValue} to ${oldValue}?`,
|
|
2838
2810
|
},
|
|
2839
2811
|
handleMerge: {
|
|
2840
2812
|
description: (archivedConfigName) => `We will automatically merge the contents of your deprecated config file into your global configuration file. This will merge the configured accounts and settings into the global config. Then it will archive the deprecated config as ${archivedConfigName} for you to manually cleanup at your convenience.`,
|
|
2841
2813
|
confirmPrompt: 'Merge the deprecated config into your global config?',
|
|
2842
|
-
skippedExistingAccounts: (accountIds) => `The following accounts were not merged because they already exist in the global config:${accountIds.map(id => `\n- ${
|
|
2814
|
+
skippedExistingAccounts: (accountIds) => `The following accounts were not merged because they already exist in the global config:${accountIds.map(id => `\n- ${uiAccountDescription(Number(id))}`).join('')}`,
|
|
2843
2815
|
success: 'Your deprecated config file has been successfully merged with the global config file.',
|
|
2844
2816
|
},
|
|
2845
2817
|
},
|
|
@@ -2847,17 +2819,17 @@ exports.lib = {
|
|
|
2847
2819
|
projectDevTargetAccountPrompt: {
|
|
2848
2820
|
createNewSandboxOption: '<Test on a new development sandbox>',
|
|
2849
2821
|
createNewDeveloperTestAccountOption: '<Test on a new developer test account>',
|
|
2850
|
-
chooseDefaultAccountOption: () => `<${
|
|
2822
|
+
chooseDefaultAccountOption: () => `<${chalk.bold('❗')} Test on this production account ${chalk.bold('❗')}>`,
|
|
2851
2823
|
promptMessage: (accountType, accountIdentifier) => `[--account] Choose a ${accountType} under ${accountIdentifier} to test with:`,
|
|
2852
2824
|
sandboxLimit: (limit) => `Your account reached the limit of ${limit} development sandboxes`,
|
|
2853
2825
|
sandboxLimitWithSuggestion: (limit, authCommand) => `Your account reached the limit of ${limit} development sandboxes. Run ${authCommand} to add an existing one to the config.`,
|
|
2854
2826
|
developerTestAccountLimit: (limit) => `Your account reached the limit of ${limit} developer test accounts.`,
|
|
2855
|
-
confirmDefaultAccount: (accountName, accountType) => `Continue testing on ${
|
|
2827
|
+
confirmDefaultAccount: (accountName, accountType) => `Continue testing on ${chalk.bold(`${accountName} (${accountType})`)}? (Y/n)`,
|
|
2856
2828
|
confirmUseExistingDeveloperTestAccount: (accountName) => `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.`,
|
|
2857
2829
|
noAccountId: 'No account ID found for the selected account. Please try again.',
|
|
2858
2830
|
},
|
|
2859
2831
|
projectLogsPrompt: {
|
|
2860
|
-
functionName: (projectName) => `[--function] Select function in ${
|
|
2832
|
+
functionName: (projectName) => `[--function] Select function in ${chalk.bold(projectName)} project`,
|
|
2861
2833
|
},
|
|
2862
2834
|
setAsDefaultAccountPrompt: {
|
|
2863
2835
|
setAsDefaultAccountMessage: 'Set this account as the default?',
|
|
@@ -2990,10 +2962,10 @@ exports.lib = {
|
|
|
2990
2962
|
selectAppIdClone: (accountName) => `[--appId] Choose an app under ${accountName} to clone:`,
|
|
2991
2963
|
errors: {
|
|
2992
2964
|
noAccountId: 'An account ID is required to select an app.',
|
|
2993
|
-
noAppsMigration: () => `${
|
|
2994
|
-
noAppsClone: () => `${
|
|
2995
|
-
noAppsMigrationMessage: (accountName) => `The selected developer account ${
|
|
2996
|
-
noAppsCloneMessage: (accountName) => `The selected developer account ${
|
|
2965
|
+
noAppsMigration: () => `${chalk.bold('No apps to migrate')}`,
|
|
2966
|
+
noAppsClone: () => `${chalk.bold('No apps to clone')}`,
|
|
2967
|
+
noAppsMigrationMessage: (accountName) => `The selected developer account ${chalk.bold(accountName)} doesn't have any apps that can be migrated to the projects framework.`,
|
|
2968
|
+
noAppsCloneMessage: (accountName) => `The selected developer account ${chalk.bold(accountName)} doesn't have any apps that can be cloned to the projects framework.`,
|
|
2997
2969
|
errorFetchingApps: 'There was an error fetching public apps.',
|
|
2998
2970
|
cannotBeMigrated: 'Cannot be migrated',
|
|
2999
2971
|
},
|
|
@@ -3046,7 +3018,7 @@ exports.lib = {
|
|
|
3046
3018
|
enterName: '[--project] Enter project name:',
|
|
3047
3019
|
errors: {
|
|
3048
3020
|
invalidName: 'You entered an invalid name. Please try again.',
|
|
3049
|
-
projectDoesNotExist: (projectName, accountIdentifier) => `Project ${
|
|
3021
|
+
projectDoesNotExist: (projectName, accountIdentifier) => `Project ${chalk.bold(projectName)} could not be found in "${accountIdentifier}"`,
|
|
3050
3022
|
},
|
|
3051
3023
|
},
|
|
3052
3024
|
previewPrompt: {
|
|
@@ -3064,7 +3036,7 @@ exports.lib = {
|
|
|
3064
3036
|
prompt: 'Open HubSpot to install this app?',
|
|
3065
3037
|
autoPrompt: 'Install this app in your target test account?',
|
|
3066
3038
|
reinstallPrompt: 'Open HubSpot to reinstall this app?',
|
|
3067
|
-
decline: `To continue local development of this app, install it in your target test account and re-run ${
|
|
3039
|
+
decline: `To continue local development of this app, install it in your target test account and re-run ${chalk.bold('`hs project dev`')}`,
|
|
3068
3040
|
},
|
|
3069
3041
|
selectHubDBTablePrompt: {
|
|
3070
3042
|
selectTable: 'Select a HubDB table:',
|
|
@@ -3096,20 +3068,20 @@ exports.lib = {
|
|
|
3096
3068
|
developerTestAccount: {
|
|
3097
3069
|
create: {
|
|
3098
3070
|
loading: {
|
|
3099
|
-
add: (accountName) => `Creating developer test account ${
|
|
3100
|
-
fail: (accountName) => `Failed to create a developer test account ${
|
|
3101
|
-
succeed: (accountName, accountId) => `Successfully created a developer test account ${
|
|
3071
|
+
add: (accountName) => `Creating developer test account ${chalk.bold(accountName)}`,
|
|
3072
|
+
fail: (accountName) => `Failed to create a developer test account ${chalk.bold(accountName)}.`,
|
|
3073
|
+
succeed: (accountName, accountId) => `Successfully created a developer test account ${chalk.bold(accountName)} with portalId ${chalk.bold(accountId)}.`,
|
|
3102
3074
|
},
|
|
3103
3075
|
success: {
|
|
3104
3076
|
configFileUpdated: (accountName, authType) => `Account "${accountName}" updated using "${authType}"`,
|
|
3105
3077
|
},
|
|
3106
3078
|
failure: {
|
|
3107
|
-
invalidUser: (accountName, parentAccountName) => `Couldn't create ${
|
|
3108
|
-
limit: (accountName, limit) => `${
|
|
3109
|
-
alreadyInConfig: (accountName, limit) => `${
|
|
3079
|
+
invalidUser: (accountName, parentAccountName) => `Couldn't create ${chalk.bold(accountName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to create the sandbox. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
|
|
3080
|
+
limit: (accountName, limit) => `${chalk.bold(accountName)} reached the limit of ${limit} developer test accounts. \n- To connect a developer test account to your HubSpot CLI, run ${chalk.bold('hs auth')} and follow the prompts.`,
|
|
3081
|
+
alreadyInConfig: (accountName, limit) => `${chalk.bold(accountName)} reached the limit of ${limit} developer test accounts. \n- To use an existing developer test account, run ${chalk.bold('hs accounts use')}.`,
|
|
3110
3082
|
scopes: {
|
|
3111
3083
|
message: "The personal access key you provided doesn't include developer test account permissions.",
|
|
3112
|
-
instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes developer test account permissions. \n- Update the CLI config for this account by running ${
|
|
3084
|
+
instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes developer test account permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
|
|
3113
3085
|
},
|
|
3114
3086
|
},
|
|
3115
3087
|
},
|
|
@@ -3118,58 +3090,58 @@ exports.lib = {
|
|
|
3118
3090
|
create: {
|
|
3119
3091
|
developer: {
|
|
3120
3092
|
loading: {
|
|
3121
|
-
add: (accountName) => `Creating developer sandbox ${
|
|
3122
|
-
fail: (accountName) => `Failed to create a developer sandbox ${
|
|
3123
|
-
succeed: (accountName, accountId) => `Successfully created a developer sandbox ${
|
|
3093
|
+
add: (accountName) => `Creating developer sandbox ${chalk.bold(accountName)}`,
|
|
3094
|
+
fail: (accountName) => `Failed to create a developer sandbox ${chalk.bold(accountName)}.`,
|
|
3095
|
+
succeed: (accountName, accountId) => `Successfully created a developer sandbox ${chalk.bold(accountName)} with portalId ${chalk.bold(accountId)}.`,
|
|
3124
3096
|
},
|
|
3125
3097
|
success: {
|
|
3126
3098
|
configFileUpdated: (accountName, authType) => `Account "${accountName}" updated using "${authType}"`,
|
|
3127
3099
|
},
|
|
3128
3100
|
failure: {
|
|
3129
|
-
invalidUser: (accountName, parentAccountName) => `Couldn't create ${
|
|
3130
|
-
limit: (accountName, limit) => `${
|
|
3131
|
-
alreadyInConfig: (accountName, limit) => `${
|
|
3101
|
+
invalidUser: (accountName, parentAccountName) => `Couldn't create ${chalk.bold(accountName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to create the sandbox. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
|
|
3102
|
+
limit: (accountName, limit) => `${chalk.bold(accountName)} reached the limit of ${limit} developer sandboxes. \n- To connect a developer sandbox to your HubSpot CLI, run ${chalk.bold('hs auth')} and follow the prompts.`,
|
|
3103
|
+
alreadyInConfig: (accountName, limit) => `${chalk.bold(accountName)} reached the limit of ${limit} developer sandboxes. \n- To use an existing developer sandbox, run ${chalk.bold('hs accounts use')}.`,
|
|
3132
3104
|
scopes: {
|
|
3133
3105
|
message: "The personal access key you provided doesn't include developer sandbox permissions.",
|
|
3134
|
-
instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes developer sandbox permissions. \n- Update the CLI config for this account by running ${
|
|
3106
|
+
instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes developer sandbox permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
|
|
3135
3107
|
},
|
|
3136
3108
|
generic: 'An error occurred while creating a developer sandbox',
|
|
3137
3109
|
},
|
|
3138
3110
|
},
|
|
3139
3111
|
standard: {
|
|
3140
3112
|
loading: {
|
|
3141
|
-
add: (accountName) => `Creating standard sandbox ${
|
|
3142
|
-
fail: (accountName) => `Failed to create a standard sandbox ${
|
|
3143
|
-
succeed: (accountName, accountId) => `Successfully created a standard sandbox ${
|
|
3113
|
+
add: (accountName) => `Creating standard sandbox ${chalk.bold(accountName)}`,
|
|
3114
|
+
fail: (accountName) => `Failed to create a standard sandbox ${chalk.bold(accountName)}.`,
|
|
3115
|
+
succeed: (accountName, accountId) => `Successfully created a standard sandbox ${chalk.bold(accountName)} with portalId ${chalk.bold(accountId)}.`,
|
|
3144
3116
|
},
|
|
3145
3117
|
success: {
|
|
3146
3118
|
configFileUpdated: (accountName, authType) => `Account "${accountName}" updated using "${authType}"`,
|
|
3147
3119
|
},
|
|
3148
3120
|
failure: {
|
|
3149
|
-
invalidUser: (accountName, parentAccountName) => `Couldn't create ${
|
|
3150
|
-
limit: (accountName, limit) => `${
|
|
3151
|
-
alreadyInConfig: (accountName, limit) => `${
|
|
3121
|
+
invalidUser: (accountName, parentAccountName) => `Couldn't create ${chalk.bold(accountName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to create the sandbox. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
|
|
3122
|
+
limit: (accountName, limit) => `${chalk.bold(accountName)} reached the limit of ${limit} standard sandboxes. \n- To connect a standard sandbox to your HubSpot CLI, run ${chalk.bold('hs auth')} and follow the prompts.`,
|
|
3123
|
+
alreadyInConfig: (accountName, limit) => `${chalk.bold(accountName)} reached the limit of ${limit} standard sandboxes. \n- To use an existing standard sandbox, run ${chalk.bold('hs accounts use')}.`,
|
|
3152
3124
|
scopes: {
|
|
3153
3125
|
message: "The personal access key you provided doesn't include standard sandbox permissions.",
|
|
3154
|
-
instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes standard sandbox permissions. \n- Update the CLI config for this account by running ${
|
|
3126
|
+
instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes standard sandbox permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
|
|
3155
3127
|
},
|
|
3156
3128
|
},
|
|
3157
3129
|
},
|
|
3158
3130
|
},
|
|
3159
3131
|
sync: {
|
|
3160
3132
|
loading: {
|
|
3161
|
-
add: (accountName) => `Syncing sandbox ${
|
|
3162
|
-
fail: (accountName) => `Failed to sync sandbox ${
|
|
3163
|
-
succeed: (accountName) => `Successfully synced sandbox ${
|
|
3133
|
+
add: (accountName) => `Syncing sandbox ${chalk.bold(accountName)}`,
|
|
3134
|
+
fail: (accountName) => `Failed to sync sandbox ${chalk.bold(accountName)}.`,
|
|
3135
|
+
succeed: (accountName) => `Successfully synced sandbox ${chalk.bold(accountName)}.`,
|
|
3164
3136
|
},
|
|
3165
3137
|
success: {
|
|
3166
3138
|
configFileUpdated: (accountName, authType) => `Account "${accountName}" updated using "${authType}"`,
|
|
3167
3139
|
},
|
|
3168
3140
|
failure: {
|
|
3169
|
-
invalidUser: (accountName, parentAccountName) => `Couldn't sync ${
|
|
3141
|
+
invalidUser: (accountName, parentAccountName) => `Couldn't sync ${chalk.bold(accountName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to sync the sandbox. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
|
|
3170
3142
|
scopes: {
|
|
3171
3143
|
message: "The personal access key you provided doesn't include sandbox sync permissions.",
|
|
3172
|
-
instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes sandbox sync permissions. \n- Update the CLI config for this account by running ${
|
|
3144
|
+
instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes sandbox sync permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
|
|
3173
3145
|
},
|
|
3174
3146
|
},
|
|
3175
3147
|
},
|
|
@@ -3184,9 +3156,9 @@ exports.lib = {
|
|
|
3184
3156
|
suppressErrors: {
|
|
3185
3157
|
platformVersionErrors: {
|
|
3186
3158
|
header: 'Platform version update required',
|
|
3187
|
-
unspecifiedPlatformVersion: (platformVersion) => `Projects with an ${
|
|
3188
|
-
platformVersionRetired: (platformVersion) => `Projects with ${
|
|
3189
|
-
nonExistentPlatformVersion: (platformVersion) => `Projects with ${
|
|
3159
|
+
unspecifiedPlatformVersion: (platformVersion) => `Projects with an ${chalk.bold(platformVersion)} are no longer supported.`,
|
|
3160
|
+
platformVersionRetired: (platformVersion) => `Projects with ${chalk.bold(`platformVersion ${platformVersion}`)} are no longer supported.`,
|
|
3161
|
+
nonExistentPlatformVersion: (platformVersion) => `Projects with ${chalk.bold(`platformVersion ${platformVersion}`)} are not supported.`,
|
|
3190
3162
|
updateProject: 'Please update your project to the latest version and try again.',
|
|
3191
3163
|
docsLink: 'Projects platform versioning (BETA)',
|
|
3192
3164
|
betaLink: (docsLink) => `For more info, see ${docsLink}.`,
|
|
@@ -3238,13 +3210,13 @@ exports.lib = {
|
|
|
3238
3210
|
unableToDetermineSecondaryLink: 'npm HubSpot CLI version history',
|
|
3239
3211
|
},
|
|
3240
3212
|
projectDependenciesChecks: {
|
|
3241
|
-
missingDependencies: (dir) => `missing dependencies in ${
|
|
3213
|
+
missingDependencies: (dir) => `missing dependencies in ${chalk.bold(dir)}`,
|
|
3242
3214
|
missingDependenciesSecondary: (command) => `Run ${command} to install all project dependencies locally`,
|
|
3243
3215
|
unableToDetermine: (dir) => `Unable to determine if dependencies are installed ${dir}`,
|
|
3244
3216
|
success: 'App dependencies are installed and up to date',
|
|
3245
3217
|
},
|
|
3246
3218
|
files: {
|
|
3247
|
-
invalidJson: (filename) => `invalid JSON in ${
|
|
3219
|
+
invalidJson: (filename) => `invalid JSON in ${chalk.bold(filename)}`,
|
|
3248
3220
|
validJson: 'JSON files valid',
|
|
3249
3221
|
},
|
|
3250
3222
|
port: {
|
|
@@ -3258,19 +3230,19 @@ exports.lib = {
|
|
|
3258
3230
|
},
|
|
3259
3231
|
cliConfig: {
|
|
3260
3232
|
header: 'CLI configuration',
|
|
3261
|
-
configFileSubHeader: (filename) => `Config File: ${
|
|
3233
|
+
configFileSubHeader: (filename) => `Config File: ${chalk.bold(filename)}`,
|
|
3262
3234
|
defaultAccountSubHeader: (accountDetails) => `Default Account: ${accountDetails}`,
|
|
3263
3235
|
noConfigFile: 'CLI configuration not found',
|
|
3264
3236
|
noConfigFileSecondary: (command) => `Run ${command} and follow the prompts to create your CLI configuration file and connect it to your HubSpot account`,
|
|
3265
3237
|
},
|
|
3266
3238
|
projectConfig: {
|
|
3267
3239
|
header: 'Project configuration',
|
|
3268
|
-
projectDirSubHeader: (projectDir) => `Project dir: ${
|
|
3269
|
-
projectNameSubHeader: (projectName) => `Project name: ${
|
|
3240
|
+
projectDirSubHeader: (projectDir) => `Project dir: ${chalk.bold(projectDir)}`,
|
|
3241
|
+
projectNameSubHeader: (projectName) => `Project name: ${chalk.bold(projectName)}`,
|
|
3270
3242
|
},
|
|
3271
3243
|
counts: {
|
|
3272
|
-
errors: (count) => `${
|
|
3273
|
-
warnings: (count) => `${
|
|
3244
|
+
errors: (count) => `${chalk.bold('Errors:')} ${count}`,
|
|
3245
|
+
warnings: (count) => `${chalk.bold('Warning:')} ${count}`,
|
|
3274
3246
|
},
|
|
3275
3247
|
},
|
|
3276
3248
|
},
|
|
@@ -3282,11 +3254,11 @@ exports.lib = {
|
|
|
3282
3254
|
componentsThatWillNotBeMigrated: (components) => `[NOTE] These features are not yet supported for migration but will be available later: ${components}`,
|
|
3283
3255
|
sourceContentsMoved: (newLocation) => `The contents of your old source directory have been moved to ${newLocation}, move any required files to the new source directory.`,
|
|
3284
3256
|
projectMigrationWarningTitle: '⚠️ Important: Migrating to platformVersion 2025.2 is irreversible ⚠️',
|
|
3285
|
-
projectMigrationWarning:
|
|
3257
|
+
projectMigrationWarning: uiBetaTag(`Running the ${uiCommandReference('hs project migrate')} command will permanently upgrade your project to platformVersion 2025.2. This action cannot be undone. To ensure you have access to your original files, they will be copied to a new directory (archive) for safekeeping.\n\nThis command will guide you through the process, prompting you to enter the required fields and will download the new project source code into your project source directory.`, false),
|
|
3286
3258
|
errors: {
|
|
3287
3259
|
project: {
|
|
3288
3260
|
invalidConfig: 'The project configuration file is invalid. Please check the config file and try again.',
|
|
3289
|
-
doesNotExist: (account) => `Project does not exist in ${
|
|
3261
|
+
doesNotExist: (account) => `Project does not exist in ${uiAccountDescription(account)}. Migrations are only supported for existing projects.`,
|
|
3290
3262
|
multipleApps: 'Multiple apps found in project, this is not allowed in 2025.2',
|
|
3291
3263
|
alreadyExists: (projectName) => `A project with name ${projectName} already exists. Please choose another name.`,
|
|
3292
3264
|
},
|
|
@@ -3294,12 +3266,12 @@ exports.lib = {
|
|
|
3294
3266
|
upToDate: 'App is already up to date',
|
|
3295
3267
|
isPrivateApp: 'Private apps are not currently migratable',
|
|
3296
3268
|
listedInMarketplace: 'Listed apps are not currently migratable',
|
|
3297
|
-
projectConnectedToGitHub: (projectName, accountId) => `The project is linked to a GitHub repository. ${
|
|
3298
|
-
partOfProjectAlready: `This app is part of a project, run ${
|
|
3269
|
+
projectConnectedToGitHub: (projectName, accountId) => `The project is linked to a GitHub repository. ${uiLink('Visit the project settings page to unlink it', getProjectSettingsUrl(projectName, accountId))}`,
|
|
3270
|
+
partOfProjectAlready: `This app is part of a project, run ${uiCommandReference('hs project migrate')} from the project directory to migrate it`,
|
|
3299
3271
|
generic: (reasonCode) => `Unable to migrate app: ${reasonCode}`,
|
|
3300
3272
|
},
|
|
3301
3273
|
noAppsEligible: (accountId, reasons) => `No apps in account ${accountId} are currently migratable${reasons.length ? `\n - ${reasons.join('\n - ')}` : ''}`,
|
|
3302
|
-
invalidAccountTypeTitle: `${
|
|
3274
|
+
invalidAccountTypeTitle: `${chalk.bold('Developer account not targeted')}`,
|
|
3303
3275
|
invalidAccountTypeDescription: (useCommand, authCommand) => `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.`,
|
|
3304
3276
|
appWithAppIdNotFound: (appId) => `Could not find an app with the id ${appId} `,
|
|
3305
3277
|
noAppsForProject: (projectName) => `No apps associated with project ${projectName}`,
|