Composer Check
Prevent execution of certain drush commands when project uses composer for dependency management
Drupal | Supported |
---|---|
7.x | ✅ |
8.x | ✅ |
Filesync
Sync file directories between environments
drush file-sync @source @destination
Drupal | Supported |
---|---|
7.x | ✅ |
8.x | ✅ |
Update Rerun
Re-execute a single module update hook
drush update_rerun foo_module 7001
Drupal | Supported |
---|---|
7.x | ✅ |
8.x | ❌ |
Installation
Global
Using Composer
- Require
composer/installers
composer global require composer/installers
- Configure the installer path for drush plugins in
~/.composer/composer.json
{ "extra": { "installer-paths": { "../.drush/plugins/{$name}": ["type:drupal-drush"] } } }
- Require the plugin
composer global require gapple/drush-composercheck
Manual Installation
- Download the release package
- Unzip the package to
~/.drush/
Project
Using Composer
- Require
composer/installers
in your projectcomposer require composer/installers
- Configure the installer path for drush plugins in your project’s
composer.json
{ "extra": { "installer-paths": { "drush/contrib/{$name}": ["type:drupal-drush"] } } }
- Require the plugin in your project
composer require gapple/drush-composercheck
Manual Installation
- Download the release package
- Unzip the package to the
drush
folder within your project