Legion Multiverse

Blog

Magento 2 Commands

Web Developing

Magento 2 Commands

 

Reindexing Command

php bin/magento indexer:reindex

View the list of indexers Command

php bin/magento indexer:info

View indexer status Command

php bin/magento indexer:status

Show the mode of all indexers Command

php bin/magento indexer:show-mode

Cache Clean Command

php bin/magento cache:clean

Cache Flush Command

php bin/magento cache:flush

View cache status Command

php bin/magento cache:status

Enable Cache Command

php bin/magento cache:enable [cache_type]

Disable Cache Command

php bin/magento cache:disable [cache_type]

Setup Upgrade Command

php bin/magento setup:upgrade

where --keep-generated is an optional argument that does not update pub/static files. 
It should be used only in production mode. It should not be used in developer mode.

php bin/magento setup:upgrade --keep-generated

Static Content Deploy Command

php bin/magento setup:static-content:deploy

Static Content Deploy For Particular Language Command

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

Static Content Deploy For Magento Backend Theme Command

php bin/magento setup:static-content:deploy --theme="Magento/backend"

Static Content Deploy For Specific Themes Command

php bin/magento setup:static-content:deploy --theme Magento/luma


See all modules Status Command

php bin/magento module:status

Enable module Command

php bin/magento module:enable Namespace_Module

Disable module Command

php bin/magento module:disable Namespace_Module

Uninstall Module Command

php bin/magento module:uninstall Namespace_Module

Check Current Mode Command

php bin/magento deploy:mode:show

Change To Developer Mode Command

php bin/magento deploy:mode:set developer

Change To Production Mode Command

php bin/magento deploy:mode:set production

Enable Maintenance Mode Command

php bin/magento maintenance:enable

Disable Maintenance Mode Command

php bin/magento maintenance:disable

Check Maintenance Mode Status Command

php bin/magento maintenance:status

www.000webhost.com