Upgrading

Learn how to upgrade to the latest versions of Next.js.

To have a coding agent perform and verify an upgrade, run npx next@canary upgrade --agent=latest. See Upgrade with a coding agent for details. To upgrade manually, follow a version-specific guide: