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.
Connect
Section titled “Connect”export DECUMA_URL=https://decuma.example.com # default http://127.0.0.1:8080export DECUMA_API_KEY=<API-Schlüssel>decuma mandant.getThe 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.
decuma journal.list --per-page 5 --text mietedecuma buchung.storno --payload '{"buchung_id": "..."}' --rationale "Doppelt gebucht"decuma buchung.post --payload-file buchung.json --dry-rundecuma file.store --media-type application/pdf --content @rechnung.pdfdecuma download <hash> --to kopie.pdf- Every payload field is a flag;
--payloador--payload-filetake the whole payload as JSON. A base64 field takes@PATH. --rationaleis stored in the Command-Log;--dry-runruns the checks and the handler, then rolls back;--idempotency-keyruns a Command once.--output jsonfor scripts,textfor people (default on a terminal). A query with--format csv,xlsxorpdfwrites the file to--out.decuma <command> --helplists every field with its allowed values, nested fields and which are required.
Exit codes
Section titled “Exit codes”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.