Skip to content

Instantly share code, notes, and snippets.

@zachharkey
Created June 11, 2014 00:19
Show Gist options
  • Save zachharkey/d1690d7982a195fdb01d to your computer and use it in GitHub Desktop.
Save zachharkey/d1690d7982a195fdb01d to your computer and use it in GitHub Desktop.
Use drush to save a list of all enabled non-core modules to a text file, then disable/re-enable all modules on that list
#
drush pml --no-core --type=module --status=enabled --pipe > modules.txt
cat modules.txt | xargs drush -y dis
cat modules.txt | xargs drush -y en
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment