Magento 2 – How to Reindex using Command line

In Magento 1.x, store owner can directly do reindex from Index management. But in Magento 2.x there is no direct options available for Reindex from backend.

As Magento 2.x provides reindex using command line. So lets discuss about how to do reindex using command line.

If you need to do whole index management in the Magento 2.x store, then you have to run the following command.

First go to magento root directory, then run below command to apply reindex to whole store.

But what if you want to reindex specific indexer. for that you will need list of the indexer name. You will get the list of indexer using below command.

In root directory run below command,

Now you have list of all the indexer available, so you can run command for specific indexer.

To run single reindex command,

here [indexer_name] means name of the indexer which you received from ‘indexer:info’ command.

Let me know your comments at below and help me to improve this post and help more and more to Magento 2.x developer.

1 Comment

  1. It’s a really useful blog. Thank you!

Leave a Reply

Your email address will not be published. Required fields are marked *