wp-cli/checksum-command
WP-CLI command to verify WordPress core file integrity by comparing local files against published WordPress.org checksums. Supports version/locale selection, optional root checks, file exclusions, and multiple output formats.
Security & Compliance Automation:
--exclude whitespace trimming in v2.3.7).Managed Hosting & SaaS Roadmap:
--exclude parameter handling simplifies excluding specific files/directories (e.g., custom overrides) without edge cases.Build vs. Buy:
--exclude values, reducing custom scripting needs.Use Cases:
wp core verify-checksums in CI/CD to catch tampered files after WordPress core/plugin updates, with reliable exclusion logic.--format=json to programmatically identify compromised files during security investigations, now with cleaner parameter parsing.--strict flag + --exclude vendor/*).wp plugin verify-checksums --all --format=csv > audit.log), with improved readability in generated reports.Adopt if:
--exclude).Look Elsewhere if:
inotifywait + custom scripts).*"This package now offers more reliable and maintainable WordPress file integrity checks, thanks to fixes like trimmed --exclude parameters and updated documentation. By integrating wp-cli/checksum-command (v2.3.7) into our deployment pipelines, we can:
--exclude handling also lets us safely ignore custom files (e.g., overrides) without false positives.It’s a turnkey, production-ready solution (MIT-licensed, maintained by WP-CLI) that plugs into our existing WP-CLI workflows with minimal lift—and now with clearer docs for faster adoption."
Ask: "Should we prioritize this for our [QX] roadmap to harden our WordPress environments, especially with these recent stability improvements?"
*"This is a batteries-included way to validate WordPress file integrity via WP-CLI, now with two key improvements in v2.3.7:
--exclude parameter handling: Whitespace in exclusion rules is now trimmed, preventing edge cases (e.g., wp plugin verify-checksums --exclude=" cache/").Use Cases (Updated):
post-deploy scripts to block corrupted files, with reliable exclusion logic:
wp core verify-checksums --exclude="wp-content/uploads,wp-content/cache" --format=json | jq -e '.[]?.message | contains("verify")' && exit 1
wp plugin verify-checksums --all --exclude="vendor/*" --format=csv > plugin_audit.csv
--strict mode, now with no false positives from malformed exclusions.Trade-offs:
Recommendation: Adopt for WordPress-heavy products. The fixes in v2.3.7 make it even safer for production use. Pair with a custom wrapper if you need to abstract the WP-CLI dependency."*
Ask: "Should we integrate this into [Tool X]’s deployment workflows, and if so, what’s the minimal viable wrapper for our team—now that --exclude is more reliable?"
How can I help you explore Laravel packages today?