connect-hubspot-agent-cli
Skill by TomGranot
Installs and connects HubSpot's Agent CLI so Claude Code can run bulk and administrative HubSpot operations from the terminal. Aimed at supervised, one-off CRM admin jobs, with dry runs and safe-use rules.
Install connect-hubspot-agent-cli
Built from the published package, never by AI.
git clone --depth 1 https://github.com/TomGranot/hubspot-admin-skills /tmp/hubspot-admin-skills && mkdir -p ~/.claude/skills && cp -r /tmp/hubspot-admin-skills/skills/connect-hubspot-agent-cli ~/.claude/skills/connect-hubspot-agent-cliRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install connect-hubspot-agent-cli in Claude Code
git clone --depth 1 https://github.com/TomGranot/hubspot-admin-skills /tmp/hubspot-admin-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/hubspot-admin-skills/skills/connect-hubspot-agent-cli ~/.gemini/antigravity-cli/skills/connect-hubspot-agent-cliAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install connect-hubspot-agent-cli in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill installs HubSpot's Agent CLI and connects it to Claude Code, so the assistant can run bulk and administrative HubSpot jobs from the terminal. The CLI handles JSONL bulk writes, deletes, property and pipeline management, and workflow create, read, update and delete. The source positions it beside the remote MCP server, which is for lookups, and the repo's scripted skills, which are for repeatable work.
The skill covers two auth modes. User mode, set up with hubspot auth login, acts with the signed-in user's permissions and is the default. Admin mode uses a service key in HUBSPOT_ACCESS_TOKEN for schema and association operations. It also sets safe-use rules such as dry runs, exporting records before mutating, and confirming the portal with hubspot whoami. The CLI is in beta, so the source frames it as a tool for supervised administrative sessions.
Written from the project's SKILL.md and checked against it.
What it can do
- Bulk JSONL writesPipes JSONL records from stdin into object update and other mutation commands.
- Deletes and archivesRuns guarded delete and archive operations on CRM objects, properties and other records.
- Property managementLists, gets, creates, updates, deletes and batch-archives properties.
- Pipeline managementLists, gets, creates, updates and deletes pipelines and their stages.
- Workflow CRUDLists, gets, creates, updates and deletes HubSpot workflows from the terminal.
- Dry runsPreviews mutation commands with --dry-run before the real call is made.
- Local history logKeeps a local history of destructive operations run from the machine.
What you need
- Claude Code with permission to run shell commands
- A HubSpot user whose permissions cover the work
- HubSpot Agent CLI, available on all HubSpot plans
- Super Admin approval if the portal restricts app connections
- Allowlisting of api.hubapi.com on Claude Team or Enterprise, if required by an admin
Try asking
- Install the HubSpot Agent CLI and sign me in to my portal
- Run a dry run that updates contact records from this JSONL file
- Export the contacts I will change to data/audit-logs before any write
Good to know
- The Agent CLI is in beta and its commands and flags may change without notice
- HubSpot has not published the CLI's rate and size limits
- Revenue records are read-only unless a Super Admin opts into the revenue beta
- In user mode the CLI can only see what your user can see, so exports may be partial
Security check
C- Downloads a script from the internet and runs itIn
skills/connect-hubspot-agent-cli/SKILL.md:curl | sh
Checked automatically: skills/connect-hubspot-agent-cli/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to connect-hubspot-agent-cli
All alternatives →Scores inbound HubSpot leads on engagement, company fit and urgency, then ranks the ones worth a call today. Built for sales owners who need to decide who to call first.
Builds a ranked list of prospects by deriving an ideal customer profile from existing customers. It finds look-alike companies and decision-makers, then scores them. Built for owners who need new customers.
Writes prospect outreach and follow-up sequences in the owner's own voice, learned from their sent mail. Queues every send for approval and logs each touch to the CRM. Runs draft-only when no mail connector is available.
Writes and runs B2B cold outbound, including cold emails, follow-up sequences, LinkedIn messages and multichannel cadences. Built for sales development and outbound teams that want replies rather than template blasts.
Speed to Lead checks inbound inquiries from web forms, the shared inbox, and the CRM, then drafts replies for the owner to approve. It is for owners who lose leads because nobody replies fast enough.
Helps write, build and improve B2B cold email and follow-up sequences for prospects who did not opt in. Covers SDR and founder outreach.
Compare with lead-triage, lead-finder or outreach-composer
connect-hubspot-agent-cli: common questions
Is the HubSpot Agent CLI the same as the hs developer CLI?
No. The source says the binary is hubspot and it is separate from hs, HubSpot's developer CLI for building apps and CMS projects. The hs mcp setup command installs a developer MCP server that does not administer CRM data.
Should I use the CLI or the scripted skills for bulk HubSpot changes?
The source says to prefer a scripted skill when one exists for the job, because it has a threshold, an export and a rollback note. The CLI is meant for one-off bulk and admin jobs that no skill covers.
Can deleted HubSpot workflows be restored?
The source says deleted workflows are not restorable through any API. Deleted CRM records can be restored from the recycling bin for 90 days.
How do I install connect-hubspot-agent-cli?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is connect-hubspot-agent-cli free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is connect-hubspot-agent-cli safe to use?
It scores 58 of 100. Grades: maintenance A, licence A, quality B. Security check: grade C (downloads a script from the internet and runs it). Review the code before you install. How grades work.
What are alternatives to connect-hubspot-agent-cli?
Similar skills: lead-triage, lead-finder, outreach-composer, cold-email.
