$ kafkactl A command-line interface the simplifies interaction with Kafka.
Usage: kafkactl [command]
Available Commands: alter alter topics, partitions attach run kafkactl pod in kubernetes and attach to it completion config show and edit configurations consume consume messages from a topic create create topics, consumerGroups, acls delete delete topics, acls describe describe topics, consumerGroups get get info about topics, consumerGroups, acls help Help about any command produce produce messages to a topic reset reset consumerGroupsOffset version print the version of kafkactl
Flags: -C, --config-file string config file. one of: [$HOME/.config/kafkactl $HOME/.kafkactl $SNAP_REAL_HOME/.config/kafkactl $SNAP_DATA/kafkactl /etc/kafkactl] -h, --help help for kafkactl -V, --verbose verbose output
Use "kafkactl [command] --help" for more information about a command.
选择要访问的集群
1 2 3 4 5 6 7 8
$ kafkactl config get-contexts ACTIVE NAME remote-cluster * default