Installation
pdcli is published to npm as @wavyx/pdcli
and runs on Node 20 or newer.
Requirements
Section titled “Requirements”- Node.js 20+ (LTS). Check with
node --version. - An OS keychain for credential storage (macOS Keychain, GNOME Keyring / libsecret on Linux, Windows Credential Manager). Without one, writes that store tokens hard-fail by design; reads still work via environment variables.
Install globally
Section titled “Install globally”npm install -g @wavyx/pdcliThis puts a pdcli binary on your PATH.
Run without installing
Section titled “Run without installing”npx @wavyx/pdcli deal listnpx is handy for CI or a one-off, but the global install is faster for daily use.
Verify the install
Section titled “Verify the install”pdcli version prints the version and environment:
pdcli versionpdcli 0.5.0Node: v20.11.1API base: https://acme.pipedrive.comPlatform: darwin-arm64API base shows (not set) until you authenticate.
Run the doctor
Section titled “Run the doctor”pdcli doctor runs environment checks — config store, keychain, profile, domain,
token, and live API reachability:
pdcli doctorPipedrive CLI Diagnostics
✔ Config directory accessible ✔ Keychain available ✔ Active profile set (default) ✔ Company domain set (acme) ✔ API token present ✔ API reachable
All checks passedBefore you log in, several checks fail with a hint — for example
✘ Company domain set (Run: pdcli auth login) and
✘ API token present (Run: pdcli auth login). If Keychain available fails, your
OS keychain is unreachable and pdcli cannot store credentials; use
environment-variable auth instead.
Shell completions
Section titled “Shell completions”Completions ship via the bundled oclif autocomplete plugin. Run autocomplete for
your shell to print the exact setup steps to add to your shell profile:
pdcli autocomplete bashpdcli autocomplete zshpdcli autocomplete powershellEach command prints the lines to source (and how) for that shell, then enables
tab-completion of commands and flags. Running pdcli autocomplete with no shell
argument detects your current shell.
Next steps
Section titled “Next steps”- Quickstart — authenticate and run your first commands.
- Quickstart for AI agents — env-var auth, JSON, exit codes.
- Authentication — token vs OAuth, CI patterns.