Skip to navigation

IXOPAY CLI

Command-line interface for the IXOPAY Payment Platform API.

Installation

Shell (macOS / Linux)

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/fern-demo/ixopay-cli/releases/latest/download/fern-cli-sdk-installer.sh | sh

PowerShell (Windows)

powershell -ExecutionPolicy ByPass -c "irm https://github.com/fern-demo/ixopay-cli/releases/latest/download/fern-cli-sdk-installer.ps1 | iex"

Build from source

If you prefer to build from source, install the Rust toolchain and run:

cargo build --release
./target/release/ixopay --help

Authentication

Set the following environment variable(s) before using the CLI:

export IXOPAY_USERNAME="<your credential>"
export IXOPAY_PASSWORD="<your credential>"

A .env file in the working directory is also supported — the CLI auto-loads it on startup.

Quick start

List available commands:

ixopay --help

Call an API endpoint:

ixopay <resource> <method>

Run ixopay <resource> --help to see available methods for a resource.

Usage

Every API resource appears as a subcommand (e.g. ixopay <resource> <method>). Run ixopay <resource> --help to see available methods.

Provide request parameters as flags or as JSON:

ixopay <resource> <method> --json '{"key": "value"}'

Documentation

See the full command reference for every resource and method.

Advanced

Common flags

These flags are available on every operation:

FlagDescription
--dry-runValidate the request locally and print the HTTP request without sending it
--json <JSON|->Supply a request body as JSON (or - to read stdin)
--params <JSON>Merge extra parameters as JSON (overrides individual flags)
--format <json|table|yaml|csv>Output format (default json)
--output <PATH>Write binary responses to a file
--base-url <URL>Override the API base URL
--no-extractPrint the full response body instead of the x-fern-sdk-return-value extraction
--no-retryDisable retries declared by x-fern-retries, including network errors
-q, --quietSuppress stdout output on success (errors still go to stderr)

Operations the spec describes how to page (via x-fern-pagination or a root page_token parameter) also accept:

FlagDescription
--page-allAuto-paginate and stream results as NDJSON
--page-limit <N>Max pages to fetch when auto-paginating (default 10)
--page-delay <MS>Delay between page fetches in milliseconds (default 100)
--no-pagerDisable the pager even on interactive terminals

Operations the spec marks as streaming (via x-fern-streaming) also accept:

FlagDescription
--no-streamBuffer the streaming response and print it as a single value once complete

Environment variables

VariableDescription
IXOPAY_USERNAMEBasic auth username (see Authentication)
IXOPAY_PASSWORDBasic auth password (see Authentication)
IXOPAY_BASE_URLOverride the API base URL
IXOPAY_CA_BUNDLEPath to PEM file with extra trust roots (or SSL_CERT_FILE)
IXOPAY_INSECURE=1Skip TLS verification (debugging only)
IXOPAY_PROXYHTTP(S) proxy URL
IXOPAY_TIMEOUT_SECSTotal request timeout in seconds

Standard environment variables (HTTPS_PROXY / HTTP_PROXY / NO_PROXY / SSL_CERT_FILE) are also honored.

Output formats

Use the global --format flag to control output. Supported values: json, table, yaml, csv, jsonl, raw, http.

Without --format, output (including errors) is table when stdout is a terminal and json when it is piped or redirected — so scripts and agents get JSON by default. Pass --human to keep the interactive rendering when piping to a pager, and --format json to pin JSON in a terminal.

# Pipe JSON output through jq
ixopay <resource> <method> --format json | jq
# Keep the human rendering even when piped
ixopay <resource> <method> --human | less
# Machine-readable catalog of every operation (same as --schema)
ixopay --help --format json | jq '.operations | length'

Shell completion

Generate shell completion scripts:

ixopay completion <bash|zsh|fish|powershell>

Attribution

Built on fern-cli-sdk, Copyright Fern, licensed under the Apache License 2.0.