Skip to main content

ness migrate

Migrates an application from another framework.

ness migrate next [directory]

Only next is supported, and only the App Router.

Options​

OptionDescription
--dry-runPrint the plan and the report without changing a file.
--forceRun even when the git working tree is dirty or absent.

A clean git working tree is required by default so the migration can be reviewed as a diff.

Output​

Files are moved into the Ness layout, imports with a direct equivalent are rewritten, and MIGRATION.md records:

  • every file moved
  • every import rewritten
  • everything that needs a human, with the reason

See Migrating from Next.js for the full mapping and for what is deliberately left alone.