To install Drush globally follow below steps.
1. Run below command, To install Drush 8.x required for Drupal 8+.
composer global require drush/drush:dev-master
2. Now run below command to add Drush to your system path.
export PATH="$HOME/.composer/vendor/bin:$PATH"
3. Run below command to update to a newer version.
composer global update
To install specific version of Drush, run below command.
composer global require drush/drush:6.1.0
Some of the below common used Drush commands.
drush cc or cache:clear => To clear cache. When we run this command, will give some options to execute as below
[0] Cancel
[1] drush
[2] theme-registry
[3] router
[4] css-js
[5] render
[6] plugin
[7] bin
[8] views
No comments:
Post a Comment