@apache-doris/doriscli
v0.1.2
Published
Doris CLI — SQL, profiles, and tablet analysis against an Apache Doris kernel
Maintainers
Readme
doriscli
A fast, scriptable CLI for the Apache Doris kernel. It connects over the MySQL protocol (+ the FE HTTP API), executes, and returns structured JSON.
Install
npm install -g @apache-doris/doriscli
doriscli --versionThis package ships a prebuilt native binary. On install, npm automatically pulls
only the platform package that matches your OS + CPU (via optionalDependencies
os/cpuconstraints), so there is no compile step and no Rust toolchain needed.
Supported platforms: macOS (arm64), Linux (x64, arm64). On any other platform, build from source.
Quick start
# Save a connection ("prod" is a name you choose)
doriscli auth add prod --host 127.0.0.1 --port 9030 --http-port 8030 --user root --password 'secret'
# Verify it (version, backends, workload groups)
doriscli --env prod auth status
# Query
doriscli --env prod sql "SELECT COUNT(*) FROM db.orders"See the full documentation for
sql, profile, tablet, auth, stateless mode, and SOCKS5 tunneling.
