Skip to content

Instantly share code, notes, and snippets.

@athaller
Forked from zachharkey/new_gist_file_0
Created July 15, 2016 13:19
Show Gist options
  • Select an option

  • Save athaller/2cef4f810de95696514640ea8d3acb9c to your computer and use it in GitHub Desktop.

Select an option

Save athaller/2cef4f810de95696514640ea8d3acb9c 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