Install HubSpot CLI into folder
Create a folder where your website/demo will live. Because... the below code will pull from Hubspot and add the CLI language to the folder you are in. So, navigate VSCode to the folder you need to be in first. There is where you will run the below command to enable the CLI
npm install @hubspot/cli
Configurations: Need to get a .yaml file in the Hubstop account that is needed. In the same area as the last step, in terminal, type in the following
npx hs init
1) It will ask you to fill in the name with what you want to call your website.
2) Next, it will pop up the HubSpot account. You can agree to it. Make sure you are already logged into the account you want to add this to. If your not, make sure you log into the correct one in the next step.
3) Once you are in, show the key, then copy it.
Paste that key into the terminal.
4) It will prompt you to enter a name for the CLI. This is what the name of your project/website is (ie: t-shirts, energy is better, food4less).
You are now connected to the HubSpot CLI and should have some new files/folders added to the locate folder. How you can continue with themes and building the website.
How to download theme:
HubSpot CLI commands:
https://developers.hubspot.com/docs/cms/developer-reference/local-development-cli
No Comments