hi, i have just imported some 1000 products, am unable to do reindexing of the product using CLI,
php -f magento24/bin/magento indexer:reindex
the following error comes up
There are no commands defined in the "indexer" namespace.
its a lot of pain to individually go to each product and save them.
You can try this also Magento 2 error when reindex by cli
How to fix the «There are no commands defined» failure while executing a console command: https://mage2.pro/t/176
Follow Below Step
1) Open terminal
2) go Magento root folder
3) go bin folder like ( cd bin )
4) write a command "sudo php magento reindexer:reindex "