The preCICE CLI
The precice-cli
package provides an easy-to-use interface for the builtin tools
of preCICE and a range of python-based tooling.
Installation
To install the cli locally as a runnable program, we recommend using either pipx by the Python Packaging Authority or uv by the Astal project.
pipx
$ pipx install precice-cli
installed package precice-cli 1.0.0, installed using Python 3.13.7
These apps are now globally available
- precice-cli
done!
uv
$ uv tool install precice-cli
Resolved 39 packages in 11ms
Installed 39 packages in 15ms
Installed 1 executable: precice-cli
Usage
precice-cli offers some basic sub-commands and categories:
help
precice-cli
precice-cli -h
precice-cli --help
Shows general help, including the supported sub-commands.
version
precice-cli version
This subcommand displays the version of the precice-cli and all preCICE-related dependencies. If the preCICE library is installed, it also shows its version and configuration.
profiling
precice-cli profiling merge
precice-cli profiling trace
This subcommand group exposes all commands from the precice profiling tools .
config
precice-cli config check
precice-cli config visualize
precice-cli config format
This subcommand group includes configuration related commands such as checking, visualization , and formatting . The check command first validates the given configuration using the builtin tool and then runs the config checker on it.
init
precice-cli init
This experimental command initializes a preCICE case using a topology file. Have a look at the case generation repository for up-to-date information on the development.