The ultimate CLI tool for TiKV

Related tags

Command Line tcli
Overview

tcli

The ultimate CLI tool for TiKV

>>> help

Commands:
  .connect      connect to a tikv cluster, usage: [.connect|.conn|.c] [pd addr], example: .c 192.168.1.1:2379
  .stores       list tikv stores in cluster
  bench         bench [type] config1=value1 config2=value2 ...
                  type: ycsb
  clear         clear the screen
  echo          echo [string lit]
  exit          exit the program
  get           get [string lit]
  help          display help
  loadfile      loadfile [filename] [key prefix] [opts], only supports CSV now, when "key prefix" is set, will automatically add prefix to the original key,
                opts:
                  batch-size: int, how many records in one tikv transaction, default: 1000
  put           put [key] [value]
  scan          Scan key-value pairs in range, usage: scan [start key] [opts]
                  opt format: key1=value1,key2=value2,key3=value3,
                  scan options:
                    limit: integer, default:100
                    key-only: true(1)|false(0)
                    strict-prefix: true(1)|false(0)
                    count-only: true(1)|false(0)
     
Issues
  • Rawkv

    Rawkv

    Implemented most functions in rawKV client. Currently, a few functions such as getPDClient and getStores cannot be implemented because the rawKV client does not export its pd client attribute.

    rawkv mode can be used by setting flag -mode=raw when running tcli

    opened by ericcz0 0
  • update module s.t. we can install with `go install ...`

    update module s.t. we can install with `go install ...`

    Otherwise

    $ go install github.com/c4pt0r/[email protected]
    go: downloading github.com/c4pt0r/tcli v0.0.0-20211209143356-b0706808a1f0
    go install: github.com/c4pt0r/[email protected]: github.com/c4pt0r/[email protected]: parsing go.mod:
    	module declares its path as: tcli
    	        but was required as: github.com/c4pt0r/tcli
    
    opened by YikSanChan 0
  • Support flexible workflows and outputs

    Support flexible workflows and outputs

    I would like to propose some changes that help support more flexible workflows; namely, piping formatted key-value operation results to output files:

    • [ ] Redirect non-result console output to Stderr so that Stdout only receives results of key-value operations
    • [ ] Implement options to configure formatting of key-value output (i.e., JSON, csv)
    opened by ericcz0 0
  • Can not get raw key putted by tikv golang client

    Can not get raw key putted by tikv golang client

    hi:

    I put rawkey use golang client , and my code is

    	cli, err := rawkv.NewClient(context.TODO(), []string{"xx.xx.xx.xx:2379"}, config.DefaultConfig().Security)
    	if err != nil {
    		panic(err)
    	}
    	defer cli.Close()
           	var prefix = "prefix"
    	for i := 0; i < 10; i++ {
    
    		key := []byte(prefix + strconv.Itoa(i))
    		val := []byte("PingCAP" + strconv.Itoa(i))
    		err = cli.Put(context.TODO(), key, val)
    		if err != nil {
    			panic(err)
    		}
    		fmt.Printf("Successfully put %s:%s to tikv\n", key, val)
    		val, err = cli.Get(context.TODO(), key)
    		if err != nil {
    			panic(err)
    		}
    		fmt.Printf("found val: %s for key: %s\n", val, key)
    	}
    
    

    I can get the key like "prefix0",but can not get from tcli

    opened by jiashiwen 2
Owner
dongxu
Infrastructure engineer / entrepreneur, CTO & Co-founder of PingCAP.
dongxu
Symfony-cli - The Symfony CLI tool For Golang

Symfony CLI Install To install Symfony CLI, please download the appropriate vers

Symfony CLI 341 Jul 29, 2022
bcrypt-cli is the CLI tool for hashing passwords with bcrypt.

bcrypt-cli bcrypt-cli is the CLI tool for hashing passwords with bcrypt. Install go install github.com/ryicoh/bcrypt-cli Usage It can be used like bas

Ryuichiroh Ikeuchi 0 Jan 27, 2022
GTDF-CLI - The official CLI tool to operate with Getting Things Done Framework

This is the official CLI tool to operate with Getting Things Done Framework. How

akrck02 1 Feb 14, 2022
This tool is a CLI-interactive tool for TA who use eeclass platform

NTHU eeclass TA helper. This tool is a CLI-interactive tool for TA who use eeclass platform. It helps TA to download all the submitted homework, and use CSV to record the score and comment, and upload CSV score directly to the eeclass platform with just 2 Enter key!

Bo-Wei Chen 1 Dec 11, 2021
Elegant CLI wrapper for kubeseal CLI

Overview This is a wrapper CLI ofkubeseal CLI, specifically the raw mode. If you just need to encrypt your secret on RAW mode, this CLI will be the ea

Elm 4 Jan 8, 2022
CLI to run a docker image with R. CLI built using cobra library in go.

BlueBeak Installation Guide Task 1: Building the CLI The directory structure looks like Fastest process: 1)cd into bbtools 2)cd into bbtools/bin 3)I h

Aniruddha Chattopadhyay 0 Dec 20, 2021
A wrapper of aliyun-cli subcommand alidns, run aliyun-cli in Declarative mode.

aliyun-dns A wrapper of aliyun-cli subcommand alidns, run aliyun-cli in Declarative mode. Installation Install aliyun-cli. Usage $ aliyun-dns -h A wra

许嘉华 0 Dec 21, 2021
Go-file-downloader-ftctl - A file downloader cli built using golang. Makes use of cobra for building the cli and go concurrent feature to download files.

ftctl This is a file downloader cli written in Golang which uses the concurrent feature of go to download files. The cli is built using cobra. How to

Dipto Chakrabarty 2 Jan 2, 2022
Cli-algorithm - A cli program with A&DS in go!

cli-algorithm Objectives The objective of this cli is to implement 4 basic algorithms to sort arrays been Merge Sort Insertion Sort Bubble Sort Quick

Leonardo Brombilla Antunes 0 Jan 2, 2022
Nebulant-cli - Nebulant's CLI

Nebulant CLI Website: https://nebulant.io Documentation: https://nebulant.io/docs.html The Nebulant CLI tool is a single binary that can be used as a

Develatio 2 Jan 11, 2022
News-parser-cli - Simple CLI which allows you to receive news depending on the parameters passed to it

news-parser-cli Simple CLI which allows you to receive news depending on the par

Maxym 0 Jan 4, 2022
Go-api-cli - Small CLI to fetch data from an API sync and async

Async API Cli CLI to fetch data on "todos" from a given API in a number of ways.

Pete Robinson 0 Jan 13, 2022
Syno-cli - Synology unofficial API CLI and library

Synology CLI Unofficial wrapper over Synology API in Go. Focus on administrative

Aleksandr Baryshnikov 11 Jun 16, 2022
Gobby-cli - CLI application to debug gobby applications

go(bby) Interactive debugging tool for gobby applications Usage Coming soon™ Ins

Qwiri 0 Feb 8, 2022
A CLI tool implemented by Golang to manage `CloudComb` resource

CloudComb CLI tool: comb Get Started comb is a CLI tool for manage resources in CloudComb base on cloudcomb-go-sdk. Support Mac, Linux and Windows. We

Bingo Huang 22 Jan 4, 2021
A small CLI tool to check connection from a local machine to a remote target in various protocols.

CHK chk is a small CLI tool to check connection from a local machine to a remote target in various protocols.

null 25 Mar 30, 2022
A CLI Tool to easily generate your Terraform configuration

Tf Tf is a command line tool to easily generate your Terraform configuration with an interactive prompt. Inspiration Boredom in Covid-19 Installation

Gowtham Munukutla 19 Jul 26, 2022
A powerful cli tool to implement gin annotation ⭐

gin-annotation A powerful cli tool to implement gin annotation Chinese Document Features Using code generating technology by operating golang AST Rout

Tang WenXuan 49 Mar 24, 2022