• How to Install Drush on a Mac?

    What is Drush?

    Drush is a command line shell and scripting interface for Drupal, it allows you to perform all kinds of Drupal specific tasks easily from the command line without going through the Drupal interface

    To install Drush on your mac you need to follow these steps:

    1. Download Drush from GitHub from the following url https://github.com/drush-ops/drush/archive/master.zip

    or just navigate to https://github.com/drush-ops/drush and click the "Download Zip" button

    2. Extract the archive and copy the extracted directory anywhere on your mac

    3. Open a Terminal window and execute the following command to navigate to the /usr/bin directory

    cd /usr/bin

    4. Execute the following command replacing /path/to/drush with the actual path you put your crush folder in, please make sure that the path has the drush program file directly in it, it’s named “drush” with no extensions

    This command creates a symbolic link to the drush program file inside the /usr/bin directory so your Mac can find it

    sudo ln -s /path/to/drush/drush

    5. Type your admin password, and go back to home and test drush by executing the following commands

    cd ~

    6. You should something similar to this

    Congratulations! You have sucessfully installed Drush on your Mac

    I hope you've enjoyed this tutorial and stay tuned for more to come

    Share this post