Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@kaluza/kt

Package Overview
Dependencies
Maintainers
3
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kaluza/kt

A Kafka / Aiven command line tool that allow you to easily consume and produce to kafka topics with AVRO serialization and deserialization.

  • 0.11.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
3
Weekly downloads
 
Created
Source

KT

A Kafka / Aiven command line tool that allow you to easily consume and produce to kafka topics with AVRO serialization and deserialization.

Pre-requisite

As passwords are entered in plaintest, please make sure this does not get stored in ~/.bash_history. You can use the following command to allow a space before an command will not be stored there.

echo "HISTCONTROL=ignorespace" >>~/.bashrc

Install

Require nodejs to be installed globally

npm i -g @kaluza/kt

How to use

You will need to first login to Aiven (you only need to login once per environment after install):

kt login user@kaluza.com 1234

Login for production:

kt login user@kaluza.com 1234 -e vnet-prd

Consume (default: vnet-dev):

kt consume TEST_OUTPUT_TOPIC

Produce (default: vnet-dev):

kt produce TEST_OUTPUT_TOPIC '{ "name": "test-name", "role": "ops" }'

Produce from a json file:

kt produce TEST_OUTPUT_TOPIC "$(cat ./test.json)"

Consume for production environment:

kt consume TEST_OUTPUT_TOPIC -e vnet-prd

Consume specific partition and offset (passing 0 and 0 will read partition 0 from the beginning):

kt consume MY_COMPACTED_TOPIC -o 0 -p 0

More informations:

kt help

FAQs

Package last updated on 12 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc