SPECIAL OFFER: ENJOY 3 MONTHS OF SHOPIFY FOR $1/MONTH SPECIAL OFFER: ENJOY 3 MONTHS OF SHOPIFY FOR $1/MONTH SPECIAL OFFER: ENJOY 3 MONTHS OF SHOPIFY FOR $1/MONTH SPECIAL OFFER: ENJOY 3 MONTHS OF SHOPIFY FOR $1/MONTH SPECIAL OFFER: ENJOY 3 MONTHS OF SHOPIFY FOR $1/MONTH SPECIAL OFFER: ENJOY 3 MONTHS OF SHOPIFY FOR $1/MONTH SPECIAL OFFER: ENJOY 3 MONTHS OF SHOPIFY FOR $1/MONTH SPECIAL OFFER: ENJOY 3 MONTHS OF SHOPIFY FOR $1/MONTH SPECIAL OFFER: ENJOY 3 MONTHS OF SHOPIFY FOR $1/MONTH SPECIAL OFFER: ENJOY 3 MONTHS OF SHOPIFY FOR $1/MONTH

Magento 2 Command Line List

Magento 2 Command Line List– As we all know Magento 2 comes with some predefined commands which enable us to use it easily. Using these commands we can perform important tasks such as – clearing cache, enable/disable developer mode, reindexing, etc. Here in this tutorial, we are going to cover the important commands which are used in daily development life.

Magento 2 Command Line List | Useful Commands

Setup Upgrade Command Line

The setup upgrade command is very simple you can upgrade the setup using the below command

php bin/magento setup:upgrade

Cache Enable Command Line

php bin/magento cache:enable

Cache Disable Command Line

php bin/magento cache:disable

Cache Clean Command Line

Following command is used to clean cache in Magento-

php bin/magento cache:clean

Cache Flush Command Line

php bin/magento cache:flush

Cache Status Command Line

You can use the following command to check the cache status

php bin/magento cache:status

Indexer Show Mode Command Line

php bin/magento indexer:show-mode

Indexer Reindex Command Line

php bin/magento indexer:reindex

Indexer Info Command Line

php bin/magento indexer:info

Module Commands

Enable Module Command Line

In Magento 2 You can enable the module using the command line simply as below

php bin/magento module:enable ModuleName

Disable Module Command Line

You can disable the module using the command line simply as below

php bin/magento module:disble ModuleName

Uninstall Module Command Line

In magento 2 You can uninstall module using command line simply as below

php bin/magento module:uninstall ModuleName

Other Commands

Check Current Mode Command Line

You can check the current mode(Production/Development) using the command line simply as below

php bin/magento deploy:mode:show

Set Developer Mode Command Line

You can set the developer mode simply as below

php bin/magento deploy:mode:set developer

Set Production Mode Command Line

You can set the production mode simply as below

php bin/magento deploy:mode:set production

Run Single Tenant Compiler Command Line

php bin/magento setup:di:compile

Set Static Content Deploy Command Line

php bin/magento setup:static-content:deplo

Set Static Content Deploy Command Line For Language

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

Set Static Content Deploy Command Line For Theme

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

Install Sample Data

Here is a simple command to install the sample data in Magento.

php bin/magento sampledata:install

Run Cron

php bin/magento cron:run