@hubspot/cli 7.4.2-experimental.0 → 7.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/api/migrate.d.ts +62 -0
  2. package/api/migrate.js +61 -0
  3. package/bin/cli.js +8 -183
  4. package/commands/account/auth.d.ts +10 -0
  5. package/commands/account/auth.js +168 -0
  6. package/commands/account/clean.js +38 -5
  7. package/commands/account/createOverride.d.ts +10 -0
  8. package/commands/account/createOverride.js +104 -0
  9. package/commands/account/info.js +38 -4
  10. package/commands/account/list.js +23 -5
  11. package/commands/account/remove.js +36 -2
  12. package/commands/account/removeOverride.d.ts +10 -0
  13. package/commands/account/removeOverride.js +76 -0
  14. package/commands/account/use.js +25 -3
  15. package/commands/account.js +7 -2
  16. package/commands/app/migrate.d.ts +4 -4
  17. package/commands/app/migrate.js +10 -4
  18. package/commands/auth.js +6 -2
  19. package/commands/cms/lighthouseScore.js +6 -2
  20. package/commands/config/migrate.d.ts +10 -0
  21. package/commands/config/migrate.js +84 -0
  22. package/commands/config/set.d.ts +10 -0
  23. package/commands/config/set.js +34 -29
  24. package/commands/config.d.ts +4 -1
  25. package/commands/config.js +45 -11
  26. package/commands/create/api-sample.js +3 -1
  27. package/commands/customObject/schema/delete.js +4 -1
  28. package/commands/customObject/schema/fetch-all.js +2 -1
  29. package/commands/customObject/schema/fetch.js +2 -1
  30. package/commands/init.js +9 -10
  31. package/commands/project/cloneApp.d.ts +5 -1
  32. package/commands/project/cloneApp.js +1 -1
  33. package/commands/project/dev/index.js +1 -1
  34. package/commands/project/installDeps.d.ts +9 -1
  35. package/commands/project/installDeps.js +43 -30
  36. package/commands/project/logs.d.ts +13 -1
  37. package/commands/project/logs.js +69 -62
  38. package/commands/project/migrate.d.ts +11 -0
  39. package/commands/project/migrate.js +54 -0
  40. package/commands/project/migrateApp.d.ts +4 -4
  41. package/commands/project/upload.d.ts +12 -0
  42. package/commands/project/upload.js +62 -49
  43. package/commands/project/watch.js +12 -0
  44. package/commands/project.js +2 -0
  45. package/lang/en.d.ts +2840 -0
  46. package/lang/en.js +2647 -3301
  47. package/lang/en.lyaml +100 -40
  48. package/lib/app/migrate.d.ts +10 -6
  49. package/lib/app/migrate.js +157 -232
  50. package/lib/app/migrate_legacy.d.ts +4 -0
  51. package/lib/app/migrate_legacy.js +131 -0
  52. package/lib/configMigrate.d.ts +2 -0
  53. package/lib/configMigrate.js +104 -0
  54. package/lib/doctor/Diagnosis.d.ts +1 -2
  55. package/lib/doctor/Diagnosis.js +10 -6
  56. package/lib/doctor/DiagnosticInfoBuilder.d.ts +1 -0
  57. package/lib/doctor/DiagnosticInfoBuilder.js +1 -0
  58. package/lib/doctor/Doctor.d.ts +1 -0
  59. package/lib/doctor/Doctor.js +18 -0
  60. package/lib/middleware/__test__/configMiddleware.test.d.ts +1 -0
  61. package/lib/middleware/__test__/configMiddleware.test.js +194 -0
  62. package/lib/middleware/__test__/gitMiddleware.test.d.ts +1 -0
  63. package/lib/middleware/__test__/gitMiddleware.test.js +76 -0
  64. package/lib/middleware/__test__/notificationsMiddleware.test.d.ts +1 -0
  65. package/lib/middleware/__test__/notificationsMiddleware.test.js +10 -0
  66. package/lib/middleware/__test__/requestMiddleware.test.d.ts +1 -0
  67. package/lib/middleware/__test__/requestMiddleware.test.js +20 -0
  68. package/lib/middleware/__test__/utils.test.d.ts +1 -0
  69. package/lib/middleware/__test__/utils.test.js +53 -0
  70. package/lib/middleware/__test__/yargsChecksMiddleware.test.d.ts +1 -0
  71. package/lib/middleware/__test__/yargsChecksMiddleware.test.js +81 -0
  72. package/lib/middleware/configMiddleware.d.ts +13 -0
  73. package/lib/middleware/configMiddleware.js +116 -0
  74. package/lib/middleware/fireAlarmMiddleware.d.ts +4 -0
  75. package/lib/middleware/fireAlarmMiddleware.js +137 -0
  76. package/lib/middleware/gitMiddleware.d.ts +2 -0
  77. package/lib/middleware/gitMiddleware.js +14 -0
  78. package/lib/middleware/notificationsMiddleware.d.ts +1 -0
  79. package/lib/middleware/notificationsMiddleware.js +38 -0
  80. package/lib/middleware/requestMiddleware.d.ts +1 -0
  81. package/lib/middleware/requestMiddleware.js +11 -0
  82. package/lib/middleware/utils.d.ts +8 -0
  83. package/lib/middleware/utils.js +17 -0
  84. package/lib/middleware/yargsChecksMiddleware.d.ts +4 -0
  85. package/lib/middleware/yargsChecksMiddleware.js +24 -0
  86. package/lib/projects/ProjectLogsManager.d.ts +1 -1
  87. package/lib/projects/ProjectLogsManager.js +1 -1
  88. package/lib/projects/index.d.ts +4 -3
  89. package/lib/projects/upload.d.ts +1 -1
  90. package/lib/ui/SpinniesManager.d.ts +1 -1
  91. package/lib/ui/index.d.ts +1 -0
  92. package/lib/ui/index.js +5 -0
  93. package/lib/ui/spinniesUtils.d.ts +5 -5
  94. package/package.json +7 -6
  95. package/types/Yargs.d.ts +0 -10
package/lang/en.lyaml CHANGED
@@ -6,11 +6,13 @@ en:
6
6
  cmsUpdateNotification: "{{#bold}}The CMS CLI is now the HubSpot CLI{{/bold}}\n\nTo upgrade, uninstall {{#bold}}{{ packageName }}{{/bold}}\nand then run {{ updateCommand }}"
7
7
  cliUpdateNotification: "HubSpot CLI version {{#cyan}}{{#bold}}{currentVersion}{{/bold}}{{/cyan}} is outdated.\nRun {{ updateCommand }} to upgrade to version {{#cyan}}{{#bold}}{latestVersion}{{/bold}}{{/cyan}}"
8
8
  srcIsProject: "\"{{ src }}\" is in a project folder. Did you mean \"hs project {{command}}\"?"
9
- setDefaultAccountMoved: "This command has moved. Try `hs accounts use` instead"
10
9
  handleDeprecatedEnvVariables:
11
10
  portalEnvVarDeprecated: "The HUBSPOT_PORTAL_ID environment variable is deprecated. Please use HUBSPOT_ACCOUNT_ID instead."
12
11
  loadConfigMiddleware:
13
12
  configFileExists: "A configuration file already exists at {{ configPath }}. To specify a new configuration file, delete the existing one and try again."
13
+ injectAccountIdMiddleware:
14
+ invalidAccountId: "In the default override file ({{ hsAccountFileName }}), the account ID must be a number. Please delete the current file and generate a new one using {{ overrideCommand }}."
15
+ accountNotFound: "The account in the default override file ({{ hsAccountFileName }}) wasn't found in your configured accounts. You can authorize this account using {{ authCommand }}."
14
16
  completion:
15
17
  describe: "Enable bash completion shortcuts for commands. Concat the generated script to your .bashrc, .bash_profile, or .zshrc file."
16
18
  examples:
@@ -18,11 +20,51 @@ en:
18
20
  account:
19
21
  describe: "Commands for managing configured accounts."
20
22
  subcommands:
23
+ auth:
24
+ describe: "Configure authentication for your HubSpot account."
25
+ options:
26
+ account:
27
+ describe: "HubSpot account to authenticate"
28
+ errors:
29
+ failedToUpdateConfig: "Failed to update the configuration file. Please try again."
30
+ bothConfigFilesNotAllowed: "Unable to create config file, because there is an existing \"{{ deprecatedConfig }}\" file. To create a new config file, delete the existing one and try again."
31
+ success:
32
+ configFileCreated: "Created config file \"{{ configPath }}\""
33
+ configFileUpdated: "Connected account \"{{ account }}\" and set it as the default account"
34
+ createOverride:
35
+ describe: "Create a new default account override file ({{ hsAccountFileName }}) in the current working directory."
36
+ success: "Default account override file created at {{ overrideFilePath }}"
37
+ accountOverride: "An account override file already exists at {{ overrideFilePath }} associated with account \"{{ accountOverride }}\"."
38
+ prompts:
39
+ replaceOverrideFile: "Replace existing account override file?"
40
+ errors:
41
+ accountNotFound: "The specified account could not be found in the config file {{ configPath }}"
42
+ options:
43
+ account:
44
+ describe: "Name or ID of the account to create an override file for."
45
+ examples:
46
+ default: "Create a new default account override file ({{ hsAccountFileName }}) in the current working directory"
47
+ idBased: "Create a new default account override file ({{ hsAccountFileName }}) in the current working directory, using the account with accountId \"1234567\""
48
+ nameBased: "Create a new default account override file ({{ hsAccountFileName }}) in the current working directory, using the account with name \"MyAccount\""
49
+ removeOverride:
50
+ describe: "Remove the default account override file ({{ overrideFile }}) from the current working directory."
51
+ accountOverride: "There is an account override file at {{ overrideFilePath }} associated with account \"{{ accountOverride }}\"."
52
+ prompts:
53
+ deleteOverrideFile: "Delete account override file?"
54
+ success: "Removed the default account override file."
55
+ noOverrideFile: "No default account override file found in the current working directory. No action required."
56
+ options:
57
+ force:
58
+ describe: "Skip confirmation prompt when removing the override file"
21
59
  list:
22
- accounts: "{{#bold}}Accounts{{/bold}}:"
23
- defaultAccount: "{{#bold}}Default account{{/bold}}: {{ account }}"
24
60
  describe: "List names of accounts defined in config."
25
- configPath: "{{#bold}}Config path{{/bold}}: {{ configPath }}"
61
+ accounts: "{{#bold}}Accounts{{/bold}}:"
62
+ defaultAccountTitle: "{{#bold}}Default Account{{/bold}}"
63
+ defaultAccount: "Account: {{ account }}"
64
+ configPath: "Source: {{ configPath }}"
65
+ overrideFilePathTitle: "{{#bold}}Default Account Override{{/bold}}"
66
+ overrideFilePath: "Source: {{ overrideFilePath }}"
67
+ overrideAccount: "Account: {{ account }}"
26
68
  labels:
27
69
  accountId: "Account ID"
28
70
  authType: "Auth Type"
@@ -40,6 +82,8 @@ en:
40
82
  describe: "Set the Hubspot account to use as the default account. The default account can be overridden with the \"--account\" option."
41
83
  errors:
42
84
  accountNotFound: "The account \"{{ specifiedAccount }}\" could not be found in {{ configPath }}"
85
+ accountOverride: "This project currently has an account override set: \"{{ accountOverride }}\". Account \"{{accountOverride}}\" will continue to act as the default account for this project."
86
+ accountOverrideCommands: "Use {{ createOverrideCommand }} to change override accounts, or {{ removeOverrideCommand }} to remove the override and use your default account."
43
87
  examples:
44
88
  default: "Select a HubSpot account to use as the default account"
45
89
  idBased: "Set the default account to the account in the config with accountId equal to \"1234567\""
@@ -55,6 +99,7 @@ en:
55
99
  logs:
56
100
  replaceDefaultAccount: "The removed account was the default account."
57
101
  prompts:
102
+ deleteOverrideFile: "Delete the override file ({{ overrideFilePath }}) associated with {{ accountName }}?"
58
103
  selectAccountToRemove: "Select an account to remove from the config"
59
104
  errors:
60
105
  accountNotFound: "The account \"{{ specifiedAccount }}\" could not be found in {{ configPath }}"
@@ -70,6 +115,12 @@ en:
70
115
  info:
71
116
  accountId: "{{#bold}}Account ID{{/bold}}: {{ accountId }}"
72
117
  describe: "Print information about the default account, or about the account specified with the \"account\" option."
118
+ defaultAccountTitle: "{{#bold}}Default Account{{/bold}}"
119
+ defaultAccount: "Account: {{ account }}"
120
+ configPath: "Source: {{ configPath }}"
121
+ overrideFilePathTitle: "{{#bold}}Default Account Override{{/bold}}"
122
+ overrideFilePath: "Source: {{ overrideFilePath }}"
123
+ overrideAccount: "Account: {{ account }}"
73
124
  errors:
74
125
  notUsingPersonalAccessKey: "This command currently only supports fetching scopes for the personal access key auth type."
75
126
  options:
@@ -92,13 +143,15 @@ en:
92
143
  confirm:
93
144
  one: "Remove 1 inactive account from the CLI config?"
94
145
  other: "Remove {{ count }} inactive accounts from the CLI config?"
146
+ defaultAccountOverride: "\n(This will also delete the default account override file at {{ overrideFilePath }})"
147
+ replaceDefaultAccount: "The default account was removed."
95
148
  removeSuccess: "Removed {{ accountName }} from the CLI config."
96
149
  auth:
97
150
  describe: "Configure authentication for your HubSpot account."
98
151
  verboseDescribe: "Configure authentication for a HubSpot account. This will update the {{ configName }} file that stores your account information.\n\nThe recommended authentication method is {{#bold}}{{ authMethod }}{{/bold}}, which uses an access token tied to a specific user account."
99
152
  errors:
100
- noConfigFileFound: "No config file was found. To create a new config file, use the \"hs init\" command."
101
153
  unsupportedAuthType: "Unsupported auth type: {{ type }}. The only supported authentication protocols are {{ supportedProtocols }}."
154
+ globalConfigFileExists: "A global config file exists at {{ configPath }}. To authorize an account, please use {{ authCommand }}."
102
155
  options:
103
156
  authType:
104
157
  describe: "Authentication method"
@@ -109,6 +162,16 @@ en:
109
162
  config:
110
163
  describe: "Commands for managing the CLI config file."
111
164
  subcommands:
165
+ migrate:
166
+ describe: "Migrate from the deprecated {{ deprecatedConfigPath }} file to the new global config file at {{ globalConfigPath }}."
167
+ migrationAlreadyCompleted: "No {{ deprecatedConfigPath }} deprecated configuration file found. No migration necessary."
168
+ errors:
169
+ configNotFound: "A configuration file at {{ configPath }} could not be found. Please try again with a valid file path."
170
+ options:
171
+ force: "When merging a deprecated configuration file with an existing global configuration file, overwrite any conflicting values in the global config with the deprecated config values."
172
+ examples:
173
+ default: "Migrate from the deprecated {{ deprecatedConfigPath }} file to the new global config file at {{ globalConfigPath }}"
174
+ configFlag: "Migrate a specific config file (specified with the config flag) to the new global config file at {{ globalConfigPath }}"
112
175
  set:
113
176
  describe: "Set various configuration options within the hubspot.config.yml file."
114
177
  promptMessage: "Select a config option to update"
@@ -456,8 +519,6 @@ en:
456
519
  describe: "Authentication method"
457
520
  account:
458
521
  describe: "HubSpot account to authenticate"
459
- useHiddenConfig:
460
- describe: "Use the new HubSpot configuration file located in a hidden file in the user's home directory"
461
522
  success:
462
523
  configFileCreated: "Created config file \"{{ configPath }}\""
463
524
  configFileUpdated: "Connected account \"{{ account }}\" using \"{{ authType }}\" and set it as the default account"
@@ -465,7 +526,7 @@ en:
465
526
  updateConfig: "To update an existing config file, use the \"hs auth\" command."
466
527
  errors:
467
528
  configFileExists: "The config file {{ configPath }} already exists."
468
- bothConfigFilesNotAllowed: "Unable to create config file, because there is an existing one at \"{{ path }}\". To create a new config file, delete the existing one and try again."
529
+ globalConfigFileExists: "A global config file already exists at {{ configPath }}. To specify a new local config file, delete the existing one and try again."
469
530
  lint:
470
531
  issuesFound: "{{ count }} issues found."
471
532
  groupName: "Linting {{ path }}"
@@ -589,38 +650,12 @@ en:
589
650
  componentsToBeMigrated: "The following component types will be migrated: {{ components }}"
590
651
  componentsThatWillNotBeMigrated: "[NOTE] These component types are not yet supported for migration but will be available later: {{ components }}"
591
652
  errors:
592
- noApps: "No apps found in account {{ accountId }}"
593
- noAppsEligible: "No apps in account {{ accountId }} are currently migratable"
653
+ noAppsForProject: "No apps associated with project {{ projectName }}"
594
654
  noAccountConfig: "There is no account associated with {{ accountId }} in the config file. Please choose another account and try again, or authenticate {{ accountId }} using {{ authCommand }}."
595
- invalidAccountTypeTitle: "{{#bold}}Developer account not targeted{{/bold}}"
596
- invalidAccountTypeDescription: "Only public apps created in a developer account can be converted to a project component. Select a connected developer account with {{useCommand}} or {{authCommand}} and try again."
597
655
  projectAlreadyExists: "A project with name {{ projectName }} already exists. Please choose another name."
598
656
  invalidApp: "Could not migrate appId {{ appId }}. This app cannot be migrated at this time. Please choose another public app."
599
- appWithAppIdNotFound: "Could not find an app with the id {{ appId }} "
600
- prompt:
601
- chooseApp: 'Which app would you like to migrate?'
602
- inputName: '[--name] What would you like to name the project?'
603
- inputDest: '[--dest] Where would you like to save the project?'
604
- uidForComponent: 'What UID would you like to use for {{ componentName }}?'
605
- proceed: 'Would you like to proceed?'
606
- spinners:
607
- beginningMigration: "Beginning migration"
608
- migrationStarted: "Migration started"
609
- unableToStartMigration: "Unable to begin migration"
610
- finishingMigration: "Wrapping up migration"
611
- migrationComplete: "Migration completed"
612
- migrationFailed: "Migration failed"
613
- downloadingProjectContents: "Downloading migrated project files"
614
- downloadingProjectContentsComplete: "Migrated project files downloaded"
615
- downloadingProjectContentsFailed: "Unable to download migrated project files"
616
- copyingProjectFiles: "Copying migrated project files"
617
- copyingProjectFilesComplete: "Migrated project files copied"
618
- copyingProjectFilesFailed: "Unable to copy migrated project files"
619
- unmigratableReasons:
620
- upToDate: 'App is already up to date'
621
- isPrivateApp: 'Private apps are not currently migratable'
622
- listedInMarketplace: 'Listed apps are not currently migratable'
623
- generic: "Unable to migrate app: {{ reasonCode }}"
657
+ migrationFailed: 'Migration Failed'
658
+ notAllowedWithinProject: 'This command cannot be run from within a project directory. Run the command again from outside a project directory. If you are trying to migrate a project, run {{ command }}'
624
659
  cloneApp:
625
660
  describe: "Clone a public app using the projects framework."
626
661
  examples:
@@ -657,6 +692,12 @@ en:
657
692
  examples:
658
693
  default: "Create a component within your project"
659
694
  withFlags: "Use --name and --type flags to bypass the prompt."
695
+ migrate:
696
+ describe: "Migrate an existing project to the new version of the projects framework."
697
+ errors:
698
+ noProjectConfig: "No project detected. Please run this command again from a project directory."
699
+ examples:
700
+ default: "Migrate an existing project to the new version of the projects framework."
660
701
  deploy:
661
702
  describe: "Deploy a project build."
662
703
  deployBuildIdPrompt: "[--build] Deploy which build?"
@@ -773,6 +814,7 @@ en:
773
814
  uploadFailed: "Failed to upload file \"{{ filePath }}\" to \"{{ remotePath }}\""
774
815
  deleteFileFailed: "Failed to delete file \"{{ remotePath }}\""
775
816
  deleteFolderFailed: "Failed to delete folder \"{{ remotePath }}\""
817
+ v3ApiError: "{{ command }} is not supported for platform version '{{ platformVersion}}', use {{ newCommand }} instead to develop locally. {{ linkToDocs }}"
776
818
  download:
777
819
  describe: "Download your project files from HubSpot."
778
820
  examples:
@@ -1159,7 +1201,7 @@ en:
1159
1201
  missingPropertiesInConfig: "Found misconfigured projects in the target repository's config.json file. Please ensure that each project in the target repository's config.json file contains the following properties: [\"name\", \"label\", \"path\", \"insertPath\"]."
1160
1202
  validateProjectConfig:
1161
1203
  configNotFound: "Unable to locate a project configuration file. Try running again from a project directory, or run {{ createCommand }} to create a new project."
1162
- configMissingFields: "The project configuruation file is missing required fields."
1204
+ configMissingFields: "The project configuration file is missing required fields."
1163
1205
  srcDirNotFound: "Project source directory {{#bold}}{{ srcDir }}{{/bold}} could not be found in {{#bold}}{{ projectDir }}{{/bold}}."
1164
1206
  srcOutsideProjectDir: "Invalid value for 'srcDir' in {{ projectConfig }}: {{#bold}}srcDir: \"{{ srcDir }}\"{{/bold}}\n\t'srcDir' must be a relative path to a folder under the project root, such as \".\" or \"./src\""
1165
1207
  ensureProjectExists:
@@ -1196,6 +1238,9 @@ en:
1196
1238
  compressed: "Project files compressed: {{ byteCount }} bytes"
1197
1239
  compressing: "Compressing build files to \"{{ path }}\""
1198
1240
  fileFiltered: "Ignore rule triggered for \"{{ filename }}\""
1241
+ middleware:
1242
+ fireAlarm:
1243
+ failedToLoadBoxen: "Failed to load boxen util."
1199
1244
  ui:
1200
1245
  betaTag: "{{#bold}}[BETA]{{/bold}}"
1201
1246
  betaWarning:
@@ -1216,11 +1261,14 @@ en:
1216
1261
  command: "--account"
1217
1262
  message: "Use the {{ command }} option with any command to override the default account"
1218
1263
  accountsListCommand:
1219
- command: hs accounts list
1264
+ command: "hs account list"
1220
1265
  message: "Run {{ command }} to see a list of configured HubSpot accounts"
1221
1266
  accountsUseCommand:
1222
- command: "hs accounts use"
1267
+ command: "hs account use"
1223
1268
  message: "Run {{ command }} to set the Hubspot account that the CLI will target by default"
1269
+ accountAuthCommand:
1270
+ command: "hs account auth"
1271
+ message: "Run {{ command }} to connect the CLI to additional HubSpot accounts"
1224
1272
  authCommand:
1225
1273
  command: "hs auth"
1226
1274
  message: "Run {{ command }} to connect the CLI to additional HubSpot accounts"
@@ -1285,6 +1333,13 @@ en:
1285
1333
  describe: "Use environment variable config"
1286
1334
  debug:
1287
1335
  describe: "Set log level to debug"
1336
+ configMigrate:
1337
+ migrateConfigPrompt: "Migrate config?\n From deprecated config file: {{ deprecatedConfigPath }}\n To new global config file: {{ globalConfigPath }}\n (This action will delete the deprecated config file).\n"
1338
+ mergeConfigConflictPrompt: "Change the {{ property }} property in the global config from {{ newValue }} to {{ oldValue }}?"
1339
+ mergeConfigsPrompt: "Two config files detected. Merge them?\n Deprecated config file: {{ deprecatedConfigPath }}\n Global config: {{ globalConfigPath }}\n (This action will delete the deprecated config file).\n"
1340
+ migrationSuccess: "The deprecated config file has been migrated to the new global config file at {{ globalConfigPath }}."
1341
+ mergeSuccess: "The deprecated config file has been merged with the global config file at {{ globalConfigPath }}."
1342
+ skippedExistingAccounts: "\nThe following accounts were not merged, because they already exist in the global config: {{ skippedAccountIds }}.\n"
1288
1343
  prompts:
1289
1344
  projectDevTargetAccountPrompt:
1290
1345
  createNewSandboxOption: "<Test on a new development sandbox>"
@@ -1571,6 +1626,9 @@ en:
1571
1626
  doctor:
1572
1627
  runningDiagnostics: "Running diagnostics..."
1573
1628
  diagnosticsComplete: "Diagnostics complete"
1629
+ defaultAccountOverrideFileChecks:
1630
+ overrideActive: "Default account override file active: {{ defaultAccountOverrideFile }}"
1631
+ overrideAccountId: "Active account ID: {{ overrideAccountId }}"
1574
1632
  accountChecks:
1575
1633
  active: "Default account active"
1576
1634
  inactive: "Default account isn't active"
@@ -1622,6 +1680,8 @@ en:
1622
1680
  settings:
1623
1681
  httpUseLocalhost: "The setting {{#bold}}httpUseLocalhost{{/bold}} is enabled"
1624
1682
  httpUseLocalhostSecondary: "This setting causes all CLI requests to route to localhost"
1683
+ defaultAccountOverrideFile:
1684
+ header: "Default account override file path:"
1625
1685
  projectConfig:
1626
1686
  header: "Project configuration"
1627
1687
  projectDirSubHeader: "Project dir: {{#bold}}{{ projectDir }}{{/bold}}"
@@ -1,7 +1,11 @@
1
- import { CLIAccount } from '@hubspot/local-dev-lib/types/Accounts';
2
1
  import { ArgumentsCamelCase } from 'yargs';
3
- import { MigrateAppOptions } from '../../types/Yargs';
4
- export declare function downloadProjectFiles(derivedAccountId: number, projectName: string, buildId: number, projectDest: string): Promise<void>;
5
- export declare function migrateApp2025_2(derivedAccountId: number, options: ArgumentsCamelCase<MigrateAppOptions>): Promise<void>;
6
- export declare function logInvalidAccountError(i18nKey: string): void;
7
- export declare function migrateApp2023_2(derivedAccountId: number, options: ArgumentsCamelCase<MigrateAppOptions>, accountConfig: CLIAccount): Promise<void>;
2
+ import { LoadedProjectConfig } from '../projects';
3
+ import { AccountArgs, CommonArgs, ConfigArgs, EnvironmentArgs } from '../../types/Yargs';
4
+ export type MigrateAppArgs = CommonArgs & AccountArgs & EnvironmentArgs & ConfigArgs & {
5
+ name?: string;
6
+ dest?: string;
7
+ appId?: number;
8
+ platformVersion: string;
9
+ };
10
+ export declare function migrateApp2025_2(derivedAccountId: number, options: ArgumentsCamelCase<MigrateAppArgs>, projectConfig?: LoadedProjectConfig): Promise<void>;
11
+ export declare function logInvalidAccountError(): void;