Confluent CLI
Install Confluent CLI
To get started, install the latest version of the Confluent CLI, create a Kafka cluster and topic, and produce and consume messages as described below.
Debian or Ubuntu:
- Install curl and gpg (if you have not already installed them).
sudo apt install curl gnupg
- Install the Confluent CLI APT public key:
sudo mkdir -p /etc/apt/keyrings
curl https://packages.confluent.io/confluent-cli/deb/archive.key | sudo gpg --dearmor -o /etc/apt/keyrings/confluent-cli.gpg
sudo chmod go+r /etc/apt/keyrings/confluent-cli.gpg
You should see output similar to the following:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3106 100 3106 0 0 22959 0 --:--:-- --:--:-- --:--:-- 23007File '/etc/apt/keyrings/confluent-cli.gpg' exists. Overwrite? (y/N)
- Add the Confluent CLI repository to your APT configuration:
echo "deb [signed-by=/etc/apt/keyrings/confluent-cli.gpg] https://packages.confluent.io/confluent-cli/deb stable main" | sudo tee /etc/apt/sources.list.d/confluent-cli.list >/dev/null
- Update apt:
sudo apt update
- Install the Confluent CLI:
sudo apt install confluent-cli
You should see output similar to:
# ...
Selecting previously unselected package confluent-cli.
(Reading database ... 663670 files and directories currently installed.)
Preparing to unpack .../confluent-cli_4.14.0_amd64.deb ...
Unpacking confluent-cli (4.14.0) ...
Setting up confluent-cli (4.14.0) ...
- Verify
confluent version
You should see output similar to:
Version: v4.14.0
Git Ref: eba43e83
Build Date: 2024-12-19T20:51:55Z
Go Version: go1.22.7 X:boringcrypto (linux/amd64)
Development: false