Demo instance
decuma dev starts a throwaway local instance: its own database, migrated, on a free port, dropped on exit. With --seed muster-gmbh it replays the synthetic Muster GmbH as Commands at a fixed clock: master data, Belege and Buchungen, two Bankkonten with statements in camt.053, MT940 and CSV, Voranmeldungen in several states, invoices, dunning and fixed costs. Obviously synthetic; never real data.
Run it from a checkout
Section titled “Run it from a checkout”Needs Rust, Node.js (for the app) and Docker (for PostgreSQL). The first build takes 5 to 15 minutes; later starts take seconds.
git clone https://github.com/rapha-red/open-decuma decuma && cd decumadocker run -d --name decuma-pg -p 127.0.0.1:55432:5432 -e POSTGRES_PASSWORD=postgres postgres:16export DECUMA_DEV_POSTGRES_URL=postgres://postgres:postgres@127.0.0.1:55432/postgres(cd app && npm ci && npm run build)cargo run -- dev --seed muster-gmbhIt prints:
api-key <token>seed muster-gmbh: sign in as erika.muster@example.com with password muster-passwort-2026first call: curl -s -X POST http://127.0.0.1:<port>/v1/queries/journal.list ...address http://127.0.0.1:<port>database <name>Open the address in a browser and sign in with the printed e-mail and password, or call the API with the key (Freigabeklasse ledger_write):
export DECUMA_URL=http://127.0.0.1:<port> DECUMA_API_KEY=<token>curl -s -X POST "$DECUMA_URL/v1/queries/journal.list" \ -H "Authorization: Bearer $DECUMA_API_KEY" -H 'Content-Type: application/json' \ -d '{"payload": {"pro_seite": 5}}'decuma journal.list --per-page 5Options
Section titled “Options”| Option | Does |
|---|---|
--keep |
Keep the database on exit |
--clock <RFC 3339> |
The instance time; it stands still until moved with PUT /dev/clock |
--until-step <n> |
Replay the seed only up to step n |
--flags <a,b> |
Feature flags that are on |
Under decuma dev, GET /dev/post shows the mails the instance would have sent and PUT /dev/clock moves its clock; neither route exists on a real install. Every option: CLI commands.