Monedula
monedula-gitops docs menu

monedula-gitops apply

Apply the manifests to Kafka. Usage and flags for monedula-gitops apply.

Reference 3 of 20

Reference for monedula-gitops v1.0.0

Updated 9 October 2026

On this page
usage
monedula-gitops apply [flags]

This command can change external state. Check the flags that gate it before running it against production.

Flags

FlagTypeDefaultDescription
--filename, -fstringArray manifest file or directory (repeatable; use - for stdin)
--recursive, -Rbool recurse into directories given to -f
--cluster-config-file, -cstringArray KafkaCluster config file or directory (repeatable)
--clusterstring select/filter a single cluster by name
--output, -ostring human output format: human, yaml, or json
--dry-runbool render the planned operations without applying them
--allow-deletebool permit topic deletion operations (used with deletionPolicy: Delete)
--allow-destructivebool permit destructive operations (partition increase, compatibility lowering, etc.)
--prunebool delete in-scope ACLs and RBAC role bindings that are no longer desired (otherwise they are only reported)
--rotate-passwordsbool re-upsert the SCRAM password of every declared, in-sync KafkaUser from its configured source (users with identity drift are updated regardless; with --dry-run the rotations are shown, not applied)

Global flags

FlagTypeDefaultDescription
--log-levelstringwarnlog verbosity on stderr: error, warn, info, or debug

Examples

examples
monedula-gitops apply -f ./topics --cluster-config-file ./clusters/prod.yaml --dry-run
monedula-gitops apply -f ./topics --cluster-config-file ./clusters/prod.yaml
monedula-gitops apply -f ./users --cluster-config-file ./clusters/prod.yaml --rotate-passwords

Exit codes

CodeMeaning
0Success.
2Validation, configuration or connectivity error, or any failed, skipped or rejected operation.
3Only Blocked operations remain and await --allow-destructive.