Dear developer, here’s some of the short hand command for Magento 2.x , which use mostly during development:
Setup upgrade Command (if add/remove any module):
php bin/magento s:up
Enable All Cache:
php bin/magento c:e
Static Content Deploy (if change in any UI file):
php bin/magento s:s:d
di Compile:
php bin/magento s:d:c
To Clean “var” folder:
php bin/magento v:c
Uninstall Magento application:
php bin/magento s:un
Runs cron job scheduled for setup application:
php bin/magento s:c:r
Disables specified modules:
php bin/magento mo:d CompanyName_ModuleName
Enables specified modules:
php bin/magento mo:e CompanyName_ModuleName
Displays status of modules:
php bin/magento mo:s
Uninstalls modules installed by composer (which only installed by composer):
php bin/magento mo:u CompanyName_ModuleName
Cleans cache type(s):
php bin/magento c:c
Disables cache type(s):
php bin/magento c:d
Enables cache type(s):
php bin/magento c:e
Flushes cache storage used by cache type(s):
php bin/magento c:f
Checks cache status:
php bin/magento c:s
Enable Maintenance Mode Using Command Line:
php bin/magento ma:e
Disable Maintenance Mode Using Command Line:
php bin/magento ma:d
Shows allowed Indexers:
php bin/magento i:i
Reindexes Data:
php bin/magento i:rei
Resets indexer status to invalid:
php bin/magento i:res
Sets index mode type:
php bin/magento i:res
Shows status of Indexer:
php bin/magento i:st
Feel free to ask any query, happy coding 🙂
Praveen Maurya work in e-commerce domain having knowledge of Plugin development in Magento 1.x/2.x, Drupal, Woo-Commerce, PrestaShop, Opencart and other e-commerce solution. When he is not engrossed with anything related to these, he loves to explore new things.