how to set cron job for reindex magento 2 code example Example: magento 2 reindex command line bin/magento indexer:reindex