syncs content from src -> dest on hubspot CMS
!!! use at your own risk !!!
Usage:
- npm install
- Open index.js
- Update
const SOURCE_PORTAL_HAPIKEY = '';
const DEST_PORTAL_HAPIKEY = '';
- create content/src folder
- run one of the commands below (i recommend syncing one piece of content first)
node index.js sync --all
node index.js sync --ids=123,124,125
ids should be the page ids from the SOURCE portal.
You'll need to have uploaded your templates to the destination portal first. This tool downloads all of the pages from the source portal and stores in them content/src. A mapping is maintained in src/mappings.content.json. If you run the same page id's again it'll update them instead of creating a new one. If you delete pages from the DEST them this tool will complain, so you'll need to cleanup mappings.json.