Unoffical Lindorm CLI for TSDB (时序引擎), written in Go and with better developer experience and less bugs.
Go to the Releases page to download the binary for specific platform. Optionally, rename the binary name to lindorm-cli
.
Set the database credentials via environment variables or .env
file. e.g.
ENDPOINT=http://...
USERNAME=username
PASSWORD=password
DATABASE=database
$ 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.
lindorm-cli
Note that current the SQL statement must be provided as a single line without line break. Type exit
to exit the interface.
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.
Pass the file path containing a SQL statement via -f
option:
lindorm-cli query -f sql.sql