hydra-cli-1.0.4 is not a library.
hydra-cli
Command-line interface for Hydra — reads EPANET .inp network descriptions from files or HTTP URLs, runs extended-period hydraulic and water quality simulation, and writes results to .rpt and .out files.
Install
For most users, Cargo install is the recommended path.
Option 1 — Pre-built binary (no Rust required)
Download the hydra binary for your platform from the releases page.
macOS — Pre-built CLI binaries are currently not notarised. If Gatekeeper blocks the binary, remove the quarantine flag:
Option 2 — Cargo (recommended)
Usage
# Run a simulation — report goes to stdout
# Write report and binary output to files
# Named flags (equivalent)
# Accept an HTTP URL as input
# JSON report
# Suppress progress output
# Print version
Exit codes
| Code | Meaning |
|---|---|
0 |
Simulation completed (warnings may appear in the report) |
1 |
Input validation error (bad INP, HTTP 4xx, missing file) |
2 |
Solver error (non-convergence or singularity) |
3 |
I/O error (file not found, permission denied, HTTP 5xx, network) |
License
AGPL v3 — see COMMERCIAL_LICENSE.md for commercial licensing options.