馃攼 New Features
Login Security Commands
Two new WP-CLI commands for managing Wordfence Login Security module:
-
wp wfls-config- Generic Login Security configuration- Get/set individual Login Security settings
- List all settings with search and filtering
- Export/import with
--managed-onlyblueprint support
-
wp wfls-2fa- Role-based Two-Factor Authentication management- Configure 2FA requirements per role (required/optional/disabled)
- Set grace periods for 2FA enforcement
- Enable remember device feature
- Quick command:
wp wfls-2fa require-admin
馃搵 Usage Examples
Require 2FA for Administrators
wp wfls-2fa configure --administrator=requiredConfigure 2FA with Grace Period
wp wfls-2fa configure \
--administrator=required \
--editor=required \
--enable-grace-period \
--grace-period=7List Current 2FA Status
wp wfls-2fa listExport Login Security Settings
wp wfls-config export /tmp/login-security.json --managed-only鈿欙笍 Technical Details
- 20 Manageable Settings: Role-based 2FA, grace periods, CAPTCHA, XML-RPC, WooCommerce integration
- Conditional Loading: Commands only load when Login Security module is active
- Native API: Uses
WordfenceLS\Controller_SettingsAPI - Separate Table: Supports
wp_wfls_settingstable - Full Features: Dry-run mode, validation, export/import, force flags
馃摝 Installation
Download wf-settings-cli-3.1.0.zip and install via WordPress admin or WP-CLI:
wp plugin install wf-settings-cli-3.1.0.zip --activate馃攧 Upgrade from v3.0.0
No breaking changes. Simply upgrade and the new Login Security commands will be available if the Login Security module is active.
馃摑 Full Changelog
See CHANGELOG for complete version history.
What's Changed in v3.1.0:
- New:
wp wfls-configcommand for managing Wordfence Login Security settings - New:
wp wfls-2facommand for role-based 2FA management - Feature: Configure 2FA requirements per role (administrator, editor, author, contributor, subscriber)
- Feature: Set 2FA grace periods and remember device options
- Feature: Export/import Login Security settings with --managed-only support
- Enhancement: 20 additional manageable settings for Login Security module
- Enhancement: Conditional loading - Login Security commands only load when module is active
馃摎 Documentation
Full documentation available in README.md
Requirements
- Wordfence Security plugin (with Login Security module for
wfls-*commands) - WP-CLI
- WordPress 5.0+
- PHP 7.2+
Full Changelog: v3.0.0...v3.1.0