@hubspot/cli 7.9.0 → 7.10.0-beta.1

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 (82) hide show
  1. package/commands/__tests__/project.test.js +2 -0
  2. package/commands/account/__tests__/rename.test.js +35 -0
  3. package/commands/account/createOverride.js +2 -12
  4. package/commands/account/removeOverride.js +2 -10
  5. package/commands/account/rename.d.ts +1 -1
  6. package/commands/account/rename.js +5 -2
  7. package/commands/cms/theme/preview.js +1 -4
  8. package/commands/config/set.js +1 -2
  9. package/commands/getStarted.js +13 -19
  10. package/commands/hubdb.d.ts +1 -1
  11. package/commands/project/__tests__/updateDeps.test.d.ts +1 -0
  12. package/commands/project/__tests__/updateDeps.test.js +142 -0
  13. package/commands/project/create.js +0 -1
  14. package/commands/project/dev/index.js +8 -1
  15. package/commands/project/listBuilds.js +7 -1
  16. package/commands/project/updateDeps.d.ts +6 -0
  17. package/commands/project/updateDeps.js +80 -0
  18. package/commands/project/upload.js +7 -1
  19. package/commands/project/validate.js +7 -1
  20. package/commands/project/watch.js +7 -2
  21. package/commands/project.js +2 -0
  22. package/commands/testAccount/__tests__/create.test.js +68 -0
  23. package/commands/testAccount/create.d.ts +8 -0
  24. package/commands/testAccount/create.js +134 -44
  25. package/commands/testAccount/importData.d.ts +1 -1
  26. package/lang/en.d.ts +3194 -3184
  27. package/lang/en.js +43 -8
  28. package/lib/__tests__/dependencyManagement.test.js +273 -1
  29. package/lib/commonOpts.js +2 -5
  30. package/lib/constants.d.ts +1 -0
  31. package/lib/constants.js +6 -0
  32. package/lib/dependencyManagement.d.ts +8 -2
  33. package/lib/dependencyManagement.js +75 -12
  34. package/lib/mcp/__tests__/setup.test.d.ts +1 -0
  35. package/lib/mcp/__tests__/setup.test.js +127 -0
  36. package/lib/mcp/setup.d.ts +4 -12
  37. package/lib/mcp/setup.js +34 -1
  38. package/lib/middleware/autoUpdateMiddleware.d.ts +3 -1
  39. package/lib/middleware/autoUpdateMiddleware.js +1 -0
  40. package/lib/npm.d.ts +3 -0
  41. package/lib/npm.js +6 -0
  42. package/lib/projects/__tests__/components.test.js +148 -24
  43. package/lib/projects/__tests__/platformVersion.test.js +5 -1
  44. package/lib/projects/__tests__/projects.test.js +13 -42
  45. package/lib/projects/components.js +76 -20
  46. package/lib/projects/config.js +5 -9
  47. package/lib/projects/platformVersion.js +1 -1
  48. package/lib/prompts/__tests__/createDeveloperTestAccountConfigPrompt.test.d.ts +1 -0
  49. package/lib/prompts/__tests__/createDeveloperTestAccountConfigPrompt.test.js +153 -0
  50. package/lib/prompts/createDeveloperTestAccountConfigPrompt.d.ts +5 -0
  51. package/lib/prompts/createDeveloperTestAccountConfigPrompt.js +76 -66
  52. package/mcp-server/tools/cms/HsCreateFunctionTool.js +6 -0
  53. package/mcp-server/tools/cms/HsCreateModuleTool.d.ts +4 -4
  54. package/mcp-server/tools/cms/HsCreateModuleTool.js +6 -0
  55. package/mcp-server/tools/cms/HsCreateTemplateTool.js +6 -0
  56. package/mcp-server/tools/cms/HsFunctionLogsTool.d.ts +4 -4
  57. package/mcp-server/tools/cms/HsFunctionLogsTool.js +4 -0
  58. package/mcp-server/tools/cms/HsListFunctionsTool.js +4 -0
  59. package/mcp-server/tools/cms/HsListTool.js +4 -0
  60. package/mcp-server/tools/index.js +2 -0
  61. package/mcp-server/tools/project/AddFeatureToProjectTool.js +6 -0
  62. package/mcp-server/tools/project/CreateProjectTool.js +6 -0
  63. package/mcp-server/tools/project/CreateTestAccountTool.d.ts +41 -0
  64. package/mcp-server/tools/project/CreateTestAccountTool.js +137 -0
  65. package/mcp-server/tools/project/DeployProjectTool.js +6 -0
  66. package/mcp-server/tools/project/DocFetchTool.js +4 -0
  67. package/mcp-server/tools/project/DocsSearchTool.js +4 -0
  68. package/mcp-server/tools/project/GetApiUsagePatternsByAppIdTool.js +4 -0
  69. package/mcp-server/tools/project/GetApplicationInfoTool.js +4 -0
  70. package/mcp-server/tools/project/GetConfigValuesTool.js +4 -0
  71. package/mcp-server/tools/project/GuidedWalkthroughTool.js +4 -0
  72. package/mcp-server/tools/project/UploadProjectTools.d.ts +9 -3
  73. package/mcp-server/tools/project/UploadProjectTools.js +50 -4
  74. package/mcp-server/tools/project/ValidateProjectTool.js +4 -0
  75. package/mcp-server/tools/project/__tests__/CreateTestAccountTool.test.d.ts +1 -0
  76. package/mcp-server/tools/project/__tests__/CreateTestAccountTool.test.js +231 -0
  77. package/mcp-server/tools/project/__tests__/DocsSearchTool.test.js +2 -2
  78. package/mcp-server/tools/project/__tests__/UploadProjectTools.test.js +56 -4
  79. package/package.json +2 -2
  80. package/lang/en.lyaml +0 -1508
  81. package/lib/lang.d.ts +0 -8
  82. package/lib/lang.js +0 -72
package/lang/en.lyaml DELETED
@@ -1,1508 +0,0 @@
1
- en:
2
- commands:
3
- generalErrors:
4
- updateNotify:
5
- notifyTitle: "CLI update available"
6
- cmsUpdateNotification: "{{#bold}}The CMS CLI is now the HubSpot CLI{{/bold}}\n\nTo upgrade, uninstall {{#bold}}{{ packageName }}{{/bold}}\nand then run {{ updateCommand }}"
7
- cliUpdateNotification: "HubSpot CLI version {{#cyan}}{{#bold}}{currentVersion}{{/bold}}{{/cyan}} is outdated.\nRun {{ updateCommand }} to upgrade to version {{#cyan}}{{#bold}}{latestVersion}{{/bold}}{{/cyan}}"
8
- srcIsProject: "\"{{ src }}\" is in a project folder. Did you mean \"hs project {{command}}\"?"
9
- handleDeprecatedEnvVariables:
10
- portalEnvVarDeprecated: "The HUBSPOT_PORTAL_ID environment variable is deprecated. Please use HUBSPOT_ACCOUNT_ID instead."
11
- loadConfigMiddleware:
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 }}."
16
- completion:
17
- describe: "Enable bash completion shortcuts for commands. Concat the generated script to your .bashrc, .bash_profile, or .zshrc file."
18
- examples:
19
- default: "Generate shell completion scripts for the zsh shell"
20
- account:
21
- describe: "Commands for managing configured accounts."
22
- subcommands:
23
- createOverride:
24
- describe: "Create a new default account override file ({{ hsAccountFileName }}) in the current working directory."
25
- success: "Default account override file created at {{ overrideFilePath }}"
26
- accountOverride: "An account override file already exists at {{ overrideFilePath }} associated with account \"{{ accountOverride }}\"."
27
- prompts:
28
- replaceOverrideFile: "Replace existing account override file?"
29
- errors:
30
- globalConfigNotFound: "This command is only compatible with our new global config. Run {{ authCommand }} to get started."
31
- accountNotFound: "The specified account could not be found in the config file {{ configPath }}"
32
- options:
33
- account:
34
- describe: "Name or ID of the account to create an override file for."
35
- examples:
36
- default: "Create a new default account override file ({{ hsAccountFileName }}) in the current working directory"
37
- idBased: "Create a new default account override file ({{ hsAccountFileName }}) in the current working directory, using the account with accountId \"1234567\""
38
- nameBased: "Create a new default account override file ({{ hsAccountFileName }}) in the current working directory, using the account with name \"MyAccount\""
39
- removeOverride:
40
- describe: "Remove the default account override file ({{ overrideFile }}) from the current working directory."
41
- accountOverride: "There is an account override file at {{ overrideFilePath }} associated with account \"{{ accountOverride }}\"."
42
- prompts:
43
- deleteOverrideFile: "Delete account override file?"
44
- success: "Removed the default account override file."
45
- noOverrideFile: "No default account override file found in the current working directory. No action required."
46
- errors:
47
- globalConfigNotFound: "This command is only compatible with our new global config. Run {{ authCommand }} to get started."
48
- options:
49
- force:
50
- describe: "Skip confirmation prompt when removing the override file"
51
- list:
52
- describe: "List names of accounts defined in config."
53
- accounts: "{{#bold}}Accounts{{/bold}}:"
54
- defaultAccountTitle: "{{#bold}}Default Account{{/bold}}"
55
- defaultAccount: "Account: {{ account }}"
56
- configPath: "Source: {{ configPath }}"
57
- overrideFilePathTitle: "{{#bold}}Default Account Override{{/bold}}"
58
- overrideFilePath: "Source: {{ overrideFilePath }}"
59
- overrideAccount: "Account: {{ account }}"
60
- labels:
61
- accountId: "Account ID"
62
- authType: "Auth Type"
63
- name: "Name"
64
- rename:
65
- describe: "Rename an account in the config."
66
- positionals:
67
- accountName:
68
- describe: "Name of account to be renamed."
69
- newName:
70
- describe: "New name for account."
71
- success:
72
- renamed: "Account \"{{ name }}\" renamed to \"{{ newName }}\""
73
- use:
74
- describe: "Set the Hubspot account to use as the default account. The default account can be overridden with the \"--account\" option."
75
- errors:
76
- accountNotFound: "The account \"{{ specifiedAccount }}\" could not be found in {{ configPath }}"
77
- accountOverride: "This project currently has an account override set: \"{{ accountOverride }}\". Account \"{{accountOverride}}\" will continue to act as the default account for this project."
78
- accountOverrideCommands: "Use {{ createOverrideCommand }} to change override accounts, or {{ removeOverrideCommand }} to remove the override and use your default account."
79
- examples:
80
- default: "Select a HubSpot account to use as the default account"
81
- idBased: "Set the default account to the account in the config with accountId equal to \"1234567\""
82
- nameBased: "Set the default account to the account in the config with name equal to \"MyAccount\""
83
- options:
84
- account:
85
- describe: "Account name or id to use as the default"
86
- promptMessage: "Select an account to use as the default"
87
- success:
88
- defaultAccountUpdated: "Default account updated to \"{{ accountName }}\""
89
- remove:
90
- describe: "Remove an account from the config."
91
- logs:
92
- replaceDefaultAccount: "The removed account was the default account."
93
- prompts:
94
- deleteOverrideFile: "Delete the override file ({{ overrideFilePath }}) associated with {{ accountName }}?"
95
- selectAccountToRemove: "Select an account to remove from the config"
96
- errors:
97
- accountNotFound: "The account \"{{ specifiedAccount }}\" could not be found in {{ configPath }}"
98
- examples:
99
- default: "Select a HubSpot account to remove from the config"
100
- byName: "Remove the account \"MyAccount\" from the config"
101
- options:
102
- account:
103
- describe: "Account name or id to remove"
104
- promptMessage: "Select an account to remove"
105
- success:
106
- accountRemoved: "Account \"{{ accountName }}\" removed from the config"
107
- info:
108
- accountId: "{{#bold}}Account ID{{/bold}}: {{ accountId }}"
109
- describe: "Print information about the default account, or about the account specified with the \"account\" option."
110
- defaultAccountTitle: "{{#bold}}Default Account{{/bold}}"
111
- defaultAccount: "Account: {{ account }}"
112
- configPath: "Source: {{ configPath }}"
113
- overrideFilePathTitle: "{{#bold}}Default Account Override{{/bold}}"
114
- overrideFilePath: "Source: {{ overrideFilePath }}"
115
- overrideAccount: "Account: {{ account }}"
116
- errors:
117
- notUsingPersonalAccessKey: "This command currently only supports fetching scopes for the personal access key auth type."
118
- options:
119
- account:
120
- describe: "Account name or id to show info for"
121
- examples:
122
- default: "Print information for the default account"
123
- idBased: "Print information for the account with accountId equal to \"1234567\""
124
- nameBased: "Print information for the account in the config with name equal to \"MyAccount\""
125
- name: "{{#bold}}Account name{{/bold}}: {{ name }}"
126
- scopeGroups: "{{#bold}}Scopes available{{/bold}}:"
127
- clean:
128
- describe: "Check for inactive accounts and removes them from the CLI config."
129
- noResults: "No inactive accounts found to remove."
130
- loading:
131
- add: "Looking for inactive accounts…"
132
- inactiveAccountsFound:
133
- one: "1 inactive account found:"
134
- other: "{{ count }} inactive accounts found:"
135
- confirm:
136
- one: "Remove 1 inactive account from the CLI config?"
137
- other: "Remove {{ count }} inactive accounts from the CLI config?"
138
- defaultAccountOverride: "\n(This will also delete the default account override file at {{ overrideFilePath }})"
139
- replaceDefaultAccount: "The default account was removed."
140
- removeSuccess: "Removed {{ accountName }} from the CLI config."
141
- auth:
142
- describe: "Configure authentication for your HubSpot account."
143
- verboseDescribe: "Configure authentication for a HubSpot account. This will update the {{ configName }} file that stores your account information.\n\nThe recommended authentication method is {{#bold}}{{ authMethod }}{{/bold}}, which uses an access token tied to a specific user account."
144
- errors:
145
- unsupportedAuthType: "Unsupported auth type: {{ type }}. The only supported authentication protocols are {{ supportedProtocols }}."
146
- globalConfigFileExists: "You are using our new global configuration for account management, which is not compatible with this command. Please use {{ accountAuthCommand }} instead."
147
- options:
148
- authType:
149
- describe: "Authentication method"
150
- account:
151
- describe: "HubSpot account to authenticate"
152
- success:
153
- configFileUpdated: "Account \"{{ accountName }}\" updated in {{ configFilename }} using \"{{ authType }}\""
154
- config:
155
- describe: "Commands for managing the CLI config file."
156
- subcommands:
157
- set:
158
- describe: "Set various configuration options within the hubspot.config.yml file."
159
- promptMessage: "Select a config option to update"
160
- examples:
161
- default: "Opens a prompt to select a config item to modify"
162
- options:
163
- defaultMode:
164
- describe: "Set the default CMS publish mode"
165
- promptMessage: "Select CMS publish mode to be used as the default"
166
- error: "The provided CMS publish mode is invalid. Valid values are {{ validModes }}."
167
- success: "Default mode updated to: {{ mode }}"
168
- allowUsageTracking:
169
- describe: "Enable or disable usage tracking"
170
- promptMessage: "Choose to enable or disable usage tracking"
171
- success: "Allow usage tracking set to: \"{{ isEnabled }}\""
172
- labels:
173
- enabled: "Enabled"
174
- disabled: "Disabled"
175
- httpTimeout:
176
- describe: "Set the http timeout duration"
177
- promptMessage: "Enter http timeout duration"
178
- success: "The http timeout has been set to: {{ timeout }}"
179
- cms:
180
- describe: "Commands for working with the CMS."
181
- subcommands:
182
- lighthouseScore:
183
- describe: "Score a theme using Google lighthouse."
184
- examples:
185
- default: "Get the lighthouse score for the my-theme theme"
186
- info:
187
- promptMessage: "Select a theme to score"
188
- fetchingThemes: "Fetching available themes"
189
- generatingScore: "Generating Google Lighthouse score for {{ theme }}"
190
- targetDeviceNote: "Scores are being shown for {{ target }} only."
191
- verboseOptionNote: "Theme scores are averages of all theme templates. Use the [--verbose] option to include individual template scores."
192
- pageTemplateScoreTitle: "Page template scores"
193
- lighthouseLinksTitle: "Lighthouse links"
194
- failedTemplatePathsTitle: "The following templates could not be scored"
195
- errors:
196
- targetOptionRequired: "[--target] is required for detailed view"
197
- invalidTargetOption: "[--target] can only be used for detailed view"
198
- themeNotFound: "Theme \"{{ theme }}\" not found. Please rerun using a valid theme path."
199
- failedToFetchThemes: "Failed to fetch available themes. Try running again with the [--theme] option"
200
- failedToGetLighthouseScore: "Failed to generate a Google Lighthouse score"
201
- options:
202
- theme:
203
- describe: "Path to the theme in the Design Manager"
204
- target:
205
- describe: "Medium to test against"
206
- verbose:
207
- describe: "View a detailed output of the lighthouse scores"
208
- getReactModule:
209
- describe: "Get a specified default React module."
210
- selectModulePrompt: "Select a React module to download"
211
- positionals:
212
- name:
213
- describe: "Name of the react modules to be fetched"
214
- dest:
215
- describe: "Destination to download the react module to"
216
- success:
217
- moduleDownloaded: "\"{{ moduleName }}\" succesfully downloaded to \"{{ path }}\""
218
- errors:
219
- pathExists: "Folder already exists at \"{{ path }}\""
220
- invalidName: "Module not found with that name, please check the spelling of the module you are trying to download."
221
- create:
222
- describe: "Create HubSpot sample apps and CMS assets. Supported assets are {{ supportedAssetTypes }}."
223
- errors:
224
- deprecatedAssetType: "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 \"{{ newCommand }}\" command instead. Then when prompted select \"{{ type }}\"."
225
- unsupportedAssetType: "The asset type {{ assetType }} is not supported. Supported asset types are {{ supportedAssetTypes }}."
226
- unusablePath: "The \"{{ path }}\" is not a usable path to a directory."
227
- positionals:
228
- dest:
229
- describe: "Destination folder for the new asset, relative to your current working directory. If omitted, this argument will default to your current working directory"
230
- name:
231
- describe: "Name of new asset"
232
- type:
233
- describe: "Type of asset"
234
- flags:
235
- templateType:
236
- describe: "Template type for template creation (page-template, email-template, partial, global-partial, blog-listing-template, blog-post-template, search-template, section) - only used when type is template"
237
- moduleLabel:
238
- describe: "Label for module creation - only used when type is module"
239
- reactType:
240
- describe: "Whether to create a React module - only used when type is module"
241
- contentTypes:
242
- describe: "Content types where the module can be used (comma-separated list: ANY, LANDING_PAGE, SITE_PAGE, BLOG_POST, BLOG_LISTING, EMAIL, KNOWLEDGE_BASE, QUOTE_TEMPLATE, CUSTOMER_PORTAL, WEB_INTERACTIVE, SUBSCRIPTION, MEMBERSHIP) - only used when type is module"
243
- global:
244
- describe: "Whether to create a global module - only used when type is module"
245
- availableForNewContent:
246
- describe: "Whether the template is available for new content"
247
- functionsFolder:
248
- describe: "Folder to create functions in - only used when type is function"
249
- filename:
250
- describe: "Filename for the function - only used when type is function"
251
- endpointMethod:
252
- describe: "HTTP method for the function endpoint - only used when type is function"
253
- endpointPath:
254
- describe: "API endpoint path for the function - only used when type is function"
255
- subcommands:
256
- apiSample:
257
- folderOverwritePrompt: "The folder with name \"{{ folderName }}\" already exists. Overwrite?"
258
- errors:
259
- nameRequired: "The \"name\" argument is required when creating an API Sample."
260
- noSamples: "Currently there are no samples available. Please try again later."
261
- info:
262
- sampleChosen: "You've chosen {{ sampleType }} sample written on {{ sampleLanguage }} language"
263
- success:
264
- sampleCreated: "Please follow {{ filePath }}/README.md to find out how to run the sample"
265
- module:
266
- errors:
267
- nameRequired: "The \"name\" argument is required when creating a Custom Module."
268
- template:
269
- errors:
270
- nameRequired: "The \"name\" argument is required when creating a Template."
271
- customObject:
272
- betaMessage: "The Custom Object CLI is currently in beta and is subject to change."
273
- describe: "Commands for managing custom objects."
274
- seeMoreLink: "View our docs to find out more."
275
- subcommands:
276
- create:
277
- describe: "Create custom object instances."
278
- errors:
279
- invalidObjectDefinition: "The object definition is invalid. Please check the schema and try again."
280
- creationFailed: "Object creation from {{ definition }} failed"
281
- options:
282
- path:
283
- describe: "Local path to the JSON file containing an array of object definitions"
284
- positionals:
285
- name:
286
- describe: "Schema name to add the object instance to"
287
- success:
288
- objectsCreated: "Objects created"
289
- inputName: "[--name] Enter the name of the schema for the custom object(s) you'd like to create:"
290
- inputPath: "[--path] Enter the path to the JSON file containing the object definitions:"
291
- schema:
292
- describe: "Commands for managing custom object schemas."
293
- subcommands:
294
- create:
295
- describe: "Create a custom object schema."
296
- errors:
297
- invalidSchema: "The schema definition is invalid. Please check the schema and try again."
298
- creationFailed: "Schema creation from {{ definition }} failed"
299
- options:
300
- definition:
301
- describe: "Local path to the JSON file containing the schema definition"
302
- success:
303
- schemaCreated: "Your schema has been created in account \"{{ accountId }}\""
304
- schemaViewable: "Schema can be viewed at {{ url }}"
305
- delete:
306
- describe: "Delete a custom object schema."
307
- errors:
308
- delete: "Unable to delete {{ name }}"
309
- examples:
310
- default: "Delete \"schemaName\" schema"
311
- positionals:
312
- name:
313
- describe: "Name of the target schema"
314
- options:
315
- force:
316
- describe: "Force the deletion of the schema."
317
- success:
318
- delete: "Successfully initiated deletion of {{ name }}"
319
- confirmDelete: "Are you sure you want to delete the schema \"{{ name }}\"?"
320
- deleteCancelled: "Deletion of schema \"{{ name }}\" cancelled."
321
- selectSchema: "Which schema would you like to delete?"
322
- fetchAll:
323
- describe: "Fetch all custom object schemas for an account."
324
- errors:
325
- fetch: "Unable to fetch schemas"
326
- examples:
327
- default: "Fetch all schemas for an account and put them in the current working directory"
328
- specifyPath: "Fetch all schemas for an account and put them in a directory named my/folder"
329
- positionals:
330
- dest:
331
- describe: "Local folder where schemas will be written"
332
- success:
333
- fetch: "Saved schemas to {{ path }}"
334
- inputDest: "Where would you like to save the schemas?"
335
- fetch:
336
- describe: "Fetch a custom object schema."
337
- errors:
338
- fetch: "Unable to fetch {{ name }}"
339
- examples:
340
- default: "Fetch \"schemaId\" schema and put it in the current working directory"
341
- specifyPath: "Fetch \"schemaId\" schema and put it in a directory named my/folder"
342
- positionals:
343
- dest:
344
- describe: "Local folder where schema will be written"
345
- name:
346
- describe: "Name of the target schema"
347
- selectSchema: "Which schema would you like to fetch?"
348
- inputDest: "What would you like to name the destination file?"
349
- success:
350
- save: "The schema \"{{ name }}\" has been saved to \"{{ path }}\""
351
- savedToPath: "Saved schema to {{ path }}"
352
- list:
353
- describe: "List custom object schemas."
354
- errors:
355
- list: "Unable to list schemas"
356
- update:
357
- describe: "Update an existing custom object schema."
358
- errors:
359
- invalidSchema: "The schema definition is invalid. Please check the schema and try again."
360
- update: "Schema update from {{ definition }} failed"
361
- options:
362
- path:
363
- describe: "Local path to the JSON file containing the schema definition"
364
- positionals:
365
- name:
366
- describe: "Name of the target schema"
367
- success:
368
- update: "Your schema has been updated in account \"{{ accountId }}\""
369
- viewAtUrl: "Schema can be viewed at {{ url }}"
370
- selectSchema: "Which schema would you like to update?"
371
- doctor:
372
- describe: "Retrieve diagnostic information about your local HubSpot configurations."
373
- options:
374
- outputDir: "Directory to save a detailed diagnosis JSON file in"
375
- errors:
376
- generatingDiagnosis: "Error generating diagnosis"
377
- unableToWriteOutputFile: "Unable to write output to {{#bold}}{{ file }}{{/bold}}, {{ errorMessage }}"
378
- outputWritten: "Output written to {{#bold}}{{ filename }}{{/bold}}"
379
- fetch:
380
- describe: "Fetch a file, directory or module from HubSpot and write to a path on your computer."
381
- errors:
382
- sourceRequired: "A source to fetch is required."
383
- options:
384
- staging:
385
- describe: "Retrieve staged changes for project"
386
- assetVersion:
387
- describe: "Specify what version of a default asset to fetch"
388
- positionals:
389
- dest:
390
- describe: "Local directory you would like the files to be placed in, relative to your current working directory"
391
- src:
392
- describe: "Path in HubSpot Design Tools"
393
- filemanager:
394
- describe: "Commands for managing files in the File Manager."
395
- subcommands:
396
- fetch:
397
- describe: "Fetch a folder or file from the File Manager."
398
- errors:
399
- sourceRequired: "A source to fetch is required."
400
- options:
401
- includeArchived:
402
- describe: "Include files that have been marked as \"archived\""
403
- positionals:
404
- dest:
405
- describe: "Path in HubSpot Design Tools"
406
- src:
407
- describe: "Path to the local directory you would like the files to be placed, relative to your current working directory. If omitted, this argument will default to your current working directory"
408
- upload:
409
- describe: "Upload a folder or file to the File Manager."
410
- errors:
411
- destinationRequired: "A destination path needs to be passed"
412
- fileIgnored: "The file \"{{ path }}\" is being ignored via an .hsignore rule"
413
- invalidPath: "The path \"{{ path }}\" is not a path to a file or folder"
414
- upload: "Uploading file \"{{ src }}\" to \"{{ dest }}\" failed"
415
- uploadingFailed: "Uploading failed"
416
- logs:
417
- uploading: "Uploading files from \"{{ src }}\" to \"{{ dest }}\" in the File Manager of account {{ accountId }}"
418
- positionals:
419
- dest:
420
- describe: "Path in HubSpot Design Tools, can be a net new path"
421
- src:
422
- describe: "Path to the local file, relative to your current working directory"
423
- success:
424
- upload: "Uploaded file from \"{{ src }}\" to \"{{ dest }}\" in the File Manager of account {{ accountId }}"
425
- uploadComplete: "Uploading files to \"{{ dest }}\" in the File Manager is complete"
426
- function:
427
- describe: "Commands for managing CMS serverless functions."
428
- subcommands:
429
- deploy:
430
- debug:
431
- startingBuildAndDeploy: "Starting build and deploy for .functions folder with path: {{ functionPath }}"
432
- errors:
433
- buildError: "Build error: {{ details }}"
434
- noPackageJson: "Unable to find package.json for function {{ functionPath }}."
435
- notFunctionsFolder: "Specified path {{ functionPath }} is not a .functions folder."
436
- examples:
437
- default: "Build and deploy a new bundle for all functions within the myFunctionFolder.functions folder"
438
- loading: "Building and deploying bundle for \"{{ functionPath }}\" on {{ account }}"
439
- loadingFailed: "Failed to build and deploy bundle for \"{{ functionPath }}\" on {{ account }}"
440
- positionals:
441
- path:
442
- describe: "Path to the \".functions\" folder"
443
- success:
444
- deployed: "Built and deployed bundle from package.json for {{ functionPath }} on account {{ accountId }} in {{ buildTimeSeconds }}s."
445
- list:
446
- debug:
447
- gettingFunctions: "Getting currently deployed functions"
448
- describe: "List the currently deployed CMS serverless functions."
449
- info:
450
- noFunctions: "No functions found"
451
- options:
452
- json:
453
- describe: "output raw json data"
454
- server:
455
- debug:
456
- startingServer: "Starting local test server for .functions folder with path: {{ functionPath }}"
457
- examples:
458
- default: "Run a local function test server."
459
- options:
460
- contact:
461
- describe: "Pass contact data to the test function"
462
- logOutput:
463
- describe: "Output the response body from the serverless function execution (It is suggested not to use this in production environments as it can reveal any secure data returned by the function in logs)"
464
- port:
465
- describe: "Port to run the test server on"
466
- watch:
467
- describe: "Watch the specified .functions folder for changes and restart the server"
468
- positionals:
469
- path:
470
- describe: "Path to local .functions folder"
471
- hubdb:
472
- describe: "Commands for managing HubDB tables."
473
- subcommands:
474
- clear:
475
- describe: "Clear all rows in a HubDB table."
476
- logs:
477
- removedRows: "Removed {{ deletedRowCount }} rows from HubDB table {{ tableId }}"
478
- rowCount: "HubDB table {{ tableId }} now contains {{ rowCount }} rows"
479
- tableEmpty: "HubDB table {{ tableId }} is already empty"
480
- positionals:
481
- tableId:
482
- describe: "HubDB Table ID"
483
- create:
484
- describe: "Create a HubDB table."
485
- enterPath: "[--path] Enter the local path to the file used for import:"
486
- errors:
487
- create: "Creating the table at \"{{ filePath }}\" failed"
488
- pathRequired: "A path to a local file with a HubDB schema is required to create a HubDB table"
489
- invalidCharacters: "The selected file path contains invalid characters. Please provide a new path and try again."
490
- options:
491
- path:
492
- describe: "Local path to file used for import"
493
- success:
494
- create: "The table {{ tableId }} was created in {{ accountId }} with {{ rowCount }} rows"
495
- delete:
496
- describe: "Delete a HubDB table."
497
- shouldDeleteTable: "Proceed with deleting HubDB table {{ tableId }}?"
498
- errors:
499
- delete: "Deleting the table {{ tableId }} failed"
500
- positionals:
501
- tableId:
502
- describe: "HubDB Table ID"
503
- options:
504
- force:
505
- describe: "Skips confirmation prompt when deleting a HubDB table"
506
- success:
507
- delete: "The table {{ tableId }} was deleted from {{ accountId }}"
508
- fetch:
509
- describe: "Fetch the schema for a HubDB table."
510
- positionals:
511
- dest:
512
- describe: "Local destination folder to fetch table to"
513
- tableId:
514
- describe: "HubDB Table ID"
515
- success:
516
- fetch: "Downloaded HubDB table {{ tableId }} to {{ path }}"
517
- init:
518
- describe: "Create a CLI config file and configure authentication for your HubSpot account."
519
- verboseDescribe: "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 {{#bold}}{{ authMethod }}{{/bold}}, which uses an access token tied to a specific user account."
520
- options:
521
- authType:
522
- describe: "Authentication method"
523
- account:
524
- describe: "HubSpot account to authenticate"
525
- success:
526
- configFileCreated: "Created config file \"{{ configPath }}\""
527
- configFileUpdated: "Connected account \"{{ account }}\" using \"{{ authType }}\" and set it as the default account"
528
- logs:
529
- updateConfig: "To update an existing config file, use the \"hs auth\" command."
530
- errors:
531
- configFileExists: "The config file {{ configPath }} already exists."
532
- globalConfigFileExists: "You are using our new global configuration for account management, which is not compatible with this command. Please use {{ accountAuthCommand }} instead."
533
- lint:
534
- issuesFound: "{{ count }} issues found."
535
- groupName: "Linting {{ path }}"
536
- positionals:
537
- path:
538
- describe: "Local folder to lint"
539
- list:
540
- describe: "List remote contents of a directory."
541
- gettingPathContents: "Getting contents of {{ path }}."
542
- noFilesFoundAtPath: "No files found in {{ path }}."
543
- positionals:
544
- path:
545
- describe: "Remote directory to list contents"
546
- logs:
547
- describe: "View logs for a CMS serverless function."
548
- errors:
549
- noLogsFound: "No logs were found for the function path \"{{ functionPath }}\" in account \"{{ accountId }}\"."
550
- examples:
551
- default: "Get 5 most recent logs for function residing at /_hcms/api/my-endpoint"
552
- follow: "Poll for and output logs for function residing at /_hcms/api/my-endpoint immediately upon new execution"
553
- limit: "Get 10 most recent logs for function residing at /_hcms/api/my-endpoint"
554
- endpointPrompt: "Enter a serverless function endpoint:"
555
- gettingLogs: "Getting {{#if latest}}latest {{/if}}logs for function with path: {{ functionPath }}."
556
- options:
557
- compact:
558
- describe: "output compact logs"
559
- follow:
560
- describe: "follow logs"
561
- latest:
562
- describe: "retrieve most recent log only"
563
- limit:
564
- describe: "limit the number of logs to output"
565
- positionals:
566
- endpoint:
567
- describe: "Serverless function endpoint"
568
- tailLogs: "Waiting for log entries for \"{{ functionPath }}\" on account \"{{ accountId }}\".\n"
569
- mv:
570
- describe: "Move a remote file or folder in HubSpot. This feature is currently in beta and the CLI contract is subject to change."
571
- errors:
572
- sourcePathExists: "The folder \"{{ srcPath }}\" already exists in \"{{ destPath }}\"."
573
- moveFailed: "Moving \"{{ srcPath }}\" to \"{{ destPath }}\" in account {{ accountId }} failed"
574
- move: "Moved \"{{ srcPath }}\" to \"{{ destPath }}\" in account {{ accountId }}"
575
- open:
576
- describe: "Open a HubSpot page in your browser."
577
- options:
578
- list:
579
- describe: "List all supported shortcuts"
580
- positionals:
581
- shortcut:
582
- describe: "Shortcut of the link you'd like to open"
583
- selectLink: "Select a link to open"
584
- project:
585
- describe: "Commands for managing projects. For more information, visit our documentation: https://developers.hubspot.com/docs/platform/build-and-deploy-using-hubspot-projects"
586
- subcommands:
587
- dev:
588
- describe: "Start local dev for the current project."
589
- logs:
590
- betaMessage: "HubSpot projects local development"
591
- placeholderAccountSelection: "Using default account as target account (for now)"
592
- learnMoreLocalDevServer: "Learn more about the projects local dev server"
593
- 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."
594
- learnMoreMessage: "Visit our {{ learnMoreLink }} to learn more."
595
- learnMoreLink: "docs on Developer Test and Sandbox accounts "
596
- errors:
597
- noProjectConfig: "No project detected. Please run this command again from a project directory."
598
- noAccount: "An error occurred while reading account {{ accountId }} from your config. Run {{ authCommand }} to re-auth this account."
599
- noAccountsInConfig: "No accounts found in your config. Run {{ authCommand }} to configure a HubSpot account with the CLI."
600
- invalidProjectComponents: "Projects cannot contain both private and public apps. Move your apps to separate projects before attempting local development."
601
- noRunnableComponents: "No supported components were found in this project. Run {{ command }} to see a list of available components and add one to your project."
602
- accountNotCombined: "Local development of Unified Apps is currently only compatible with accounts that are opted into the unified apps beta. Make sure that this account is opted in or switch accounts using {{ accountUseCommand }}."
603
- examples:
604
- default: "Start local dev for the current project"
605
- options:
606
- profile:
607
- describe: "The profile to target during local dev"
608
- create:
609
- describe: "Create a new project."
610
- errors:
611
- failedToDownloadProject: "Failed to download project. Please try again later."
612
- invalidTemplateSource: "Invalid template source provided. Use the format <Owner>/<Repo> and try again."
613
- failedToFetchProjectList: "Failed to fetch the list of available project templates. Please try again later."
614
- cannotNestProjects: "A project already exists at {{ projectDir }}. Projects cannot be nested within other projects. Please choose a different destination and try again."
615
- logs:
616
- success: "Project {{#bold}}{{ projectName }}{{/bold}} was successfully created in {{ projectDest }}"
617
- welcomeMessage: "Welcome to HubSpot Developer Projects!"
618
- examples:
619
- default: "Create a new project"
620
- templateSource: "Create a new project from a custom GitHub repository. The repository must contain a valid project template and a config.json file defining the available templates"
621
- options:
622
- dest:
623
- describe: "Directory where the project should be created"
624
- name:
625
- describe: "Project name (cannot be changed)"
626
- template:
627
- describe: "The starting template"
628
- templateSource:
629
- describe: "Path to custom GitHub repository from which to create project template"
630
- migrateApp:
631
- describe: "Migrate a public app to the projects framework."
632
- examples:
633
- default: "Migrate a public app to the projects framework"
634
- options:
635
- appId:
636
- describe: "The ID for the public app being migrated to the projects framework"
637
- dest:
638
- describe: "Directory where the project should be created"
639
- name:
640
- describe: "Project name (cannot be changed)"
641
- header:
642
- text: "This command will migrate an app to the projects framework. It will walk you through the fields required to complete the migration and download the project source code into a directory of your choosing."
643
- link: "Learn more about migrating apps to the projects framework"
644
- deprecationWarning: "The {{ oldCommand }} command is deprecated and will be removed. Use {{ newCommand }} going forward."
645
- migrationStatus:
646
- inProgress: "Converting app configuration to {{#bold}}public-app.json{{/bold}} component definition ..."
647
- success: "{{#bold}}Your app was converted and build #1 is deployed{{/bold}}"
648
- done: "Converting app configuration to public-app.json component definition ... DONE"
649
- failure: "Converting app configuration to public-app.json component definition ... FAILED"
650
- warning:
651
- title: "{{#bold}}You are about to migrate an app to the projects framework{{/bold}}"
652
- projectConversion: "{{#bold}}The selected app will be converted to a project component.{{/bold}}"
653
- appConfig: "All supported app configuration will be moved to the {{#bold}}public-app.json{{/bold}} component definition file. Future updates to those features must be made through the project build and deploy pipeline, not the developer account UI."
654
- buildAndDeploy: "This will create a new project with a single app component and immediately build and deploy it to your developer account (build #1)."
655
- existingApps: "{{#bold}}This will not affect existing app users or installs.{{/bold}}"
656
- copyApp: "We strongly recommend making a copy of your app to test this process in a development app before replacing production."
657
- 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."
658
- createAppPrompt: "Proceed with migrating this app to a project component (this process can't be aborted)?"
659
- projectDetailsLink: "View project details in your developer account"
660
- componentsToBeMigrated: "The following features will be migrated: {{ components }}"
661
- componentsThatWillNotBeMigrated: "[NOTE] These component types are not yet supported for migration but will be available later: {{ components }}"
662
- errors:
663
- noAppsForProject: "No apps associated with project {{ projectName }}"
664
- noAccountConfig: "There is no account associated with {{ accountId }} in the config file. Please choose another account and try again, or authenticate {{ accountId }} using {{ authCommand }}."
665
- projectAlreadyExists: "A project with name {{ projectName }} already exists. Please choose another name."
666
- invalidApp: "Could not migrate appId {{ appId }}. This app cannot be migrated at this time. Please choose another public app."
667
- migrationFailed: 'Migration Failed'
668
- 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 }}'
669
- cloneApp:
670
- describe: "Clone a public app using the projects framework."
671
- examples:
672
- default: "Clone a public app using the projects framework"
673
- options:
674
- appId:
675
- describe: "The ID for the public app being cloned"
676
- dest:
677
- describe: "Directory where the project should be created"
678
- cloneStatus:
679
- inProgress: "Cloning app configuration to {{#bold}}public-app.json{{/bold}} component definition ..."
680
- done: "Cloning app configuration to public-app.json component definition ... DONE"
681
- success: "Your cloned project was created in {{ dest }}"
682
- failure: "Cloning app configuration to public-app.json component definition ... FAILED"
683
- errors:
684
- invalidAccountTypeTitle: "{{#bold}}Developer account not targeted{{/bold}}"
685
- 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."
686
- couldNotWriteConfigPath: "Failed to write project config at {{ configPath }}"
687
- noAccountConfig: "There is no account associated with {{ accountId }} in the config file. Please choose another account and try again, or authenticate {{ accountId }} using {{ authCommand }}."
688
- add:
689
- describe: "Create a new component within a project."
690
- options:
691
- name:
692
- describe: "The name for your newly created component"
693
- type:
694
- describe: "The path to the component type's location within the hubspot-project-components Github repo: https://github.com/HubSpot/hubspot-project-components"
695
- creatingComponent: "Adding a new component to {{#bold}}{{ projectName }}{{/bold}}"
696
- success: "{{ componentName }} was successfully added to your project."
697
- error:
698
- failedToDownloadComponent: "Failed to download project component. Please try again later."
699
- locationInProject: "This command must be run from within a project directory."
700
- failedToFetchComponentList: "Failed to fetch the list of available components. Please try again later."
701
- projectContainsPublicApp: "This project contains a public app. This command is currently only compatible with projects that contain private apps."
702
- examples:
703
- default: "Create a component within your project"
704
- withFlags: "Use --name and --type flags to bypass the prompt."
705
- listBuilds:
706
- describe: "List the project's builds."
707
- continueOrExitPrompt: "Press <enter> to load more, or ctrl+c to exit"
708
- viewAllBuildsLink: "View all builds"
709
- showingNextBuilds: "Showing the next {{ count }} builds for {{ projectName }}"
710
- showingRecentBuilds: "Showing the most {{ count }} recent builds for {{ projectName }}. {{ viewAllBuildsLink }}."
711
- errors:
712
- noBuilds: "No builds for this project were found."
713
- projectNotFound: "Project {{ projectName}} not found."
714
- options:
715
- project:
716
- describe: "Project name"
717
- limit:
718
- describe: "Limit the number of builds to output"
719
- examples:
720
- default: "List the builds for the current project"
721
- logs:
722
- describe: "Get execution logs for a serverless function within a project."
723
- errors:
724
- noProjectConfig: "No project detected. Run this command again from a project directory."
725
- failedToFetchProjectDetails: "There was an error fetching project details"
726
- noFunctionsLinkText: "Visit developer docs"
727
- noFunctionsInProject: "There aren't any functions in this project\n\t- Run `{{#orange}}hs project logs --help{{/orange}}` to learn more about logs\n\t- {{link}} to learn more about serverless functions"
728
- noFunctionWithName: "No function with name \"{{ name }}\""
729
- functionNotDeployed: "The function with name \"{{ name }}\" is not deployed"
730
- projectLogsManagerNotInitialized: "Function called on ProjectLogsManager before initialization"
731
- generic: "Error fetching logs"
732
- logs:
733
- showingLogs: "Showing logs for:"
734
- hubspotLogsDirectLink: "View function logs in HubSpot"
735
- noLogsFound: "No logs were found for \"{{ name }}\""
736
- table:
737
- accountHeader: "Account"
738
- functionHeader: "Function"
739
- endpointHeader: "Endpoint"
740
- examples:
741
- default: "Open the project logs prompt to get logs for a serverless function"
742
- withOptions: "Get logs for function named \"my-function\" within the app named \"app\" within the project named \"my-project\""
743
- options:
744
- app:
745
- describe: "App name"
746
- compact:
747
- describe: "Output compact logs"
748
- tail:
749
- describe: "Tail logs"
750
- latest:
751
- describe: "Retrieve most recent log only"
752
- limit:
753
- describe: "Limit the number of logs to output"
754
- function:
755
- describe: "App function name"
756
- upload:
757
- describe: "Upload your project files and create a new build."
758
- examples:
759
- default: "Upload a project into your HubSpot account"
760
- logs:
761
- buildSucceeded: "Build #{{ buildId }} succeeded\n"
762
- readyToGoLive: "🚀 Ready to take your project live?"
763
- runCommand: "Run `{{ command }}`"
764
- autoDeployDisabled: "Automatic deploys are disabled for this project. Run {{ deployCommand }} to deploy this build."
765
- errors:
766
- projectLockedError: "Your project is locked. This may mean that another user is running the {{#bold}}`hs project dev`{{/bold}} command for this project. If this is you, unlock the project in Projects UI."
767
- options:
768
- forceCreate:
769
- describe: "Automatically create project if it does not exist"
770
- message:
771
- describe: "Add a message when you upload your project and create a build"
772
- profile:
773
- describe: "The profile to target with this upload"
774
- watch:
775
- describe: "Watch your local project for changes and automatically upload changed files to a new build in HubSpot."
776
- examples:
777
- default: "Start watching the current project"
778
- logs:
779
- processExited: "Stopping watcher..."
780
- watchCancelledFromUi: "The watch process has been cancelled from the UI. Any changes made since cancelling have not been uploaded. To resume watching, rerun {{#yellow}}`hs project watch`{{/yellow}}."
781
- resuming: "Resuming watcher..."
782
- uploadSucceeded: "Uploaded file \"{{ filePath }}\" to \"{{ remotePath }}\""
783
- deleteFileSucceeded: "Deleted file \"{{ remotePath }}\""
784
- deleteFolderSucceeded: "Deleted folder \"{{ remotePath }}\""
785
- watching: "Watcher is ready and watching \"{{ projectDir }}\". Any changes detected will be automatically uploaded."
786
- previousStagingBuildCancelled: "Killed the previous watch process. Please try running `hs project watch` again"
787
- options:
788
- initialUpload:
789
- describe: "Upload directory before watching for updates"
790
- debug:
791
- pause: "Pausing watcher, attempting to queue build"
792
- buildStarted: "Build queued."
793
- extensionNotAllowed: "Skipping \"{{ filePath }}\" due to unsupported extension"
794
- ignored: "Skipping \"{{ filePath }}\" due to an ignore rule"
795
- uploading: "Attempting to upload file \"{{ filePath }}\" to \"{{ remotePath }}\""
796
- attemptNewBuild: "Attempting to create a new build"
797
- fileAlreadyQueued: "File \"{{ filePath }}\" is already queued for upload"
798
- errors:
799
- projectConfigNotFound: "No project config found. Please ensure that you are in a project directory."
800
- projectLockedError: "Your project is locked. This may mean that another user is running the {{#bold}}`hs project dev`{{/bold}} command for this project. If this is you, unlock the project in Projects UI."
801
- uploadFailed: "Failed to upload file \"{{ filePath }}\" to \"{{ remotePath }}\""
802
- deleteFileFailed: "Failed to delete file \"{{ remotePath }}\""
803
- deleteFolderFailed: "Failed to delete folder \"{{ remotePath }}\""
804
- v2ApiError: "{{ command }} is not supported for platform version '{{ platformVersion}}', use {{ newCommand }} instead to develop locally. {{ linkToDocs }}"
805
- download:
806
- describe: "Download your project files from HubSpot."
807
- examples:
808
- default: "Download the project myProject into myProjectFolder folder"
809
- logs:
810
- downloadCancelled: "Cancelling project download"
811
- downloadSucceeded: "Downloaded build \"{{ buildId }}\" from project \"{{ projectName }}\""
812
- errors:
813
- downloadFailed: "Something went wrong downloading the project"
814
- noBuildIdToDownload: "This project is empty. There is no build content to download"
815
- warnings:
816
- cannotDownloadWithinProject: "Cancelling project download. Please run the command again outside the context of an existing project."
817
- options:
818
- build:
819
- describe: "The build to download"
820
- project:
821
- describe: "The name of the project to download"
822
- dest:
823
- describe: "Destination folder for the project"
824
- open:
825
- describe: "Open the project's details page in the browser."
826
- options:
827
- project:
828
- describe: "Name of project to open"
829
- examples:
830
- default: "Opens the projects page for the specified account"
831
- success: "Successfully opened \"{{ projectName }}\""
832
- feedback:
833
- describe: "Leave feedback or file a bug report."
834
- openPrompt: "Open the feedback form in your browser?"
835
- success: "We opened {{ url }} in your browser."
836
- error: "Navigate to {{ url }} to leave feedback."
837
- installDeps:
838
- help:
839
- describe: "Install the dependencies for your project, or add a dependency to a subcomponent of a project."
840
- installAppDepsExample: "Install the dependencies for the project"
841
- addDepToSubComponentExample: "Install the dependencies to one or more project subcomponents"
842
- installLocationPrompt: "Choose the project components to install the dependencies:"
843
- installLocationPromptRequired: "You must choose at least one subcomponent"
844
- installingDependencies: "Installing dependencies in {{directory}}"
845
- installationSuccessful: "Installed dependencies in {{directory}}"
846
- addingDependenciesToLocation: "Installing {{dependencies}} in {{directory}}"
847
- installingDependenciesFailed: "Installing dependencies for {{directory}} failed"
848
- noProjectConfig: "No project detected. Run this command from a project directory."
849
- noPackageJsonInProject: "No dependencies to install. The project {{ projectName }} folder might be missing component or subcomponent files. {{ link }}"
850
- packageManagerNotInstalled: "This command depends on {{ packageManager }}, install {{#bold}}{{ link }}{{/bold}}"
851
- sandbox:
852
- describe: "Commands for managing sandboxes."
853
- subcommands:
854
- create:
855
- describe: "Create a sandbox account."
856
- examples:
857
- default: "Creates a standard sandbox account named MySandboxAccount."
858
- debug:
859
- error: "Error creating sandbox:"
860
- info:
861
- auth: "Run `hs auth` to authenticate with the new sandbox account."
862
- options:
863
- force:
864
- describe: "Skips all confirmation prompts when creating a sandbox account."
865
- name:
866
- describe: "Name to use for created sandbox"
867
- type:
868
- describe: "Type of sandbox to create (standard | development)"
869
- failure:
870
- optionMissing:
871
- type: "Invalid or missing sandbox --type option in command. Please try again."
872
- name: "Invalid or missing sandbox --name option in command. Please try again."
873
- invalidAccountType: "Sandboxes must be created from a production account. Your current default account {{#bold}}{{ accountName }}{{/bold}} is a {{ accountType }}.
874
- \n- Run {{#bold}}hs accounts use{{/bold}} to switch to your default account to your production account.
875
- \n- Run {{#bold}}hs auth{{/bold}} to connect a production account to the HubSpot CLI.\n"
876
- noAccountConfig: "There is no account associated with {{ accountId }} in the config file. Please choose another account and try again, or authenticate {{ accountId }} using {{ authCommand }}."
877
- noSandboxAccountConfig: "There is no sandbox account associated with {{ accountId }} in the config file. Please try to re-authenticate your sandbox account using {{ authCommand}}."
878
- delete:
879
- describe: "Delete a sandbox account."
880
- debug:
881
- deleting: "Deleting sandbox account \"{{ account }}\""
882
- error: "Error deleting sandbox account:"
883
- examples:
884
- default: "Deletes the sandbox account named MySandboxAccount."
885
- confirm: "Delete sandbox {{#bold}}{{ account }}{{/bold}}? All data for this sandbox will be permanently deleted."
886
- defaultAccountWarning: "The sandbox {{#bold}}{{ account }}{{/bold}} is currently set as the default account."
887
- success:
888
- delete: "Sandbox \"{{ account }}\" with portalId \"{{ sandboxHubId }}\" was deleted successfully."
889
- deleteDefault: "Sandbox \"{{ account }}\" with portalId \"{{ sandboxHubId }}\" was deleted successfully and removed as the default account."
890
- configFileUpdated: "Removed account {{ account }} from {{ configFilename }}."
891
- failure:
892
- invalidUser: "Couldn't delete {{ accountName }} because your account has been removed from {{ parentAccountName }} or your permission set doesn't allow you to delete the sandbox. To update your permissions, contact a super admin in {{ parentAccountName }}."
893
- noAccount: "No account specified. Specify an account by using the --account flag."
894
- noSandboxAccounts: "There are no sandboxes connected to the CLI. To add a sandbox, run {{ authCommand }}."
895
- noSandboxAccountId: "This sandbox can't be deleted from the CLI because we could not find the associated sandbox account."
896
- noParentAccount: "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."
897
- objectNotFound: "Sandbox {{#bold}}{{ account }}{{/bold}} may have been deleted through the UI. The account has been removed from the config."
898
- noParentPortalAvailable: "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: {{#bold}}{{ url }}{{/bold}}."
899
- invalidKey: "Your personal access key for account {{#bold}}{{ account }}{{/bold}} is inactive. To re-authenticate, please run {{ authCommand }}."
900
- options:
901
- force:
902
- describe: "Skips all confirmation prompts when deleting a sandbox account."
903
- account:
904
- describe: "Account name or id to delete"
905
- secret:
906
- describe: "Commands for managing secrets."
907
- subcommands:
908
- add:
909
- describe: "Create a new secret."
910
- errors:
911
- add: "The secret \"{{ secretName }}\" was not added"
912
- alreadyExists: "The secret \"{{ secretName }}\" already exists, it's value can be modified with {{ command }}"
913
- positionals:
914
- name:
915
- describe: "Name of the secret"
916
- success:
917
- add: "The secret \"{{ secretName }}\" was added to the HubSpot account: {{ accountIdentifier }}"
918
- delete:
919
- describe: "Delete a secret."
920
- selectSecret: "Select the secret you want to delete"
921
- deleteCanceled: "Delete canceled"
922
- confirmDelete: "Are you sure you want to delete the secret \"{{ secretName }}\"?"
923
- errors:
924
- delete: "The secret \"{{ secretName }}\" was not deleted"
925
- noSecret: "Unable to delete secret with name \"{{ secretName }}\", it does not exist"
926
- positionals:
927
- name:
928
- describe: "Name of the secret"
929
- success:
930
- delete: "The secret \"{{ secretName }}\" was deleted from the HubSpot account: {{ accountIdentifier }}"
931
- list:
932
- describe: "List all secrets."
933
- errors:
934
- list: "The secrets could not be listed"
935
- groupLabel: "Secrets for account {{ accountIdentifier }}:"
936
- update:
937
- describe: "Update an existing secret."
938
- selectSecret: "Select the secret you want to update"
939
- errors:
940
- update: "The secret \"{{ secretName }}\" was not updated"
941
- noSecret: "Unable to update secret with name \"{{ secretName }}\", it does not exist"
942
- positionals:
943
- name:
944
- describe: "Name of the secret to be updated"
945
- success:
946
- update: "The secret \"{{ secretName }}\" was updated in the HubSpot account: {{ accountIdentifier }}"
947
- updateExplanation: "Existing serverless functions will start using this new value within 10 seconds."
948
- convertFields:
949
- describe: "Converts a specific JavaScript fields file of a module or theme to JSON."
950
- positionals:
951
- src:
952
- describe: Path to JS Fields file or directory containing javascript fields files.
953
- options:
954
- options:
955
- describe: "Options to pass to javascript fields files"
956
- errors:
957
- invalidPath: "The path \"{{ path }}\" specified in the \"--src\" flag is not a path to a file or directory"
958
- missingSrc: "Please specify the path to your javascript fields file or directory with the --src flag."
959
-
960
- lib:
961
- process:
962
- exitDebug: "Attempting to gracefully exit. Triggered by {{ signal }}"
963
- DevServerManager:
964
- portConflict: "The port {{ port }} is already in use."
965
- notInitialized: "The Dev Server Manager must be initialized before it is started."
966
- noCompatibleComponents: "Skipping call to {{ serverKey }} because there are no compatible components in the project."
967
- LocalDevManager:
968
- failedToInitialize: "Missing required arguments to initialize Local Dev"
969
- noDeployedBuild: "Your project {{#bold}}{{ projectName }}{{/bold}} 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."
970
- noComponents: "There are no components in this project."
971
- betaMessage: "HubSpot projects local development"
972
- learnMoreLocalDevServer: "Learn more about the projects local dev server"
973
- running: "Running {{#bold}}{{ projectName }}{{/bold}} locally on {{ accountIdentifier }}, waiting for changes ..."
974
- quitHelper: "Press {{#bold}}'q'{{/bold}} to stop the local dev server"
975
- viewProjectLink: "View project in HubSpot"
976
- viewTestAccountLink: "View developer test account in HubSpot"
977
- exitingStart: "Stopping local dev server ..."
978
- exitingSucceed: "Successfully exited"
979
- exitingFail: "Failed to cleanup before exiting"
980
- missingUid: "Could not find a uid for the selected app. Confirm that the app config file contains the uid field and re-run {{ devCommand }}."
981
- uploadWarning:
982
- appLabel: "[App]"
983
- uiExtensionLabel: "[UI Extension]"
984
- missingComponents: "Couldn't find the following components in the deployed build for this project: {{#bold}}'{{ missingComponents }}'{{/bold}}. This may cause issues in local development."
985
- defaultWarning: "{{#bold}}Changing project configuration requires a new project build.{{/bold}}"
986
- defaultPublicAppWarning: "{{#bold}}Changing project configuration requires a new project build.{{/bold}}\n\nThis will affect your public app's {{#bold}}{{ installCount }} existing {{ installText }}{{/bold}}. If your app has users in production, we strongly recommend creating a copy of this app to test your changes before proceeding."
987
- defaultMarketplaceAppWarning: "{{#bold}}Changing project configuration requires creating a new project build.{{/bold}}\n\nYour marketplace app is currently installed in {{#bold}}{{ installCount }} {{ accountText }}{{/bold}}. Any uploaded changes will impact your app's users. We strongly recommend creating a copy of this app to test your changes before proceeding."
988
- header: "{{ warning }} To reflect these changes and continue testing:"
989
- stopDev: " * Stop {{ command }}"
990
- runUpload: " * Run {{ command }}"
991
- restartDev: " * Re-run {{ command }}"
992
- pushToGithub: " * Commit and push your changes to GitHub"
993
- activeInstallWarning:
994
- installCount: "{{#bold}}The app {{ appName }} is installed in {{ installCount }} {{ accountText }}{{/bold}}"
995
- 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."
996
- confirmation: "You will always be asked to confirm any permanent changes to your app’s configuration before uploading them."
997
- confirmationPrompt: "Proceed with local development of this app with existing installs?"
998
- devServer:
999
- cleanupError: "Failed to cleanup local dev server: {{ message }}"
1000
- setupError: "Failed to setup local dev server: {{ message }}"
1001
- startError: "Failed to start local dev server: {{ message }}"
1002
- fileChangeError: "Failed to notify local dev server of file change: {{ message }}"
1003
- localDev:
1004
- confirmDefaultAccountIsTarget:
1005
- configError: "An error occurred while reading the default account from your config. Run {{ authCommand }} to re-auth this account"
1006
- declineDefaultAccountExplanation: "To develop on a different account, run {{ useCommand }} to change your default account, then re-run {{ devCommand }}."
1007
- checkIfDefaultAccountIsSupported:
1008
- 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 {{ useCommand }}, or link a new account with {{ authCommand }}."
1009
- privateApp: "This project contains a private app. Local development of private apps is not supported in developer accounts. Change your default account using {{ useCommand }}, or link a new account with {{ authCommand }}."
1010
- validateAccountOption:
1011
- 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 {{ useCommand }} and run {{ devCommand }} to set up a new Developer Test Account."
1012
- 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 {{ useCommand }}."
1013
- nonSandboxWarning: "Testing in a sandbox is strongly recommended. To switch the target account, select an option below or run {{#bold}}`hs accounts use`{{/bold}} before running the command again."
1014
- publicAppNonDeveloperTestAccountWarning: "Local development of public apps is only supported in {{#bold}}developer test accounts{{/bold}}."
1015
- createNewProjectForLocalDev:
1016
- projectMustExistExplanation: "The project {{ projectName }} does not exist in the target account {{ accountIdentifier}}. This command requires the project to exist in the target account."
1017
- publicAppProjectMustExistExplanation: "The project {{ projectName }} does not exist in {{ accountIdentifier}}, the app developer account associated with your target account. This command requires the project to exist in this app developer account."
1018
- createProject: "Create new project {{ projectName}} in {{ accountIdentifier }}?"
1019
- choseNotToCreateProject: "Exiting because this command requires the project to exist in the target account."
1020
- creatingProject: "Creating project {{ projectName }} in {{ accountIdentifier }}"
1021
- createdProject: "Created project {{ projectName }} in {{ accountIdentifier }}"
1022
- failedToCreateProject: "Failed to create project in the target account."
1023
- createInitialBuildForNewProject:
1024
- initialUploadMessage: "HubSpot Local Dev Server Startup"
1025
- projectLockedError: "Your project is locked. This may mean that another user is running the {{#bold}}`hs project watch`{{/bold}} command for this project. If this is you, unlock the project in Projects UI."
1026
- genericError: "An error occurred while creating the initial build for this project. Run {{ uploadCommand }} to try again."
1027
- checkIfParentAccountIsAuthed:
1028
- notAuthedError: "To develop this project locally, run {{ authCommand }} to authenticate the App Developer Account {{ accountId }} associated with {{ accountIdentifier }}."
1029
- projects:
1030
- create:
1031
- errors:
1032
- noProjectsInConfig: "Unable to find any projects in the target repository's config.json file. Please ensure that there is a \"projects\" array in the config file."
1033
- missingConfigFileTemplateSource: "Failed to fetch the config.json file from the target repository. Please ensure that there is a valid config.json file at the root of the repository and try again."
1034
- 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\"]."
1035
- validateProjectConfig:
1036
- configNotFound: "Unable to locate a project configuration file. Try running again from a project directory, or run {{ createCommand }} to create a new project."
1037
- configMissingFields: "The project configuration file is missing required fields."
1038
- srcDirNotFound: "Project source directory {{#bold}}{{ srcDir }}{{/bold}} could not be found in {{#bold}}{{ projectDir }}{{/bold}}."
1039
- 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\""
1040
- ensureProjectExists:
1041
- createPrompt: "The project {{ projectName }} does not exist in {{ accountIdentifier }}. Would you like to create it?"
1042
- createPromptUpload: "[--forceCreate] The project {{ projectName }} does not exist in {{ accountIdentifier }}. Would you like to create it?"
1043
- createSuccess: "New project {{#bold}}{{ projectName }}{{/bold}} successfully created in {{#bold}}{{ accountIdentifier }}{{/bold}}."
1044
- notFound: "Your project {{#bold}}{{ projectName }}{{/bold}} could not be found in {{#bold}}{{ accountIdentifier }}{{/bold}}."
1045
- pollFetchProject:
1046
- checkingProject: "Checking if project exists in {{ accountIdentifier }}"
1047
- logFeedbackMessage:
1048
- feedbackHeader: "We'd love to hear your feedback!"
1049
- feedbackMessage: "How are you liking the new projects and developer tools? \n > Run `{{#yellow}}hs feedback{{/yellow}}` to let us know what you think!\n"
1050
- projectUpload:
1051
- uploadProjectFiles:
1052
- add: "Uploading {{#bold}}{{ projectName }}{{/bold}} project files to {{ accountIdentifier }}"
1053
- fail: "Failed to upload {{#bold}}{{ projectName }}{{/bold}} project files to {{ accountIdentifier }}"
1054
- succeed: "Uploaded {{#bold}}{{ projectName }}{{/bold}} project files to {{ accountIdentifier }}"
1055
- buildCreated: "Project \"{{ projectName }}\" uploaded and build #{{ buildId }} created"
1056
- handleProjectUpload:
1057
- emptySource: "Source directory \"{{ srcDir }}\" is empty. Add files to your project and rerun `{{#yellow}}hs project upload{{/yellow}}` to upload them to HubSpot."
1058
- compressed: "Project files compressed: {{ byteCount }} bytes"
1059
- compressing: "Compressing build files to \"{{ path }}\""
1060
- fileFiltered: "Ignore rule triggered for \"{{ filename }}\""
1061
- ui:
1062
- betaTag: "[BETA]"
1063
- betaTagWithStyle: "{{#bold}}[BETA]{{/bold}}"
1064
- betaWarning:
1065
- header: "{{#yellow}}***************************** WARNING ****************************{{/yellow}}"
1066
- footer: "{{#yellow}}******************************************************************{{/yellow}}"
1067
- infoTag: "{{#bold}}[INFO]{{/bold}}"
1068
- deprecatedTag: "[DEPRECATED]"
1069
- deprecatedTagWithStyle: "{{#bold}}[DEPRECATED]{{/bold}}"
1070
- errorTag: "{{#bold}}[ERROR]{{/bold}}"
1071
- deprecatedMessage: "The {{ command }} command is deprecated and will be disabled soon. {{ url }}"
1072
- deprecatedDescription: "{{ message }}. The {{ command }} command is deprecated and will be disabled soon. {{ url }}"
1073
- deprecatedUrlText: 'Learn more.'
1074
- disabledMessage: "The {{ command }} command is disabled. Run {{ npmCommand }} to update to the latest HubSpot CLI version. {{ url }}"
1075
- disabledUrlText: "See all HubSpot CLI commands here."
1076
- featureHighlight:
1077
- defaultTitle: "What's next?"
1078
- featureKeys:
1079
- accountOption:
1080
- command: "--account"
1081
- message: "Use the {{ command }} option with any command to override the default account"
1082
- accountsListCommand:
1083
- command: "hs account list"
1084
- message: "{{ command }} - See a list of configured HubSpot accounts"
1085
- accountsUseCommand:
1086
- command: "hs account use"
1087
- message: "{{ command }} - Set the Hubspot account that the CLI will target by default"
1088
- accountAuthCommand:
1089
- command: "hs account auth"
1090
- message: "{{ command }} - Connect the CLI to additional HubSpot accounts"
1091
- authCommand:
1092
- command: "hs auth"
1093
- message: "{{ command }} - Connect the CLI to additional HubSpot accounts"
1094
- feedbackCommand:
1095
- command: "hs feedback"
1096
- message: "{{ command }} - Report bugs or leave feedback"
1097
- getStartedCommand:
1098
- command: "hs get-started"
1099
- message: "{{ command }} - Get started with HubSpot development"
1100
- helpCommand:
1101
- command: "hs help"
1102
- message: "{{ command }} - See a list of available commands"
1103
- projectCreateCommand:
1104
- command: "hs project create"
1105
- message: "{{ command }} - create a new project"
1106
- projectDeployCommand:
1107
- command: "hs project deploy"
1108
- message: "Ready to take your project live? Run {{ command }}"
1109
- projectHelpCommand:
1110
- command: "hs project --help"
1111
- message: "{{ command }} - Learn more about available project commands"
1112
- projectUploadCommand:
1113
- command: "hs project upload"
1114
- message: "{{ command }} - Upload the project to your HubSpot account"
1115
- projectDevCommand:
1116
- command: "hs project dev"
1117
- message: "{{ command }} - Set up a test environment and start local development"
1118
- projectInstallDepsCommand:
1119
- command: "hs project install-deps"
1120
- message: "{{ command }} - Install all project dependencies"
1121
- projectCommandTip:
1122
- message: "Tip: All project commands must be run from within a project directory"
1123
- sampleProjects:
1124
- linkText: "HubSpot's sample projects"
1125
- url: "https://developers.hubspot.com/docs/platform/sample-projects?utm_source=cli&utm_content=project_create_whats_next"
1126
- message: "See {{ link }}"
1127
- git:
1128
- securityIssue: "Security Issue Detected"
1129
- configFileTracked: "The HubSpot config file can be tracked by git."
1130
- fileName: "File: \"{{ configPath }}\""
1131
- remediate: "To remediate:"
1132
- moveConfig: "- Move the config file to your home directory: '{{ homeDir }}'"
1133
- addGitignore: "- Add gitignore pattern '{{ configPath }}' to a .gitignore file in root of your repository."
1134
- noRemote: "- Ensure that the config file has not already been pushed to a remote repository."
1135
- checkFailed: "Unable to determine if config file is properly ignored by git."
1136
- serverlessFunctionLogs:
1137
- unableToProcessLog: "Unable to process log {{ log }}"
1138
- noLogsFound: "No logs found."
1139
- commonOpts:
1140
- options:
1141
- account:
1142
- describe: "HubSpot account id or name from config"
1143
- config:
1144
- describe: "Path to a config file"
1145
- overwrite:
1146
- describe: "Overwrite existing files"
1147
- modes:
1148
- describe:
1149
- default: "{{ modes }}"
1150
- read: "Read from {{ modes }}"
1151
- write: "Write to {{ modes }}"
1152
- qa:
1153
- describe: "Run command in QA mode"
1154
- useEnv:
1155
- describe: "Use environment variable config"
1156
- debug:
1157
- describe: "Set log level to debug"
1158
- jsonOutput:
1159
- describe: "Format output as JSON"
1160
- prompts:
1161
- projectDevTargetAccountPrompt:
1162
- createNewSandboxOption: "<Test on a new development sandbox>"
1163
- createNewDeveloperTestAccountOption: "<Test on a new developer test account>"
1164
- chooseDefaultAccountOption: "<{{#bold}}\U00002757{{/bold}} Test on this production account {{#bold}}\U00002757{{/bold}}>"
1165
- promptMessage: "Choose a {{ accountType }} under {{ accountIdentifier }} to test with:"
1166
- sandboxLimit: "Your account reached the limit of {{ limit }} development sandboxes"
1167
- sandboxLimitWithSuggestion: "Your account reached the limit of {{ limit }} development sandboxes. Run {{ authCommand }} to add an existing one to the config."
1168
- developerTestAccountLimit: "Your account reached the limit of {{ limit }} developer test accounts."
1169
- confirmDefaultAccount: "Proceed with local development on {{#bold}}{{ accountName }} [{{ accountType }}]{{/bold}}? (Y/n)"
1170
- confirmUseExistingDeveloperTestAccount: "Continue with {{ accountName }}? This account isn't currently connected to the HubSpot CLI. By continuing, you'll be prompted to generate a personal access key and connect it."
1171
- noAccountId: "No account ID found for the selected account. Please try again."
1172
- projectLogsPrompt:
1173
- functionName: "[--function] Select function in {{#bold}}{{projectName}}{{/bold}} project"
1174
- setAsDefaultAccountPrompt:
1175
- setAsDefaultAccountMessage: "Set this account as the default?"
1176
- setAsDefaultAccount: "Account \"{{ accountName }}\" set as the default account"
1177
- keepingCurrentDefault: "Account \"{{ accountName }}\" will continue to be the default account"
1178
- accountNamePrompt:
1179
- enterAccountName: "Enter a unique name to reference this account in the CLI:"
1180
- enterDeveloperTestAccountName: "Name your developer test account:"
1181
- enterStandardSandboxName: "Name your standard sandbox:"
1182
- enterDevelopmentSandboxName: "Name your development sandbox:"
1183
- sandboxDefaultName: "New {{ sandboxType }} sandbox"
1184
- developerTestAccountDefaultName: "Developer test account {{ count }}"
1185
- errors:
1186
- invalidName: "You entered an invalid name. Please try again."
1187
- nameRequired: "The name may not be blank. Please try again."
1188
- spacesInName: "The name may not contain spaces. Please try again."
1189
- accountNameExists: "Account with name \"{{ name }}\" already exists in the CLI config, please enter a different name."
1190
- personalAccessKeyPrompt:
1191
- enterAccountId: "Enter the account ID for your account (the number under the DOMAIN column at https://app.hubspot.com/myaccounts-beta ): "
1192
- enterClientId: "Enter your OAuth2 client ID: "
1193
- enterClientSecret: "Enter your OAuth2 client secret: "
1194
- enterPersonalAccessKey: "Enter your personal access key: "
1195
- selectScopes: "Select access scopes (see https://developers.hubspot.com/docs/methods/oauth2/initiate-oauth-integration#scopes)"
1196
- personalAccessKeySetupTitle: "HubSpot Personal Access Key Setup"
1197
- personalAccessKeyBrowserOpenPrep: "A personal access key is required to authenticate the CLI to interact with your HubSpot account. We'll open a secure page in your default browser where you can view and copy your personal access key."
1198
- personalAccessKeyBrowserOpenPrompt: "Open HubSpot to copy your personal access key?"
1199
- logs:
1200
- openingWebBrowser: "Opening {{ url }} in your web browser"
1201
- errors:
1202
- invalidAccountId: "You did not enter a valid account ID. Please try again."
1203
- invalidOauthClientId: "You entered an invalid OAuth2 client ID. Please try again."
1204
- invalidOauthClientIdLength: "The OAuth2 client ID must be 36 characters long. Please try again."
1205
- invalidOauthClientSecret: "You entered an invalid OAuth2 client secret. Please try again."
1206
- invalidOauthClientSecretLength: "The OAuth2 client secret must be 36 characters long. Please try again."
1207
- invalidOauthClientSecretCopy: "Please copy the actual OAuth2 client secret rather than the asterisks that mask it."
1208
- invalidPersonalAccessKey: "You did not enter a valid access key. Please try again."
1209
- invalidPersonalAccessKeyCopy: "Please copy the actual access key rather than the bullets that mask it."
1210
- createTemplatePrompt:
1211
- selectTemplate: "Select the type of template to create"
1212
- createModulePrompt:
1213
- enterLabel: "What should the module label be?"
1214
- selectReactType: "Is this a React module?"
1215
- selectContentType: "What types of content will this module be used in?"
1216
- confirmGlobal: "Is this a global module?"
1217
- availableForNewContent: "Make this module available for new content?"
1218
- errors:
1219
- invalidLabel: "You entered an invalid name. Please try again."
1220
- labelRequired: "The name may not be blank. Please try again."
1221
- contentTypeRequired: "Please select at least one content type for this module."
1222
- createFunctionPrompt:
1223
- enterFolder: "Name of the folder where your function will be created: "
1224
- enterFilename: "Name of the JavaScript file for your function: "
1225
- enterEndpointPath: "Path portion of the URL created for the function: "
1226
- selectEndpointMethod: "Select the HTTP method for the endpoint"
1227
- errors:
1228
- invalid: "You entered an invalid name. Please try again."
1229
- blank: "The name may not be blank. Please try again."
1230
- space: "The name may not contain spaces. Please try again."
1231
- createApiSamplePrompt:
1232
- selectApiSampleApp: "Please select API sample app"
1233
- selectLanguage: "Please select sample app's language"
1234
- errors:
1235
- apiSampleAppRequired: "Please select API sample app"
1236
- languageRequired: "Please select API sample app's language"
1237
- createProjectPrompt:
1238
- enterName: "[--name] Give your project a name: "
1239
- enterDest: "[--dest] Enter the folder to create the project in:"
1240
- selectTemplate: "[--template] Choose a project template: "
1241
- errors:
1242
- nameRequired: "A project name is required"
1243
- destRequired: "A project dest is required"
1244
- invalidDest: "There is an existing project at this destination. Please provide a new path for this project."
1245
- invalidCharacters: "The selected destination contains invalid characters. Please provide a new path and try again."
1246
- invalidTemplate: "[--template] Could not find template \"{{ template }}\". Please choose an available template:"
1247
- projectTemplateRequired: "Project template is required when projectTemplates is provided"
1248
- selectPublicAppForMigrationPrompt:
1249
- selectAppIdMigrate: "[--appId] Choose an app under {{ accountName }} to migrate:"
1250
- selectAppIdClone: "[--appId] Choose an app under {{ accountName }} to clone:"
1251
- errors:
1252
- noAccountId: "An account ID is required to select an app."
1253
- noAppsMigration: "{{#bold}}No apps to migrate{{/bold}}"
1254
- noAppsClone: "{{#bold}}No apps to clone{{/bold}}"
1255
- noAppsMigrationMessage: "The selected developer account {{#bold}}{{ accountName }}{{/bold}} doesn't have any apps that can be migrated to the projects framework."
1256
- noAppsCloneMessage: "The selected developer account {{#bold}}{{ accountName }}{{/bold}} doesn't have any apps that can be cloned to the projects framework."
1257
- errorFetchingApps: "There was an error fetching public apps."
1258
- cannotBeMigrated: "Cannot be migrated"
1259
- downloadProjectPrompt:
1260
- selectProject: "Select a project to download:"
1261
- errors:
1262
- projectNotFound: "Your project {{ projectName }} could not be found in {{ accountId }}. Please select a valid project:"
1263
- accountIdRequired: "An account ID is required to download a project."
1264
- projectAddPrompt:
1265
- selectType: "[--type] Select a component to add: "
1266
- enterName: "[--name] Give your component a name: "
1267
- errors:
1268
- nameRequired: "A component name is required"
1269
- invalidType: "[--type] Could not find type \"{{ type }}\". Please choose an available type:"
1270
- secretPrompt:
1271
- enterValue: "Enter a value for the secret: "
1272
- enterName: "Enter the name of the secret to add: "
1273
- selectSecretUpdate: "Select the secret you want to update"
1274
- selectSecretDelete: "Select the secret you want to delete"
1275
- errors:
1276
- invalidValue: "You entered an invalid value. Please try again."
1277
- sandboxesPrompt:
1278
- selectAccountName: "Select the sandbox account you want to delete"
1279
- selectParentAccountName: "Select the account that the sandbox belongs to"
1280
- type:
1281
- message: "Choose the type of sandbox you want to create"
1282
- developer: "Development sandbox (Includes production's object definitions)"
1283
- standard: "Standard sandbox (Includes partial copy of production's assets)"
1284
- uploadPrompt:
1285
- enterDest: "Enter the destination path: "
1286
- enterSrc: "Enter the source path: "
1287
- errors:
1288
- srcRequired: "You must specify a source directory."
1289
- destRequired: "You must specify a destination directory."
1290
- fieldsPrompt: "Multiple fields files located in \"{{ dir }}\". Please choose which to upload: "
1291
- projectNamePrompt:
1292
- enterName: "[--project] Enter project name:"
1293
- errors:
1294
- invalidName: "You entered an invalid name. Please try again."
1295
- projectDoesNotExist: "Project {{#bold}}{{ projectName }}{{/bold}} could not be found in \"{{ accountIdentifier }}\""
1296
- previewPrompt:
1297
- enterSrc: "[--src] Enter a local theme directory to preview."
1298
- enterDest: "[--dest] Enter the destination path for the src theme in HubSpot Design Tools."
1299
- themeProjectSelect: "[--theme] Select which theme to preview."
1300
- errors:
1301
- srcRequired: "You must specify a source directory."
1302
- destRequired: "You must specify a destination directory."
1303
- selectHubDBTablePrompt:
1304
- selectTable: "Select a HubDB table:"
1305
- enterDest: "Enter the destination path:"
1306
- errors:
1307
- noTables: "No HubDB tables found in account {{ accountId }}"
1308
- errorFetchingTables: "Unable to fetch HubDB tables in account {{ accountId }}"
1309
- destRequired: "A destination is required"
1310
- invalidDest: "The selected destination already exists. Please provide a new path."
1311
- invalidCharacters: "The selected destination contains invalid characters. Please provide a new path and try again."
1312
- convertFields:
1313
- positionals:
1314
- src:
1315
- describe: Path to JS Fields file or directory containing javascript fields files.
1316
- options:
1317
- options:
1318
- describe: "Options to pass to javascript fields files"
1319
- developerTestAccount:
1320
- create:
1321
- loading:
1322
- add: "Creating developer test account {{#bold}}{{ accountName }}{{/bold}}"
1323
- fail: "Failed to create a developer test account {{#bold}}{{ accountName }}{{/bold}}."
1324
- succeed: "Successfully created a developer test account {{#bold}}{{ accountName }}{{/bold}} with portalId {{#bold}}{{ accountId }}{{/bold}}."
1325
- success:
1326
- configFileUpdated: "Account \"{{ accountName }}\" updated using \"{{ authType }}\""
1327
- failure:
1328
- invalidUser: "Couldn't create {{#bold}}{{ accountName }}{{/bold}} because your account has been removed from {{#bold}}{{ parentAccountName }}{{/bold}} or your permission set doesn't allow you to create the sandbox. To update your permissions, contact a super admin in {{#bold}}{{ parentAccountName }}{{/bold}}."
1329
- limit: "{{#bold}}{{ accountName }}{{/bold}} reached the limit of {{ limit }} developer test accounts.
1330
- \n- To connect a developer test account to your HubSpot CLI, run {{#bold}}hs auth{{/bold}} and follow the prompts."
1331
- alreadyInConfig: "{{#bold}}{{ accountName }}{{/bold}} reached the limit of {{ limit }} developer test accounts.
1332
- \n- To use an existing developer test account, run {{#bold}}hs accounts use{{/bold}}."
1333
- scopes:
1334
- message: "The personal access key you provided doesn't include developer test account permissions."
1335
- instructions: "To update CLI permissions for \"{{ accountName }}\":
1336
- \n- Go to {{ url }}, deactivate the existing personal access key, and create a new one that includes developer test account permissions.
1337
- \n- Update the CLI config for this account by running {{#bold}}hs auth{{/bold}} and entering the new key.\n"
1338
- sandbox:
1339
- create:
1340
- loading:
1341
- developer:
1342
- add: "Creating development sandbox {{#bold}}{{ accountName }}{{/bold}}"
1343
- fail: "Failed to create a development sandbox {{#bold}}{{ accountName }}{{/bold}}."
1344
- succeed: "Created {{#bold}}{{ accountName }} [dev sandbox] ({{ accountId }}){{/bold}}."
1345
- standard:
1346
- add: "Creating standard sandbox {{#bold}}{{ accountName }}{{/bold}}"
1347
- fail: "Failed to create a standard sandbox {{#bold}}{{ accountName }}{{/bold}}."
1348
- succeed: "Created {{#bold}}{{ accountName }} [standard sandbox] ({{ accountId }}){{/bold}}."
1349
- failure:
1350
- invalidUser: "Couldn't create {{#bold}}{{ accountName }}{{/bold}} because your account has been removed from {{#bold}}{{ parentAccountName }}{{/bold}} or your permission set doesn't allow you to create the sandbox. To update your permissions, contact a super admin in {{#bold}}{{ parentAccountName }}{{/bold}}."
1351
- 403Gating: "We couldn't create {{#bold}}{{ accountName }}{{/bold}} because {{#bold}}{{ parentAccountName }}{{/bold}} is a developer account and does not have access to development sandboxes. To gain access to developer sandboxes, you can convert your account: https://developers.hubspot.com/docs/getting-started/convert-your-account-into-a-developer-crm-account"
1352
- usageLimitsFetch: "Unable to fetch sandbox usage limits. Please try again."
1353
- generic: "An error occurred while creating a new sandbox. Please try again."
1354
- limit:
1355
- developer:
1356
- one: "{{#bold}}{{ accountName }}{{/bold}} reached the limit of {{ limit }} development sandbox.
1357
- \n- View sandbox details at {{ link }}
1358
- \n- To connect a sandbox to your HubSpot CLI, run {{#bold}}hs auth{{/bold}} and follow the prompts."
1359
- other: "{{#bold}}{{ accountName }}{{/bold}} reached the limit of {{ limit }} development sandboxes.
1360
- \n- View sandbox details at {{ link }}
1361
- \n- To connect a sandbox to your HubSpot CLI, run {{#bold}}hs auth{{/bold}} and follow the prompts."
1362
- standard:
1363
- one: "{{#bold}}{{ accountName }}{{/bold}} reached the limit of {{ limit }} standard sandbox.
1364
- \n- View sandbox details at {{ link }}
1365
- \n- To connect a sandbox to your HubSpot CLI, run {{#bold}}hs auth{{/bold}} and follow the prompts."
1366
- other: "{{#bold}}{{ accountName }}{{/bold}} reached the limit of {{ limit }} standard sandboxes.
1367
- \n- View sandbox details at {{ link }}
1368
- \n- To connect a sandbox to your HubSpot CLI, run {{#bold}}hs auth{{/bold}} and follow the prompts."
1369
- alreadyInConfig:
1370
- developer:
1371
- one: "{{#bold}}{{ accountName }}{{/bold}} reached the limit of {{ limit }} development sandbox per account.
1372
- \n- To use an existing development sandbox, run {{#bold}}hs accounts use{{/bold}}.
1373
- \n- To delete an existing sandbox, run {{#bold}}hs sandbox delete{{/bold}}."
1374
- other: "{{#bold}}{{ accountName }}{{/bold}} reached the limit of {{ limit }} development sandboxes per account.
1375
- \n- To use an existing development sandbox, run {{#bold}}hs accounts use{{/bold}}.
1376
- \n- To delete an existing sandbox, run {{#bold}}hs sandbox delete{{/bold}}."
1377
- standard:
1378
- one: "{{#bold}}{{ accountName }}{{/bold}} reached the limit of {{ limit }} standard sandbox per account.
1379
- \n- To use an existing standard sandbox, run {{#bold}}hs accounts use{{/bold}}.
1380
- \n- To delete an existing sandbox, run {{#bold}}hs sandbox delete{{/bold}}."
1381
- other: "{{#bold}}{{ accountName }}{{/bold}} reached the limit of {{ limit }} standard sandboxes per account.
1382
- \n- To use an existing standard sandbox, run {{#bold}}hs accounts use{{/bold}}.
1383
- \n- To delete an existing sandbox, run {{#bold}}hs sandbox delete{{/bold}}."
1384
- scopes:
1385
- message: "The personal access key you provided doesn't include sandbox permissions."
1386
- instructions: "To update CLI permissions for \"{{ accountName }}\":
1387
- \n- Go to {{ url }}, deactivate the existing personal access key, and create a new one that includes Sandboxes permissions.
1388
- \n- Update the CLI config for this account by running {{#bold}}hs auth{{/bold}} and entering the new key.\n"
1389
- sync:
1390
- info:
1391
- syncStatus: "View the sync status details at: {{#bold}}{{ url }}{{/bold}}"
1392
- syncMessage: "Asset sync from production to the sandbox is in progress and is running in the background. It may take some time. {{ url }}"
1393
- syncMessageDevSb: "Sync of object definitions from production to the sandbox is in progress and is running in the background. It may take some time. {{ url }}"
1394
- syncStatusDetailsLinkText: "View sync status details here"
1395
- confirm:
1396
- createFlow:
1397
- standard: "Sync all supported assets to {{#cyan}}{{#bold}}{{ sandboxName }}{{/bold}}{{/cyan}} from {{#bold}}{{ parentAccountName }}{{/bold}}?"
1398
- developer: "Sync CRM object definitions to {{#cyan}}{{#bold}}{{ sandboxName }}{{/bold}}{{/cyan}} from {{#bold}}{{ parentAccountName }}{{/bold}}?"
1399
- syncContactRecords:
1400
- standard: "Copy up to 5000 most recently updated contacts? This includes up to 100 of each of the following: associated deals, tickets, and companies."
1401
- developer: "Include up to 100 most recently updated contacts? This includes up to 100 of each of the following: associated deals, tickets, and companies. This can be done once per sandbox."
1402
- loading:
1403
- startSync: "Initiating sync..."
1404
- fail: "Failed to sync sandbox."
1405
- succeed: "Initiated asset sync from production to {{ accountName }}"
1406
- succeedDevSb: "Initiated sync of object definitions from production to {{ accountName }}"
1407
- successDevSbInfo: "Initiated sync of object definitions from production to {{ accountName }}. It may take some time. {{ url }}"
1408
- failure:
1409
- invalidUser: "Couldn't sync {{ accountName }} because your account has been removed from {{ parentAccountName }} or your permission set doesn't allow you to sync the sandbox. To update your permissions, contact a super admin in {{ parentAccountName }}."
1410
- syncInProgress: "Couldn't run the sync because there's another sync in progress. Wait for the current sync to finish and then try again. To check the sync status, visit the sync activity log: {{ url }}."
1411
- notSuperAdmin: "Couldn't run the sync because you are not a super admin in {{ account }}. Ask the account owner for super admin access to the sandbox."
1412
- objectNotFound: "Couldn't sync the sandbox because {{#bold}}{{ account }}{{/bold}} may have been deleted through the UI. Run {{#bold}}hs sandbox delete{{/bold}} to remove this account from the config. "
1413
- syncTypeFetch: "Unable to fetch available sandbox sync types. Please try again."
1414
- errorHandlers:
1415
- index:
1416
- errorOccurred: "Error: {{ error }}"
1417
- errorContext: "Context: {{ context }}"
1418
- errorCause: "Cause: {{ cause }}"
1419
- unknownErrorOccurred: "An unknown error has occurred."
1420
- configTimeoutErrorOccurred: "This error occurred because a request exceeded the default HTTP timeout of {{ timeout }}ms. To increase the default HTTP timeout, run {{ configSetCommand }}."
1421
- genericTimeoutErrorOccurred: "This error occurred because an HTTP request timed out. Re-running the command may resolve this issue."
1422
- suppressErrors:
1423
- platformVersionErrors:
1424
- header: "Platform version update required"
1425
- unspecifiedPlatformVersion: "Projects with an {{#bold}}{{platformVersion}}{{/bold}} are no longer supported."
1426
- platformVersionRetired: "Projects with {{#bold}}platformVersion {{ platformVersion }}{{/bold}} are no longer supported."
1427
- nonExistentPlatformVersion: "Projects with {{#bold}}platformVersion {{ platformVersion }}{{/bold}} are not supported."
1428
- updateProject: "Please update your project to the latest version and try again."
1429
- docsLink: "Projects platform versioning (BETA)"
1430
- betaLink: "For more info, see {{ docsLink }}."
1431
- missingScopeError: "Couldn't execute the {{ request }} because the access key for {{ accountName }} is missing required scopes. To update scopes, run {{ authCommand }}. Then deactivate the existing key and generate a new one that includes the missing scopes."
1432
- serverless:
1433
- verifyAccessKeyAndUserAccess:
1434
- fetchScopeDataError: "Error verifying access of scopeGroup {{ scopeGroup }}:"
1435
- portalMissingScope: "Your account does not have access to this action. Talk to an account admin to request it."
1436
- userMissingScope: "You don't have access to this action. Ask an account admin to change your permissions in Users & Teams settings."
1437
- genericMissingScope: "Your access key does not allow this action. Please generate a new access key by running `hs auth personalaccesskey`."
1438
- doctor:
1439
- runningDiagnostics: "Running diagnostics..."
1440
- diagnosticsComplete: "Diagnostics complete"
1441
- defaultAccountOverrideFileChecks:
1442
- overrideActive: "Default account override file active: {{ defaultAccountOverrideFile }}"
1443
- overrideAccountId: "Active account ID: {{ overrideAccountId }}"
1444
- accountChecks:
1445
- active: "Default account active"
1446
- inactive: "Default account isn't active"
1447
- inactiveSecondary: "Run {{ command }} to remove inactive accounts from your CLI config"
1448
- unableToDetermine: "Unable to determine if the portal is active"
1449
- pak:
1450
- incomplete: "Personal access key is valid, but there are more scopes available to your user that are not included in your key."
1451
- incompleteSecondary: "To add the available scopes, run {{ command }} and re-authenticate your account with a new key that has those scopes. Visit HubSpot to view selected and available scopes for your personal access key. {{ link }}"
1452
- invalid: "Personal access key is invalid"
1453
- invalidSecondary: "To get a new key, run {{ command }}, deactivate your access key, and generate a new one. Then use that new key to authenticate your account."
1454
- valid: "Personal Access Key is valid. {{ link }}"
1455
- viewScopes: "View selected scopes"
1456
- nodeChecks:
1457
- unableToDetermine: "Unable to determine what version of node is installed"
1458
- minimumNotMet: "Minimum Node version is not met. Upgrade to {{ nodeVersion }} or higher"
1459
- success: "node v{{ nodeVersion }} is installed"
1460
- npmChecks:
1461
- notInstalled: "npm is not installed"
1462
- installed: "npm v{{ npmVersion }} is installed"
1463
- unableToDetermine: "Unable to determine if npm is installed"
1464
- hsChecks:
1465
- notLatest: "Version {{ hsVersion }} outdated"
1466
- notLatestSecondary: "Run {{ command }} to upgrade to the latest version {{ hsVersion }}"
1467
- latest: "HubSpot CLI v{{ hsVersion }} up to date"
1468
- unableToDetermine: "Unable to determine if HubSpot CLI is up to date."
1469
- unableToDetermineSecondary: "Run {{ command }} to check your installed version; then visit the {{ link }} to validate whether you have the latest version"
1470
- unableToDetermineSecondaryLink: "npm HubSpot CLI version history"
1471
- projectDependenciesChecks:
1472
- missingDependencies: "missing dependencies in {{#bold}}{{ dir }}{{/bold}}"
1473
- missingDependenciesSecondary: "Run {{ command }} to install all project dependencies locally"
1474
- unableToDetermine: "Unable to determine if dependencies are installed {{ dir }}"
1475
- success: "App dependencies are installed and up to date"
1476
- files:
1477
- invalidJson: "invalid JSON in {{#bold}}{{ filename }}{{/bold}}"
1478
- validJson: "JSON files valid"
1479
- port:
1480
- inUse: "Port {{ port }} is in use"
1481
- inUseSecondary: "Make sure it is available if before running {{ command }}"
1482
- available: "Port {{ port }} available for local development"
1483
- diagnosis:
1484
- cli:
1485
- header: "HubSpot CLI install"
1486
- cliConfig:
1487
- header: "CLI configuration"
1488
- configFileSubHeader: "Config File: {{#bold}}{{ filename }}{{/bold}}"
1489
- defaultAccountSubHeader: "Default Account: {{accountDetails}}"
1490
- noConfigFile: "CLI configuration not found"
1491
- noConfigFileSecondary: "Run {{command}} and follow the prompts to create your CLI configuration file and connect it to your HubSpot account"
1492
- settings:
1493
- httpUseLocalhost: "The setting {{#bold}}httpUseLocalhost{{/bold}} is enabled"
1494
- httpUseLocalhostSecondary: "This setting causes all CLI requests to route to localhost"
1495
- defaultAccountOverrideFile:
1496
- header: "Default account override file path:"
1497
- projectConfig:
1498
- header: "Project configuration"
1499
- projectDirSubHeader: "Project dir: {{#bold}}{{ projectDir }}{{/bold}}"
1500
- projectNameSubHeader: "Project name: {{#bold}}{{ projectName }}{{/bold}}"
1501
- counts:
1502
- errors: '{{#bold}}Errors:{{/bold}} {{ count }}'
1503
- warnings: "{{#bold}}Warning:{{/bold}} {{ count }}"
1504
- oauth:
1505
- missingClientId: "Error building oauth URL: missing client ID."
1506
-
1507
-
1508
-