Datpaq CLI
The official command-line interface for Datpaq APIs. Discover endpoints, run requests, generate snippets, and wire Datpaq into scripts, CI, and agents from your terminal. Get your API_Key in the dashboard.

Install
Install with Go, a prebuilt Homebrew tap is planned and will be announced when the formula is published.
go install github.com/datpaq/cli/cmd/datpaq@latestAuthenticate
Pick whichever fits your environment:
Browser SSO (recommended)
datpaq auth loginPaste a dashboard token
datpaq auth set-token YOUR_DATPAQ_API_KEYEnvironment variable (CI)
export DATPAQ_API_KEY=YOUR_DATPAQ_API_KEYCredentials are stored at ~/.config/datpaq/config.toml with file mode 0600.
Run your first command
datpaq api lists every active interface and a short description. From there you can drill into a method and run it.
# Browse what's available
datpaq api
# Run an endpoint
datpaq ip-geolocation get --ip 8.8.8.8 --jsonCopy-paste code samples
datpaq sample emits a ready-to-run snippet for any endpoint in curl, js, py, or go.
datpaq sample ip-geolocation get --lang pyAgent / CI mode
Append --agent to any command and the CLI switches to --json --compact --no-input --no-color --yes in one flag — predictable output for scripts, CI jobs, and MCP-aware agents.
datpaq ip-geolocation get --ip 8.8.8.8 --agent | jq '.country'Health check
datpaq doctor verifies your config, stored auth, environment variables, and live API reachability. Run it first whenever something looks off.
datpaq doctorMCP server
datpaq-mcp is a sibling binary that exposes every CLI command as an MCP tool for Claude Desktop and other MCP-capable clients.
go install github.com/datpaq/cli/cmd/datpaq-mcp@latest