Skip to content

How do I generate a Next.js app?

Updated 20 August 2026·1 views

Generating a Next.js app

  1. Install the CLI:
\\\bash npm install -g underpeaks-nxf \\\
  1. Log in:
\\\bash nxf login \\\
  1. Generate:
\\\bash nxf generate nextjs \\\

Running the generated app

\\\bash cd generated-app npm install npm run dev \\\

Environment variables

Copy .env.example to .env.local and fill in: \\\env NXF_STUDIO_URL=https://studio.underpeaks.com NXF_PROJECT_ID=your-project-id NXF_API_KEY= NEXT_PUBLIC_APP_DOMAIN=http://localhost:3000 \\\ Auth screens, model pages, and the nav component are yours to customise freely — the CLI detects your edits by checksum and won't overwrite them on the next run.

Was this article helpful?