Skip to content

Installation

No .NET SDK or runtime required for the binary install methods.

bash
curl -fsSL https://github.com/AzimMahmud/dbsh/releases/latest/download/install.sh | bash
powershell
powershell -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

PlatformDownload
Windows x64dbsh-windows-x64.zip (~40 MB)
Linux x64dbsh-linux-x64.tar.gz (~40 MB)
Linux arm64dbsh-linux-arm64.tar.gz (~40 MB)
macOS x64dbsh-macos-x64.tar.gz (~40 MB)
macOS arm64dbsh-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.

bash
dotnet tool install --global dbsh
dbsh --version

TIP

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

bash
git clone https://github.com/AzimMahmud/dbsh.git
cd dbsh
.\publish.ps1          # Windows -> dist\dbsh.exe
./publish.sh           # Linux/macOS -> dist/dbsh

Verify

bash
dbsh --version
# -> dbsh v2.1.0
# -> database migrations for .NET

Finding the binary

bash
which -a dbsh
powershell
where.exe dbsh

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

bash
# 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.

bash
UNINSTALL=1 bash -c "$(curl -fsSL https://github.com/AzimMahmud/dbsh/releases/latest/download/install.sh)"
powershell
iwr -Uri https://github.com/AzimMahmud/dbsh/releases/latest/download/install.ps1 -OutFile install.ps1
.\install.ps1 -Uninstall

If you installed via dotnet tool install --global dbsh, use dotnet tool uninstall --global dbsh instead.

Released under the MIT License.