PHPackages                             wojtekn/magento2-cron-manager - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. wojtekn/magento2-cron-manager

ActiveMagento2-module[CLI &amp; Console](/categories/cli)

wojtekn/magento2-cron-manager
=============================

Magento 2 module which allows enabling/disabling Magento 2 cron jobs in crontab.

1.0.3(6y ago)15811MITPHPPHP ~7.1.0|~7.2.0|~7.3.0

Since Nov 2Pushed 6y ago1 watchersCompare

[ Source](https://github.com/wojtekn/magento2-cron-manager)[ Packagist](https://packagist.org/packages/wojtekn/magento2-cron-manager)[ RSS](/packages/wojtekn-magento2-cron-manager/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (3)Versions (5)Used By (0)

Magento 2 Crontab Manager Module
================================

[](#magento-2-crontab-manager-module)

A Magento 2 module which adds CLI commands to enable and disable Magento 2 crontab entries.

Installation
------------

[](#installation)

Please, use [Composer](https://getcomposer.org) and add `wojtekn/magento2-cron-manager` to your dependencies eg.

```
$ composer require wojtekn/magento2-cron-manager

```

Then enable the module and run setup upgrade to be sure that module is installed and enabled:

```
$ php bin/magento setup:upgrade

```

If you're using `production` or `default` Magento 2 mode you need to run Dependency Injection compilation process:

```
$ php bin/magento setup:di:compile

```

Usage
-----

[](#usage)

### Before you start

[](#before-you-start)

Make sure to backup your current crontab entries to be able to revert them if something goes wrong.

You can do this by running:

```
crontab -l > ~/crontab.backup

```

### Simple usage

[](#simple-usage)

Before first use edit crontab using default editor by running `crontab -e` and add tags showing where Magento 2 related jobs start and end. That part of the crontab should look as follows:

```
# [start:magento]
* * * * * php /bin/magento cron:run --group=index | grep -v "Ran jobs by schedule" >> /var/log/magento.cron.log
* * * * * php /bin/magento cron:run --group=mailchimp | grep -v "Ran jobs by schedule" >> /var/log/magento.cron.log
# [end:magento]

```

Now run following command to disable CRON entries:

```
php bin/magento cron:crontab:disable

```

And this one to enable CRON entries:

```
php bin/magento cron:crontab:enable

```

### Advanced usage

[](#advanced-usage)

If you run multiple Magento environments on the same server you may want to define multiple crontab groups and enable/disable only particular one.

To define custom group, replace "magento" key with another label eg. "custom-group":

```
# [start:magento]
* * * * * php /bin/magento cron:run --group=index | grep -v "Ran jobs by schedule" >> /var/log/magento.cron.log
* * * * * php /bin/magento cron:run --group=mailchimp | grep -v "Ran jobs by schedule" >> /var/log/magento.cron.log
# [end:magento]

# [start:custom-group]
* * * * * php /bin/magento cron:run --group=another | grep -v "Ran jobs by schedule" >> /var/log/magento.cron.log
# [end:custom-group]

```

Then you can run following command to disable CRON entries from "custom-group" group:

```
php bin/magento cron:crontab:disable --group=custom-group

```

And this one to enable those CRON entries:

```
php bin/magento cron:crontab:enable --group=custom-group

```

Default value for `group` parameter is `magento`.

To Do
-----

[](#to-do)

- allow listing cron entries

Credits
-------

[](#credits)

- Developed by [Wojtek Naruniec](https://naruniec.me/)
- Loosely inspired by [MediovskiTechnology/php-crontab-manager](https://github.com/MediovskiTechnology/php-crontab-manager)

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~157 days

Total

4

Last Release

2326d ago

PHP version history (3 changes)1.0.0PHP ~7.0.0|~7.1.0|~7.2.0

1.0.1PHP ~5.6.0|~7.0.0|~7.1.0|~7.2.0

1.0.3PHP ~7.1.0|~7.2.0|~7.3.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/289ef61aa160c17ed64786a2d362fdc56e8c6ae3bb7d5e14303373e70f1fff14?d=identicon)[wojtekn](/maintainers/wojtekn)

---

Top Contributors

[![wojtekn](https://avatars.githubusercontent.com/u/727413?v=4)](https://github.com/wojtekn "wojtekn (9 commits)")

---

Tags

magento2magento2-extensionmagento2-module

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/wojtekn-magento2-cron-manager/health.svg)

```
[![Health](https://phpackages.com/badges/wojtekn-magento2-cron-manager/health.svg)](https://phpackages.com/packages/wojtekn-magento2-cron-manager)
```

###  Alternatives

[fastly/magento2

Fastly CDN Module for Magento 2.4.x

1564.4M1](/packages/fastly-magento2)[avstudnitz/disable-modules

Adds a console command to show all modules which can be safely disabled as they have no declared dependencies

10274.5k](/packages/avstudnitz-disable-modules)[yireo/magento2-theme-commands

CLI commands to manipulate themes

1337.7k1](/packages/yireo-magento2-theme-commands)[loki/magento2-components

Core module for defining Alpine.js components with advanced AJAX features

1010.0k22](/packages/loki-magento2-components)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
