For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
  • Get Started
    • Introduction
    • Quickstart
    • Authentication
  • Python SDK
    • Install
    • Usage
    • Errors
  • CLI
    • Overview
LogoLogo
On this page
  • Command tree
  • Global flags
  • Output format
  • Accessibility
  • Authentication precedence
  • Exit codes
CLI

CLI Overview

Was this page helpful?
Previous

login

Next
Built with

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

onepin --help
onepin --version
onepin login [--key KEY] [--base-url URL]
onepin logout
onepin whoami
onepin workflows list
onepin workflows show <WORKFLOW_ID>
onepin workflows run <WORKFLOW_ID> [--watch]
onepin workflows runs <WORKFLOW_ID> [--limit N]
onepin voices list [--limit N] [--locale LOCALE]
onepin templates list
onepin templates show <TEMPLATE_ID>
onepin templates run <TEMPLATE_ID> [--name NAME]
onepin uploads create --file PATH --category {script|dictionary}
onepin uploads confirm <UPLOAD_ID> --workflow-id WORKFLOW_ID
onepin uploads delete <UPLOAD_ID>

Global flags

FlagPurpose
--api-key TEXTOverride credential resolution — defeats env var and credentials file
--base-url TEXTOverride API base URL (default: https://api.onepin.ai)
--workspace TEXTSend X-Workspace-Id header (optional — key already encodes the workspace)
--jsonEmit JSON to stdout instead of rich tables
--no-colorDisable ANSI colors (also honored via NO_COLOR=1 env var)
--verbose / -vLog HTTP request/response details to stderr (auth headers redacted)
--debugVerbose mode plus full tracebacks on failure
--helpShow help and exit
--versionPrint onepin <X.Y.Z> and exit

Output format

Table (default): rich columns, truncated to terminal width, color-coded status values.

JSON (--json): machine-readable, unwrapped .data payload. Pipe to jq:

$onepin workflows list --json | jq '.[].id'

Errors always go to stderr, even in --json mode. Successful data always goes to stdout.

Accessibility

  • NO_COLOR=1 env 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=1 or --no-unicode: replaces Unicode glyphs (✓ → [ok], ✗ → [err]) for Windows cmd.exe or SSH-piped environments

Authentication precedence

  1. --api-key flag
  2. ONEPIN_API_KEY environment variable
  3. ~/.onepin/credentials file (written by onepin login)

See Authentication for the full credential resolution spec.

Exit codes

CodeMeaning
0Success
1Any error — auth, network, server, validation
130Interrupted (Ctrl+C) during --watch or a long operation