Get support for kieranja/hubspot-content-sync

If you're new to LTH, please see our FAQ for more information on what it is we do.

Qualified Helpers
kieranja
owner From $50 / 30 mins

*This user needs to complete their payout settings before they can accept help requests


kieranja/hubspot-content-sync

Hubspot content sync

syncs content from src -> dest on hubspot CMS

!!! use at your own risk !!!

Usage:

  1. npm install
  2. Open index.js
  3. Update
const SOURCE_PORTAL_HAPIKEY = '';
const DEST_PORTAL_HAPIKEY = '';
  1. create content/src folder
  2. run one of the commands below (i recommend syncing one piece of content first)

all:

node index.js sync --all

single

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.

Our Mission

We want to make open source more sustainable. The entire platform was born from this and everything we do is in aid of this.

Interesting Articles

Thank you for checking out LiveTechHelper |
2025 © lth-dev incorporated

p-e622a1a2