I have been looking for a way to disable a Magento module in a Magento Cloud Enterprise instance.

Whenever I run the bin/magento module:disable command, I get this error.

Command line user does not have read and write permissions on generated directory.

So how can I disable modules?

  • did you try with sudo?
    – ASQ
    Jan 16, 2020 at 7:59

2 Answers 2


On Magento cloud you need run deploy process.

Anything that is related with file change (not related with cache).

You can use magento-cloud command. Create branch , disable module, test it and deploy to live.




You have to set to '0' the module status ('Vendor_Module' => 0) in app/etc/config.php using the branch you want to update.

So add your changes, commit and push them. A new deploy will start and you'll see the module disabled in the right environment.

  • Yes, but I need a quick way to disable module without deploying. Deployment takes a long time and I only need to check something then will enable the module again.
    – V Salvador
    Aug 13, 2020 at 23:55
  • 1
    I don't think it's possible without any deployment. you need to deploy. Mar 18, 2022 at 2:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.