How to Do Re-indexing via Command Line in Magento 2?

  • author-img Nidhi Arora
  • 7 years
How to Do Re-indexing via Command Line in Magento 2?

Re-indexing using admin panel is ideal for Magento 2 stores with small to medium-sized inventories. However, if you own a Magento 2 based store with a large inventory size, re-indexing via admin panel can be painful for you. In such situation, only command line re-indexing method would work best for you.

To do re-indexing in Magento 2, you need to run the following commands:

• Re-indexing Root Directory:
php bin/magento indexer:reindex
• Re-indexing root/bin directory:
php magento indexer:reindex
• Magento 2 Single Re-indexing Command:
php bin/magento indexer:reindex indexer_name

You will get the indexer name from the following command:

php bin/magento indexer:info

The command line method is considered to be more efficient than admin panel approach. It will execute indexing in a perfect way.

For our monthly support or hourly premium support, you can contact our Magento Certified Team. Hope this Magento 2 ‘How to’ is useful for you.

Download Blog

ENQUIRY

Ready to Get Started

Communication is the key for us to understand each other. Allow us to understand
your requirements or queries. Present us with an opportunity to serve you.

Fill out the form and out team will get back to you
within 24 hours

    Head Office

    815 Brazos St STE 500, Austin,
    TX 78701, USA