-
Create a HubSpot development sandbox for testing and development purposes. Link
-
Create a personal CMS access key to enable authenticated access to your account. Link
npm install- install all development dependencies- Add to
.envfile your portal name andPERSONAL_ACCESS_KEYRead more npm run upload- upload all local changes to remote HubSpot portal (one-directional sync [local development -> Hubspot])
npm run watch- watch process to automatically upload all local changes to remote HubSpot portalnpm run upload- upload all local changes to remote HubSpot portalnpm run build- to build and compile all local CSS and JS assets. It is included onuploadcommand.npm run fetchModules- fetch only published modules from remote HubSpot portal. Be careful with this command because it will rewrite all local changes.npm run fetchAll- fetch all published changes from remote HubSpot portal. Be careful with this command because it will rewrite all local changes.npm test- run all tests locally
- add
.envfile to your theme - add the name of the portal with the prefix
hub_as the variable name and thepersonal access keyas the variable value - Run Hubspot Theme commands (fetch, upload, watch)
hub_sandbox=personal_access_key
hub_project1=personal_access_key
hub_project2=personal_access_key