This is a starter repository to create a new WP CLI Command. Adjust to your needs to create your WP CLI Command.
Installation (Adjust the links here. This package is not meant to be installed as it does not do anything useful and is only a starting point for development).
wp package install https://github.com/webkinder/wp-cli-command-starter
If you run into memory issues when installing the package, it's a known WP-CLI issue. Check this out for a workaround.
Clone this repo onto plugins/
folder, run composer install
to fetch dependencies and activate the plugin.
Just outputs information about the creators
wp cli starter info
Do something else here with this command.
wp cli starter doSomething
Please add PHP Doc Blocks to all methods you implement. This will improve the ease of usage for the command as these information will be used by WP CLI when running wp cli --help
.
Documentation for documenting can be found on the WordPress Handbook.
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
- Pascal Knecht - https://github.com/pascalknecht
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details