How to Reindex Magento 2

Magento 2 no longer provides the ability to initiate a reindex via the administration panel and instead requires that a properly setup cron job is setup. However, you are still able to manually reindex a Magento 2 store via SSH from the store root with the following command:

Or to reindex only a specific index such as catalog_product_price you can use the following command:

Note: Some web hosts will require that all SSH commands for your Magento 2 store be run with the PHP user(generally named php) and not root access in which case use the following command:

If you do not want to reindex all available indexes in the Magento 2 store, or wish to view available indexes run the following SSH command:

The default list of available indexes for Magento 2 is as follows:

If you want to see the status of any or all of the available Magento 2 indexes run the following commands:

For all available indexes

For a specific index, for example catalog_product_price:

 

Hans-Eirik Hanifl

view all posts

Hans-Eirik Hanifl is a forward thinking e-commerce and marketing consultant. As an advocate for the free exchange of knowledge, he founded E-Commerce Gorilla as a place where like-minded individuals can ask questions and share their expertise on practical solutions in the area of e-commerce and marketing. He is the owner of TRM Marketing and an avid supporter of the open source community.

0 Comments Join the Conversation →


Leave a Reply

Stay in the loop!

E-Commerce Gorilla Avatar

Join the E-Commerce Gorilla e-mail newsletter. We provide monthly updates on new articles featuring all aspects of online sales and E-Commerce setup. We cover the do's and don'ts of effective online sales, along with great giveaways. As a newsletter subscriber you are automatically entered for any competitions and giveaways.* Join our community of engaged online marketing experts, great content, and great giveaways. You can't go wrong.