Scaffold a website preconfigured for Profound CMS, with either a minimal starter or a documentation-site template.
Scaffold a Next.js / TanStack app for Profound CMS.
Use Bun to create a new project:
bunx create-profound-app <project-name>
You can choose a template interactively, or pass one explicitly:
bunx create-profound-app <project-name> --framework=next/tanstack --template=base/docs
To skip automatic Git initialization:
bunx create-profound-app <project-name> --no-git
To skip automatic dependencies installation:
bunx create-profound-app <project-name> --no-install
cd <project-name>
bun dev
base: minimal website starter for Profound CMS.docs: documentation site starter with docs-specific UI.The scaffolded app needs a website to point at. Create one in the Admin Panel before setting your environment variables.
/admin/<websiteId> β the ID in that URL is the website ID the next section asks for.From the Admin Panel:
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-app 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