create-next-shadcn-kit
v0.1.2
Published
Create a Next.js app with shadcn/ui pre-integrated — zero config.
Maintainers
Readme
create-next-shadcn-kit
Create a Next.js app with shadcn/ui pre-integrated — zero config.
One command, a fresh Next.js project, Tailwind configured, shadcn/ui initialized, and your favorite components already installed. No juggling two CLIs.
Usage
npx create-next-shadcn-kit@latestOr pass a name directly:
npx create-next-shadcn-kit my-appWhat it does
- Scaffolds a fresh Next.js app via
create-next-app@latest(App Router, Tailwind, Turbopack). - Runs
shadcn@latest initinside the new project. - Pre-installs the shadcn components you selected.
- Wires up state management — Redux Toolkit (default) or Zustand, with a sample store and (for Redux) a
<Providers>wrapper already mounted inapp/layout. - (Optional) Sets up Husky + lint-staged + Prettier with a pre-commit hook that runs
eslint --fixandprettier --writeon staged files.
You skip the "install Next → read shadcn docs → run a second init → add components one by one" ritual.
Options
| Flag | Description |
| --------------------------------------- | ----------------------------------- |
| -y, --yes | Skip prompts, use sensible defaults |
| --ts / --js | TypeScript (default) or JavaScript |
| --npm / --pnpm / --yarn / --bun | Pick your package manager |
| --no-husky | Skip Husky + lint-staged setup |
| --state=<lib> | redux (default), zustand, none|
| -v, --version | Print version |
| -h, --help | Show help |
Examples
# Fully interactive
npx create-next-shadcn-kit
# Non-interactive with defaults
npx create-next-shadcn-kit my-app --yes
# Use pnpm
npx create-next-shadcn-kit my-app --pnpmRequirements
- Node.js 20+ (Next.js 16 requires it)
- Network access (to fetch
create-next-appandshadcn) - Works with npm, pnpm, yarn, bun. All are tested end-to-end.
Development
git clone https://github.com/NikunjSonigara/create-next-shadcn-kit.git
cd create-next-shadcn-kit
npm install
node bin/index.js test-app --yesContributing
Issues and PRs welcome at github.com/NikunjSonigara/create-next-shadcn-kit.
License
MIT
