WP-CLI 1.2.0 was released today with a major overhaul that removes bundled commands from core in favor of maintaining them in distinct packages. This is the second release since the project was brought under the official WordPress umbrella and the first major release since hiring Alain Schlesser as a part-time co-maintainer.
Splitting WP-CLI’s internal commands into separate packages moves the project closer to the goal of having official maintainers for the commands in the future. This new structure for the framework and its commands provides several benefits, as outlined by co-maintainer Daniel Bachhuber in the release post:
- While developing, the tests are only run for the specific component you’re working on, making the feedback loop much shorter.
- Individual command packages can be controlled and set up independently, opening up the opportunity for better collaboration.
- Hotfixes and intermediary releases can be published for individual commands, that can then be updated through the built-in package manager.
- Tests run really fast now.
- When you submit a pull request, you don’t have to wait two hours for the tests to run.
This release also includes three new commands, along with dozens of command improvements and framework enhancements.
wp config getlists constants and globals defined in wp-config.php
wp config pathgets the path to wp-config.php
wp db sizegets the size of the database and its tables
Version 1.2.0 had 43 contributors, a 95% increase in contributors from the previous release. One of the next priorities for maintainers is to improve the contribution workflow. Bachhuber said there are no plans at the moment to bring on additional paid co-maintainers, but they plan to start onboarding more volunteer committers. These are developers who are involved with the project on a regular basis but not necessarily daily or weekly. They have also created a Good First Issues page for new contributors and have started working on a customized dashboard for committers.
WP-CLI Has a New Logo
Bachhuber introduced the project’s new logo today, designed by Chris Wallace and his team at Lift UX. Having an official logo opens up the possibility for WP-CLI swag. Bachhuber said he worked with contributors to create a logo, because “people can develop stronger emotional affinity to brands with logos (myself included).” He is also interested in getting stickers created, particularly ones that glow in the dark, but has not yet found a producer. Bachhuber said he is hoping to have some preliminary WP-CLI swag for WordCamp Europe.