up2data CLI puts the entire Gateway API in your shell. Every command maps 1:1 onto a /v1/* REST route and prints JSON on stdout, so it composes naturally with jq, pipes, and scripts.
Install
Log in
~/.config/up2data/credentials.json (mode 0600). No browser available? login also accepts pasting a key from API keys.
login and set the environment variable instead:
UP2DATA_API_KEY always takes precedence over saved credentials.
Usage
Commands followup2data <group> <action> [--flags]:
Flags
Repeated flags become arrays:
--title CTO --title CEO → "title": ["CTO", "CEO"].
Exit codes & errors
Success exits0 with JSON on stdout. API errors print the structured error to stderr and exit 1 — same error shapes as REST.
Commands
Same surface, same credit costs, and same pay-on-success rules as the REST API.Enrich
Search
filters or a LinkedIn / Sales Nav URL — not both.
Related data
Batch
Signals
Account
up2data --help for the always-current list straight from the binary.
Scripting recipes
Pipe withjq — --data-only strips the meta envelope:
Configuration
Credentials file:
~/.config/up2data/credentials.json.
CLI vs MCP vs REST
All three share the same keys, credits, rate limits, and pay-on-success semantics.