Scaffold a Next.js app preconfigured for Profound CMS, with either a minimal starter or a documentation-site template.
Scaffold a Next.js app for Profound CMS.
Use Bun to create a new project:
bunx create-profound-next <project-name>
You can choose a template interactively, or pass one explicitly:
bunx create-profound-next <project-name> --template=base
bunx create-profound-next <project-name> --template=docs
To skip automatic Git initialization:
To skip automatic dependencies installation:
bunx create-profound-next <project-name> --no-install
cd <project-name>
bun dev
base: minimal Next.js starter for Profound CMS.docs: documentation site starter with docs-specific UI.Create a .env.local file in your generated website:
PROFOUND_API_KEY=your_api_key
NEXT_PUBLIC_PROFOUND_WEBSITE_ID=your_website_id
NEXT_PUBLIC_CMS_API_URL=https://cms.dev.tryprofound.com
NEXT_PUBLIC_BUNNY_CDN_URL=https://cms-profound.b-cdn.net
create-profound-next copies a template into a new directory, replaces template placeholders such as the project name, and optionally initializes a Git repository and installs required dependencies.
Inside the generated project, the main commands are:
bun dev: start the development server
bun build: build for production
bun start: run the production build
bun lint: run linting
bun generate-schemas: sync CMS schemas from Profound CMS