Returns account and identity details machine-readable for scripts and CI checks. Exits with a non-zero status when not authenticated, so it doubles as an auth assertion. The plain `npx wrangler whoami` output is easier to read by eye.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.