Skip to content

kurkik kafka export: Apache Kafka to AsyncAPI

export writes what it reads as an AsyncAPI 3.0 document, by default <connection>-kafka.yaml. It only reads. A file that already exists is not replaced unless you say so.

Terminal window
kurkik kafka export prod
Flag What it does
--acls Include ACLs: who may do what.
-d, --directory DIR Where to write the file. The current folder by default.
--exclude GLOB Skip topics that match. It wins over --include. You can repeat it.
--format FORMAT Document format: yaml or json.
--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.
--include-internal Also show the system’s own topics, such as __consumer_offsets or Pulsar’s system topics.
--max-channels N Read at most this many topics.
-o, --output FORMAT How to report what happened: text or json.
--overwrite Replace a document that is already there.
--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.
--skip-existing Keep a document that is already there.
--stdout Print the document instead of writing a file.
--timeout DURATION Give up after this long, for example 60s or 2m.
Code Means
0 The document is complete.
1 Nothing was written.
3 Written, but something could not be read. The document says what.

All codes: exit codes.

Real output, one question per page: Apache Kafka export examples.

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.