I am trying to create custom plugin to use Algolia with Wordpress i.e. algolia custom integration plugin as per Building Search UI | WordPress | Algolia . I am using window and installed wp-cli and able to check wordpress version etc using WP CLI commands, but when I am running “wp algolia reindex_post” command getting “Fatal error: Uncaught Error: Class ‘wpdb’ not found in phar://D:/wp-cli/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1277) : eval()'d code:101” error.
Please help me to fix the issue
Thank you in advance