Installation
Pre-built binaries (recommended)
Section titled “Pre-built binaries (recommended)”curl -fsSL https://clement-tourriere.github.io/dbcrust/install.sh | shCustomise:
# Specific versionDBCRUST_VERSION=v0.25.0 curl -fsSL https://clement-tourriere.github.io/dbcrust/install.sh | sh
# Custom directoryDBCRUST_INSTALL_DIR=/usr/local/bin curl -fsSL https://clement-tourriere.github.io/dbcrust/install.sh | shirm https://clement-tourriere.github.io/dbcrust/install.ps1 | iexCustomise:
$env:DBCRUST_VERSION = "v0.25.0"; irm https://clement-tourriere.github.io/dbcrust/install.ps1 | iexThis installs two binaries: dbcrust (full name) and dbc (short alias).
Python package managers
Section titled “Python package managers”uv (recommended)
Section titled “uv (recommended)”uv tool install dbcrust # global tooluvx dbcrust <url> # run without installinguv add dbcrust # add to a projectpip / pipx
Section titled “pip / pipx”pip install dbcrust# orpipx install dbcrustFrom source
Section titled “From source”Prerequisites
Section titled “Prerequisites”- Rust stable — install from rustup.rs
- mise 2026.8.16+ (optional but recommended) — manages dev tools and the Rust build cache. Not installed? Use the repository’s
./bin/misewrapper in its place: it downloads a pinned mise on first use.
git clone https://github.com/clement-tourriere/dbcrust.gitcd dbcrust
# Option A: with mise (recommended) — or ./bin/mise without installing misemise install # installs Mr Boxington, Commitizen, hk, Bun (docs site), etc.mise run build # release buildmise run build:dev # debug build (faster)mise run install # build + install dbcrust and dbc into ~/.cargo/bin
# Option B: cargo only (CLI only)cargo install --path . --locked --force
# Slim build: PostgreSQL, MySQL and SQLite only (no DataFusion, MongoDB,# ClickHouse, Elasticsearch, Docker, AI, TUI or clipboard): a much smaller binary# and a much shorter buildcargo install --path . --locked --force --no-default-features --features standardmise run install:slim # the same through miseThe default build includes every engine and add-on. See Build features to pick exactly what you need.
With mise, Cargo builds go through Mr Boxington, a shared build cache: rebuilds, other branches and worktrees reuse compiled crates. See Build cache.
Building the desktop app
Section titled “Building the desktop app”The desktop app is pure Rust (GPUI Kit), so only a Rust toolchain is required. On Linux, install the GPUI system libraries first, for example on Debian/Ubuntu: sudo apt install libxkbcommon-x11-dev libwayland-dev libfontconfig-dev libx11-xcb-dev libvulkan1.
mise run gui:dev # run the app (dev build, optimised dependencies)mise run gui:build # optimised build → target/gui-release/dbcrust-guimise run gui:install # install dbcrust-gui into ~/.cargo/binmise run gui:bundle # macOS: target/gui-release/bundle/DBCrust.app
# no mise installed: the committed wrapper./bin/mise run gui:dev
# cargo onlycargo run -p dbcrust-guicargo install --path gui --bin dbcrust-gui --lockedSee Desktop GUI for details.
Python bindings
Section titled “Python bindings”mise run py:dev # maturin develop (editable install)mise run py:build # build wheel# orpip install -e ./pythonShell completion
Section titled “Shell completion”Enable tab-completion for URL schemes, container names, session names, compatible data files, and flags.
mkdir -p ~/.local/share/bash-completion/completionsdbcrust --completions bash > ~/.local/share/bash-completion/completions/dbcrustdbc --completions bash > ~/.local/share/bash-completion/completions/dbcsource ~/.bashrcmkdir -p ~/.zfuncdbcrust --completions zsh > ~/.zfunc/_dbcrustdbc --completions zsh > ~/.zfunc/_dbcAdd to ~/.zshrc (before source $ZSH/oh-my-zsh.sh if you use oh-my-zsh):
fpath+=~/.zfuncautoload -U compinit && compinitdbcrust --completions fish > ~/.config/fish/completions/dbcrust.fishdbc --completions fish > ~/.config/fish/completions/dbc.fishdbcrust --completions powershell > "$HOME\Documents\PowerShell\Completions\dbcrust.ps1"dbcrust --completions nushell | save -f ($env.NU_VENDOR_AUTOLOAD_DIR | path join "dbcrust.nu")Completions are answered live by the dbcrust binary itself (the script calls
it back at Tab time), so saved sessions, running Docker containers, and
compatible files are always current — just keep dbcrust on your PATH.
After setup:
dbc pos[TAB] → postgres://dbc docker://[TAB] → lists running containersdbc session://[TAB] → lists saved sessionsdbc --[TAB] → shows flagsVerify
Section titled “Verify”dbcrust --version
# Quick test (no external database needed)dbcrust sqlite://:memory: --query "SELECT 'Hello DBCrust!' as message"Supported databases
Section titled “Supported databases”| Database | Versions | URL scheme |
|---|---|---|
| PostgreSQL | 9.6+ | postgres:// |
| MySQL | 5.7+ | mysql:// |
| SQLite | 3.6+ | sqlite:// |
| ClickHouse | 20.3+ | clickhouse:// |
| MongoDB | 4.0+ | mongodb://, mongodb+srv:// |
| Elasticsearch | 7.x+ | elasticsearch://, es:// |
File formats (via Apache DataFusion):
| Format | URL scheme |
|---|---|
| Parquet | parquet:// |
| CSV | csv:// |
| JSON | json:// |
Bare paths such as users.csv, warehouse.parquet, and app.sqlite are also accepted and inferred from the extension.
Special schemes:
| Scheme | Purpose |
|---|---|
docker:// | Connect to database containers |
session:// | Saved sessions |
recent:// | Recent connections |
file:// | Interactive compatible-file picker |
vault:// | HashiCorp Vault credentials |
Updating
Section titled “Updating”DBCrust can update itself. It detects how it was installed (uv tool, pipx, pip, cargo, standalone binary), checks GitHub for the latest release, and runs — or prints — the matching upgrade command:
dbcrust --updateOr update manually through your install channel:
# Pre-built binary — just re-run the installercurl -fsSL https://clement-tourriere.github.io/dbcrust/install.sh | sh
# uvuv tool upgrade dbcrust
# pipxpipx upgrade dbcrust
# pippip install --upgrade dbcrust
# From sourcegit pull && mise run install # or: cargo install --path . --locked --forceUninstalling
Section titled “Uninstalling”# uvuv tool uninstall dbcrust
# pippip uninstall dbcrust
# cargocargo uninstall dbcrust
# Remove config (optional)rm -rf ~/.config/dbcrust