Skip to main content

Command Line Interface for Strimzi Kafka Operator

Project description

Build Deploy PyPI Downloads License

strimzi cli

Strimzi Kafka CLI

Strimzi Kafka CLI is a CLI that helps traditional Apache Kafka users -both developers and administrators- to easily adopt Strimzi, a Kubernetes operator for Apache Kafka.

The main intention is to ramp up Strimzi usage by creating a similar CLI experience with the traditional Apache Kafka tools that mostly starts with kafka-* prefix under the bin directory in an ordinary Kafka package.

Strimzi Kafka CLI uses the kfk command as an abbreviation for kafka which also stands for the kafka-* prefix of the traditional tools.

While having similar set of commands or options for some of the common objects, Strimzi Kafka CLI has some extra capabilities for managing or configuring Strimzi related resources.

Following are the commands of the current version of Strimzi Kafka CLI, that are used for different purposes:

Usage: kfk [OPTIONS] COMMAND [ARGS]...

  Strimzi Kafka CLI

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.

Commands:
  acls              Manages ACLs on Kafka.
  clusters          Creates, alters, deletes, describes Kafka cluster(s).
  configs           Adds/Removes entity config for a topic, client, user or...
  connect           Creates, alters, deletes, describes Kafka connect...
  console-consumer  Reads data from Kafka topics and outputs it to standard...
  console-producer  Reads data from standard input and publish it to Kafka.
  env               Prints the environment variable values for Strimzi Kafka CLI
  operator          Installs/Uninstalls Strimzi Kafka Operator
  topics            Creates, alters, deletes, describes Kafka topic(s).
  users             Creates, alters, deletes, describes Kafka users(s).

Please take a look at the relevant article Strimzi Kafka CLI: Managing Strimzi in a Kafka Native Way for more details.

Installation

Strimzi Kafka CLI can be installed via pip (python package installer).

sudo pip install strimzi-kafka-cli

Project requires: Python >=3.6

Examples

Dependencies

Python Dependencies

Please see requirements.txt file.

External Dependencies

kubectl and Strimzi resources are the tools that Strimzi Kafka CLI uses. These dependencies are automatically downloaded when the first kfk command is run. You can always check the dependency versions of your CLI with the following command:

kfk --version

If you want to change the kubectl and Strimzi resources folder, you can simply change their version with the help of some environment veriables in order to let Strimzi Kafka CLI download the version you want, or change the PATH of any if you want to use a custom kubectl or Strimzi binary folder. Current versions are recommended, so use these environment variables at your own risk.

STRIMZI_KAFKA_CLI_BASE_PATH: Set this if you want to have a custom Strimzi Kafka CLI folder. It is ~/.strimzi-kafka-cli as default.

STRIMZI_KAFKA_CLI_STRIMZI_VERSION: Set this if you want to use a different Strimzi version.

STRIMZI_KAFKA_CLI_STRIMZI_PATH: Set this if you want to use a custom Strimzi/AMQ Streams.

STRIMZI_KAFKA_CLI_KUBECTL_VERSION Set this if you want to use a different kubectl version.

STRIMZI_KAFKA_CLI_KUBECTL_PATH: Set this if you want to use a custom kubectl.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

strimzi-kafka-cli-0.1.0a58.tar.gz (23.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

strimzi_kafka_cli-0.1.0a58-py2.py3-none-any.whl (30.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file strimzi-kafka-cli-0.1.0a58.tar.gz.

File metadata

  • Download URL: strimzi-kafka-cli-0.1.0a58.tar.gz
  • Upload date:
  • Size: 23.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for strimzi-kafka-cli-0.1.0a58.tar.gz
Algorithm Hash digest
SHA256 63c33f64ea938dbe09ba57422561b698bd3dcc3a30b4df5214ecd0d7bb222130
MD5 df4363a3bc6d55161641cf4fa5c30b99
BLAKE2b-256 c9e982af1d6bbb0fb413e319f3c69d297baf7b86436004b55699f9d665cde944

See more details on using hashes here.

File details

Details for the file strimzi_kafka_cli-0.1.0a58-py2.py3-none-any.whl.

File metadata

  • Download URL: strimzi_kafka_cli-0.1.0a58-py2.py3-none-any.whl
  • Upload date:
  • Size: 30.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for strimzi_kafka_cli-0.1.0a58-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 428bd38e3143d490fff485e00836ea96997f56e67102b3d4705f3d8c1d1ef439
MD5 c12fddb9da21f81abd521cfecb4c5bd2
BLAKE2b-256 0a335d50ab0b96c40cdd62e7268660cea0ce15f97eb8476a0124928876f76459

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page