layout | group | subgroup | title | menu_title | menu_node | menu_order | version | github_link | redirect_from |
---|---|---|---|---|---|---|---|---|---|
default |
config-guide |
04_CLI |
Configure and run cron |
Configure and run cron |
100 |
2.0 |
config-guide/cli/config-cli-subcommands-cron.md |
/guides/v1.0/config-guide/cli/config-cli-subcommands-cron.html |
{% include config/cron-overview.md %}
To run cron in a web browser, see Secure cron.php to run in a browser
{% include install/first-steps-cli.html %} In addition to the command arguments discussed here, see Common arguments.
Command options:
magento cron:run [--group="<cron group name>"]
where --group
specifies the cron group to run (omit this option to run cron for all groups)
To set up custom cron jobs and groups, see [Configure custom cron jobs and cron groups]({{ page.baseurl }}config-guide/cron/custom-cron.html).
You must run cron twice: the first time to discover tasks to run and the second time to run the tasks themselves.
Run Magento cron jobs as the Magento file system owner.
{% include config/setup-cron.md %}