CLI Overview
The onepin CLI is bundled with pip install onepin. It provides a terminal interface for all OnePin operations — useful for scripting, CI pipelines, and interactive exploration.
Command tree
Global flags
Output format
Table (default): rich columns, truncated to terminal width, color-coded status values.
JSON (--json): machine-readable, unwrapped .data payload. Pipe to jq:
Errors always go to stderr, even in --json mode. Successful data always goes to stdout.
Accessibility
NO_COLOR=1env var disables all ANSI output (honors the W3C spec)- Non-TTY detection: when stdout is not a terminal, color and progress bars are automatically disabled
ONEPIN_ASCII=1or--no-unicode: replaces Unicode glyphs (✓→[ok],✗→[err]) for Windows cmd.exe or SSH-piped environments
Authentication precedence
--api-keyflagONEPIN_API_KEYenvironment variable~/.onepin/credentialsfile (written byonepin login)
See Authentication for the full credential resolution spec.

