hydra-cli-2.2.2 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.
Breaking changes (next release)
The next published version contains two breaking CLI changes:
-vno longer means--version. The short version flag is now-V(GNU/clap convention).-vis rejected with exit code1and a hint suggesting-V(version) or-q/--quiet— it is not silently repurposed, so scripts using the old flag fail loudly.- Internal errors now exit with code
4. They previously reused exit code2, the solver-error code. Codes0–3are unchanged.
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 (redirects are followed, up to 10; plain
# http:// is accepted; response bodies up to 1 GiB; 10 s connect / 300 s
# overall timeout)
# JSON report
# Suppress progress output
# Print version
Exit codes
| Code | Meaning |
|---|---|
0 |
Simulation completed (warnings may appear in the report) |
1 |
Usage/input error (bad arguments, bad INP, HTTP 4xx, missing input file) |
2 |
Solver error (non-convergence or singularity) |
3 |
I/O error (permission denied, HTTP 5xx, network failure) |
4 |
Internal error (unexpected engine state; please report a bug) |
License
AGPL v3 — see COMMERCIAL_LICENSE.md for commercial licensing options.