wp-cli/cron-command
Manage WordPress cron events and schedules from the command line with WP-CLI. List, schedule, run, and delete events, inspect available schedules, and test whether WP-Cron is working on your site.
Architecture fit
wp-cli/cron-command is a WP-CLI command package, not a Laravel/Composer library. It registers wp cron event and wp cron schedule subcommands and depends on a bootstrapped WordPress runtime (wp-load.php, _get_cron_array(), wp_schedule_event(), etc.).composer require it into a Laravel app and call it as a library.Integration feasibility
wp binary via Symfony Process (wp cron event run --due-now --path=/var/www/wp), parses --format=json output, and surfaces results in logs/health checks. This is workable but adds a hard runtime dependency on shell access, WP-CLI version, and filesystem paths on every environment including CI.wp package install wp-cli/cron-command (or a Composer path/VCS entry consumed by WP-CLI's package manager), not a standard app dependency.Technical risk
DISABLE_WP_CRON, real system cron, and object-cache behavior. The CLI does not remove those constraints, it only gives you a manual trigger.wp cron event run are not a reliable success signal for the underlying job.Key questions
wp on PATH and shell access, or is this a containerless/managed host?Stack fit
Illuminate\Console\Scheduling\Schedule with withoutOverlapping(), onOneServer(), runInBackground(), and Schedule::command() — no external package required.Migration path (the primary TPM use case)
wp cron event list --fields=hook,next_run_relative,recurrence --format=json.DISABLE_WP_CRON=true and drive remaining WP events from system cron via wp cron event run --due-now.Compatibility
Sequencing
exec() calls.event list) until each write operation is proven.event delete.Maintenance
Support
Scaling
onOneServer(); the transient-based doing_cron lock is unreliable under misconfigured or eventually-consistent object caches.wp cron event run is serial and blocks on long callbacks; a single slow event delays all subsequent ones.Failure modes
wp cron event delete is immediate and irreversible; a deleted recurring event is gone until code re-registers it.--path differs between local/staging/prod, causing the wrapper to operate on the wrong install.Ramp-up
Recommendation
Do not adopt into the Laravel dependency graph. If a WordPress installation is genuinely in scope, treat wp-cli/cron-command as a short-lived operational bridge for inventorying and decommissioning WP-Cron events during a migration to Laravel's native scheduler, with a defined sunset date and a named owner. If no WordPress exists, close the evaluation.
How can I help you explore Laravel packages today?