Files
openfe/docs/guide/cli/cli_basics.rst
Irfan Alibay 8fcd47b4df Update the userguide CLI docs to mention resuming (#1878)
* Modify quickrun to allow resuming

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* store protocol dag using transformation key

* use assert_click_success

* Update the CLI quickrun help info

* Add userguide documentation on how to use quickrun

* this reference instead?

* fix things a little bit

* update the title

* Update environment.yml

* Update docs/guide/cli/quickrun.rst

Co-authored-by: Alyssa Travitz <31974495+atravitz@users.noreply.github.com>

* update for new name for now

* Update docs/guide/cli/quickrun.rst

Co-authored-by: Alyssa Travitz <31974495+atravitz@users.noreply.github.com>

* update for new changes

* Add to the execution guide instead

* some fixes

* Add `>` where it's a CLI command

* formatting fixes

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alyssa Travitz <alyssa.travitz@omsf.io>
Co-authored-by: Alyssa Travitz <31974495+atravitz@users.noreply.github.com>
2026-03-30 14:47:02 -07:00

77 lines
3.1 KiB
ReStructuredText

CLI basics
==========
The ``openfe`` command consists of several subcommands. This is similar to
tools like ``gmx``, which has subcommands like ``gmx mdrun``, or ``conda``,
which has subcommands like ``conda install``.
To get a list of the subcommands and their descriptions, call ``openfe`` (or
``openfe -h``):
.. TODO autogenerate using sphinxcontrib-programoutput
.. code:: none
Usage: openfe [OPTIONS] COMMAND [ARGS]...
This is the command line tool to provide easy access to functionality from
the OpenFE Python library.
Options:
--version Show the version and exit.
--log PATH logging configuration file
-h, --help Show this message and exit.
Network Planning Commands:
plan-rhfe-network Plan a relative hydration free energy network, saved as
JSON files for the quickrun command.
plan-rbfe-network Plan a relative binding free energy network, saved as
JSON files for the quickrun command.
view-ligand-network Visualize a ligand network
Quickrun Executor Commands:
gather Gather result jsons for network of RFE results into a TSV file
quickrun Run a given transformation, saved as a JSON file
Miscellaneous Commands:
fetch Fetch tutorial or other resource.
charge-molecules Generate partial charges for a set of molecules.
test Run the OpenFE test suite
The ``--log`` option takes a logging configuration file and sets that
logging behavior. If you use it, it must come before the subcommand name.
You can find out more about each subcommand by putting ``--help`` *after*
the subcommand name, e.g., ``openfe quickrun --help``, which returns
.. code:: none
Usage: openfe quickrun [OPTIONS] TRANSFORMATION
Run the transformation (edge) in the given JSON file.
Simulation JSON files can be created with the :ref:`cli_plan-rbfe-network`
or from Python a :class:`.Transformation` can be saved using its to_json
method::
transformation.to_json("filename.json")
That will save a JSON file suitable to be input for this command.
Running this command will execute the simulation defined in the JSON file,
creating a directory for each individual task (``Unit``) in the workflow.
For example, when running the OpenMM HREX Protocol a directory will be
created for each repeat of the sampling process (by default 3).
Options:
-d, --work-dir DIRECTORY Directory in which to store files in (defaults to
current directory). If the directory does not
exist, it will be created at runtime.
-o PATH Filepath at which to create and write the JSON-
formatted results.
--resume Attempt to resume this transformation's execution
using the cache.
-h, --help Show this message and exit.
For more details on various commands, see the :ref:`cli-reference`.