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