Installation
No .NET SDK or runtime required for the binary install methods.
One-liner (recommended)
curl -fsSL https://github.com/AzimMahmud/dbsh/releases/latest/download/install.sh | bashpowershell -c "iwr -Uri https://github.com/AzimMahmud/dbsh/releases/latest/download/install.ps1 | iex"These scripts detect your OS and architecture, download the correct pre-built binary, and add it to your PATH automatically.
Manual download
| Platform | Download |
|---|---|
| Windows x64 | dbsh-windows-x64.zip (~40 MB) |
| Linux x64 | dbsh-linux-x64.tar.gz (~40 MB) |
| Linux arm64 | dbsh-linux-arm64.tar.gz (~40 MB) |
| macOS x64 | dbsh-macos-x64.tar.gz (~40 MB) |
| macOS arm64 | dbsh-macos-arm64.tar.gz (~40 MB) |
Extract and place dbsh (or dbsh.exe on Windows) anywhere on your PATH.
.NET global tool
Requires the .NET 10 SDK/runtime.
dotnet tool install --global dbsh
dbsh --versionTIP
The self-contained binary (one-liner / manual download) does not require .NET. The dotnet tool method is convenient if you already have the SDK installed.
Build from source
git clone https://github.com/AzimMahmud/dbsh.git
cd dbsh
.\publish.ps1 # Windows -> dist\dbsh.exe
./publish.sh # Linux/macOS -> dist/dbshVerify
dbsh --version
# -> dbsh v2.1.0
# -> database migrations for .NETFinding the binary
which -a dbshwhere.exe dbshwhich -a lists every match on PATH, not just the first. This matters because it's possible to have multiple copies on PATH (e.g. one from the installer, another installed manually) — only the first one in PATH order actually runs.
Updating
Re-run the same one-liner you used to install. It overwrites the existing binary in place and won't add a duplicate PATH entry.
# Linux / macOS
curl -fsSL https://github.com/AzimMahmud/dbsh/releases/latest/download/install.sh | bash
# Windows (PowerShell)
powershell -c "iwr -Uri https://github.com/AzimMahmud/dbsh/releases/latest/download/install.ps1 | iex"Uninstalling
Both install scripts double as uninstallers.
UNINSTALL=1 bash -c "$(curl -fsSL https://github.com/AzimMahmud/dbsh/releases/latest/download/install.sh)"iwr -Uri https://github.com/AzimMahmud/dbsh/releases/latest/download/install.ps1 -OutFile install.ps1
.\install.ps1 -UninstallIf you installed via dotnet tool install --global dbsh, use dotnet tool uninstall --global dbsh instead.