[HEADLESS_SCAN][REPLAY_RAW][REPLAY_MEMORY][ENV_OVERRIDE]

CLI Operational Commands & Flags

Complete command-line interface specification for running Zenth in TUI, headless scan, backtest replay, and memory administration modes.

Operational Modes & CLI Syntax

Run Zenth in interactive TUI, single-pass evaluation, or historical backtest mode:

CLI CommandMode ExecutionOperational Behavior
zenth / npm startTUI InteractiveBoots fullscreen touch/mouse terminal with pinned HUD
zenth scanHeadless ScanSingle-pass real-time scan on default exchange feed
zenth scan -e <venue>Venue FlagScan on binance, coinbase, okx, upbit, bitget, or xt
zenth scan -s <pair>Symbol FlagScan on specific pair (e.g. eth_usdt, sol_usdt)
zenth replay:rawRaw ReplayHistorical backtest baseline without adaptive memory
zenth replay:memoryMemory ReplayBacktest with Supabase adaptive filter enabled
zenth memory:resetMemory ResetTruncates and re-initializes database ledger tables

Environment Variables Reference

All parameters configured in `.env` or passed via environment overrides:

Variable KeyDefault ValueValid OptionsDescription
STORAGE_BACKENDsqlitesqlite, postgres, mongodb, supabase, localPersistence database engine
EXCHANGEbinancebinance, coinbase, okx, upbit, bitget, xtPrimary market data venue
DEFAULT_SYMBOLbtc_usdtAny valid tickerDefault target market pair
DEFAULT_INTERVAL5m1m, 5m, 15m, 30m, 1h, 4h, 1dCandlestick timeframe
DEFAULT_QUANTITY0.01Float > 0Base order quantity per signal
MAX_POSITION_NOTIONAL_CAP1000.0Float <= 5000.0Hard notional ceiling ($ USD)
STOP_LOSS_PCT1.50.5 to 5.0Downside Stop-Loss bracket %
TAKE_PROFIT_PCT3.01.0 to 10.0Upside Take-Profit bracket %
POLL_INTERVAL_SECONDS15Integer >= 5Candle polling frequency in seconds
Last verified: August 2026Maintained by Zenth Core