Drush Ultimate Basic Cheat Sheet

Vineet Kumar
1 min readJul 4, 2020

--

  1. Setup Drush: Download drush from https://git.drupalcode.org/project/drush.git
    Make the ‘drush’ command executable: $ chmod u+x /path/to/drush/drush
    create a symbolic link to the Drush executable in a directory that is already in your PATH, e.g.: $ ln -s /path/to/drush/drush /usr/bin/drush
    Run Following Commands.
  2. drush pmi <module-name> : Display primary info of drupal modules
  3. drush dl <module-name> : Download Particular drupal module
  4. drush en <module-name> : Enable/Install drupal module
  5. drush dis <module-name> : Disable drupal module
  6. drush uninstall <module-name> : Uninstall drupal module (Delete data from database so cross check module name before run this command)
  7. drush upwd --password=”newpassword" “drupal-user” : Change drupal user password with drush command
  8. drush watchdog-show --tail : To view drupal logs on terminal
  9. Enjoy

--

--

No responses yet