There are no commands defined in the "indexer" namespace

when i’m trying to reindex magento from command prompt in xampp, it shows me

There are no commands defined in the “indexer” namespace.

How to fix the «There are no commands defined» failure while executing a console command