Setup cron jobs in magento 2

In Magento 2, for cron setup login to your magento 2 server. Change your directory to <Magento 2 install directory>/bin . Now run the following command.

php magento cron:run

The above command will set crons for reindexes indexers, send automated e-mails, generates the sitemap, and so on.