Skip to content

zhangyuan/lindorm-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lindorm-cli

Unoffical Lindorm CLI for TSDB (时序引擎), written in Go and with better developer experience and less bugs.

Usage

Download the binary

Go to the Releases page to download the binary for specific platform. Optionally, rename the binary name to lindorm-cli.

Setup the credentials

Set the database credentials via environment variables or .env file. e.g.

ENDPOINT=http://...
USERNAME=username
PASSWORD=password
DATABASE=database

Help

$ lindorm-cli --help
A lindorm-cli with less bugs

Usage:
  lindorm-cli [flags]
  lindorm-cli [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  help        Help about any command
  query       query the data via SQL statements

Flags:
  -h, --help      help for lindorm-cli
  -v, --version   version for lindorm-cli

Use "lindorm-cli [command] --help" for more information about a command.

Run interactive command line interface

lindorm-cli

Note that current the SQL statement must be provided as a single line without line break. Type exit to exit the interface.

Run single statement with subcommand query

Provide the SQL statement via argument

Pass the SQL statement with -s option:

lindorm-cli query -s "select 1"

Note that when the statement contains the backtick character(`), it's tricky to provide the correct argument in Linux termimal. So use -f option below is a better option.

Provide the SQL statement via file

Pass the file path containing a SQL statement via -f option:

lindorm-cli query -f sql.sql

About

Unoffical Lindorm CLI for TSDB, written in Go and with better developer experience and less bugs.

Resources

License

Stars

Watchers

Forks

Packages

No packages published