/kafkatools-module-ps1

Simple Powershell Binary Module

Primary LanguageC#Apache License 2.0Apache-2.0

Kafka Tools With PowerShell

Install Module Go to PSGallery

Import module in the powershell terminal

Install-Module -Name KafkaTools

# or

Find-Module -Name KafkaTools | Install-Module -Force

Then import this module

Import-Module Kafkatools

Get Information about Module

Get-Command -Module KafkaTools

Remove Module

Remove-Module -Module KafkaTools

Usage

Create Topic

New-KafkaTopic -BootstrapServers localhost:9092 -TopicName "name-topic"

Get Topics

Get-KafkaTopics -BootstrapServers localhost:9092

Write Msg to an specific Topic

Write-KafkaMsg -BootstrapServers localhost:9092 -TopicName "topic-name" -Key "sd" -Value "value"

Watch Topic

 Watch-KafkaTopic -BootstrapServers localhost:9092 -TopicName "topic-name"

Watch Stats by Topic

Watch-KafkaStatsTopic -BootstrapServers localhost:9092 -TopicName "topic-name"