Skip to content

kieranja/hubspot-content-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published