@knguyen1411b/cli
v0.0.4
Published
CLI to scaffold fullstack projects
Readme
@knguyen1411b/cli
Scaffold production-ready Next.js and NestJS projects in seconds with optional tooling presets.
Why @knguyen1411b/cli
- Fast bootstrap with sensible defaults
- Interactive setup flow for project name, template, and optional tooling
- Works for both frontend (
nextjs) and backend (nestjs) starters - Ships with ready-to-use project templates
Install
Run directly with npx:
npx @knguyen1411b/cli@latest create my-appOr install globally:
npm i -g @knguyen1411b/cli
knguyen-cli create my-appQuick Start
knguyen-cli create my-appFlow:
- Enter project name (if not provided in command)
- Select template:
nextjsornestjs - Toggle optional components with
Space - Press
Enterto generate
Command
knguyen-cli create [project-name] [options]Options:
-t, --template <template>:nextjs | nestjs--no-prettier--no-husky--no-docker--no-github-actions
[!TIP] Skip all interactive prompts by passing
project-name,--template, and any--no-*flags you want.
What Gets Generated
Template options:
nextjs(Next.js App Router + TypeScript + Tailwind)nestjs(NestJS + Fastify + Prisma starter structure)
Optional components:
prettierhusky + lint-stageddockergithub-actions
Local Development (CLI)
pnpm install
pnpm lint
pnpm build
pnpm dev create demo-appProject Layout
src/
commands/ # CLI command registration
config/ # Feature and template metadata
types/ # Shared types
utils/ # Prompt and scaffold logic
templates/
nextjs/
nestjs/Template docs:
