If indexing runs directly on the server it spends the least possible amount of resources, and is not vulnerable to being interrupted by web server time limits.
Also, on the command line Servebolt allows for a higher php memory limit, which may be required for larger catalogs to finish indexing successfully.
Log in to SSH and run the indexer like this:
php -d memory_limit=1G /usr/bin/wp algolia reindex --all
After this successfully completes, you can set up a cron job in the admin panel to run this once nightly.
Published on: 30 / 03 / 2018