CLI Overview
On this page
Run the CLI with a strategy TOML file, then add command-line options.
whale-e <strategy.toml> [options]Global options
--helpprints the usage summary.--versionprints the version number.--updateforces an update check before execution.--no-updatedisables the update check for that run.
--update and --no-update cannot be used together.
Execution modes
Without an explicit mode flag, a full backtest is run and the outputs configured by your strategy and runtime configuration are produced.
- Analyze (dry run) validates the strategy, prepares grids, and computes combinations without downloading prices or running a backtest.
- Symbol Search finds supported symbols from exchange market lists before running a strategy.
- JSON Export writes structured results to
stdoutfor automation workflows. - Pine Script Export generates the Pine Script corresponding to a
GxCycombination code.
Notes
The CLI rejects some option combinations to keep behaviour explicit and predictable.
--export-pinescriptcannot be combined with--json.--analyzecannot be combined with--export-pinescript.--search-symbolis standalone and cannot be combined with a strategy file,--analyze, or--export-pinescript.- In
--analyze --jsonmode,--json-prettyis the only allowed JSON sub-option. - In
--search-symbol --jsonmode,--json-prettyis the only allowed JSON sub-option. - JSON sub-options (
--json-pretty,--json-objective-limit,--json-include-*) require--json.
For payload details, error formats, and concrete command examples, use the dedicated page for each mode.