Official HubSpot CLI for HubSpot projects, CMS assets, HubDB tables, test accounts, and developer account workflows.
$npm install -g @hubspot/cli
Agent Compatibility
JSON Output
Agent Skill
MCP Support
AI Analysis
HubSpot CLI is HubSpot's official command surface for building and operating HubSpot projects from the shell. It also covers CMS asset sync, HubDB and custom object work, and developer account utilities such as sandboxes, secrets, and test accounts.
What It Enables
- Create, upload, deploy, validate, download, and run local dev flows for HubSpot projects, including build status, logs, and profile-targeted deployments.
- Sync CMS assets, themes, templates, modules, serverless functions, and File Manager content between local directories and HubSpot accounts.
- Create or inspect HubDB tables and custom object schemas, manage app or account secrets, and provision sandboxes or test accounts for development work.
Agent Fit
- Explicit subcommands and flags make it usable in shell workflows, and the CLI has real JSON output for a subset of high-value commands such as project upload or deploy, test-account creation, and CMS function listing.
- Automation fit is uneven because many other commands still render tables, run long interactive dev or watch flows, or prompt for account, profile, or confirmation input.
- Works best after account and project context are already configured; the repo also includes first-party MCP setup and a checked-in MCP server for teams that want that integration model.
Caveats
- Initial auth and some setup flows are interactive, including personal access key prompts, OAuth or browser steps, and profile selection.
- The public GitHub repo is a read-only mirror, so the source is official and current enough to review but not open to public pull requests.