Magento 2 basic command
1) clear cache : php bin/magento cache:flush
2) reindex : php bin/magento indexer:reindex
3) cmd to deploy static data : php bin/magento setup:static-content:deploy en_US en_AU
4) show which mode is active developer or production
php bin/magento deploy:mode:show
set developer mode : php bin/magento deploy:mode:set developer
set production mode :php bin/magento deploy:mode:set production
5) check module status
php bin/magento module:status
6) Enable module
php bin/magento module:enable Your_modulename --clear-static-content
eg. php bin/magento module:enable Rain_Affiliate --clear-static-content
7) Dissable module
php bin/magento module:disable Magento_Weee
8 ) After install module you have to run this 2 command
php bin/magento setup:upgrade
php bin/magento setup:di:compile
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment