spatie/flare-cli
Command-line tool for Flare that lets you authenticate with an API token and interact with the Flare API from your terminal. Manage projects and teams, list and inspect errors and occurrences, resolve or snooze issues, and query monitoring summaries and aggregations.
spatie/laravel-flare). CLI acts as a frontend to Flare’s API.flare-cli (CLI queries API).flare login) and secure storage of API tokens (risk of exposure if not handled carefully).composer global require may conflict with project-specific Composer setups or CI/CD pipelines.flare-cli be used in automated workflows (e.g., post-deploy error checks)? If so, how will authentication be handled?spatie/laravel-flare) for error/performance monitoring.spatie/laravel-flare in the Laravel app..env (e.g., FLARE_API_TOKEN).flare-cli:
composer global require spatie/flare-cli.PATH.flare login and paste the token.flare errors, flare performance) return expected data.flare-cli locally for debugging during feature development.flare errors --since yesterday).flare-cli releases for breaking changes.flare-cli globally (composer global update spatie/flare-cli).flare logout + new token).flare-cli versions.flare errors --verbose).flare-cli.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Flare API downtime | CLI commands fail; debugging halted. | Use fallback monitoring (e.g., Laravel logs). |
| Invalid/expired API token | Authentication errors. | Automate token rotation; monitor token expiry. |
| API rate limits exceeded | CLI throttled or blocked. | Implement retries with exponential backoff. |
| Flare misconfiguration | No data collected; CLI shows empty results. | Validate Flare setup in staging before prod. |
| Composer global path issues | CLI not found in PATH. |
Use project-specific Composer or Docker. |
| Network restrictions | CLI cannot reach Flare API. | Whitelist Flare’s API endpoints in firewalls. |
flare-cli globally.flare login.flare --help to explore commands.flare errors --since "1 hour ago" --level critical | grep "SEVERE"
flare performance, flare tail).How can I help you explore Laravel packages today?