Scans a Frappe site before a major version upgrade and lists what will break: removed and renamed APIs in its apps, site scripts and customisations, and what the bench needs for the new version. It changes nothing on the site.
From the bench directory, into the bench's own environment:
./env/bin/pip install prefly
./env/bin/preflight --site mysite.local --target v16For CI, scan an app's checkout with no site or bench:
pip install prefly
preflight --path . --target v16A clean report means no known problems were found, not that the upgrade is safe.
- Overview: what it checks, options, exit codes, limits
- Getting started: install, the first scan, CI, suppressing a finding
- Reading a report
- Rules
- Upgrade checklist
- Writing a rule
- How it was tested
Sponsors keep preflight's rules current with each Frappe release.
MIT