@solutioniser/create-next-starter
v0.1.9
Published
CLI tool to create Next.js starter applications with optional authentication providers and UI libraries
Maintainers
Readme
@solutioniser/create-next-starter
A CLI tool to create Next.js starter applications with optional authentication providers and tooling overlays.
Installation
npm install -g @solutioniser/create-next-starterUsage
Interactive Mode
create-next-starterThis will prompt you for:
- Project name
- Package manager (pnpm, npm, yarn, bun)
- Authentication provider (none, authjs, clerk, auth0, supabase, msal)
- Whether to include Storybook
Non-Interactive Mode
create-next-starter my-app --provider authjs --storybook --pm pnpmOptions
--name, -n: Project name--pm: Package manager (pnpm, npm, yarn, bun)--provider: Authentication provider (none, authjs, clerk, auth0, supabase, msal)--storybook: Include Storybook--yes, -y: Skip prompts and use defaults
Examples
# Create a basic Next.js app
create-next-starter my-app
# Create with Auth.js and Storybook
create-next-starter my-app --provider authjs --storybook
# Create with Clerk authentication
create-next-starter my-app --provider clerk
# Create with Supabase and pnpm
create-next-starter my-app --provider supabase --pm pnpm
# Skip all prompts
create-next-starter my-app --yesWhat It Creates
The CLI tool creates a complete Next.js application with:
- Base Template: Modern Next.js setup with TypeScript, Tailwind CSS, testing, and development tooling
- Auth Overlay (if selected): Authentication provider configuration and examples
- Storybook Overlay (if selected): Component development setup
- Dependencies: All required packages installed
- Git Repository: Initialized with initial commit
- Environment Files: Template files with provider-specific variables
Next Steps
After creating your project:
cd your-project-name- Copy
env.exampleto.env.local - Fill in your environment variables
pnpm devto start development- Follow the provider-specific setup instructions in
README.addon.md
Development
To work on the CLI tool itself:
cd packages/create-next-starter
pnpm install
pnpm build
pnpm dev # Watch mode