Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save DominicWatts/30829fa5c40f085a4070fbced38a1c1b to your computer and use it in GitHub Desktop.
Save DominicWatts/30829fa5c40f085a4070fbced38a1c1b to your computer and use it in GitHub Desktop.
Magento 2 Mass toggle MSI

Enable MSI

php bin/magento module:status | grep Magento_Inventory | grep -v List | grep -v None | grep -v -e '^$' | xargs php bin/magento module:enable

Disable MSI

php bin/magento module:status | grep Magento_Inventory | grep -v List | grep -v None | grep -v -e '^$' | xargs php bin/magento module:disable 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment