all Magento CLI commands code example
Example: command used in magento
php bin\magento module:status
php bin\magento module:enable module_name
php bin\magento setup:upgrade
php bin\magento deploy:mode:show -->current mode
php bin/magento deploy:mode:set developer
php bin/magento cache:clean -->to clean chache
php bin/magenot list
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
php bin/magento setup:di:compile
php bin/magento cache:flush