@versatly/hubspot-cli
HubSpot CLI for CRM operations: contacts, deals, companies, and tasks.
Install
npm install -g @versatly/hubspot-cli
Authentication
Option 1: Private App Token
export HUBSPOT_ACCESS_TOKEN="your_private_app_token"
Option 2: pdauth (OAuth)
pdauth connect hubspot --user telegram:5439689035
export HUBSPOT_PDAUTH_USER="telegram:5439689035"
You can also pass the user per command:
hubspot --user telegram:5439689035 contacts list
Usage
hubspot contacts list --limit 20
hubspot contacts get 123
hubspot contacts search "pedro"
hubspot contacts create --email pedro@example.com --name "Pedro Sousa"
hubspot deals list
hubspot deals list --stage closedwon
hubspot deals get 456
hubspot deals create --name "Website Retainer" --amount 2500
hubspot companies list
hubspot tasks list
hubspot tasks create --title "Follow up with lead" --due 2026-02-10
Notes
- For
tasks create, the --due value accepts ISO dates like 2026-02-10 or 2026-02-10T15:30:00.
- When using pdauth, this CLI invokes
pdauth proxy hubspot under the hood.
License
MIT (c) Versatly