Learn how to get started with local development by installing the HubSpot CLI
7.6.0
or later.
npm install -g @hubspot/cli
in your command line to install the HubSpot CLI globally. To install the tools in only your current directory instead, run npm install @hubspot/cli
.
If you prefer, you can also use Yarn. If you are using Yarn, commands are run with the yarn
prefix.
hs account auth
to connect the tools to your HubSpot account. Follow the prompts to generate a Personal Access Key in your account, then copy and paste it into the terminal to save your configuration. Learn more about CLI authentication.