Skip to main content
pipecorn is the command-line interface for Pipecorn. It wraps the REST API so you can run searches, enrichments, list operations, and signal streams from a terminal, a cron job, or CI, with JSON, CSV, or table output and structured exit codes. Source and issues: github.com/Pipecorn/cli-pipecorn. Package: @pipecorn/cli on npm.

Install

Authenticate

Get an API key at app.pipecorn.com/settings/apis/keys, then either save it or export it:
Credentials are stored at ~/.config/pipecorn/credentials.json with mode 0600. Precedence, highest first: --api-key on any command, then the PIPECORN_API_KEY environment variable, then the saved file.

Quick examples

See the command reference for every command and flag.

Output and exit codes

--format json|csv|table selects the output format. The default is table on a TTY and json otherwise, so pipes work without flags. -o file.csv writes to disk instead of stdout. Errors go to stderr, and the exit code identifies the failure class: Exit code 5 covers both an empty enrichment credit balance and an exhausted extraction quota. They are different things with different fixes; see Credits vs limits. Use --format json to read the underlying API error and its code field.

Configuration

Config lives at the platform’s standard XDG location, ~/.config/pipecorn/config.json on Linux and macOS.