How do you enable all modules using drush?

Thanks

Comments

greg.1.anderson’s picture

Well, I think that's sort of a bad idea, but if you wanted to enable all downloaded-but-disabled modules, try this:

drush en `drush pm-list --pipe --status=disabled`

Untested, but that's the general idea. Make sure you use ` (above the tab on my keyboard) and not ' (left of enter on my keyboard). Your layout may vary.

antonyanimator’s picture

Thanks for such a quick reply, it worked great,

p.s.
When I create a site locally I usually create a make file and then I would enable all modules and start working on the site, is there a better way I should approach this?

jonhattan’s picture

Status: Active » Fixed

A better way is to use an install profile to enable only the modules you need.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

liaogz82’s picture

Issue summary: View changes

what is the profile you are talking about?