The best and official way to create a nextjs-cms project with all the necessary configuration and dependencies.
npm install create-nextjs-cmsbash
npx create-nextjs-cms
or
yarn create nextjs-cms
or
pnpm create nextjs-cms
or
bun create nextjs-cms
`
Project Structure
After running create-nextjs-cms, you'll have a fully configured nextjs-cms project with:
- ✅ Next.js application setup
- ✅ CMS configuration files
- ✅ Database configuration
- ✅ TypeScript configuration
- ✅ All necessary dependencies
- ✅ Example sections and fields
- ✅ Development scripts
Next Steps
After creating your project:
`bash
cd my-cms-app
pnpm dev
`
Then visit http://localhost:3000 to see your CMS in action!
Requirements
- Node.js 18+
- A package manager (pnpm, npm, yarn, or bun)
Troubleshooting
$3
If you try to create a project in a directory that already exists, you'll get an error. Either:
- Choose a different directory name
- Use . to create in the current directory (must be empty)
$3
If automatic dependency installation fails, you can manually install:
`bash
cd my-cms-app
pnpm install
``