Install Drush for Drupal 8 on macOS
Hi! The Tutorial shows you Step-by-Step How to Install Drush Command Line Interface for Drupal 8 on Mac Mavericks 10.9 OS X Desktop.
Drush is a command line shell and Unix scripting interface for Drupal. If you are unfamiliar with shell scripting, reviewing the documentation for your shell (e.g. man bash) or reading an online tutorial (e.g. search for “bash tutorial”) will help you get the most out of Drush.
-
Open Terminal Window
(Press “Enter” to Execute Commands)In case first see: Terminal QuickStart Guide.
-
Install PHP5 Composer for macOS
-
Installing Drush CLi for Drupal8 on macOS.
composer global require drush/drush:dev-master
-
Insert Drush into User Path.
echo "export PATH=$PATH:$HOME/.composer/vendor/bin" > $HOME/.bashrc
source $HOME/.bashrc
-
Testing Drush Installation.
which drush