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
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"