A WP-CLI base framework for building WP-CLI workflows.
When using in your plugin, you will need to take several steps:
- Copy the
clidirectory to your plugin. To include the CLI commands from your plugin, review the example-cli-plugin.php file.
- Determine how you load your classes, and replace the example plugin namespaces.
- Replace the sample commands in
cli/commands.phpwith your own.
- Replace the sample methods in
cli/actions.phpwith your own.
The real functionality of this framework can be found in
cli/base.php. This provides some base wp-cli functionality which can be easily integrated to your commands. Examples of using many of those methods can be found in