Thursday 25 November 2010

Drush - find module names quickly

If I have a lot of modules , scrolling through the output of drush sm isn't very productive.

If you are looking for say the "Node Reference" module you can quickly find it's drush sm output by typing:

drush sm | grep "Node Reference"

output:
CCK Node Reference (nodereference) Module Not installed 6.x-2.x-dev

It's name is "nodereference" , so to enable it just do

drush en nodereference

1 comment:

  1. sm is now a deprecated alias. "drush pm-list | grep foo" will do the trick.

    ReplyDelete