Everyday Drush commands
Common Drush commands used on a daily basis
Clearing cache
Clear all caches
drush cc all
Clear a specific cache. E.g. menu :
drush cc menu
Cron
Run Drupal cron:
drush cron
Run Drupal an Elysia cron job. For example, feeds cron:
drush elysia-cron run feeds_cron
Download and enabling modules
Download a module and skip the confirmation. For example, download the Features module:
drush dl features -y
Enable a module and skip the confirmation. For example, enable the Features module:
drush en features -y
Disable a module and skip the confirmation. For example, disable the Features module:
drush dis features -y
Uninstall a module and skip the confirmation. For example, uninstall the Features module:
drush pm-uninstall features -y
Search for a module by keywork. For example, search for all modules with the word 'feature' in them:
drush pml | grep feature
Watchdog
Show recent watchdog messages:
drush ws
Show the last 20 watchdog messages:
drush ws --count=20
Show messages of a particular type:
drush ws --type=type
Delete all watchdog messages:
drush wd-del all
Features
Update a feature:
drush fu featurename
Revert a feature:
drush fr featurename
Variables
Get a variable by its name:
drush vget variablename
Set a variable by its name:
drush vset variablename
Delete a variable by its name:
drush vdel variablename
Users
Add letmein as a password to username test1:
$ drush upwd test1 --password=letmein
Create a user with username test1:
drush ucrt test1
Updates
Update core and contrib modules:
$ drush up
Run database updates:
$ drush updb