Skip to content

CLI

The decuma binary is the server and the command line client in one. The client is generated from the registry: one subcommand per Command and query, its flags from the payload schema. It talks to the REST API only, so it works against any instance you can reach.

Terminal window
export DECUMA_URL=https://decuma.example.com # default http://127.0.0.1:8080
export DECUMA_API_KEY=<API-Schlüssel>
decuma mandant.get

The token comes from DECUMA_API_KEY, else from a stored API-Schlüssel file, else from the session of decuma login (for Account Commands such as creating a Mandant). Against a Docker Compose install: Self-hosting: CLI and MCP.

Terminal window
decuma journal.list --per-page 5 --text miete
decuma buchung.storno --payload '{"buchung_id": "..."}' --rationale "Doppelt gebucht"
decuma buchung.post --payload-file buchung.json --dry-run
decuma file.store --media-type application/pdf --content @rechnung.pdf
decuma download <hash> --to kopie.pdf
  • Every payload field is a flag; --payload or --payload-file take the whole payload as JSON. A base64 field takes @PATH.
  • --rationale is stored in the Command-Log; --dry-run runs the checks and the handler, then rolls back; --idempotency-key runs a Command once.
  • --output json for scripts, text for people (default on a terminal). A query with --format csv, xlsx or pdf writes the file to --out.
  • decuma <command> --help lists every field with its allowed values, nested fields and which are required.

0 ok, 1 error, 2 usage, 3 validation, 4 not authenticated, 5 not allowed, 6 needs a human, 7 unknown command, 8 idempotency conflict, 9 not found, 10 conflict, 11 second factor required, 12 busy (try again). A refusal prints its detail and the next step.

Every subcommand with its full help: CLI commands.