Commands
Laravel Error Tracker ships with Artisan commands for installation, diagnostics, demo data, pruning, and stale issue resolution.
Install
php artisan error-tracker:installPublishes configuration and migrations and prints the next setup steps.
php artisan error-tracker:install --guidedRuns the guided installer.
php artisan error-tracker:install --preset=local
php artisan error-tracker:install --preset=production
php artisan error-tracker:install --preset=minimal
php artisan error-tracker:install --preset=demoUses an installation preset.
Doctor
php artisan error-tracker:doctorRuns installation and configuration diagnostics.
php artisan error-tracker:doctor --jsonPrints diagnostics as JSON.
php artisan error-tracker:doctor --fail-on-missingReturns a non-zero exit code if required resources are missing.
Demo data
php artisan error-tracker:demo --fresh --with-feedback --with-notifications --with-resolvedGenerates safe demo records for local testing and screenshots.
php artisan error-tracker:demo --purgeRemoves only demo data.
Demo issue fingerprints start with demo: and event context is marked with _demo=true.
Prune
php artisan error-tracker:pruneDeletes old events, feedback, and resolved issues according to the retention configuration.
php artisan error-tracker:prune --dry-runShows what would be pruned without deleting anything.
Auto Resolve
php artisan error-tracker:auto-resolveAutomatically resolves stale open issues when Auto Resolve is enabled.
php artisan error-tracker:auto-resolve --dry-runShows eligible stale issues without changing them.
php artisan error-tracker:auto-resolve --days=30Temporarily overrides the configured stale threshold.
Scheduler examples
Add these to routes/console.php in the host application when needed:
use Illuminate\Support\Facades\Schedule;
Schedule::command('error-tracker:prune')->daily();
Schedule::command('error-tracker:auto-resolve')->daily();Remember that Laravel scheduled commands require the application scheduler to be running in production.