All guides
No guide matches your search.
Check your environment with Doctor
Run Doctor on a project, read its report, and compare two reports over time.
On this page
Inspect a project without loading WordPress
Run Doctor from the DevKit checkout. Give it your project and a separate folder for the evidence.
python scripts/doctor.py "C:\path\to\wordpress-project" --output "C:\path\to\evidence\doctor"Doctor reads the project layout and checks the versions of some tools. It does not read secret or configuration values, and it does not load project code. It skips WP-CLI, because a local WP-CLI configuration can run PHP.
The report names the project by its full path on your computer. Add --redact-paths before you share a report, and Doctor records only the folder name. Use the same option for both reports when you compare them later.
Read the report
Each check in the report has one of four results:
passed: the named check succeeded within its stated scope.failed: a check could not finish, for example a version check that timed out. Doctor then exits with code 1.unavailable: the tool or evidence the check needs was missing, or the tool is present but its version check returned an error.skipped: the check was left out on purpose. A skipped check is not a compatibility pass.
Open report.html to read the results. Keep report.json if you want to use the data in other tools. Finding a tool on your computer is only the first step, so you still need to test your project. Invalid input makes Doctor exit with code 2.
Inventory a trusted container
You can also let Doctor bootstrap WordPress inside a container. First inspect the container and decide that you trust it, then name it:
python scripts/doctor.py "C:\path\to\wordpress-project" --container owned-wordpress --trusted-runtime --output "C:\path\to\evidence\runtime"Note
Bootstrapping WordPress can run the code of active plugins, and that code may have side effects. The default WordPress root is /var/www/html, and --wordpress-root changes it. Doctor does not repair, update or flush caches.
Compare two reports
Compare reports only when they describe the same target. The command stops with an error if the two targets differ.
python scripts/report.py "C:\path\to\current\report.json" --previous "C:\path\to\previous\report.json" --output "C:\path\to\comparison"The comparison shows changes in check results, finding severity and fixes. If a finding disappears, verify the fix before you mark it resolved.
Was this page helpful?