Search by

Run drush command over all defined aliases, with posibility to filter them using grep.

This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.

Package info

github.com/dreamproduction/gdrush

Language:Shell

pkg:composer/dreamproduction/gdrush

Statistics

Installs: 324

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.4 2023-03-16 17:51 UTC

This package is auto-updated.

Last update: 2024-10-16 21:07:27 UTC


README

Run drush commands on multiple sites, matching a pattern to the existing site aliases. Example:

vendor\bin\gdrush dev cr

This will run drush cr on all aliases that match dev

Alternatively, you can declare commonly used commands in composer.json in the scripts object:

...
    "scripts": {
        "drush-local": "vendor/bin/gdrush local",
        "drush-dev": "vendor/bin/gdrush dev",
        "drush-stage": "vendor/bin/gdrush stage",
        "drush-live": "vendor/bin/gdrush live"
    },
...

Then, you can use them like this:

composer drush-dev cr