Skip to content
This repository has been archived by the owner on Sep 6, 2020. It is now read-only.
Fonata edited this page Dec 31, 2019 · 3 revisions

Drush is a command line tool for the PHP framework Drupal. Please note that the Drush maintainers want you to use a site-local version of Drush downloaded and installed by Composer. For this reason, they explicitly don't release phar files for Drush 9 and 10.

These are configuration settings that can be used to build the Drush 10 phar:

  1. Create an empty directory and change into it:
if [[ $(basename $(pwd)) != 'drush-phar' ]]; then mkdir drush-phar; cd drush-phar; fi
  1. Download the code:
ls composer.lock || composer require drush/drush
  1. Create a box.json configuration file with the following content:
{
    "alias": "drush-10.1.1.phar",
    "chmod": "0755",
    "directories": ["vendor"],
    "finder": [
        {
            "name": "*.php",
            "exclude": ["Tests"],
            "in": "vendor"
        }
    ],
    "main": "vendor/drush/drush/drush.php",
    "output": "drush-10.1.1.phar",
    "stub": true
}
  1. Run Box build: php box.phar build
Clone this wiki locally