Created to help sync hubspot production to Dev's Sandboxes
- Install Deno
- Create a
.envfile - Add
HAPI_KEY_DESTINATION, API key generated on Dev's Sandbox account - Add
HAPI_KEY_SOURCE, API key generated on Production account - Install Solar Installation command below
solar --pages=sync: Sync all pages.solar --hubdb=sync: Sync all tables in hubdb.solar --blogs=sync: Sync all Blogs and Blog Posts.solar --blogs=delete: Delete all Blogs along with Blog Postssolar --templates=sync: Sync all templates.solar --all=sync: Sync all Pages, HubDB Tables and Blogs
deno install -n solar --allow-net --allow-env --allow-read --allow-write --no-check -f https://raw.githubusercontent.com/o3world/solar-sail/main/solar.bundle.ts
To reinstall:
deno install -n solar --reload --allow-net --allow-env --allow-read --allow-write --no-check -f https://raw.githubusercontent.com/o3world/solar-sail/main/solar.bundle.ts
deno bundle main.ts > solar.bundle.ts
- Make sure you've exported the PATH variable so the deno bin is visible to your terminal.