Command-Line Interface¶
The CLI entry point is implemented in bff/cli.py.
Public Commands¶
bff build CONFIG.yamlBuild equilibrated systems and seeded production trajectories.bff prepare-assets CONFIG.yamlPackage seeded FFMD assets and staged CP2K snapshot assets.bff evaluate-snapshots CONFIG.yamlEvaluate staged CP2K snapshots.bff sample CONFIG.yamlSample force-field parameters and run FFMD campaigns.bff analyze CONFIG.yamlAnalyze sampled and reference trajectories into matched QoI datasets.bff fit CONFIG.yamlFit surrogate models from analyzed QoI datasets.bff learn CONFIG.yamlRun Bayesian posterior learning over force-field parameters.bff validate CONFIG.yamlRerun selected parameter samples for validation.bff examplesCopy or download the repository example tree.bff versionPrint the installed package version.
Hidden internal commands also exist for scheduled jobs:
bff md CONFIG.yamlbff evaluate-snapshot-job CONFIG.yaml
Config Philosophy¶
Each top-level workflow uses one focused config file:
- build config: how to equilibrate and seed production trajectories
- prepare-assets config: how to package FFMD starts and stage CP2K inputs
- evaluate-snapshots config: how to run CP2K snapshot jobs
- sample config: how to turn prepared assets into a sampled FFMD campaign
- analyze config: how to compute observables from trajectories
- fit config: how to train surrogates
- learn config: which models and MCMC settings to use for posterior learning
- validate config: how to rerun chosen parameter samples
Detailed key-by-key documentation is in the configuration reference.
Shell Completion¶
bff uses Typer's native shell-completion support. To enable completion in the
current bash session, run:
eval "$(bff --show-completion bash)"
For zsh, run:
eval "$(bff --show-completion zsh)"
Add the matching line to ~/.bashrc or ~/.zshrc if you want completion in
future shells. After completion is loaded, bff <TAB> should offer:
buildprepare-assetsevaluate-snapshotssampleanalyzefitlearnvalidateexamples