After spending a lot of time working with Magento, I kept coming back to a few command-line tasks that were worth memorizing. Rebuilding indexes was one of them.
If you want to reindex from the terminal, go to Magento’s shell directory first:
| |
Then run:
| |
You can also do it in one command:
| |
Useful related commands:
| |
The first shows help and available arguments. The second lists the available Magento indexes so you can see what can be rebuilt individually.