Installation
Requirements and setup for WPZylos WP-CLI.
Requirements
| Requirement | Version |
|---|---|
| PHP | ^8.0 |
| WordPress | 6.0+ |
| WP-CLI | 2.0+ |
Composer Installation
composer require KYNetCode/wpzylos-wp-cli
WP-CLI Detection
The package is only loaded when WP-CLI is active:
if (defined('WP_CLI') && WP_CLI) {
$app->register(new WpCliServiceProvider());
}
Verification
wp help
# Should show your plugin's commands