create-ben-next
v0.1.3
Published
One-command scaffolder for Ben's Next.js starter (template + thin CLI).
Readme
create-ben-next
One-command scaffolder for Ben’s opinionated Next.js starter.
Pulls a tagged template, applies defaults, and gets you coding fast.
Quickstart
npx create-ben-next my-app
# or pin a specific template tag, version tags should come from next-starter-template
npx create-ben-next my-app --version-tag v0.2.0Then:
cd my-app
pnpm install # or npm/yarn/bun
pnpm devWhat you get
- Next.js (App Router) project skeleton
- TailwindCSS + shadcn/ui prewired
- Prettier + VS Code settings
- Base
layout.tsx,globals.css, and minimal UI components
Source template:
next-starter-template(public, versioned tags)
Options
--version-tag <tag>— Use a specific template version (default:v0.1.1)--force— Overwrite a non-empty target directory
Examples:
npx create-ben-next new-app --version-tag v0.2.0
npx create-ben-next src/ui --forceRequirements
- Node.js 18+
- Public access to the template repo (for
degittarball download)
Troubleshooting
- 404 / auth prompt when fetching: Make sure the template repo is public and the tag exists.
- Command not found (local dev): run
npm linkinside this repo to test locally. - Dir not empty: use
--forceor choose a new directory.
Links
- Template: next-starter-template
- CLI Package (npm): create-ben-next
