LCAAC Command-Line Interface

January 29, 2024 ยท View on GitHub

Set-up

./gradlew :cli:installDist
alias lcaac=$GIT_ROOT/cli/build/install/lcaac/bin/lcaac

Impact assessment

The assess command runs the impact assessment of a target process. The results are printed on the standard output in CSV format.

cd $GIT_ROOT/cli/samples
lcaac assess "electricity_mix"
cd $GIT_ROOT/cli/samples
lcaac assess "electricity_mix" --file params.csv

Tracing

The trace command traces the execution of the assessment of a (single-product) target process. For every intermediate product or substance, it reports their quantity and their contribution to the total impact.

cd $GIT_ROOT/cli/samples
lcaac trace "electricity_mix"

Run tests

You can run all the tests with the following command.

cd $GIT_ROOT/cli/samples
lcaac test

By default, the command does not show the successful assertions. To show the successful assertions, run

cd $GIT_ROOT/cli/samples
lcaac test --show-success

Help

lcaac --help
lcaac assess --help