Magento 2 Reindex Command Line


Magento 2 Reindex Command Line– It is very easy and simple to reindex the data in magento 2, you can perform reindexing using the command line. Here in this tutorial we are going to explain how you can reindex the data using command line in magento 2.


Magento 2 Reindex Command Line Example

First go to your magento root directory then run the below command –

Magento 2 Reindex Command Line Syntax | Example:

php bin/magento indexer:reindex

This will perform the full indexing. If you to run some specific index then you can run it simply as below-

Magento 2 Get Indexer Name

You can get the indexer name in magento 2 simply as below-

Magento 2 Get Indexer Info Example:

php bin/magento indexer:reindex indexer_name

If you run the above it will give you the list of inxdexer names.

Magento 2 Run Specific Indexer By Name

You can run any specific indexer by name simply as below-

Magento 2 Run Specific Indexer | Example:

php bin/magento indexer:reindex [indexer_name]

So the above command will run the specific indexer by name. [indexer_name] is name of indexer.

Magento 2: reindexing is not working?

If your reindexing command is not working please make sure you are running the above commands in your magento 2 project’s root directory.


Advertisements

Add Comment

📖 Read More