Skip to content

CLI Commands

OpenEA Community administration commands are exposed through:

python -m app.cli <command>

In Docker, prefix commands with:

docker compose exec web

create-admin

Create the initial Platform Administrator from the terminal:

python -m app.cli create-admin \
  --username admin \
  --display-name "OpenEA Administrator"

The command securely prompts for a password and confirmation.

seed-system

Seed the standard metamodel and reference data idempotently:

python -m app.cli seed-system

seed-demo

Seed the fictional Northstar Financial repository:

python -m app.cli seed-demo

The command requires at least one active user because demo changes are audited to an actor.

remove-demo

Archive active records tagged as OpenEA demo data:

python -m app.cli remove-demo

This archives demo objects and related demo relationships rather than hard-deleting history.

recalculate-metrics

Queue normal background metric recalculation:

python -m app.cli recalculate-metrics

recalculate-metrics-now

Run metric calculation synchronously:

python -m app.cli recalculate-metrics-now

Use this for administrative verification and troubleshooting.

evaluate-findings

Queue finding evaluation:

python -m app.cli evaluate-findings

evaluate-findings-now

Run finding evaluation synchronously:

python -m app.cli evaluate-findings-now