There are no commands defined in the "indexer" namespace

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