Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@cyberdrk/hs

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cyberdrk/hs

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

latest
Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
7
-58.82%
Maintainers
1
Weekly downloads
 
Created
Source

HubSpot CLI

A fast, focused CLI for HubSpot CRM operations.

Installation

npm install -g @cyberdrk/hs

Or from source:

git clone https://github.com/cyberdrk305/hubspot.git
cd hubspot
npm install
npm run build
npm link

Quick Start

  • Create a Private App in HubSpot:

    • Go to Settings > Integrations > Private Apps (under "Legacy Apps")
    • Create app with required scopes (see below)
    • Copy the access token (starts with pat-)
  • Configure the CLI:

    hs auth
    
  • Verify connection:

    hs check
    

Required Scopes

When creating your Private App, grant these scopes:

CRM:

  • crm.objects.contacts.read / crm.objects.contacts.write
  • crm.objects.companies.read / crm.objects.companies.write
  • crm.objects.deals.read / crm.objects.deals.write
  • crm.objects.owners.read
  • crm.schemas.contacts.read (for custom properties)
  • crm.schemas.companies.read
  • crm.schemas.deals.read

Tickets:

  • tickets (read/write)

Settings:

  • account-info.security.read (for portal info)

Usage

Contacts

hs contacts                              # List contacts
hs contact <id>                          # Get contact
hs contact-search "query"                # Search
hs contact-create --email user@example.com --firstname John
hs contact-update <id> --lastname Smith

Companies

hs companies                             # List companies
hs company <id>                          # Get company
hs company-search "query"                # Search

Deals

hs deals                                 # List deals
hs deal <id>                             # Get deal
hs deal-search "query"                   # Search
hs pipelines                             # List pipelines

Tickets

hs tickets                               # List tickets
hs ticket <id>                           # Get ticket
hs ticket-search "query"                 # Search

Notes & Tasks

hs notes <objectType> <id>               # List notes
hs note-create <objectType> <id> "body"  # Create note
hs tasks                                 # List tasks
hs task <id>                             # Get task
hs task-create --subject "Task" --due "2024-12-31"

Associations

hs associations <from> <id> <to>         # List associations
hs associate <from> <id1> <to> <id2>     # Create association

Output Formats

  • Default: Colored terminal output
  • --json: JSON for scripting
  • --markdown: Markdown tables

Configuration

Config stored at ~/.config/hs/config.json5:

{
  accessToken: "pat-xxx",
  portalId: "12345678",
  defaultFormat: "plain",
  defaultLimit: 20
}

License

MIT

Keywords

hubspot

FAQs

Package last updated on 29 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts