Wednesday, August 31, 2011

drush

Helpful Drush Commands:

  1. drush fra - feature # Revert all

  2. drush fu $module # update the code

  3. drush dis $module # disable module

  4. drush en $module # enable module

  5. drush cc menu # clear cache for menu

  6. drush cc all # clear all cache

  7. drush sm # show modules The official full name of the command is pm-list which is confusing so just ignore it

  8. drush scr test.php # running a Drupal script

  9. drush php-script test.php # run a Drupal Script

  10. drush php-eval 'global $user; print_r($user)' # executing code

No comments:

Post a Comment