spatie/flare-cli
A command-line tool for interacting with the Flare API from your terminal. Log in via browser OAuth, device code, or API token, manage profiles and self-hosted servers, and securely store credentials for automation and CI workflows.
get-project-error-count and get-project-error-occurrence-count accept date ranges, and --token auth exists explicitly for automation. That is enough to prototype a post-deploy gate ("did error volume regress after this release?") or a nightly digest job. Decision it informs: build vs. buy on custom error-reporting integrations — if a gate is all we need, this is a day of scripting instead of a bespoke service.get-monitoring-summary, list-monitoring-aggregations --type=routes, get-monitoring-time-series, get-trace take route/trace performance out of the UI. Useful for spot-checking p95 on a route after a release, or feeding a weekly perf report — a genuine product-velocity input if we currently only look at performance data reactively.flare install-skill installs a coding-agent skill that teaches an agent to drive the CLI. This is the most strategically interesting line in the README: it positions error data as something our tooling (and our agents) can consume programmatically. Worth an explicit decision on whether agent-readable observability is a roadmap theme this half or not — the CLI makes it cheap to test.FLARE_BASE_URL can point at non-prod. That unblocks a standing policy question: can we test error-handling changes against staging without polluting production triage?Consider it when all of these hold:
--device for SSH/containers, --token for CI, 0600/0700 credential storage, remote revocation on logout. This is better than most CLIs of its size and is a real security-review talking point.Look elsewhere — or wait — when:
For executives: This is low-cost, low-risk developer tooling that makes the Flare subscription we already pay for more useful. It lets engineers read errors, triage incidents, check route performance, and script release checks from the terminal and from CI — and it ships a way to teach our coding agents to do the same. It's MIT-licensed, installs globally with one Composer command, and never enters our application runtime, so there's no production blast radius. The realistic upside is faster triage and a cheap first experiment in automated release gating; the realistic downside is that one engineer spends a day on it and we retire it.
For engineering: Think of it as a terminal front door to the same API the dashboard uses — not a replacement for the Laravel SDK and not something you require into an app. Three auth paths map onto our environments cleanly: browser OAuth for laptops, --device for SSH and containers, --token for CI. Credentials are per-issuer profiles with 0700/0600 permissions and remote revocation on logout, so prod and staging don't collide. Every API endpoint has a corresponding command, including monitoring and trace lookups. Two things to prove before we build on it: whether the commands emit anything machine-readable for CI, and how much we care that it's pinned to a remote, cached API spec. Start with one owner, one runbook page, and one concrete use case — the post-deploy error-count check is the best candidate.
How can I help you explore Laravel packages today?