diff --git a/README.md b/README.md index 8880f5f0..30de8178 100644 --- a/README.md +++ b/README.md @@ -192,7 +192,7 @@ These fields are optionally available: Runs the next scheduled cron event for the given hook. ~~~ -wp cron event run [...] [--due-now] [--exclude=] [--all] +wp cron event run [...] [--due-now] [--exclude=] [--all] [--network] ~~~ **OPTIONS** @@ -210,6 +210,9 @@ wp cron event run [...] [--due-now] [--exclude=] [--all] [--all] Run all hooks. + [--network] + Run hooks across all sites in a multisite installation. + **EXAMPLES** # Run all cron events due right now @@ -218,6 +221,12 @@ wp cron event run [...] [--due-now] [--exclude=] [--all] Executed the cron event 'cron_test_2' in 0.006s. Success: Executed a total of 2 cron events. + # Run all cron events due right now across all sites in a multisite + $ wp cron event run --due-now --network + Executed the cron event 'cron_test_1' in 0.01s. + Executed the cron event 'cron_test_2' in 0.006s. + Success: Executed a total of 2 cron events across 3 sites. + ### wp cron event schedule @@ -387,6 +396,10 @@ Want to contribute a new feature? Please first [open a new issue](https://github Once you've decided to commit the time to seeing your pull request through, [please follow our guidelines for creating a pull request](https://make.wordpress.org/cli/handbook/pull-requests/) to make sure it's a pleasant experience. See "[Setting up](https://make.wordpress.org/cli/handbook/pull-requests/#setting-up)" for details specific to working on this package locally. +### License + +This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details. + ## Support GitHub issues aren't for general support questions, but there are other venues you can try: https://wp-cli.org/#support diff --git a/features/cron.feature b/features/cron.feature index 30c1d004..2b77c875 100644 --- a/features/cron.feature +++ b/features/cron.feature @@ -380,7 +380,7 @@ Feature: Manage WP-Cron events and schedules """