I have been working with Magento 2 for 2 months now. I realized that I am using bin/magento setup:upgrade
way too much. I think I do not know when I have to run that command.
Here are the situations that I run the aforementioned command.
- When I create a new Module,
- When I add something to Setup directory,
- When I edit
etc/module.xml
, - When I edit
etc/di.xml
, - When I edit
etc/webapi.xml
, - When I edit
etc/adminhtml/system.xml
Question: In which situations is it absolutely necessary to run bin/magento setup:upgrade
command?
(The reason I am asking is that it takes some time finish that command. I believe that it can really improve the productivity if I stop using it unnecessarily.)