mitrpaka / drush-launcher

A small wrapper around Drush for your global $PATH.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Drush Launcher

A small wrapper around Drush for your global $PATH.

Why?

In order to avoid dependency issues, it is best to require Drush on a per-project basis via Composer (composer require drush/drush). This makes Drush available to your project by placing it at vendor/bin/drush.

However, it is inconvenient to type vendor/bin/drush in order to execute Drush commands. By installing the drush launcher globally on your local machine, you can simply type drush on the command line, and the launcher will find and execute the project specific version of drush located in your project's vendor directory.

Installation

  1. Download latest stable release via CLI (code below) or browse to https://github.com/drush-ops/drush-launcher/releases/latest.

    OSX:

    curl -OL https://github.com/drush-ops/drush-launcher/releases/download/0.4.2/drush.phar

    Linux:

    wget -O drush.phar https://github.com/drush-ops/drush-launcher/releases/download/0.4.2/drush.phar
  2. Make downloaded file executable: chmod +x drush.phar

  3. Move drush.phar to a location listed in your $PATH, rename to drush:

    sudo mv drush.phar /usr/local/bin/drush

Update

The Drush Launcher is able to self update to the latest release.

    drush self-update

License

GPL-2.0+

About

A small wrapper around Drush for your global $PATH.


Languages

Language:PHP 100.0%