create-hua
CLI scaffolding tool for creating new hua projects. One command to get a fully configured Next.js + hua starter.
주요 기능
One Command Setup
Full Next.js + hua project scaffolded in seconds with latest versions
AI Context Files
Optional .cursorrules, ai-context.md, and Claude skills for AI-assisted development
i18n Ready
Korean/English translations pre-configured with API route handler
Smart Detection
Auto-detects monorepo context, package manager, and resolves latest npm versions
빠른 시작
1. Create a new project
# Interactive mode (recommended)
npx create-hua my-app
# Or with pnpm
pnpm create hua my-app2. Start development
cd my-app
pnpm install
pnpm dev3. Non-interactive mode (CI/CD)
# Use defaults: all AI files except Claude skills, both languages
NON_INTERACTIVE=1 npx create-hua my-app
# Or with flags
npx create-hua my-app --claude-skills --lang ko --installScaffolded Structure
my-app/
├── app/
│ ├── layout.tsx # Root layout with HuaProvider
│ ├── page.tsx # Home page
│ ├── globals.css # Tailwind CSS
│ └── api/translations/ # i18n API route
├── components/
│ ├── LanguageToggle.tsx # Language switcher
│ └── I18nProviderWrapper.tsx
├── lib/
│ ├── i18n-setup.ts # i18n configuration
│ └── utils.ts
├── store/
│ └── useAppStore.ts # Zustand store example
├── translations/
│ ├── ko/common.json # Korean translations
│ └── en/common.json # English translations
├── .claude/ # Claude AI context (optional)
├── .cursorrules # Cursor IDE rules (optional)
├── hua.config.ts # Framework configuration
├── next.config.ts
├── tailwind.config.js # Auto-generated with monorepo detection
└── package.json # Latest versions from npmCLI Options
--claude-skillsInclude .claude/skills/ directory
--no-cursorrulesSkip .cursorrules file
--no-ai-contextSkip ai-context.md file
--no-claude-contextSkip .claude/project-context.md
--lang <ko|en|both>Set documentation language (default: both)
--dry-runPreview project creation without writing files
--installAuto-install dependencies after creation
Doctor Command
Validate an existing project's structure and dependencies:
npx create-hua doctor ./my-appPrerequisites
Node.js >= 22.0.0Required for latest JavaScript features
pnpmRecommended package manager (auto-detected)