This repository has been archived by the owner on Sep 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 80
Drush
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:
- Create an empty directory and change into it:
if [[ $(basename $(pwd)) != 'drush-phar' ]]; then mkdir drush-phar; cd drush-phar; fi
- Download the code:
ls composer.lock || composer require drush/drush
- 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
}
- Run Box build:
php box.phar build