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
[InvalidArgumentException]
There are no commands defined in the "indexer" namespace.
its a lot of pain to individually go to each product and save them.
please help
Please read this reply https://community.magento.com/t5/Technical-Issues/Help-for-Magento-2-Reindex-Error/m-p/33526#M3163
update
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 "