CLI
CLI
The `raisdb` command-line tool — query databases, explore schema, sync across engines, and drive AI from your terminal.
The RaiseDB CLI is bundled with the desktop app — no separate install. Open a terminal and it's ready. It reads the same connection store as the desktop app.
Top-level commands
| Command | Purpose |
|---|---|
raisdb doctor | Diagnose environment + connectivity |
raisdb connections | List saved connections |
raisdb databases | List databases on a connection |
raisdb schema | List tables / describe a table |
raisdb query | Run a SQL query |
raisdb context | AI-ready schema summary |
raisdb shell | Interactive SQL REPL |
raisdb sync | Cross-database schema diff + data transfer |
raisdb tui | Full-screen TUI browser (see TUI) |
Pages
- Commands — every subcommand in detail
- Shell — the interactive REPL
- Scripting — piping, exit codes, env vars
Global flags
| Flag | Purpose |
|---|---|
--config <path> | Custom raisdb.db location |
--format table | json | csv | Output format (default table) |
Environment variables
| Var | Purpose |
|---|---|
RAISDB_CONFIG | Path to a custom connection store |
RAISDB_CONNECTION | Default connection name |
RAISDB_DATABASE | Default database name |
There is no top-level
--readwriteflag and noRAISDB_FORMATenv.
Verify it's there
raisdb doctorPrints your version, the connection store path, and pings every saved connection.