Search by

davereid / drush-helper

Dave Reid

Helpful Drush commands.

Package info

github.com/davereid/drush-helper

Language:Shell

Type:drupal-drush

pkg:composer/davereid/drush-helper

Statistics

Installs: 9

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 4

v0.1.0 2026-11-23 16:30 UTC

This package is auto-updated.

Last update: 2026-11-25 07:02:07 UTC


README

Helpful Drush commands for Drupal sites. It's a Composer package of type drupal-drush, so it doesn't need a Drupal module to be installed or enabled.

Requirements

  • Drush 12 or 13. Drush 14 won't be released, and support for Drush 15 and Drupal core's dr command is planned in #6.
  • Drupal 10 or 11, as supported by your Drush version
  • PHP 8.1 or newer, as required by your Drush and Drupal versions

Installation

composer require davereid/drush-helper

Drupal projects based on drupal/recommended-project install it in drush/Commands/contrib/drush-helper, where Drush finds it.

Commands

drupal:installed

Exits with 0 if Drupal is installed (its settings load and its database is reachable), and 1 if it isn't. It prints nothing, so it's meant for scripts:

if drush drupal:installed; then
  drush deploy
else
  drush site:install --existing-config --yes
fi

Development

tests/functional.sh installs the package into a new Drupal project with SQLite and runs the commands. DRUPAL_VERSION and DRUSH_VERSION choose the versions:

DRUPAL_VERSION=10 DRUSH_VERSION=12 tests/functional.sh

Pull request titles must follow Conventional Commits, since release-please uses them for versions and the changelog. See AGENTS.md for the code and CI conventions.

License

GPL-2.0-or-later