WP CLI and Abilities for Wordfence
WP-CLI commands and WordPress Abilities API integration for Wordfence Security - manage scans, issues, firewall, and license from CLI and REST API
by trueqap · github.com/trueqap/wpcli-for-wordfence · website
★ 4stars
27release downloads
1forks
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/trueqap/wpcli-for-wordfence/releases/download/v1.0.0/wpcli-for-wordfence-1.0.0.zipDeclares an update source (false), so updates arrive through the plugin's own updater.
From the readme
WP CLI and Abilities for Wordfence
WP-CLI commands and WordPress Abilities API integration for Wordfence Security plugin.
Requirements
- WordPress 6.9+
- PHP 8.0+
- WP-CLI 2.5+
- Wordfence Security plugin installed and activated
Installation
1. Upload the wpcli-for-wordfence folder to /wp-content/plugins/
2. Activate the plugin through the WordPress admin
3. Run composer install (optional, for autoloader optimization)
Quick Start - Typical Workflow
Available Commands
General
License
Scan
Note: Wordfence scans run in the background via HTTP callbacks. The scan typically completes in a few seconds for quick scans.
Firewall
Configuration
Issues
Output Formats
Most commands support multiple output formats:
WordPress Abilities API
This plugin supports the WordPress Abilities API (WordPress 6.9+), exposing Wordfence functionality for AI agents, automation tools, and REST API access.
Authentication Setup
The REST API requires authentication via WordPress Application Passwords.
1. Enable Application Passwords (if Wordfence blocks it):
2. Create an Application Password:
- Go to WordPress Admin → Users → Your Profile
- Scroll to "Application Passwords"
- Enter a name (
Read the full README on GitHub →
Releases
| Tag | Published | Asset | Downloads |
|---|---|---|---|
| v1.0.0 | Jan 20, 2026 | wpcli-for-wordfence-1.0.0.zip | 27 |