1.0.0 • Published 6 years ago

kafkactl v1.0.0

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

KAFKACTL

KAFKACTL is a cli tool to interact with Kafka brokers

At the moment the only available command is consume used to consume kafka messages

INSTALLATION

You can install it as a global npm package by running: npm i -g kafkactl

USAGE

CONSUME

You can invoke a remote method by pushing a local yaml file:

kafkactl consume --topic testTopic

OPTIONS

Below the accepted command line options:

Parameter NameTypeRequiredDefaultDescription
--kafkaBrokerListStringfalselocalhost:9092this is a comma separated string of brokers: 'kafka-host1:9092,kafka-host2:9092'

Environment Variables

All options are also configurable through environment variables:

Option NameENV Key Name
kafkaBrokerListKAFKA_CLI_BROKER_LIST

Environment variables options have precedence and will overwrite the value passed via command line

Please note at the moment this only works with json messages