PHPackages                             easyengine/cron-command - 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. easyengine/cron-command

ActiveEe-cli-package[CLI &amp; Console](/categories/cli)

easyengine/cron-command
=======================

Manages cron jobs in EasyEngine

v2.1.0(1y ago)434.3k8[4 PRs](https://github.com/EasyEngine/cron-command/pulls)1MITPHP

Since Jul 23Pushed 1y ago3 watchersCompare

[ Source](https://github.com/EasyEngine/cron-command)[ Packagist](https://packagist.org/packages/easyengine/cron-command)[ Docs](https://github.com/easyengine/cron-command)[ RSS](/packages/easyengine-cron-command/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (3)DependenciesVersions (17)Used By (1)

easyengine/cron-command
=======================

[](#easyenginecron-command)

Manages cron jobs in EasyEngine

Quick links: [Using](#using) | [Contributing](#contributing) | [Support](#support)

Using
-----

[](#using)

This package implements the following commands:

### ee cron

[](#ee-cron)

Manages cron on easyengine sites and host machine.

```
ee cron

```

### ee cron create

[](#ee-cron-create)

Adds a cron job to run a command at specific interval etc.

```
ee cron create [] --command= --schedule= [--user=]

```

**OPTIONS**

```
[]
	Name of site to run cron on.

--command=
	Command to schedule.

--schedule=
	Time to schedule. Format is same as Linux cron.

[--user=]
	User to execute command as.

```

We also have helper to easily specify scheduling format:

EntryDescriptionEquivalent To@yearly (or @annually)Run once a year, midnight, Jan. 1st0 0 1 1 \*@monthlyRun once a month, midnight, first of month0 0 1 \* \*@weeklyRun once a week, midnight between Sat/Sun0 0 \* \* 0@daily (or @midnight)Run once a day, midnight0 0 \* \* \*@hourlyRun once an hour, beginning of hour0 \* \* \* \*You may also schedule a job to execute at fixed intervals, starting at the time it's added or cron is run. This is supported by following format:

- @every

Where duration can be combination of: h - hour m - minute s - second

So 1h10m2s is also a valid duration

**EXAMPLES**

```
# Adds a cron job on example.com every 10 minutes
$ ee cron create example.com --command='wp cron event run --due-now' --schedule='@every 10m'

# Adds a cron job on example.com every 1 minutes
$ ee cron create example.com --command='wp cron event run --due-now' --schedule='* * * * *'

# Adds a cron job on example.com every 1 minutes run as user www-data
$ ee cron create example.com --command='wp cron event run --due-now' --schedule='* * * * *' --user=www-data

# Adds a cron job to host running EasyEngine
$ ee cron create host --command='wp cron event run --due-now' --schedule='@every 10m'

# Adds a cron job to host running EasyEngine
$ ee cron create host --command='wp media regenerate --yes' --schedule='@weekly'

```

### ee cron delete

[](#ee-cron-delete)

Deletes a cron job

```
ee cron delete

```

**OPTIONS**

```

	ID of cron to be deleted.

```

**EXAMPLES**

```
# Deletes a cron jobs
$ ee cron delete 1

```

### ee cron update

[](#ee-cron-update)

Updates a cron job.

```
ee cron update  [--site=] [--command=] [--schedule=] [--user=]

```

**OPTIONS**

```

	ID of cron to update.

[--site=]
	Command to schedule.

[--command=]
	Command to schedule.

[--schedule=]
	Time to schedule. Format is same as Linux cron.

[--user=]
	User to execute command as.

```

We also have helper to easily specify scheduling format:

EntryDescriptionEquivalent To@yearly (or @annually)Run once a year, midnight, Jan. 1st0 0 1 1 \*@monthlyRun once a month, midnight, first of month0 0 1 \* \*@weeklyRun once a week, midnight between Sat/Sun0 0 \* \* 0@daily (or @midnight)Run once a day, midnight0 0 \* \* \*@hourlyRun once an hour, beginning of hour0 \* \* \* \*You may also schedule a job to execute at fixed intervals, starting at the time it's added or cron is run. This is supported by following format:

- @every

Where duration can be combination of: h - hour m - minute s - second

So 1h10m2s is also a valid duration

**EXAMPLES**

```
# Updates site to run cron on
$ ee cron update 1 --site='example1.com'

# Updates command of cron
$ ee cron update 1 --command='wp cron event run --due-now'

# Updates command and user of cron
$ ee cron update 1 --command='wp cron event run --due-now' --user=root

# Updates schedule of cron
$ ee cron update 1 --schedule='@every 1m'

```

### ee cron list

[](#ee-cron-list)

Lists scheduled cron jobs.

```
ee cron list [] [--all]

```

**OPTIONS**

```
[]
	Name of site whose cron will be displayed.

[--all]
	View all cron jobs.

```

**EXAMPLES**

```
# Lists all scheduled cron jobs
$ ee cron list

# Lists all scheduled cron jobs of a site
$ ee cron list example.com

```

### ee cron run-now

[](#ee-cron-run-now)

Runs a cron job

```
ee cron run-now

```

**OPTIONS**

```

	ID of cron to run.

```

**EXAMPLES**

```
# Runs a cron job
$ ee cron run-now 1

```

Contributing
------------

[](#contributing)

We appreciate you taking the initiative to contribute to this project.

Contributing isn’t limited to just code. We encourage you to contribute in the way that best fits your abilities, by writing tutorials, giving a demo at your local meetup, helping other users with their support questions, or revising our documentation.

### Reporting a bug

[](#reporting-a-bug)

Think you’ve found a bug? We’d love for you to help us get it fixed.

Before you create a new issue, you should [search existing issues](https://github.com/easyengine/cron-command/issues?q=label%3Abug%20) to see if there’s an existing resolution to it, or if it’s already been fixed in a newer version.

Once you’ve done a bit of searching and discovered there isn’t an open or fixed issue for your bug, please [create a new issue](https://github.com/easyengine/cron-command/issues/new). Include as much detail as you can, and clear steps to reproduce if possible.

### Creating a pull request

[](#creating-a-pull-request)

Want to contribute a new feature? Please first [open a new issue](https://github.com/easyengine/cron-command/issues/new) to discuss whether the feature is a good fit for the project.

Support
-------

[](#support)

Github issues aren't for general support questions, but there are other venues you can try:

*This README.md is generated dynamically from the project's codebase using `ee scaffold package-readme` ([doc](https://github.com/EasyEngine/scaffold-command)). To suggest changes, please submit a pull request against the corresponding part of the codebase.*

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~164 days

Recently: every ~234 days

Total

14

Last Release

721d ago

Major Versions

v1.2.0 → v2.0.02023-01-13

### Community

Maintainers

![](https://www.gravatar.com/avatar/85d12e799d478a9ff2c22546fc96d056712b76e6895a6519dde4cb71fe80cb78?d=identicon)[easyengine](/maintainers/easyengine)

---

Top Contributors

[![mrrobot47](https://avatars.githubusercontent.com/u/25586785?v=4)](https://github.com/mrrobot47 "mrrobot47 (40 commits)")[![kirtangajjar](https://avatars.githubusercontent.com/u/8456197?v=4)](https://github.com/kirtangajjar "kirtangajjar (28 commits)")[![sagarnasit](https://avatars.githubusercontent.com/u/25276905?v=4)](https://github.com/sagarnasit "sagarnasit (22 commits)")[![rahulsprajapati](https://avatars.githubusercontent.com/u/10358350?v=4)](https://github.com/rahulsprajapati "rahulsprajapati (14 commits)")[![mbtamuli](https://avatars.githubusercontent.com/u/10382077?v=4)](https://github.com/mbtamuli "mbtamuli (13 commits)")[![PiyushKhurana](https://avatars.githubusercontent.com/u/47555550?v=4)](https://github.com/PiyushKhurana "PiyushKhurana (1 commits)")

---

Tags

croncronjobdocker-croneasyengineeasyengine-command

### Embed Badge

![Health badge](/badges/easyengine-cron-command/health.svg)

```
[![Health](https://phpackages.com/badges/easyengine-cron-command/health.svg)](https://phpackages.com/packages/easyengine-cron-command)
```

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.1k17.2M320](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.8M17](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)[codedungeon/php-cli-colors

Liven up you PHP Console Apps with standard colors

10210.1M26](/packages/codedungeon-php-cli-colors)

PHPackages © 2026

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