A command-line interface for Pipedrive CRM. Manage persons, organizations, deals, leads, notes, activities, and more — all from the terminal.
npm install -g pipedrive-cliOr run directly with npx:
npx pipedrive-cli person search --term "John Doe"Set your Pipedrive API token as an environment variable:
export PIPEDRIVE_API_TOKEN="your-api-token"You can find your API token in Pipedrive under Settings > Personal preferences > API.
pipedrive <resource> <action> [options]
All commands output JSON by default. Add --pretty for human-readable output.
pipedrive person search --term "John Doe"
pipedrive person search --term "John" --fuzzy
pipedrive person get --id 123
pipedrive person create --name "Jane Smith" --email "jane@example.com" --phone "+1234567890" --org-id 456
pipedrive person update --id 123 --field "name=Jane Doe" --field "job_title=CEO"
pipedrive person delete --id 123
pipedrive person fieldspipedrive org search --term "Acme Corp"
pipedrive org get --id 456
pipedrive org create --name "Acme Corp" --address "123 Main St" --website "https://acme.com"
pipedrive org update --id 456 --field "address=456 Oak Ave"
pipedrive org delete --id 456
pipedrive org fieldspipedrive deal list --org-id 456
pipedrive deal list --person-id 123 --status open
pipedrive deal create --title "New Partnership" --person-id 123 --org-id 456 --value 50000
pipedrive deal update --id 789 --field "value=75000" --field "status=won"pipedrive lead list --person-id 123
pipedrive lead create --title "Potential Customer" --person-id 123 --org-id 456pipedrive pipeline listpipedrive user listpipedrive note create --content "Had a great call today" --person-id 123
pipedrive note list --person-id 123pipedrive activity create --subject "Follow-up call" --type "call" --due-date "2025-03-15" --person-id 123
pipedrive activity list --person-id 123
pipedrive activity list --deal-id 789 --doneThe CLI auto-resolves human-readable field names for common custom fields:
- Person:
--linkedin,--github,--twitter,--discord,--job-title - Organization:
--linkedin,--website,--industry
For other custom fields, use --field key=value. Run person fields or org fields to discover available field keys.
This repo includes a SKILL.md that can be used as a Claude Code skill for AI-assisted CRM management.
MIT