schedule:list and schedule:test: Debugging Cron Without Waiting for Cron
Laravel's scheduler is one of the framework's better ideas: define every cron job in routes/console.php (or the old Kernel.php for pre-11 apps), point one real crontab entry at schedule:run, and never touch crontab syntax again. The catch is that when a scheduled task doesn't run, or runs at the wrong time, the scheduler's abstraction makes it harder to see why — you can't just read the file and know what's actually going to execute at 2:00 AM.
schedule:list: see what's actually registered
php artisan schedule:list
This prints every scheduled task, its frequency description, and — critically — the next time it's due to run, in a table you can scan in a few seconds:
Command Interval Next Due Description
php artisan reports:daily 0 6 * * * Dec 05 2026 06:00 Daily sales report
php artisan cache:prune-stale */15 * * * * Dec 04 2026 14:15
App\Jobs\SyncInventory 0 */4 * * * Dec 04 2026 16:00
If a task you expect to see isn't in this list, it isn't registered — nothing wrong with the crontab, the code just never called ->schedule() on it. That's a much faster thing to rule out than assuming the server's cron is broken.
schedule:test: run one task right now, on demand
Waiting for a scheduled task's next due time just to see if it works is a bad way to spend an afternoon. schedule:test runs a scheduled task immediately, outside of its normal timing, so you can verify it actually does what you expect:
php artisan schedule:test
Run without arguments, it prompts you to pick which scheduled task to execute from a list — handy when you don't remember the exact command signature. You can also target one directly:
php artisan schedule:test --name="reports:daily"
This executes the task's actual logic, not a dry run — if reports:daily sends an email, that email goes out. Treat it the same way you'd treat manually running any artisan command in production: fine for read-only or idempotent tasks, worth doing in staging first for anything that sends mail, charges a card, or mutates data with side effects.
Combining both when something's silently not running
The typical debugging sequence when a scheduled task seems to have gone quiet:
schedule:list— confirm the task is registered and check its "Next Due" time actually looks right (a timezone mismatch between your app config and server clock shows up here immediately).schedule:test --name="..."— run it manually and see whether it succeeds, fails, or throws, without waiting for its next window.- If both look correct, the problem usually isn't Laravel — it's the one real crontab entry (
* * * * * php artisan schedule:run) not actually being present or not pointing at the right PHP binary and working directory on that server.
Most "the scheduler isn't working" incidents turn out to be step 3, but you can't tell that without ruling out steps 1 and 2 first — and both take about ten seconds to run.