Monedula
monedula-gitops docs menu

monedula-gitops import cluster

Read live cluster state and generate KafkaTopic/KafkaAccessPolicy manifests. Usage and flags for monedula-gitops import cluster.

Reference 10 of 20

Reference for monedula-gitops v1.0.0

Updated 9 October 2026

On this page
usage
monedula-gitops import cluster [flags]

Read-only: this command does not change the cluster.

Flags

FlagTypeDefaultDescription
--cluster-config-file, -cstringArray KafkaCluster config file or directory (repeatable)
--clusterstring select a single cluster by name (required when more than one is loaded)
--output-dirstring write manifests to this directory tree instead of stdout
--overwritestring never overwrite mode when writing to --output-dir: never, changed, or always
--output, -ostring human summary output format: human, yaml, or json
--skip-schemasbool skip schema reconstruction entirely (no Schema Registry connection); use when schemas are application-managed
--skip-usersbool skip SCRAM credential reconstruction entirely (no ListScramCredentials call); use when users are application-managed
--skip-quotasbool skip quota reconstruction entirely (no DescribeClientQuotas call); use when quotas are unsupported (e.g. Confluent Cloud) or externally managed
--include-connecting-userbool include the connecting principal's own SCRAM credential (skipped by default to avoid self-lockout risk)
--include-internalbool import Kafka/Confluent housekeeping topics too (__*, _schemas, _confluent*); skipped by default
--namespace-strategystring single namespace strategy: single, prefix, regex, or mapping-file
--namespacestring default namespace value for the single strategy
--prefix-separatorstring . separator for the prefix strategy
--namespace-regexstring regex with one capture group for the regex strategy
--namespace-mapping-filestring path to a YAML/JSON topic->namespace map for the mapping-file strategy

Global flags

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

Examples

examples
monedula-gitops import cluster --cluster-config-file ./clusters/prod.yaml > topics.yaml
monedula-gitops import cluster --cluster-config-file ./clusters/prod.yaml --output-dir ./imported

Exit codes

CodeMeaning
0Success.
2Validation, configuration or connectivity error.