Licensing and Activation
A licence unlocks the paid commands on the commercial build. Activate it once on a machine, or pass the key for a single run. Without a valid licence those commands exit 4 and tell you which edition they need.
Open-source commands (migrate, info, validate, undo, …) never need a licence. validate-sql needs no licence for its baseline on either install: 17 migration-safety rules, console or JSON. dblift[cli] includes analysis. A paid flag needs Pro. Pro adds a custom --rules-file, --rules security, --rules schema, the performance analyser, --output, --fail-on, --base, --severity-threshold, --no-performance, and the formats sarif, github-actions, gitlab, compact, and html. Enterprise adds named profiles, the best_practices, performance and naming packs, and individual rule IDs.
Activate
dblift license activate <your-license-key>
That stores the key in ~/.dblift/license.key so later commands pick it up. Confirm what you have:
dblift license info
You should see the edition (Pro or Enterprise) and the expiry.
Use the key without writing a file
Useful in CI, containers, and short-lived agents:
export DBLIFT_LICENSE_KEY="<your-license-key>"dblift license checkdblift diff
Or for one invocation only:
dblift --license-key "<your-license-key>" diff
Precedence is --license-key → DBLIFT_LICENSE_KEY → ~/.dblift/license.key.
Check before a paid command
license check exits 0 when the key is present, valid and not expired. Use it as a pipeline gate:
dblift license checkdblift plan --format text,html --output-dir dblift-reports
A missing, invalid or expired key fails the check. Paid commands fail the same way if you skip the check:
$ dblift diff'diff' is a dblift Pro command and is not included in the open-source edition.Compare applied migrations against live database schema (drift detection).Learn more and upgrade: https://dblift.com/upgrade$ echo $?4
Exit 4 means a licence is required — not that a migration failed. Treat it separately in CI.
Remove the stored key
dblift license deactivate
That deletes ~/.dblift/license.key. Environment variables and --license-key are unchanged.
Which commands need a licence
| Command | Edition |
|---|---|
diff | Pro |
export-schema | Pro |
validate-sql | One command. No licence for the baseline: 17 migration-safety rules, console or JSON. Pro keeps the baseline and adds --rules-file, --rules security, --rules schema, the performance analyser, --output, --fail-on, --base, --severity-threshold, --no-performance, and HTML, SARIF, GitHub Actions, GitLab, and compact. Enterprise keeps those and adds named profiles, the best_practices, performance and naming packs, and individual rule IDs. |
data plan · data apply · data status · data new | Pro |
snapshot | Enterprise |
plan | Enterprise |
preflight | Enterprise |
license itself is how you manage the key on the commercial build. See Editions & tiers for what each edition adds, and dblift license for flags.
DBLift does not offer data undo or before/after row capture. Schema undo, with a hand-written U script, stays on the open core.
Try Pro on a test project
Open the customer area with the email used for your evaluation. Download the commercial build for your system, then follow the commercial installation guide. With the self-contained build, replace dblift in the commands below with the path to its launcher.
Choose one result to review:
- Compare schemas. Use a test schema with a known reference from an earlier DBLift migration. Run
dblift --config dblift.yml --no-progress diff. Review the named differences before refreshing the reference. The Oracle example shows the exact command, an index discrepancy and how to read the verdict. - Review SQL in a pull request. Pass one migration file and its SQL dialect. The command reads the SQL and writes the review report. It does not apply the migration.
dblift license checkdblift validate-sql migrations/V2__change.sql --dialect postgresql --format html --output sql-review.html
Open sql-review.html and check the verdict, the affected SQL and the rule behind each finding. Share the report through your existing pull request process.