pixcli
CLI Commands

CLI Overview

Complete reference for all pixcli commands and global options

Command Tree

pixcli
├── balance              Show account balance
├── charge
│   ├── create           Create a new Pix charge
│   ├── get <txid>       Get charge details
│   └── list             List recent charges
├── pix
│   ├── list             List received Pix transactions
│   └── get <e2eid>      Get transaction details
├── qr
│   ├── generate         Generate a static Pix QR code
│   └── decode           Decode a BR Code payload
├── webhook
│   ├── register         Register a webhook URL
│   ├── get              Get webhook for a key
│   ├── remove           Remove a webhook
│   └── listen           Start local webhook listener
└── config
    ├── init             Interactive setup wizard
    └── show             Show current configuration

Global Flags

These flags work with any command:

FlagShortDefaultDescription
--profile <name>-pFrom configPSP profile to use
--output <format>-ohumanOutput format
--sandboxfalseForce sandbox environment
--verbose-vfalseEnable debug logging
--quiet-qfalseSuppress non-essential output

Output Formats

pixcli supports three output formats:

Human (default)

Colored, formatted output for terminal use:

pixcli balance
💰 Account Balance
   Available: R$1,250.00

JSON

Machine-readable JSON output, ideal for scripting:

pixcli balance --output json
{
  "available": "1250.00"
}

Table

Structured table output for lists:

pixcli charge list --output table
┌──────────────┬─────────┬────────┬─────────────────────┐
│ TxID         │ Amount  │ Status │ Created             │
├──────────────┼─────────┼────────┼─────────────────────┤
│ abc123def456 │ R$25.00 │ ATIVA  │ 2026-03-19T10:00:00 │
│ xyz789ghi012 │ R$50.00 │ PAGA   │ 2026-03-18T15:30:00 │
└──────────────┴─────────┴────────┴─────────────────────┘

Exit Codes

CodeMeaning
0Success
1General error (invalid config, network failure, etc.)
2Invalid arguments or usage error

On this page