Last Updated on January 21, 2022

Magento Recommends 3 type of cron are introduced in Magento-2 as given below

*/1 * * * * php -c /path/to/magento2/bin/magento cron:run
*/1 * * * * php -c /path/to/magento2/bin/magento/update/cron.php
*/1 * * * * php -c /path/to/magento2/bin/magento setup:cron:run

but we do not need to configure all of them,

1st cron command will work for reindexes indexers, send automated e-mails, generates the sitemap, and so on.
rest 2 cron commands are used by the Component Manager and System Upgrade.

To configure CRON, edit crontab command line
crontab -u magento_user -e

add this line at the end of file
* * * * * php -c /path/to/magento2/bin/magento cron:run
# this will run every minute

if you do not want every minute you can set every 5 min as given below:
*/5 * * * * php -c /path/to/magento2/bin/magento cron:run

Avatar photo

CTO at Emizentech and a member of the Forbes technology council, Amit Samsukha, is acknowledged by the Indian tech world as an innovator and community builder. He has a well-established vocation with 12+ years of progressive experience in the technology industry. He directs all product initiatives, worldwide sales and marketing, and business enablement. He has spearheaded the journey in the e-commerce landscape for various businesses in India and the U.S.