CLI Reference#
HydroModPy exposes two equivalent console entry points:
hmp --help
hydromodpy --help
The documentation uses hmp for brevity. This page lists the registered
top-level subcommands. Use hmp <command> --help for the complete argparse
reference of one command.
Command inventory#
Command |
Main role |
Typical use |
|---|---|---|
|
Workspace lifecycle and global-index registration |
|
|
Project lifecycle |
|
|
Catalog browsing and maintenance |
|
|
Workflow execution |
Execute |
|
Calibration shortcut |
Top-level wrapper around |
|
Developer diagnostics and tooling |
|
|
Figure rendering and UI |
|
|
Reporting |
|
|
Site-selection workflows |
Validate, plan, and apply upstream basin site-selection configurations. |
|
Workspace data cache and |
|
|
Test runner |
Run unit, regression, validation, PETSc, or benchmark-oriented test subsets. |
|
Environment diagnosis |
Check Python, dependencies, solver binaries, workspace, data cache, and result-storage consistency. |
|
Solver binaries |
Download MODFLOW, MODPATH, and MT3D-USGS binaries into the managed
HydroModPy cache. Use |
|
Data governance |
|
|
Workspace audit log |
|
Workflow execution flags#
hmp run accepts workflow-independent TOML files, but checkpoint and step
flags only apply to [workflow].mode = "simulation":
Flag |
Effect |
|---|---|
|
Print the resolved workflow, sections, and simulation pipeline steps without executing the run. |
|
Resume a simulation from the latest checkpoint for the given run id. |
|
Resume from a named or indexed pipeline step. |
|
Stop after a named or indexed pipeline step. |
|
Disable checkpoint persistence for the current simulation run. |
|
Reject fresh downloads when a lockfile is present; every artifact must already exist and match its recorded hash. |
|
Persist results without rendering configured display figures. |
|
Force sequential execution of cohort runs. Parallel cohort execution is enabled by default when the workflow declares multiple independent runs. Use this flag for debugging, deterministic step ordering, single-CPU environments, or when parallel I/O contention is observed. |
|
Merge an extra TOML payload after the |
|
Override one dotted TOML path after overlays, for example
|
Override precedence is, from lowest to highest: defaults, base_config
chain, --overlay files, then --set values. The XDG-aligned
environment overrides HMP_CACHE_HOME, HMP_STATE_HOME, and
HMP_BIN only relocate machine caches and binary directories; they
do not patch config fields.
Nested command families#
Some commands expose their own subcommands:
hmp dev config template --help
hmp dev config check --help
hmp dev schema export --help
hmp data list --help
hmp report catchment --help
hmp dev lock verify --help
hmp site-selection plan --help
hmp test validation --help
Use CLI quickstart for the first-run path and
Results and Exports for catalog, inspection, and export workflows.
Use Catchment HTML Reports for the catchment_report.toml contract.