All apps/kafkactl

kafkactl

kafkactl

A command-line interface for interaction with Apache Kafka.

Runs as kafkactl|macOS, Linux, Windows|github.com

Command form

ai-draft · 2 tasks · 15 fields

Consume and produce messages and list topics. Protobuf, Avro and admin commands are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui kafkactl

kafkactl consume

Consume messages
Consume messagesExample values, fixed in this page — nothing here reaches a terminal
Basic
Topic*
string
From beginning
--from-beginning
Stop at latest offset
--exit
Max messages
integer
TasksEach one presets the form for one job
Read existing messages
topicfrom_beginningexitmax_messages
ParametersOnly these flags are editable in the form
Topic
string · positional 0
From beginning
boolean
--from-beginning-b
Stop at latest offset
boolean
--exit-e
Consumer group
string
--group-g
Max messages
integer
--max-messages
Last N messages
integer
--tail
Print keys
boolean
--print-keys-k
Print timestamps
boolean
--print-timestamps-t

kafkactl produce

Produce a message
Produce a messageExample values, fixed in this page — nothing here reaches a terminal
Basic
Topic*
string
Value*
string
Key
string
TasksEach one presets the form for one job
Send one message
topicvaluekey
ParametersOnly these flags are editable in the form
Topic
string · positional 0
Value
string
--value-v
Key
string
--key-k
Read from file
path
--file-f
Partition
integer
--partition-p
Headers (key:value)
string · repeatable
--header-H

kafkactl list topics

List topics
List topicsExample values, fixed in this page — nothing here reaches a terminal
Basic
Output format
4 choicesenum
ParametersOnly these flags are editable in the form
Output format
enum
--output-ojsonyamlwidecompact
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed kafkactl against its version. A form that does not match your version is not offered.