User login

Using Drush to list your modules and their statuses: drush sm (for show modules)

On the command line and want to list the modules you have on your site? Fortunately, there's a module-listing command that Agaric's Stefan Freudenberg contributed to Drush.

drush sm

Think "show modules" to remember sm. (The official full name of the command is pm-list which is confusing so just ignore it.)

You can do all your usual fancy command line things:

ben@ubuntu:~/code/agaric/web$ drush sm | grep Views

Views (views) Module Enabled 6.x-2.10
Views attach (views_attach) Module Enabled 6.x-2.2
Views Block (views_block) Module Enabled 6.x-1.0
Bonus: Views Export (views_bonus_export) Module Enabled 6.x-1.0
Bonus: Views Spy (views_bonus_spy) Module Not installed 6.x-1.0
Views Bulk Operations Module Enabled 6.x-1.9
Views content panes (views_content) Module Not installed 6.x-1.2
Views exporter (views_export) Module Enabled 6.x-2.10
Views Gallery (views_gallery) Module Enabled 6.x-1.2
Views Gallery for Organic Groups Module Not installed 6.x-1.2
Views Slideshow (views_slideshow) Module Enabled 6.x-2.0-bet
Views Slideshow: SingleFrame Module Enabled 6.x-2.0-bet
Views Slideshow: ThumbnailHover Module Enabled 6.x-2.0-bet
Views UI (views_ui) Module Enabled 6.x-2.10

To list the Views-related module installed on a particular website from somewhere else on the command path, use -r to provide a path to the Drupal root directory:

drush sm -r ~/code/agaric/web | grep Views

Searched words: 
drush module listing

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.