npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@cli4ai/hubspot

v1.0.4

Published

HubSpot CRM CLI tool for contacts, deals, and companies

Readme

@cli4ai/hubspot

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

Installation

cli4ai add hubspot

Setup

1. Create a HubSpot Private App

  1. Go to HubSpotSettings (gear icon) → IntegrationsPrivate Apps
    • Or visit: https://app.hubspot.com/private-apps/{your-hub-id}
  2. Click Create a private app
  3. Give it a name (e.g., "cli4ai Integration")
  4. Go to the Scopes tab and enable:
    • crm.objects.contacts.read
    • crm.objects.contacts.write
    • crm.objects.deals.read
    • crm.objects.deals.write
    • crm.objects.companies.read
  5. Click Create appContinue Creating
  6. Copy the Access Token

Note: You must be a super admin in HubSpot to create private apps.

2. Configure the Token

cli4ai secrets set HUBSPOT_ACCESS_TOKEN "pat-na1-xxxxx"

Commands

Contacts

# List contacts
cli4ai run hubspot contacts
cli4ai run hubspot contacts 20          # Get 20 contacts

# Get a specific contact
cli4ai run hubspot contact 12345        # By ID
cli4ai run hubspot contact [email protected]  # By email

# Create a contact
cli4ai run hubspot contact-create [email protected] John Doe

# Update a contact
cli4ai run hubspot contact-update 12345 '{"phone":"+1234567890"}'

# Delete a contact
cli4ai run hubspot contact-delete 12345

Deals

# List deals
cli4ai run hubspot deals
cli4ai run hubspot deals 20             # Get 20 deals

# Get a specific deal
cli4ai run hubspot deal 12345

# Create a deal
cli4ai run hubspot deal-create "New Deal"
cli4ai run hubspot deal-create "Big Deal" closedwon 50000

# Update a deal
cli4ai run hubspot deal-update 12345 '{"amount":"75000"}'

# Delete a deal
cli4ai run hubspot deal-delete 12345

Companies

# List companies
cli4ai run hubspot companies

# Get a specific company
cli4ai run hubspot company 12345

Search

# Search across CRM objects
cli4ai run hubspot search contacts "[email protected]"
cli4ai run hubspot search deals "enterprise"
cli4ai run hubspot search companies "acme"

MCP Server

Use HubSpot as an MCP server for AI agents:

cli4ai start hubspot

Configure in Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "hubspot": {
      "command": "cli4ai",
      "args": ["start", "hubspot"]
    }
  }
}

Output Format

All commands output JSON for AI consumption:

{
  "contacts": [
    {
      "id": "12345",
      "email": "[email protected]",
      "name": "John Doe",
      "company": "Acme Inc",
      "lifecyclestage": "customer"
    }
  ],
  "count": 1,
  "hasMore": false
}

Links