Skip to content

Installation

Terminal window
curl -fsSL https://clement-tourriere.github.io/dbcrust/install.sh | sh

Customise:

Terminal window
# Specific version
DBCRUST_VERSION=v0.25.0 curl -fsSL https://clement-tourriere.github.io/dbcrust/install.sh | sh
# Custom directory
DBCRUST_INSTALL_DIR=/usr/local/bin curl -fsSL https://clement-tourriere.github.io/dbcrust/install.sh | sh

This installs two binaries: dbcrust (full name) and dbc (short alias).

Terminal window
uv tool install dbcrust # global tool
uvx dbcrust <url> # run without installing
uv add dbcrust # add to a project
Terminal window
pip install dbcrust
# or
pipx install dbcrust
  • 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/mise wrapper in its place: it downloads a pinned mise on first use.
Terminal window
git clone https://github.com/clement-tourriere/dbcrust.git
cd dbcrust
# Option A: with mise (recommended) — or ./bin/mise without installing mise
mise install # installs Mr Boxington, Commitizen, hk, Bun (docs site), etc.
mise run build # release build
mise 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 build
cargo install --path . --locked --force --no-default-features --features standard
mise run install:slim # the same through mise

The 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.

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.

Terminal window
mise run gui:dev # run the app (dev build, optimised dependencies)
mise run gui:build # optimised build → target/gui-release/dbcrust-gui
mise run gui:install # install dbcrust-gui into ~/.cargo/bin
mise run gui:bundle # macOS: target/gui-release/bundle/DBCrust.app
# no mise installed: the committed wrapper
./bin/mise run gui:dev
# cargo only
cargo run -p dbcrust-gui
cargo install --path gui --bin dbcrust-gui --locked

See Desktop GUI for details.

Terminal window
mise run py:dev # maturin develop (editable install)
mise run py:build # build wheel
# or
pip install -e ./python

Enable tab-completion for URL schemes, container names, session names, compatible data files, and flags.

Terminal window
mkdir -p ~/.local/share/bash-completion/completions
dbcrust --completions bash > ~/.local/share/bash-completion/completions/dbcrust
dbc --completions bash > ~/.local/share/bash-completion/completions/dbc
source ~/.bashrc

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:

Terminal window
dbc pos[TAB] → postgres://
dbc docker://[TAB] → lists running containers
dbc session://[TAB] → lists saved sessions
dbc --[TAB] → shows flags
Terminal window
dbcrust --version
# Quick test (no external database needed)
dbcrust sqlite://:memory: --query "SELECT 'Hello DBCrust!' as message"
DatabaseVersionsURL scheme
PostgreSQL9.6+postgres://
MySQL5.7+mysql://
SQLite3.6+sqlite://
ClickHouse20.3+clickhouse://
MongoDB4.0+mongodb://, mongodb+srv://
Elasticsearch7.x+elasticsearch://, es://

File formats (via Apache DataFusion):

FormatURL scheme
Parquetparquet://
CSVcsv://
JSONjson://

Bare paths such as users.csv, warehouse.parquet, and app.sqlite are also accepted and inferred from the extension.

Special schemes:

SchemePurpose
docker://Connect to database containers
session://Saved sessions
recent://Recent connections
file://Interactive compatible-file picker
vault://HashiCorp Vault credentials

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:

Terminal window
dbcrust --update

Or update manually through your install channel:

Terminal window
# Pre-built binary — just re-run the installer
curl -fsSL https://clement-tourriere.github.io/dbcrust/install.sh | sh
# uv
uv tool upgrade dbcrust
# pipx
pipx upgrade dbcrust
# pip
pip install --upgrade dbcrust
# From source
git pull && mise run install # or: cargo install --path . --locked --force
Terminal window
# uv
uv tool uninstall dbcrust
# pip
pip uninstall dbcrust
# cargo
cargo uninstall dbcrust
# Remove config (optional)
rm -rf ~/.config/dbcrust