kurkik kafka diff: compare Apache Kafka setups
diff compares two sides. Each side is a connection or an exported document. The first is what you expect, the second is what is really there. It only reads.
If a name is both a file and a connection, write document:<path> or connection:<name>.
Run it
Section titled “Run it”kurkik kafka diff staging prodkurkik kafka diff prod-kafka.yaml prod| Flag | What it does |
|---|---|
--acls |
Include ACLs: who may do what. |
--all |
Compare every area: --configs --acls --groups --schemas. |
--configs |
Compare configuration: broker settings and per-topic settings or policies. |
--exclude GLOB |
Skip topics that match. It wins over --include. You can repeat it. |
--groups, --consumers |
Include consumer groups. --consumers is the same flag. It takes more requests. |
--include GLOB |
Only topics whose name matches this pattern. You can repeat it. |
--kinds KIND[,KIND...] |
Show only these findings: changed, missing, unmanaged, unknown, not-verifiable, matched. The exit code still counts all of them. |
--max-channels N |
Read at most this many topics. |
-o, --output FORMAT |
Output format: text, markdown or json. Markdown is handy in pull requests. |
--prefix PREFIX |
Only topics that start with this. An export writes it into the document as the part of the cluster it owns. You can repeat it. |
--schemas |
Compare schemas, version by version. |
--strict |
Count things that only the second side has as drift too. |
--timeout DURATION |
Give up after this long, for example 60s or 2m. |
Exit codes
Section titled “Exit codes”| Code | Means |
|---|---|
0 |
No drift. |
2 |
Drift found. |
3 |
No drift found, but something could not be checked. |
All codes: exit codes.
See it run
Section titled “See it run”Real output, one question per page: Apache Kafka diff examples.
Flags every command has
Section titled “Flags every command has”| Flag | What it does |
|---|---|
--config FILE |
Use this connections file instead of $KURKIK_CONFIG or ~/.config/kurkik/connections.yaml. |
-h, --help |
Show help. |
--no-color |
No colours. NO_COLOR=1 does the same. |
--no-project |
Ignore the project connections file. |
--project-dir DIR |
Look for the project’s .kurkik/connections.yaml from this folder up. |
--trust-project |
Use the project file without asking. Meant for CI. Same as KURKIK_TRUST_PROJECT=1. |
-v, --verbose |
Say what Kurkik finds while it reads (on stderr). |
-V, --version |
Show the version. |
Copyright © 2026 Pavel Bodiachevskii