Writing WP-CLI Commands That Work!
WP-CLI is a great tool when you don’t need a fancy UI, need to write scripts to perform regular maintenance, or to provide deeper functionality to your awesome plugin. Like WordPress, it’s free, open source, and far more powerful than some people give it credit for.
This session covers the components necessary to write great WP-CLI scripts; from structure to execution, arguments to output, attendees should leave the session with everything they need to know to implement WP-CLI commands in their next project.
Notes and links
- WP-CLI project homepage
- WP-CLI Philosophy
- WordPress.com VIP WP-CLI Best Practices
stop_the_insanity()code based on the implementation from WordPress.com, shortened for brevity.