# Command Line tools

**URL:** https://forum.confluent.io/c/tools/command-line-tools/18.md

[Latest](https://forum.confluent.io/latest.md) · [Categories](https://forum.confluent.io/categories.md)

---

## [The Confluent CLI](https://forum.confluent.io/t/the-confluent-cli/42)

<div class="topic-metadata">

**Author:** [@rmoff](https://forum.confluent.io/u/rmoff)\
**Replies:** 0\
**Last updated:** [5 November 2020 22:20 UTC](https://forum.confluent.io/t/the-confluent-cli/42 "2020-11-05T22:20:29Z")

</div>

The Confluent command line interface (CLI), confluent , enables developers to manage Confluent Cloud or Confluent Platform. Built-in autocompletion can help users quickly craft commands. With authentication and machine …

---

## [Kafkacat ("netcat for Kafka")](https://forum.confluent.io/t/kafkacat-netcat-for-kafka/44)

<div class="topic-metadata">

**Author:** [@rmoff](https://forum.confluent.io/u/rmoff)\
**Replies:** 0\
**Last updated:** [5 November 2020 22:24 UTC](https://forum.confluent.io/t/kafkacat-netcat-for-kafka/44 "2020-11-05T22:24:49Z")

</div>

What is kafkacat? kafkacat is a generic non-JVM producer and consumer for Apache Kafka \>=0.8, think of it as a netcat for Kafka. Download: GitHub - edenhill/kcat: Generic command line non-JVM Apache Kafka producer and …

---

## [About the Command Line tools category](https://forum.confluent.io/t/about-the-command-line-tools-category/27)

<div class="topic-metadata">

**Author:** [@rmoff](https://forum.confluent.io/u/rmoff)\
**Replies:** 0

</div>

confluent, ccloud, kafkacat, confluent-hub, kafka-console-consumer, kafka-console-producer, and more!

---

## [Export topics, ACLs and other configuration as JSON/text](https://forum.confluent.io/t/export-topics-acls-and-other-configuration-as-json-text/38165)

<div class="topic-metadata">

**Author:** [@maek48](https://forum.confluent.io/u/maek48)\
**Replies:** 5\
**Last updated:** [4 November 2025 09:52 UTC](https://forum.confluent.io/t/export-topics-acls-and-other-configuration-as-json-text/38165 "2025-11-04T09:52:37Z")

</div>

I’m surprised I’m unable to find more posts like this, frankly. We have a cluster, it’s running fine, but we want to move from making configuration changes from a git repository (YAML files and Ansible playbooks) to mak…

---

## [Intermittent kcat Hangs with 'Not Leader for Partition' Error on Kafka in AKS](https://forum.confluent.io/t/intermittent-kcat-hangs-with-not-leader-for-partition-error-on-kafka-in-aks/37755)

<div class="topic-metadata">

**Author:** [@aaronvu96](https://forum.confluent.io/u/aaronvu96)\
**Replies:** 0\
**Last updated:** [7 May 2025 05:54 UTC](https://forum.confluent.io/t/intermittent-kcat-hangs-with-not-leader-for-partition-error-on-kafka-in-aks/37755 "2025-05-07T05:54:05Z")

</div>

I am experiencing intermittent data retrieval issues using kcat against a Kafka cluster hosted on AKS. The command sometimes hangs without returning data or errors. Debug logs show metadata errors like: ListOffsetsReque…

---

## [Piping to jq echo'ing escape '\\' before every '"'](https://forum.confluent.io/t/piping-to-jq-echoing-escape-before-every/10945)

<div class="topic-metadata">

**Author:** [@georgelza](https://forum.confluent.io/u/georgelza)\
**Replies:** 8\
**Last updated:** [25 June 2024 15:50 UTC](https://forum.confluent.io/t/piping-to-jq-echoing-escape-before-every/10945 "2024-06-25T15:50:40Z")

</div>

Hi all… using jsonschema as the serializer. docker exec -t kafkacat \\ kcat \\ -b broker:29092 \\ -t json\_salescompleted1 \\ -C output as: {"SALEDATETIME":"2024-06-24T12:43:26.268+02:00","SALETIMESTAMP":"17192258…

---

## [Kcat and protobuf mesages](https://forum.confluent.io/t/kcat-and-protobuf-mesages/10929)

<div class="topic-metadata">

**Author:** [@georgelza](https://forum.confluent.io/u/georgelza)\
**Replies:** 3\
**Last updated:** [21 June 2024 19:25 UTC](https://forum.confluent.io/t/kcat-and-protobuf-mesages/10929 "2024-06-21T19:25:37Z")

</div>

Hi all… We all know kafkacat which has now been renamed kcat. we also have a move avro specific version of this… What do we have for Protobuf, even with below command I get those binary bits in my messages printed. d…

---

## [Confluent local services vs confluent local kafka](https://forum.confluent.io/t/confluent-local-services-vs-confluent-local-kafka/10785)

<div class="topic-metadata">

**Author:** [@myerspa](https://forum.confluent.io/u/myerspa)\
**Replies:** 1\
**Last updated:** [4 June 2024 19:32 UTC](https://forum.confluent.io/t/confluent-local-services-vs-confluent-local-kafka/10785 "2024-06-04T19:32:58Z")

</div>

What is the difference between confluent local services start and confluent local kafka start. Obviously one starts kafka and one starts everything, but running the later requires docker to be running where the former do…

---

## [Kafka in Docker using Confluent CLI doesn't work](https://forum.confluent.io/t/kafka-in-docker-using-confluent-cli-doesnt-work/10184)

<div class="topic-metadata">

**Author:** [@akhanalcs](https://forum.confluent.io/u/akhanalcs)\
**Replies:** 2\
**Last updated:** [14 February 2024 17:50 UTC](https://forum.confluent.io/t/kafka-in-docker-using-confluent-cli-doesnt-work/10184 "2024-02-14T17:50:56Z")

</div>

As shown in Developer guide page under “Local” Kafka Location, it says that a Local Kafka cluster can be started by Confluent CLI but it doesn’t work. I have put all the details about this problem in this Stackoverflow …

---

## [Confluent local services start not working well](https://forum.confluent.io/t/confluent-local-services-start-not-working-well/7773)

<div class="topic-metadata">

**Author:** [@pieterbreed](https://forum.confluent.io/u/pieterbreed)\
**Replies:** 4\
**Last updated:** [15 December 2023 20:41 UTC](https://forum.confluent.io/t/confluent-local-services-start-not-working-well/7773 "2023-12-15T20:41:46Z")

</div>

Hi All, When I run confluent local services start it takes about 90 seconds for the command to return a failure … … which is incorrect, because zookeeper did in fact start. Here is the output of the first invocation: $…

---

## [Problem installing Confluent Platform](https://forum.confluent.io/t/problem-installing-confluent-platform/9201)

<div class="topic-metadata">

**Author:** [@tripsegars](https://forum.confluent.io/u/tripsegars)\
**Replies:** 0\
**Last updated:** [29 November 2023 13:04 UTC](https://forum.confluent.io/t/problem-installing-confluent-platform/9201 "2023-11-29T13:04:17Z")

</div>

Apologies if I’m posting in the wrong category. I didn’t see any categories that looked appropriate. I have installed Confluent Platform 7.5.2 per the \[Install Confluent Platform using Systemd on RHEL and CentOS\](https:…

---

## [How to set offsets.retention.minutes?](https://forum.confluent.io/t/how-to-set-offsets-retention-minutes/9105)

<div class="topic-metadata">

**Author:** [@alosman](https://forum.confluent.io/u/alosman)\
**Replies:** 1\
**Last updated:** [17 November 2023 14:18 UTC](https://forum.confluent.io/t/how-to-set-offsets-retention-minutes/9105 "2023-11-17T14:18:52Z")

</div>

Hi everyone, I am trying to learn Kafka and wanted to test offsets.retention.minutes in effect. I am using a compose file retrieved from raw.githubusercontent.com/confluentinc/cp-all-in-one/7.5.2-post/cp-all-in-one-kr…

---

## [Error when creating a topic](https://forum.confluent.io/t/error-when-creating-a-topic/7791)

<div class="topic-metadata">

**Author:** [@hasmine.roldan](https://forum.confluent.io/u/hasmine.roldan)\
**Replies:** 2\
**Last updated:** [1 November 2023 22:13 UTC](https://forum.confluent.io/t/error-when-creating-a-topic/7791 "2023-11-01T22:13:54Z")

</div>

Hi, Good day! I encountered the error below when creating a topic named payments: Error while executing topic command : KeeperErrorCode = NoAuth for /config/topics/Payments \[2023-05-05 17:07:06,027\] ERROR org.apache.…

---

## [How to Suggest Features to Confluent CLI?](https://forum.confluent.io/t/how-to-suggest-features-to-confluent-cli/8935)

<div class="topic-metadata">

**Author:** [@dangoslen](https://forum.confluent.io/u/dangoslen)\
**Replies:** 1\
**Last updated:** [26 October 2023 12:22 UTC](https://forum.confluent.io/t/how-to-suggest-features-to-confluent-cli/8935 "2023-10-26T12:22:47Z")

</div>

I’m glad to see a focus on building a more standardized CLI tool for Confluent. However, I am finding it hard to suggest features or missing commands. The current documentation portal only asks for feedback on a specific…

---

## [Zookeeper Backup](https://forum.confluent.io/t/zookeeper-backup/8844)

<div class="topic-metadata">

**Author:** [@IceGuy](https://forum.confluent.io/u/IceGuy)\
**Replies:** 1\
**Last updated:** [15 October 2023 04:00 UTC](https://forum.confluent.io/t/zookeeper-backup/8844 "2023-10-15T04:00:12Z")

</div>

If we shutdown Zookeeper (e.g. to backup the ZK-Leader at rest) do we have to also stop the brokers? We could by administrative means prevent topic/ACL changes and broker starts during Zookeeper downtime.

---

## [Confluent local services start command stuck , no display](https://forum.confluent.io/t/confluent-local-services-start-command-stuck-no-display/8797)

<div class="topic-metadata">

**Author:** [@vaibhavtankha](https://forum.confluent.io/u/vaibhavtankha)\
**Replies:** 0\
**Last updated:** [30 September 2023 08:36 UTC](https://forum.confluent.io/t/confluent-local-services-start-command-stuck-no-display/8797 "2023-09-30T08:36:51Z")

</div>

Hi All, Dont get any response when i run “confluent local services start” i am able to run zookeeper and kafka by running for eg using below command bin/zookeeper-server-start etc/kafka/zookeeper.properties Also co…

---

## [Confluent cli login using api keys](https://forum.confluent.io/t/confluent-cli-login-using-api-keys/8149)

<div class="topic-metadata">

**Author:** [@graham.lammers](https://forum.confluent.io/u/graham.lammers)\
**Replies:** 0\
**Last updated:** [22 June 2023 18:16 UTC](https://forum.confluent.io/t/confluent-cli-login-using-api-keys/8149 "2023-06-22T18:16:29Z")

</div>

I have tried using: confluent login --api-key --api-secret but it seems you can only use email / password to login. Is it possible to use the CLI with API Keys. Looking to automate the creation on ksqlDB streams us…

---

## [3rd party command line tools for Apache Kafka](https://forum.confluent.io/t/3rd-party-command-line-tools-for-apache-kafka/919)

<div class="topic-metadata">

**Author:** [@rmoff](https://forum.confluent.io/u/rmoff)\
**Replies:** 11\
**Last updated:** [21 June 2023 12:00 UTC](https://forum.confluent.io/t/3rd-party-command-line-tools-for-apache-kafka/919 "2023-06-21T12:00:03Z")

</div>

(See also 3rd party GUI tools for Apache Kafka) In recent times there’s been a proliferation in CLIs for Apache Kafka, and instead of trawling through Reddit to find the announcements I thought I’d collect them here for…

---

## [Error: Confluent Cloud backend error](https://forum.confluent.io/t/error-confluent-cloud-backend-error/7784)

<div class="topic-metadata">

**Author:** [@josielesgoncalves](https://forum.confluent.io/u/josielesgoncalves)\
**Replies:** 25\
**Last updated:** [22 May 2023 19:39 UTC](https://forum.confluent.io/t/error-confluent-cloud-backend-error/7784 "2023-05-22T19:39:37Z")

</div>

Hi, Im having a problem when I run the following command line while watching the kafka tutorial Has anyone had the same problem to help me? confluent api-key create --resource Error: Confluent Cloud backend error: …

---

## [AWS-CDK construct for Confluent](https://forum.confluent.io/t/aws-cdk-construct-for-confluent/5401)

<div class="topic-metadata">

**Author:** [@sergii](https://forum.confluent.io/u/sergii)\
**Replies:** 1\
**Last updated:** [15 May 2023 23:56 UTC](https://forum.confluent.io/t/aws-cdk-construct-for-confluent/5401 "2023-05-15T23:56:01Z")

</div>

We are actively using aws-cdk and would like to manage Confluent Kafka clusters and topics with it as well. Does anyone knows of any attempt to create aws-cdk constructs for Confluent managed resources (similar to terra…

---

## [Error when installing CLI on WSL](https://forum.confluent.io/t/error-when-installing-cli-on-wsl/7112)

<div class="topic-metadata">

**Author:** [@LinusH](https://forum.confluent.io/u/LinusH)\
**Replies:** 2\
**Last updated:** [30 January 2023 20:45 UTC](https://forum.confluent.io/t/error-when-installing-cli-on-wsl/7112 "2023-01-30T20:45:19Z")

</div>

Hi, I’m following the instructions on the set up page from the course Kafka101. I have activated WSL on my Windows 10 Pro laptop. And installed the default Linux package Ubunto, and the specified my Linux admin account…

---

## [Must be doing something stupid](https://forum.confluent.io/t/must-be-doing-something-stupid/3288)

<div class="topic-metadata">

**Author:** [@markdinovo](https://forum.confluent.io/u/markdinovo)\
**Replies:** 2\
**Last updated:** [4 October 2022 11:42 UTC](https://forum.confluent.io/t/must-be-doing-something-stupid/3288 "2022-10-04T11:42:00Z")

</div>

I must be doing something stupid here…I’m sure this isn’t rocket science. I’m going through the Getting Started Turorial using .Net. Build the Producer and Consumer csproj files and associated classes. When I try to p…

---

## [Kafka Cheat Sheet](https://forum.confluent.io/t/kafka-cheat-sheet/1553)

<div class="topic-metadata">

**Author:** [@whatsupbros](https://forum.confluent.io/u/whatsupbros)\
**Replies:** 2\
**Last updated:** [30 August 2022 05:52 UTC](https://forum.confluent.io/t/kafka-cheat-sheet/1553 "2022-08-30T05:52:05Z")

</div>

Hi Kafkateers! Just wanted to share with you my cheatsheet: GitHub - ZZa/kafka-cheat-sheet: Kafka, Kafka Connect and Schema Registry commands cheat sheet It covers Kafka, Kafka Connect and Schema Registry most common c…

---

## [\`kfk-producer-datagen\` Produce generated messages from command-line](https://forum.confluent.io/t/kfk-producer-datagen-produce-generated-messages-from-command-line/4680)

<div class="topic-metadata">

**Author:** [@jeqo](https://forum.confluent.io/u/jeqo)\
**Replies:** 0\
**Last updated:** [3 April 2022 13:28 UTC](https://forum.confluent.io/t/kfk-producer-datagen-produce-generated-messages-from-command-line/4680 "2022-04-03T13:28:39Z")

</div>

Produced messages generated from Avro schemas. Run once, with intervals, or as a performance test. Docs: poc-apache-kafka/cli/producer-datagen at main · jeqo/poc-apache-kafka · GitHub

---

## [\`kfk-cluster-state\` Grab cluster metadata in one command](https://forum.confluent.io/t/kfk-cluster-state-grab-cluster-metadata-in-one-command/4679)

<div class="topic-metadata">

**Author:** [@jeqo](https://forum.confluent.io/u/jeqo)\
**Replies:** 0\
**Last updated:** [3 April 2022 13:27 UTC](https://forum.confluent.io/t/kfk-cluster-state-grab-cluster-metadata-in-one-command/4679 "2022-04-03T13:27:14Z")

</div>

Get brokers, topics, and offsets metadata in one command. Docs: poc-apache-kafka/cli/cluster-state at main · jeqo/poc-apache-kafka · GitHub

---

## [\`kfk-ctx\` Manage Kafka cluster as contexts](https://forum.confluent.io/t/kfk-ctx-manage-kafka-cluster-as-contexts/4678)

<div class="topic-metadata">

**Author:** [@jeqo](https://forum.confluent.io/u/jeqo)\
**Replies:** 0\
**Last updated:** [3 April 2022 13:22 UTC](https://forum.confluent.io/t/kfk-ctx-manage-kafka-cluster-as-contexts/4678 "2022-04-03T13:22:32Z")

</div>

Keep a registry of connections to Kafka (and Schema Registry) clusters. Test connections, generate commands, and properties files. Docs: poc-apache-kafka/cli/context at main · jeqo/poc-apache-kafka · GitHub

---

## [Confluent Cloud CLI](https://forum.confluent.io/t/confluent-cloud-cli/43)

<div class="topic-metadata">

**Author:** [@rmoff](https://forum.confluent.io/u/rmoff)\
**Replies:** 1\
**Last updated:** [1 April 2022 09:03 UTC](https://forum.confluent.io/t/confluent-cloud-cli/43 "2022-04-01T09:03:08Z")

</div>

The Confluent Cloud CLI unlocks a powerful set of features for both the day-to-day activities of a developer as well as managerial functions for operators, architects, and analysts. A sampling of features in the cloud in…

---

## [Installing Kafka with Zookeeper](https://forum.confluent.io/t/installing-kafka-with-zookeeper/4553)

<div class="topic-metadata">

**Author:** [@dramer](https://forum.confluent.io/u/dramer)\
**Replies:** 5\
**Last updated:** [24 March 2022 14:23 UTC](https://forum.confluent.io/t/installing-kafka-with-zookeeper/4553 "2022-03-24T14:23:53Z")

</div>

Hi, Learning Kafka and need a little help with installing Zookeeper and Kafka on my Mac (V12.01) I’ve installed Zookeeper from Brew I’ve installed kafka from Brew. Was trying to call the following command: kafka-top…

---

## [Confluent login in local single-node environment](https://forum.confluent.io/t/confluent-login-in-local-single-node-environment/4141)

<div class="topic-metadata">

**Author:** [@snag05](https://forum.confluent.io/u/snag05)\
**Replies:** 0\
**Last updated:** [10 February 2022 21:04 UTC](https://forum.confluent.io/t/confluent-login-in-local-single-node-environment/4141 "2022-02-10T21:04:09Z")

</div>

Hi, I am using Confluent Platform: 7.0.1. The package I downloaded is: confluent-7.0.1.tar.gz (from https://www.confluent.io/installation page) My usage is local single-node. If I want to create a topic from terminal …

---

## [Troubles with starting KsqlDb locally](https://forum.confluent.io/t/troubles-with-starting-ksqldb-locally/2385)

<div class="topic-metadata">

**Author:** [@IgalOre](https://forum.confluent.io/u/IgalOre)\
**Replies:** 5\
**Last updated:** [8 October 2021 15:30 UTC](https://forum.confluent.io/t/troubles-with-starting-ksqldb-locally/2385 "2021-10-08T15:30:30Z")

</div>

Hello there, we are in the middle of POC for using Confluent Kafka for upcoming project. I had installed Confluent locally on Windows 10 WSL 2 environment, following Ubuntu Installation guide. Most of the things are work…

[Next page](https://forum.confluent.io/c/tools/command-line-tools/18.md?page=1)
