Configuration Reference
CLI Options
Section titled “CLI Options”The Base Reth Node inherits Reth’s comprehensive CLI. View all options:
./target/release/base-reth-node --helpKey option categories:
- Network — Chain selection, bootnodes, P2P port
- RPC — HTTP/WS endpoints, CORS, API namespaces
- Database — Data directory, state pruning
- Metrics — Prometheus endpoint
- Engine API — JWT secret, engine API endpoint
- Logging — Log level, log format
Environment Variables
Section titled “Environment Variables”Configuration can also be set via environment variables. The devnet uses etc/docker/devnet-env for its environment.
Build Profiles
Section titled “Build Profiles”The workspace defines several Cargo build profiles:
| Profile | Use Case | Key Settings |
|---|---|---|
dev | Development | debug = "line-tables-only", incremental = false |
release | Production | opt-level = 3, lto = "thin", strip = "symbols" |
maxperf | Maximum performance | lto = "fat", codegen-units = 1 |
profiling | Performance analysis | debug = "line-tables-only", frame-pointers = true |
ci | CI builds | debug = false, minimal disk usage |
basectl
Section titled “basectl”The basectl utility provides configuration management for different network targets:
# Mainnet configurationcargo run -p basectl --release -- -c mainnet
# Sepolia testnetcargo run -p basectl --release -- -c sepolia
# Local devnetcargo run -p basectl --release -- -c devnet