Documentation / Elite Balance

about the plugin →

WP-CLI

Every ledger operation from the command line, for scripts, staging rehearsals, and cutover days.

Commands

All commands live under wp rb-elbal.

balance

wp rb-elbal balance 42
wp rb-elbal balance [email protected]

Prints the balance and the available balance (balance minus pending holds).

credit / debit

wp rb-elbal credit 42 25.00 --note="Goodwill for late delivery" --key="goodwill:order-8817"
wp rb-elbal debit 42 10.00 --note="Correction of duplicate credit" --key="fix:2026-07-12:user42"

Adjusts a wallet. --note is strongly recommended; --key sets the idempotency key.

Pass --key whenever a script might retry: a deterministic key makes the retry replay instead of moving money twice. Without it, each invocation is a new operation. This matters in cron jobs and deploy scripts; see Developer API.

migrate

wp rb-elbal migrate wps --deactivate --yes

Runs a wallet migration synchronously and prints the reconciliation report. The source plugin must be inactive; --deactivate performs the freeze for you (plain deactivation, data kept). --yes skips the confirmation prompt. Back up your database first.

reconcile

wp rb-elbal reconcile

The integrity check: verifies every wallet equals the sum of its own transaction history and the last row’s running balance, and prints any mismatch precisely. Run it after migrations, before cutovers, or any time you want mathematical certainty. Exits non-zero on mismatch, so it slots into monitoring.

expire-holds

wp rb-elbal expire-holds --limit=100

Releases pending holds whose optional expiry time has passed. Holds never expire by default; this only affects holds explicitly given an expiry by custom code.

Withdrawals

The withdrawals queue has its own command group under wp rb-elbal withdrawals, for scripted payout days. Every action goes through the same service the admin screen uses, so the same guarantees hold: transfers are idempotent (a retried command never debits twice) and rejections release the reserved funds exactly once.

wp rb-elbal withdrawals list --status=pending
wp rb-elbal withdrawals show 12
wp rb-elbal withdrawals transfer 12 --reference=SEPA-2026-0716 --fee=2.00
wp rb-elbal withdrawals reject 12 --reason="The payout details are incomplete or incorrect"

list takes --status and --limit; show prints one request in full, payout details included. transfer requires --reference (the bank or PayPal transaction reference) and accepts --fee (deducted from the requested amount, must stay below it) and --note (internal). reject requires --reason, which is shown to the customer.

Stuck, or found a gap in these docs? Tell us and a human who works on the plugin answers.

Contact support →