Drush 9 Roadmap
This week marks Drush’s 10 year anniversary! This old utility knife has responded to millions of requests, shaving seconds off our daily tasks. We hear it all the time at Meetups, Camps and Cons: “I couldn’t live without Drush!” We agree, and use it all day long.
In order to thrive for another decade, the Drush maintainers are sharing some significant changes for Drush 9. Note that Drush 8 will be maintained for a long time so please don’t fret if your needs aren’t met by Drush 9.
- Drush 9 commands will be classes, not procedural .inc files. We have embraced a standard form called Annotated Command. A Drush command is now a single method, along with PHPDoc and annotations that declare arguments/options/examples, etc. Commands now look similar to PHPUnit tests or Drupal8 entity definitions. We have already ported a few commands (Views: before and after, Init: before and after). Drush 9 will keep support for old-style commandfiles in order to ease this transition.
- We have started replacing a lot of custom CLI code with Symfony Console. Lots more to do.
- Move output formatters into its own open source project. This is done!
- Move site aliases to their own project. Lots more to do.
- Require a site-local Drush, and drop Phar support. Possibly keep a slim, global finder/launcher.
Drop code assembly commands and promote Composer as an alternative.
- Drop `make` command. Offer make-convert and composer-generate as upgrade paths.
- Drop pm-download (dl) and pm-updatecode commands. `composer info` and `composer outdated` are replacements for pm-updatecode.
- Write helpful error messages, help topics, and blog posts to support folks as they transition to Composer.
Single Drupal Version
- Drush 9 will only support Drupal 8. It looks like Drupal is going to stick on 8 for a long time, so we might as well simplify to one major Drupal version per Drush version.
- Drupal 6 and 7 users can happily use Drush 8 for a long time (we will support it for a long time).
- This goal and simplifying pm commands help us deprecate Drush engines, which are a pre-OO construct.
- Step up the blogging in order to let the world know about our improvements.
- Build a static web site like http://robo.li/ or https://drupalconsole.com/. Incorporate our docs site and drushcommands.com functionality
- Tutorials for end users and command authors.
As always, please jump in and help with ideas, pull requests, and reviews.