hubspot

📁 skillhq/hubspot 📅 Jan 29, 2026
3
总安装量
2
周安装量
#59069
全站排名
安装命令
npx skills add https://github.com/skillhq/hubspot --skill hubspot

Agent 安装分布

mcpjam 2
kiro-cli 2
kilo 2
claude-code 2
antigravity 2
windsurf 2

Skill 文档

HubSpot CLI

HubSpot CRM CLI for managing contacts, companies, deals, and engagements.

When to Use

Use this skill when the user:

  • Asks to look up a contact, company, or deal in HubSpot
  • Wants to search HubSpot CRM for specific records
  • Needs to create or update contacts, deals, or companies
  • Asks about deal pipelines or stages
  • Wants to view or create notes/tasks
  • Needs to check associations between CRM objects

Install

npm install -g @skillhq/hubspot

Authentication

First-time setup requires a Private App access token from HubSpot:

  1. Go to HubSpot Settings > Integrations > Private Apps (under “Legacy Apps”)
  2. Create a new Private App with required scopes
  3. Run hubspot auth and paste the access token (starts with pat-)
hubspot auth

Commands

Auth & Status

hubspot auth                    # Configure access token
hubspot check                   # Verify authentication
hubspot whoami                  # Show portal info

Contacts

hubspot contacts                          # List contacts
hubspot contacts -n 50                    # List 50 contacts
hubspot contact <id>                      # Get contact details
hubspot contact-search "john"             # Search contacts
hubspot contact-create --email x@y.com --firstname John
hubspot contact-update <id> --phone "555-1234"

Companies

hubspot companies                         # List companies
hubspot company <id>                      # Get company details
hubspot company-search "acme"             # Search companies

Deals

hubspot deals                             # List deals
hubspot deals --pipeline <id>             # Filter by pipeline ID
hubspot deals --pipeline-name "WCP"       # Filter by pipeline name (fuzzy match)
hubspot deals --stage <id>                # Filter by stage ID
hubspot deal <id>                         # Get deal details
hubspot deal-search "enterprise"          # Search deals
hubspot pipelines                         # List pipelines and stages
hubspot pipelines --search "wallet"       # Search pipelines by name

Tickets

hubspot tickets                           # List tickets
hubspot ticket <id>                       # Get ticket details
hubspot ticket-search "issue"             # Search tickets

Notes & Tasks

hubspot notes contacts <id>               # List notes for contact
hubspot note-create contacts <id> "Note text"
hubspot tasks                             # List tasks
hubspot task <id>                         # Get task details
hubspot task-create --subject "Follow up" --due "2024-12-31" --priority HIGH

Associations

hubspot associations contacts <id> companies    # List company associations
hubspot associate contacts <id1> deals <id2>    # Create association

Output Formats

All commands support:

  • Default: Colored terminal output
  • --json: JSON output for scripting (clean, pipeable to jq)
  • --markdown: Markdown table output
hubspot contacts --json              # JSON format
hubspot deals --markdown             # Markdown tables

JSON Output & Piping

JSON output is clean and can be piped directly to jq:

# Get pipeline ID for first deal
hubspot deals --json | jq '.results[0].pipeline'

# Filter deals by pipeline and extract names
hubspot deals --pipeline 831085590 --json | jq '.results[].dealname'

# Get contact emails
hubspot contacts --json | jq -r '.results[].email'

# Count deals in a stage
hubspot deals --pipeline 831085590 --stage 1231737429 --json | jq '.results | length'

Note: Pagination info is included in the JSON response as .paging.next.after.

Pagination

List commands support pagination:

hubspot contacts -n 50               # Limit to 50 results
hubspot contacts --after <cursor>    # Next page using cursor

Examples

Check authentication:

hubspot check

Search for a contact:

hubspot contact-search "john@example.com"

View deal pipeline stages:

hubspot pipelines

Create a task:

hubspot task-create --subject "Schedule demo" --priority HIGH --due "2024-12-15"

Limitations

  • Views not supported: The CLI cannot filter by HubSpot saved view IDs from URLs
  • When given a view URL like /views/57091019/, you must manually identify which pipeline the view filters and use --pipeline <id> instead
  • Use hubspot pipelines to list all pipelines and their IDs

View URL Workaround

If given a HubSpot view URL like https://app.hubspot.com/contacts/.../views/57091019/list:

  1. Ask the user which pipeline it filters
  2. Open the view in browser to identify the pipeline
  3. Use hubspot pipelines and match by name

The view ID in the URL is not a pipeline ID – they are different concepts in HubSpot.

Notes

  • IDs are HubSpot object IDs (numeric strings)
  • Dates use ISO format (YYYY-MM-DD or full ISO timestamp)
  • Priority values: LOW, MEDIUM, HIGH
  • Task status values: NOT_STARTED, IN_PROGRESS, COMPLETED