feat(cli): migrate CLI to native Rust binary

This commit is contained in:
t8y2 committed 2026-07-18 22:29:29 +08:00
1 parent fa5579a3f1
commit 4bcf618162
47 files changed
+2369 -1255

No files matched your search

+3 -9
View File
@@ -20,7 +20,7 @@ brew tap t8y2/dbx
brew install dbx-cli
```
Requires Node.js 22.13.0 or newer.
Node.js 18.18.0 or newer is required for the npm launcher. The CLI itself does not depend on `better-sqlite3` or a Node.js native-module ABI. Homebrew users do not need to manage Node.js separately.
Check the installed version:
@@ -54,13 +54,7 @@ dbx doctor
dbx doctor --json
```
If `dbx doctor` reports a `NODE_MODULE_VERSION` mismatch after switching Node.js versions, rebuild the native dependencies with the Node.js version you use to run `dbx`:
```bash
pnpm rebuild better-sqlite3 keytar --pending
```
For global npm installs, reinstall the CLI with the same Node.js version:
If the optional platform package was not installed, reinstall without `--no-optional`:
```bash
npm uninstall -g @dbx-app/cli
@@ -74,7 +68,7 @@ dbx capabilities
dbx capabilities --json
```
Direct execution currently supports PostgreSQL/Redshift, MySQL-compatible databases (MySQL, Doris, StarRocks), and SQLite. Other database types use the DBX Desktop bridge until their drivers are added to `@dbx-app/node-core`.
Direct execution currently supports PostgreSQL/Redshift, MySQL-compatible databases (MySQL, Doris, StarRocks), and SQLite. Other database types use the DBX Desktop bridge or DBX Agent/JDBC infrastructure.
## Default Connection