npx wrangler tail my-worker --format json

Category: Cloudflare

npx wrangler tail my-worker --format json

Tail Worker logs as JSON lines

Emits each log entry as a JSON object instead of pretty-printed text, which pipes cleanly into jq or log pipelines. The plain --format pretty default is easier to read in a terminal. Other filters like --status and --search work the same way in both formats.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.