For the complete CLI reference with all commands, see the CLI Integration Guide.
Install
Running Strategies
| Flag | Values | Default | Description |
|---|---|---|---|
--mode | paper, live | from strategy | Override trading mode |
--dashboard / --no-dashboard | - | from strategy | Override dashboard setting |
--log-level | debug, info, warn, error | info | Log level for Python + Rust |
hz.run() arguments.
Trading from the CLI
Wallet Analytics
Fund Management
Equity & Options
JSON Output
Every command supports--json for scripting:
Database Commands
For offline analysis of persisted strategy data:How CLI Overrides Work
When running strategies, the CLI sets overrides in the_cli_overrides dictionary before loading the strategy module:
- CLI parses
--modeand--dashboardflags - Overrides are stored in
horizon.strategy._cli_overrides - The strategy file is loaded and executed
- When
hz.run()is called, it reads_cli_overridesand applies them
hz.run() in the strategy file always runs. The CLI just changes its arguments.
All Commands
Runhorizon --help for the full command list, or see the CLI Integration Guide for detailed documentation of all 50+ commands.