Commands
Scan
wp strata scan --wait
Starts a full scan. With --wait the command runs the whole scan in that process and prints the result when it finishes; without it the scan is queued and runs in the background. Add --modules=links,media to scan only some areas (module ids: code-inventory, builder-inventory, media, links, css-analysis, conflicts). wp strata status, wp strata resume and wp strata cancel follow a scan that runs in the background. Scans started from WP-CLI are listed on Activity with "Automatic" as the user.
Findings
wp strata findings --severity=critical --format=csv
Lists findings from the latest results. Filter with --severity (critical, warning, notice or info), --scanner (a module id) and --status (open, fixed or ignored), and choose table, CSV or JSON output.
Fix
wp strata fix 42
Applies the suggested safe fix for finding 42, exactly as the button in the admin would, and prints the command to undo it. --target sets the address for Add redirect or the new link for Replace link.
Undo
wp strata undo 17
Reverses action 17 from the Activity log, with the same checks as the Undo button: if you edited the content since, only Strata's own change is reversed.
Report
wp strata report --format=csv > audit.csv
Writes the current report. With Pro, --format=pdf --output=audit.pdf writes the white-label PDF; PDF needs --output.
Running scans from cron
Pro's scheduled scans need no cron of their own, but on a server with a real cron you can also run wp strata scan on your own schedule, for example nightly:
15 2 * * * cd /var/www/example && wp strata scan --quiet