Provide core CLI commands for the most common features of drush

Created on 21 October 2019, over 5 years ago
Updated 11 June 2024, about 1 year ago

Problem/Motivation

Realistically, most people install Drush straight after the install Drupal. Those who don't aren't aware that Drush exists.
As a Drupal developer I chart my Drupal career as 'before Drush' and 'after Drush'. Luckily I found Drush in the D5 days, so the before drush period was short.

Since Drupal 8 Drush compatibility with core has been tricky as both lean heavily on Symfony components.

In Drupal 8.4 core moved to Symfony 3 components which meant Drush had to also update to Symfony 3 in order to be installed via composer. This caused quite a lot of difficulty for people updating ( #2874827: Drush 8.x doesn't install Drupal 8.4.x and Drush master doesn't install Drupal 8.3.x β†’ ). There was also a disconnect between when core 8.4 was released and when people were productive as there was a need to wait for a new version of Drush.

With Drupal 9, core has updated to Symfony 4 components, which means Drush will now have to release a version 11 with a bump of its Symfony components too.

Proposed resolution

We already have Symfony console component in Drupal core (/core/scripts/drupal) and it has some commands.

Having these as part of core removes the burden from Drush having to rely on core updating its Symfony components but also provides maximum productivity for CLI users out of the box. Non technical users will also experience easier upgrades as they won't need to debug why composer won't update when there are lock file conflicts with Drush.

Remaining tasks

  • Buy in from core product managers and drush maintainers
  • Approval
  • Planning
  • Create an initiative
  • Build an initiative team
  • Build the tool

Profit!

User interface changes

None

API changes

New API for providing console commands in core.

Data model changes

Release notes snippet

✨ Feature request
Status

Active

Version

11.0

Component
BaseΒ  β†’

Last updated about 3 hours ago

Created by

πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024