Magento 2 Indexing Management Using Magento CLI Command
October 13, 2016 Comments 0 409 Views

Magento 2 Indexing Management Using Magento CLI Command

While working with Magento 2.1 we notice that the Re Index button was missing in Index Management ? So for the people who was using this button now have to put some more efforts to get the indexing done.

Magento 2 Indexing Management Admin Interface :

Magento 2 Index Management Admin Interface

Admin can view the indexer status from admin area, but you will not find the option to click and reindex the indexers using the admin panel. Below is the information on how the Indexing of Magento can be done using the Magento CLI

Get ready with the SSH details using which you can login.

Open your command prompt and login with SSH root or user.

1) SSH root@ipaddress OR SSH user@domainname.com
2) Password

Magento CLI SSH Screen

 

After successful login visit the bin directory of magento. So if you have magento files in public_html directory then you can locate it using below command.

cd /var/www/public_html/bin

Please note that the root directory may be different as per the different hosting and server setup. So you can first get the document root from phpinfo(); and then locate the bin directory using above command in command prompt.

View Indexer List :

Once you reach the bin directory in command prompt you can enter below command to check the list of Indexers.

./magento indexer:info

Magento 2 Indexer Info

 

View Indexer Status :

Now to view the indexer status you can use below command. If you add the name of indexer from above info list then it will provide status of selected indexer OR if you keep it blank then all indexer status will be displayed.

./magento indexer:info [indexer]

OR

./magento indexer:info

Magento Indexer status

 

Re Index the Magento Indexers :

Using below command you can reindex all indexers OR can reindex any selected indexer. This command reindex all indexer one time only.

./magento indexer:reindex [indexer]

OR

./magento indexer:reindex

Magento Indexer Reindex

 

Previous Working with PHP Array - Indexed, Associative & Multi-Dimensional
Next Magento 2 Cache Management Using Magento CLI Command.

About author

Rio
Rio 37 posts

Expert web developer working in PHP, Wordpress, Joomla, Magento, Javascript etc.

You might also like

Magento 0 Comments

Magento 2 Cache Management Using Magento CLI Command.

Magento 2 Cache can be clean or flush from the Magento admin too. But below is the method to do the same using Command Prompt Magento CLI. Flush / Clean

Magento 0 Comments

Magento 2 Admin Security Settings

Adding correct security to admin section of your Magento 2 will ensure that no unwanted login should happen in admin and your admin section will stay protected. To help and

Magento 0 Comments

Magento 2 Forgot Password Says Too many password reset requests.

Magento 2 “Forgot Password” give error to users saying ( Too many password reset requests. Please wait and try again or contact owner@example.com ) This problem generally occur when you