Skip to content

Instantly share code, notes, and snippets.

@tdgroot
Last active January 11, 2021 11:27
Show Gist options
  • Save tdgroot/8807a4b57e519f54509b60d0cc297774 to your computer and use it in GitHub Desktop.
Save tdgroot/8807a4b57e519f54509b60d0cc297774 to your computer and use it in GitHub Desktop.
Disable unused Magento 2 modules
#!/bin/bash
bin/magento module:status | \
grep -E '(Magento_(Adobe|Inventory|Braintree|Signifyd|Fedex|Marketplace|Authorizenet.*|.*GraphQl.*|.*Analytics)|Temando_|Amazon_|Dotdigitalgroup_|Vertex_|Klarna_)' | \
grep -v Magento_GoogleAnalytics | \
xargs bin/magento module:disable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment