Skip to content

kurkik pulsar export: Apache Pulsar to AsyncAPI

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

Terminal window
kurkik pulsar export prod
Flag What it does
--acls Include permissions: namespace and topic grants, and tenant admins. Needs tenant admin; tenants need a superuser.
--cluster NAME Of the other clusters, include only this one. You can repeat it.
--cluster-admin NAME=URL Read another cluster through this admin URL (name=url), for when its own address is not reachable.
--consumers Include subscriptions: who reads each topic. It takes more requests.
-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.
--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.
--namespace TENANT/NS Only this namespace, as tenant/namespace. You can repeat it.
-o, --output FORMAT How to report what happened: text or json.
--overwrite Replace a document that is already there.
--package KIND:TENANT/NS/NAME=ARCHIVE Say which package a function, source or sink runs, so a sync can deploy it. Pulsar does not report this. Form: function:tenant/ns/name=archive.
--packages FILE A file with one --package value per line, for example written by your build.
--skip-existing Keep a document that is already there.
--stdout Print the document instead of writing a file.
--tenant TENANT Only this tenant. You can repeat it.
--this-cluster-only Export only the cluster you connect to, not the ones it replicates with.
--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 Pulsar 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.