A collection of command line tools for HubSpot CRM.
All the script run on NodeJS 10+. You can install node from https://nodejs.org/it/download/ or https://nodejs.org/en/download/package-manager/
Install all required dependencies via NPM:
npm installCreate a copy of config.example.json in config.json and insert the HAPI KEY from your target HubSpot account.
Work with HubSpot contacts
Apply a transform function to each, or some, contacts to create, edit, move properties's data.
Clone the template file migrations\example.js and edit the transform function to suit your needings.
Run the script pointing to your newly created file
node contacts migrate ./migrations/example.js --limit 100You can specify multiple migrations at a time:
node contacts migrate ./migrations/example.js ./migrations/mymigration.js --limit 100-l, --limit [limit]: Limit the migrations to the first [limit] contacts