abdallahdeeb / wp-rocket-cli
Add a `wp rocket` command to support the WP Rocket plugin
Installs: 595
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 38
Type:wp-cli-package
pkg:composer/abdallahdeeb/wp-rocket-cli
Requires
- php: >=5.3.0
This package is auto-updated.
Last update: 2025-10-24 20:18:33 UTC
README
This repository contains a WP-CLI command  for the WP Rocket plugin. After installing this plugin, you will have access to a wp rocket command.
Currently supported commands:
- wp rocket activate-- Set WP_CACHE to true.
- wp rocket deactivate-- Set WP_CACHE to false.
- wp rocket clean --post_id=<post_id> --permalink=<permalink> --lang=<lang> --blog_id=<blog_id>-- Purge cache files.
- wp rocket clean --confirm-- Purge cache files without prompting for confirmation (usefull for automation tools/scripts)
- wp rocket preload-- Preload cache files.
- wp rocket regenerate --file=<file>-- Regenerate .htaccess, advanced-cache.php or the WP Rocket config file.
- wp rocket settings load --file=<file>-- Load settings file.
Installing
If you're using WP-CLI v0.23.0 or later, you can install this package with:
wp package install abdallahdeeb/wp-rocket-cli
Changelog
1.1.AD
- Add settings loadcommand.
1.1
- Add regeneratecommand.
1.0
- Initial release