kingberrill of Magento 2
4/6/2017 - 6:28 PM

Common Usages

Common Usages

Install module and upgrade module:
php bin/magento setup:upgrade

Switch to the developer mode or production mode:
php bin/magento deploy:mode:set developer (or production)

Show current mode:
php bin/magento deploy:mode:show

Di compile:
php bin/magento setup:di:compile

Deploy static content:
php bin/magento setup:static-content:deploy

## GB
php bin/magento setup:static-content:deploy en_GB

Reindex:
php bin/magento indexer:reindex

reset index:
php bin/magento indexer:reset

Flush magento cache:
php bin/magento cache:clean
php bin/magento cache:flush