Command line#

$ hmp [-h] [-V] [-w WORKSPACE] <command> ...

HydroModPy command-line interface

CommandWhat it does
hmp workspaceScaffold, list and clean a workspace
hmp projectManage the projects of a workspace and plan a [sites] project
hmp campaignRun a project of many cases, collect it, keep what a calibration found
hmp exampleList the shipped examples and install one, several or all into a workspace
hmp catalogMaintain the index of a project and its runs
hmp dataData cache of a workspace and the lockfile of a project
hmp lsList the runs of a project, or where its plan stands
hmp showShow a run, a session or a project: summary, profile, point, rank, figure, report
hmp diffCompare runs: their parameters and metrics, or a folder with the whole comparison
hmp checkCheck a run, a calibration or a whole [sites] project, every fault at once
hmp exportExport data of a run: fields, series, layers, the budget, or the whole run
hmp publishCopy a run, the summary or the project out of the tree, with PUBLICATION.json
hmp configGenerate a TOML template, validate a config, or export the JSON Schema
hmp completionPrint a shell completion script for bash, zsh, or fish
hmp privacyRemove a run for good with a purge certificate, and verify one
hmp runRun a workflow from a TOML config or a JSON run request
hmp replayPlay a sealed run or a published copy again, and class the values it computes
hmp calibrateRun a calibration from a TOML config
hmp spinupCyclic spin-up: restart each cycle until heads and lake stage converge
hmp stopAsk a running run or calibration session to stop
hmp siteDeclare the sites of a workspace
hmp processProcesses run by id in a job folder, for outside tools
hmp doctorDiagnose the local environment (Python, deps, solvers, workspace)
hmp install-binariesDownload MODFLOW/MODPATH/MT3D-USGS binaries into the HydroModPy cache
ArgumentWhat it does
-V, --versionPrint version and exit
-w, --workspace WORKSPACEWorkspace root or project directory, for the command that follows

Every command ends with a typed exit code: Exit codes. What a script or a platform reads from a command is on What a program reads.

Shared options#

These options mean the same thing on every command that takes them. The page of a command lists only what is its own.

OptionWhat it doesTaken by
--formatWhat the command prints: a table for people, json or csv (default: table)
59 commands
hmp workspace init, hmp workspace list, hmp workspace clean, hmp project new, hmp project plan, hmp project log, hmp project delete, hmp project list, hmp project import, hmp campaign array, hmp campaign case, hmp campaign collect, hmp campaign promote, hmp campaign prune, hmp example list, hmp example show, hmp example add, hmp catalog query, hmp catalog gc, hmp catalog reindex, hmp catalog delete, hmp catalog restore, hmp catalog trash, hmp catalog tag, hmp catalog note, hmp catalog rename, hmp catalog watch, hmp catalog import, hmp catalog rerun, hmp data ls, hmp data get, hmp data remove, hmp data prune, hmp data lock, hmp data archive, hmp data restore, hmp ls, hmp show, hmp diff, hmp check, hmp export, hmp publish, hmp config figures, hmp config targets, hmp privacy purge, hmp privacy verify, hmp run, hmp replay, hmp calibrate, hmp spinup, hmp stop, hmp site add, hmp site import, hmp site ls, hmp site show, hmp process ls, hmp process run, hmp doctor, hmp install-binaries
-w --workspaceWorkspace root or project directory (default: the one that holds the current directory)
54 commands
hmp workspace init, hmp workspace list, hmp workspace clean, hmp project new, hmp project plan, hmp project log, hmp project delete, hmp project list, hmp project import, hmp campaign array, hmp campaign case, hmp campaign collect, hmp campaign promote, hmp campaign prune, hmp example add, hmp catalog query, hmp catalog gc, hmp catalog reindex, hmp catalog delete, hmp catalog restore, hmp catalog trash, hmp catalog tag, hmp catalog note, hmp catalog rename, hmp catalog watch, hmp catalog import, hmp catalog rerun, hmp data ls, hmp data get, hmp data remove, hmp data prune, hmp data lock, hmp data archive, hmp data restore, hmp ls, hmp show, hmp diff, hmp check, hmp export, hmp publish, hmp config figures, hmp config resolve, hmp config targets, hmp privacy purge, hmp run, hmp replay, hmp calibrate, hmp spinup, hmp stop, hmp site add, hmp site import, hmp site ls, hmp site show, hmp doctor
--debugEvery DEBUG line, with module and line number
46 commands
hmp project new, hmp project plan, hmp project log, hmp project delete, hmp project list, hmp project import, hmp campaign array, hmp campaign case, hmp campaign collect, hmp campaign promote, hmp campaign prune, hmp catalog query, hmp catalog gc, hmp catalog reindex, hmp catalog delete, hmp catalog restore, hmp catalog trash, hmp catalog tag, hmp catalog note, hmp catalog rename, hmp catalog watch, hmp catalog import, hmp catalog rerun, hmp data ls, hmp data get, hmp data remove, hmp data prune, hmp data lock, hmp data archive, hmp data restore, hmp ls, hmp show, hmp diff, hmp check, hmp export, hmp publish, hmp config figures, hmp run, hmp replay, hmp calibrate, hmp spinup, hmp stop, hmp process ls, hmp process describe, hmp process run, hmp install-binaries
--verbosityConsole verbosity (default: normal, or [workflow] verbosity)
46 commands
hmp project new, hmp project plan, hmp project log, hmp project delete, hmp project list, hmp project import, hmp campaign array, hmp campaign case, hmp campaign collect, hmp campaign promote, hmp campaign prune, hmp catalog query, hmp catalog gc, hmp catalog reindex, hmp catalog delete, hmp catalog restore, hmp catalog trash, hmp catalog tag, hmp catalog note, hmp catalog rename, hmp catalog watch, hmp catalog import, hmp catalog rerun, hmp data ls, hmp data get, hmp data remove, hmp data prune, hmp data lock, hmp data archive, hmp data restore, hmp ls, hmp show, hmp diff, hmp check, hmp export, hmp publish, hmp config figures, hmp run, hmp replay, hmp calibrate, hmp spinup, hmp stop, hmp process ls, hmp process describe, hmp process run, hmp install-binaries
-q --quietWarnings and errors only
46 commands
hmp project new, hmp project plan, hmp project log, hmp project delete, hmp project list, hmp project import, hmp campaign array, hmp campaign case, hmp campaign collect, hmp campaign promote, hmp campaign prune, hmp catalog query, hmp catalog gc, hmp catalog reindex, hmp catalog delete, hmp catalog restore, hmp catalog trash, hmp catalog tag, hmp catalog note, hmp catalog rename, hmp catalog watch, hmp catalog import, hmp catalog rerun, hmp data ls, hmp data get, hmp data remove, hmp data prune, hmp data lock, hmp data archive, hmp data restore, hmp ls, hmp show, hmp diff, hmp check, hmp export, hmp publish, hmp config figures, hmp run, hmp replay, hmp calibrate, hmp spinup, hmp stop, hmp process ls, hmp process describe, hmp process run, hmp install-binaries
-v --verboseEvery INFO line the run emits
46 commands
hmp project new, hmp project plan, hmp project log, hmp project delete, hmp project list, hmp project import, hmp campaign array, hmp campaign case, hmp campaign collect, hmp campaign promote, hmp campaign prune, hmp catalog query, hmp catalog gc, hmp catalog reindex, hmp catalog delete, hmp catalog restore, hmp catalog trash, hmp catalog tag, hmp catalog note, hmp catalog rename, hmp catalog watch, hmp catalog import, hmp catalog rerun, hmp data ls, hmp data get, hmp data remove, hmp data prune, hmp data lock, hmp data archive, hmp data restore, hmp ls, hmp show, hmp diff, hmp check, hmp export, hmp publish, hmp config figures, hmp run, hmp replay, hmp calibrate, hmp spinup, hmp stop, hmp process ls, hmp process describe, hmp process run, hmp install-binaries
--dry-runSay what would change, and change nothing
18 commands
hmp workspace clean, hmp project delete, hmp project import, hmp campaign prune, hmp catalog gc, hmp catalog delete, hmp catalog restore, hmp catalog trash, hmp catalog rename, hmp catalog import, hmp catalog rerun, hmp data remove, hmp data prune, hmp publish, hmp privacy purge, hmp spinup, hmp site import, hmp doctor
-w --workspaceAccepted on every command. This one reads no workspace
11 commands
hmp example list, hmp example show, hmp config template, hmp config schema, hmp config wizard, hmp completion, hmp privacy verify, hmp process ls, hmp process describe, hmp process run, hmp install-binaries
--allow-hostHost a download may reach, exact name, repeatable. Default: no list, the bounds allow every public host
7 commands
hmp campaign array, hmp data get, hmp export, hmp run, hmp replay, hmp calibrate, hmp spinup
--credentialsCredentials file outside the project, read by the verb. Default: <state home>/credentials.toml
7 commands
hmp campaign array, hmp data get, hmp export, hmp run, hmp replay, hmp calibrate, hmp spinup
--max-download-bytesRaise the byte ceiling of this call past its 2 GiB default
7 commands
hmp campaign array, hmp data get, hmp export, hmp run, hmp replay, hmp calibrate, hmp spinup
-y --yesSkip the confirmation prompt
7 commands
hmp project delete, hmp campaign prune, hmp catalog delete, hmp catalog trash, hmp data remove, hmp data prune, hmp privacy purge
--siteNarrow an @-selector (@last, @best:nse) to the runs of one site
5 commands
hmp catalog delete, hmp catalog tag, hmp catalog note, hmp catalog rename, hmp catalog rerun
--overlayTOML overlay applied after base_config inheritance. Repeatable.
3 commands
hmp check, hmp run, hmp calibrate
--profileProfile the execution with pyinstrument and write an HTML report (default: <config>.profile.html next to the config).
3 commands
hmp run, hmp calibrate, hmp spinup
--setDotted TOML override applied after overlays, e.g. flow.param.K.field.value=2e-5.
3 commands
hmp check, hmp run, hmp calibrate