Set up test accounts that simulate HubSpot subscriptions for comprehensive app testing.
2025.2
or later and using CLI version 7.6.0
or later.
Run the test-account command
hs project dev
command. After running hs project dev
, you can select Test on a developer test account
, then create a new account from scratch.Configure account details
Generate the config file
Create a new test account
--config-path
flag directly:hs test-account create --config-path ./test-portal-config.json
This method enables you to maintain multiple configurations in your repository. For example, you could include one configuration for a Starter portal and another for Enterprise. With multiple configurations, you can spin up test accounts on demand as part of your development or QA process.Navigate in HubSpot
Create a new test account
hs test-account import-data
command, you can import CRM data from your local environment into a test account. When run, the command will use the CRM imports API to send data from one or more CSV files into the account. Because this command uses the CRM imports API, you have access to the same options that you would when making a POST
request to the API directly.
Below, learn how to structure your local import files before running the import command.
POST
requests to the CRM imports API. For a full breakdown of the available fields, check out the CRM imports API guide.hs test-account import-data
command.--account
: select the developer test account you want to import into.--file-path
: specify the name of the JSON file.