Reindex using Command line in Magento2

Home / Magento2 / Reindex using Command line in Magento2

Explain how to reindex using the command line in Magento 2. It is extremely useful for Magento 2 extension development.

In the root Magento directory.

php bin/magento indexer:reindex

In the root/bin directory

php magento indexer:reindex

To get the index name to run index one by one, first write the following command to get information.

in the Magento root directory.

php bin/magento indexer:info

To execute a single reindexing command

php bin/magento indexer:reindex indexer_name

Indexer name that we got from indexer:info

Related Posts

Leave a Reply

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