@versatly/hubspot-cli
v1.0.0
Published
HubSpot CLI for CRM operations (contacts, deals, companies, tasks).
Readme
@versatly/hubspot-cli
HubSpot CLI for CRM operations: contacts, deals, companies, and tasks.
Install
npm install -g @versatly/hubspot-cliAuthentication
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 listUsage
# Contacts
hubspot contacts list --limit 20
hubspot contacts get 123
hubspot contacts search "pedro"
hubspot contacts create --email [email protected] --name "Pedro Sousa"
# Deals
hubspot deals list
hubspot deals list --stage closedwon
hubspot deals get 456
hubspot deals create --name "Website Retainer" --amount 2500
# Companies
hubspot companies list
# Tasks
hubspot tasks list
hubspot tasks create --title "Follow up with lead" --due 2026-02-10Notes
- For
tasks create, the--duevalue accepts ISO dates like2026-02-10or2026-02-10T15:30:00. - When using pdauth, this CLI invokes
pdauth proxy hubspotunder the hood.
License
MIT (c) Versatly
