WPZylos WP-CLI
Integration bridge between WPZylos commands and WP-CLI.
What You Get
- WP-CLI Registration — Register commands with
wpcommand - Namespace mapping —
wp zylos <command> - WordPress context — Full WordPress environment available
- Output compatibility — WP-CLI output methods
Quick Start
use WPZylos\Framework\WpCli\WpCliServiceProvider;
// In your application bootstrap
if (defined('WP_CLI') && WP_CLI) {
$app->register(new WpCliServiceProvider());
}
Usage
# List plugin commands
wp zylos list
# Run a command
wp zylos migrate
# With arguments
wp zylos make:controller UserController
Documentation
- Overview — WP-CLI integration
- Installation — Setup
- Usage — Command patterns
- API Reference — Adapter methods
- Examples — Real-world usage
- Testing — Testing WP-CLI
- Security — Security notes
- Troubleshooting — Common issues
Related Packages
- wpzylos-cli-core — Command foundation
- wpzylos-cli-devtool — Dev commands