Magento 2 Commands Shortcut

Posted on 24 April, 2018

In this note, I have compiled a list of most useful commands shortcut for Magento 2 in a single note for all the developers.

Below is the list of most important SSH / CLI commands shortcut for Magento 2 that I have found useful. To use these commands you will need to have SSH access to your server or use the Command Line for local access.

If you want to review all the original commands, you can see this note which is a short-list of all the useful SSH commands used in Magento2: Magento 2 Useful Commands List

Command Shortcut for Setup Upgrade

php bin/magento s:up

If you don’t want to remove pub/static files while installing/updating database then use the following command.

php bin/magento s:up --keep-generated

Command Shortcut for Cache Clean

php bin/magento c:c

Command Shortcut for Cache Flush

php bin/magento c:f

Command Shortcut for Disable Cache

php bin/magento c:d

Command Shortcut for Enable Cache

php bin/magento c:e

Command Shortcut for Reindexing

php bin/magento i:rei

Command Shortcut for View the list of indexers

php bin/magento i:i

Command Shortcut for View indexer status

php bin/magento i:st

Command Shortcut for View indexer Resets

php bin/magento i:res

Command Shortcut for Show the mode of all indexers

php bin/magento i:sh

Command Shortcut for Static Content Deploy

php bin/magento s:s:d

Command Shortcut for Static Content Deploy For Particular Language

php bin/magento s:s:d en_US

Command Shortcut for Static Content Deploy For Magento Backend theme

php bin/magento s:s:d --theme="Magento/backend"

Command Shortcut for Static Content Deploy For Specific Themes

php bin/magento s:s:d --theme Magento/luma --theme Magento/second_theme

Command Shortcut for Exclude Themes on Static Content Deploy and does not minify HTML

php bin/magento s:s:d en_US --exclude-theme Magento/luma --no-html-minify

Command Shortcut for Di Compile

php bin/magento s:d:c

Command Shortcut for See all modules Status

php bin/magento mo:s

Command Shortcut for Enable module

php bin/magento mo:e Namespace_Module

Command Shortcut for Disable module

php bin/magento mo:d Namespace_Module

Command Shortcut for Uninstall Module

php bin/magento mo:u Namespace_Module

Command Shortcut for Check Current Mode

php bin/magento d:m:sh

Command Shortcut for Change To Developer Mode

php bin/magento d:m:se developer

Command Shortcut for Change To Production Mode

php bin/magento d:m:se production

I hope this Magento technical note helped you find what you were looking for. This is a comprehensive list of all useful Magento 2 commands Shortcut; bookmark it for your future reference. Do comment below if you have any other handy commands which are not included in the list.

P.S. Do share this note with your team.


Mayank Zalavadia , eCommerce Project Manager

Magento Technical Notes

About Emipro

Being an emerging leader in IT market since 2011, Emipro Technologies Pvt. Ltd. has been providing a wide range of business solutions in Odoo & Magento. We are pleased to have a large pool of contented customers with our meticulous work in the domain of ERP & e-Commerce. Our customers are companies of all sizes ranging from startups to large enterprises who realize that they need a professional internet solution to generate revenue streams, establish proper communication channels, to achieve desired goals and streamline business operations. [....] Read More

Our writings seems informative ?

Subscribe for our Magento Technical Notes and get more amazing stuff directly to your inbox!

Post Your Review

X

Your Review has been posted

1 Comment(s)

satish rana

Posted on 29 August, 2018

it's help to reduce time