This page describes the commands to manage Kafka topics via the Lenses CLI.
View all topics
The optional names flag wil display only the names of the topics. If you use the –unwrap flag, each topic name will be displayed on a new line as text:
# first change the key/value typelenses-clitopicsmetadataset \--name=topicName \--key-type=bytes \--value-type=xml# now you may change its schemalenses-clitopicsmetadataset \--name=topicName \--key-type=bytes \--key-schema="{\"type\":\"record\",\"name\":\"lenses_record\",\"namespace\":\"lenses\",\"fields\":[{\"name\":\"keyField\",\"type\":\"string\"}]}" \--value-type=xml \--value-schema="{\"type\":\"record\",\"name\":\"lenses_record\",\"namespace\":\"lenses\",\"fields\":[{\"name\":\"valueField\",\"type\":\"string\"}]}"