shell
cargo install iotdb-cli
shell
iotdb -h
```shell
▀██▀ ▄▄█▀▀██ █▀▀██▀▀█ ▀██▀▀█▄ ▀██▀▀█▄ ██ ▄█▀ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀▀█▄ ██ ▀█▄ ██ ██ ██ ██ ██ ██ ▄██▄ ▀▀█▄▄▄█▀ ▄██▄ ▄██▄▄▄█▀ ▄██▄▄▄█▀ 0.0.1
USAGE: iotdb [FLAGS] [OPTIONS] [sql] [SUBCOMMAND]
FLAGS: -d, --debug Enable debug mode -h, --help Prints help information -V, --version Prints version information
OPTIONS:
--endpoint
ARGS:
iotdb "SHOW STORAGE GROUP"
SUBCOMMANDS: file TODO: Execute sql from file help Prints this message or the help of the given subcommand(s)
```
shell
iotdb -u root -p root --endpoint 127.0.0.1:6667 -t UTC+8
shell
$ iotdb "SHOW STORAGE GROUP"
+---------------+
| storage group |
+---------------+
| root.ln |
| root.sg1 |
+---------------+
```shell $ iotdb -u root -p root --endpoint 127.0.0.1:6667 -t UTC+8
▀██▀ ▄▄█▀▀██ █▀▀██▀▀█ ▀██▀▀█▄ ▀██▀▀█▄ ██ ▄█▀ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀▀█▄ ██ ▀█▄ ██ ██ ██ ██ ██ ██ ▄██▄ ▀▀█▄▄▄█▀ ▄██▄ ▄██▄▄▄█▀ ▄██▄▄▄█▀
IOTDB#(127.0.0.1:6667)> SHOW STORAGE GROUP +---------------+ | storage group | +---------------+ | root.ln | | root.sg1 | +---------------+ ```