Drush for Drupal 7 Quick Start on CentOS Linux
Hi! The Tutorial shows you Step-by-Step How to Install and Getting-Started with Drush Command Line Interface for Drupal 7 on CentOS 5/6/7 i686/x8664 GNU+Linux Desktop/Server.
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 a Shell session
(Press “Enter” to Execute Commands)In case first see: Terminal QuickStart Guide.
Or Login into the Server Shell. -
How to Install Composer Manager for PHP
-
Installing Drush CLi for Drupal7 on CentOS.
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
-
Getting Started with Drush 7 CLI Commands