Drush Module Manager

clemens.tolboom - March 13, 2008 - 12:16
Part of an ubercart install

This is a extension to Drupal Shell aka drush ... see also Drush System Manager

Note: Since drush-6.x-1.4 is Revoked I had to revoke my drush_mm-6.x-1.2 too ... sorry for the inconveniences.

The Drush Module Manager (MM) compliments the Drush Project Manager (PM) by allowing users to enable or disable installed modules using the command line. This differs from the Drush PM, which is used for installing them in the first place. As a developer I wanted a command-line interface that went beyond installation. I wanted to add features to enable/disable/uninstall modules using only the command line.

In developing this extension to drush I want to draw attention to the flaws inherent to current drupal module dependency management. This is a 'proof of concept' of another way. There are discussions even about versions dependency management. So this module is not a solution for problems around dependency management.

With this drush extension you can do

drush pm install ubercart
drush mm enable uc_cart

instead of checking a lot of modules and resubmit the modules page over and over again.

Commands

drush mm enable
enabled the given modules and needed modules
drush mm disable
disabled the given modules and modules dependent on the given
drush mm list
lists all modules
drush mm dot
generates a 'dot' structure for processing with graphviz
drush mm uninstall
do not use unless you know what you are doinguninstalles the given modules and dependant on given modules too (which is a design flaw)

So is this module for you?
- If you use drush and needs to install drupal on a weekly basis as I do as a developer.
- If you wants to know what modules are enabled command-line based

You can read some documentation thanks to rsvelko.

For my point of view see http://build2be.com/content/module-management-drupal or watch my command-line exercise at http://blip.tv/file/get/Build2be-ImprovingModuleManagementInDrupal7220.mov

Regards,
Clemens

Releases

Development snapshotsDateSizeLinksStatus
6.x-2.x-dev2009-May-2510.76 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.
5.x-1.x-dev2008-Aug-2111.13 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.


 
 

Drupal is a registered trademark of Dries Buytaert.