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
- npx (no install)
- npm (global)
- Homebrew (macOS)
Authenticate
Get an API key at app.pipecorn.com/settings/apis/keys, then either save it or export it:~/.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
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/pipecorn/config.json on Linux and macOS.