lubit / klient

multiple terminal client for data storage [kafka | mysql | postgresql | click house |redis]

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Klient

Features

Klient can be used as a terminal client with colorful output for several databases .

  1. Colorful output
  2. Simple command - Resue [FORMULA...] which can be stored in $USER_HOMEDIR/.klient.toml
  3. More databases
    • kafka
    • mysql | pgsql
    • postgresql
    • clickhouse
    • redis

Installation

linux

$ sudo wget -O /usr/bin/klient https://github.com/lubit/klient/releases/download/0.0.1/klient.linux.amd64

macos

$ sudo wget -O /usr/bin/klient https://github.com/lubit/klient/releases/download/0.0.1/klient.mac

Usage

$ klient [driver] [commands] [FORMULA...]

Exmaple

$ klient kafka produce -B 'localhost:9092' -T test

kafka-produce

$ klient kafka consume  -B 'localhost:9092' -T test  -G test-consumer-group -u root -p 12345

kafka-consume

TIPS

Omit [FORMULA...] parameters which were stored in $USER_HOMEDIR/.klient.toml

$ klient kafka consume

kafka-consume-without-params

$ klient kafka status  -B 'localhost:9092' -T test  -G test-consumer-group

kafka-status

$ klient mysql -H localhost -P 3306 -u root -p 12345 -e 'select *  from user'

mysql


Reference Driver

postgresql: github.com/lib/pq


Authors

About

multiple terminal client for data storage [kafka | mysql | postgresql | click house |redis]

License:GNU General Public License v3.0


Languages

Language:Go 100.0%