Here are a few of my favourite things (Drush commands)

In case you didn't already know, Drush is great. It can massively speed up the Drupal development process. Here are some of the commands I use again and again, so I've got them all in one place for reference.

*Run an install hook manually
drush ev "module_load_include('install', 'mymodule');mymodule_install();"

Clear the CSS & JS aggregation cache
drush cc css+js

Clear all caches
drush cc all

Turn off CSS cache
drush vset preprocess_css 0 --y

Turn off JS cache
drush vset preprocess_js 0 --yes

Download a module from drupal.org
drush dl module_name (the name.module file name without the .module part)

Enable a module
drush en module_name -y

Disable a module
drush dis module_name -y

Uninstall a module
drush pm-uninstall module_name

List all enabled modules
drush pm-list --status=enabled --type=module drush pm-list --status=enabled --type=module --no-core

Clear feature cache
drush fl

Revert a Feature
drush fr feature_name

Update a Feature
drush fu feature_name

Let anonymous users view devel info
drush role-add-perm 'anonymous user' 'access devel information'

In Drupal 6, this requires Permissions API module: drush perm-grant 'anonymous user' 'access devel information' This seems to have been removed and replaced with a different syntax: drush perm-grant --all-roles --permissions='access devel information'

In Drupal 7, this is in core

Check the watchdog logs
drush watchdog-show --tail

View full details of a specific log entry
drush ws 1234

Delete/clear watchdog log
drush wd-del all

All tags