Learn how to create and customize a new app using the HubSpot CLI
2025.2
) are initialized using the HubSpot CLI, via a series of streamlined commands. The app’s configuration (name, authentication type, etc.) and any features are specified using individual configuration files, which are bundled into a project.
The steps below walk you through the process of creating a new app using the CLI, uploading the associated project to your HubSpot account, which you can install and test in a developer test account.
hs project create
command.If you’re new to building apps on HubSpot, check out the quickstart guide that will get you up and running with a demo app using the streamlined hs get-started
command.hs account auth
command. Make sure you’re using v7.6.0 of the HubSpot CLI before proceeding. If you’ve already installed the CLI, you can update to the latest version of the CLI by running npm install -g @hubspot/cli@latest
.Create a new boilerplate project
hs project add
command in the root directory of the project.Configure the newly created project and upload it to your developer account
<file-name>-hsmeta.json
configuration files.App features are then created using a combination of subfolders from the main /src/app
directory and other configuration files as needed. Learn more about your app’s project structure and schema options in the app configuration reference documentation.uid
property of the app in the top-level app-hsmeta.json
file and give a unique name to represent your new app.*-hsmeta.json
configuration files in your project.app-hsmeta.json
file based on your local (or another non-production) OAuth server configuration.https://localhost:3000/oauth-callback
as the redirect URL configured in the boilerplate example code from the hs project create
command you ran in the previous step.hs project upload
CLI command to upload your project to your HubSpot account and automatically trigger a new build.If your app is configured to use OAuth authentication, proceed to the next step to retrieve the app’s authentication details. Otherwise, you can proceed to app installation.Add the client ID and client secret of your app to your app
oauth
, you’ll need to set up your backend OAuth server to use your app’s client ID and secret, which you can find in HubSpot:hs project open
from within your local project directory to open the project details page in HubSpot.Create a developer test account (optional) and install your app
hs project dev
to start developing your app locally. When running this command, you’ll see a link to view your project status and source code within your primary developer account as well as a link to access a local development homepage in your test account. This homepage will provide you details about the active local development session, including which components are being developed locally and how you can preview those components to test your changes in real time.