Learn about project-specific CLI commands
hs auth
.
The current recommended version of the HubSpot CLI is 7.6.0
or later.
hs project --help
at any time in your terminal to learn more about project-specific commands.--help
.~/.hscli/config.yml
file by adding --account=accountName
to the command. For example, hs project upload --account=main
. This can be useful when switching between uploading to a sandbox account and then uploading to the main account. For example, your workflow might look like:
hs project upload --account=sandbox
.hs project upload --account=main
.v2025.2
). Learn more in the public app migration guide.
.json
config files, which need to be manually uploaded using the hs project upload
command instead.
~/.hscli/config.yml
. Specify an account by adding the --account=accountName
flag.
---account=accountName
. For example, hs project watch --account=main
.
Flag | Description |
---|---|
--project=projectName | The name of the project as set in the hsproject.json file. |
--app=appName | The name of the app as set in the app.json file. |