npx wrangler tail my-worker --status error

Category: Cloudflare

npx wrangler tail my-worker --status error

Tail only failed Worker invocations

Filters the live log stream to invocations that ended with an error, cutting through noise when hunting a production bug. Accepts ok, error, or canceled. Combine with --search to match text inside console.log messages.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.