Skip to content

How to override command module:uninstall and disable,enable,status?

I want override command module:uninstall <module_name>. while execute this php bin/magento module:uninstall <module_name> also in relevant command disable,enable,status

i want to execute my custom module code. can i do? please guide me on this.

Note: i’m try to use in magento 2.4.5-p1