The Turbopack bundle analyzer (guide) shipped in v16.1 as next experimental-analyze and is next analyze as of v16.4.0 (the old name remains an alias). It opens the Turbopack module graph with per-route client/server filtering; --output saves a static report and next analyze export (v16.4.0+) streams the saved data. This port runs 16.4.6 and uses next analyze. The same guide covers the @next/bundle-analyzer plugin for webpack builds.
npx next analyze
npx next analyze --output