-
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
.env
file your portal name andPERSONAL_ACCESS_KEY
Read 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 onupload
command.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
.env
file to your theme - add the name of the portal with the prefix
hub_
as the variable name and thepersonal access key
as 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