Install
Choose the commercial distribution for a Pro or Enterprise licence, or the open-source package for OSS use.
Pro and Enterprise: install the commercial distribution directly
Both licences use the same commercial distribution. Installing dblift-enterprise also installs dblift-pro and the exact compatible OSS core required by those packages. You do not need to install OSS first. Your licence determines which paid features you can use.
Download your build
Sign in to your DBLift account using the email address your licence was issued to. Choose the build for your operating system and architecture:
| Build | Use it when | Requirements |
|---|---|---|
| Standalone executable | You want the CLI without managing Python packages. | Extract the complete archive and use its launcher. |
| Lean Python bundle | You want the Python API or CLI in a Python environment. | A supported Python interpreter and access to your package index for dependencies. |
| Full Python bundle | You need to install without a package index. | The exact Python minor version and platform named by that bundle. |
Install a Python bundle
Extract the archive and open a terminal in the directory containing wheels/. The lean bundle also contains constraints.txt. Use the Python version supported by the selected bundle, as stated in its INSTALL.txt; the examples below use Python 3.11. A full bundle must match that interpreter's minor version.
Create and activate a new virtual environment:
# macOS / Linuxpython3.11 -m venv .venvsource .venv/bin/activate
# Windows PowerShell
py -3.11 -m venv .venv
.\.venv\Scripts\Activate.ps1For a lean bundle, install the commercial package and its supplied core together. This example selects the PostgreSQL driver:
# macOS / Linuxpython -m pip install --find-links ./wheels -c ./constraints.txt ./wheels/dblift-*-py3-none-any.whl "dblift-enterprise[postgresql]"
# Windows PowerShell
$CoreWheel = (Get-ChildItem .\wheels\dblift-*-py3-none-any.whl).FullName
python -m pip install --find-links ./wheels -c ./constraints.txt $CoreWheel "dblift-enterprise[postgresql]"The core-wheel argument selects the core included in this bundle in the same installation command. Keep the files from one bundle together. pip resolves the matching Pro package and the other dependencies; the lean bundle downloads dependencies from your configured package index.
For a full bundle, install entirely from its included wheels:
python -m pip install --no-index --find-links ./wheels "dblift-enterprise[postgresql]"
Replace postgresql with your engine, for example oracle. Use the same dblift-enterprise package for a Pro licence. Then verify the installation:
python -m pip checkdblift --version
Activate your licence
dblift license activate "<your-license-key>"dblift license checkdblift license info
Confirm that the edition and expiry match your licence. See Licensing and activation for environment-variable and CI usage.
Use the standalone executable
Extract the complete archive, keeping its directory structure. Run ./bin/dblift --version on macOS/Linux, or .\bin\dblift.bat --version in Windows PowerShell. Use that launcher in place of dblift for the licence commands above. This build does not require a separate OSS or Python-package installation.
If OSS is already installed
You can install the commercial distribution into that environment using the bundle command above. pip resolves the core version required by the commercial packages and may replace the existing OSS version. Check your application's dependency constraints and lock file before upgrading an existing project. For an independent evaluation, use a new virtual environment.
Open-source installation
Install the terminal UI, SQL analysis, and the driver for your database. No agent and no server. Python and the driver are the system dependencies.
pip install "dblift[cli,postgresql]"dblift --version
cli is the terminal UI and includes analysis (SQLGlot), which default migrate, undo, info, and validate-sql import. A library install can add dblift[analysis] alone and pass analysis_mode="full". Quote the extra in zsh — square brackets are glob characters.
SQLite needs no driver extra:
pip install "dblift[cli]"
A driver extra by itself only installs the driver. dblift --version works on the base package. migrate --analysis-mode execution and validate do too. Console info needs cli, which includes analysis.
Need MySQL, SQL Server, Oracle, Cosmos, or another of the 20 engines? Use the extra on the capability matrix, and include cli in the same install. database.type selects the plugin.
dblift[all] installs cli, analysis, and every driver. Framework extras can be combined: pip install "dblift[cli,postgresql,django,otel]". django, flask, fastapi, and mcp already depend on dblift[cli,analysis]. otel does not.
| Extra | What it adds |
|---|---|
dblift[cli] | Terminal UI for console output, including info, and SQL analysis. |
dblift[analysis] | SQLGlot for full analysis and validate-sql. Library users can install this extra alone and pass analysis_mode="full". |
dblift[django] | Django management commands and settings integration. |
dblift[flask] | Flask helpers and a CLI command. |
dblift[fastapi] | FastAPI startup guard and health helpers. |
dblift[otel] | OpenTelemetry spans for every operation. |
dblift[mcp] | MCP SDK for dblift mcp (Claude Code, Cursor, Copilot, Windsurf). |
Verify the install
dblift --versionexport DBLIFT_DB_URL="postgresql+psycopg://user:password@localhost:5432/mydb"dblift db check-connection
A missing driver surfaces as an import failure at connection time, not at install time. If a connection fails, check the extra first.
Next: Quickstart.