Installing the module
Now that the module is code-complete, run the following commands to install it:
bin/magento module:status - This command shows a list of enabled/disabled modules.
bin/magento module:enable MyCompany_ExampleAdminNewPage - If necessary, run this to enable the disabled module.
bin/magento setup:upgrade - This command will properly register the module with Magento.
bin/magento setup:di:compile - This command compiles classes used in dependency injections.
Mode Set:
php bin/magento deploy:mode:set developer
php magento deploy:mode:set production