A more RESTful WP-CLI

Daniel Bachhuber maintains the WP-CLI utility tool that is included on the underlying stacks of many, many WordPress websites. Once you get the hang of WP-CLI, it’s super useful, and it’s easy to discover something it can do that you never even realized you needed or wanted, and then it changes your regular workflows.

I love it, personally, for simpler tasks like database exports/imports and search and replace, but there are many available commands, and quite a few plugins integrate with it as well.

Daniel is Kickstarting a project to betterΒ integrate the new WordPress REST API with WP-CLI:

At the end of this project, all WP REST API endpoints registered via plugins and themes willΒ automagically be usable as WP-CLI commands. By supporting this project, you make it possible to push and pull posts (including custom post types), users, and other WP REST API data between separate WordPress installations with one simple WP-CLI command.

Need a copy of a post on production? Use wp post pull. Need to push your menu changes to staging? Use wp menu item push. You get the idea.

This is massively useful, and I think would make many developers happy. Daniel and the other WP-CLI contributors donate their time to the project, yet it is used and relied on by many hosts, agencies, and professional freelancers.

The campaign will allow him to use paid time to provide dedicated development to the tool:

This project matters because both WP-CLI and the WP REST API offer CRUD interfaces to WordPress, and the functional components for WP-CLI’s internals are duplicated by WP REST API endpoints. By using WP REST API endpoints to power WP-CLI, we can remove a lot of code from WP-CLI.

However, putting a substantial amount of volunteered time towards new feature development is challenging, while balancing regular life and client work.Β I already spend hours each week improving WP-CLI, debugging support requests, and shipping new releases.

A successful fundraising campaign will enable me to help bring the utility of the highly-anticipated WP REST API to the command line, without sacrificing the time that normally goes to regular bug fixes and releases.

I think this is a really worthy project, and I hope members here will considering contributing. There are contribution levels that span the spectrum, and his goal is to raise $17,500 to fund roughly 150 hours of development at $100 per hour, plus handle Kickstarter’s fees.

Similar Posts