@wangai/cli
v0.1.0
Published
WangAI CLI scaffolding tool
Downloads
50
Maintainers
Readme
@wangai/cli
CLI to initialize AI workflow configs for projects.
Install
npm i -g @wangai/cliQuick Start
wangai --help
wangai initLanguage Option
You can control CLI and prompt language:
wangai --help --lang zh
wangai init --lang zh
wangai init --lang enWhat init Generates
Based on selected workflows:
.claude/*.codex/*.gemini/*wangai.config.json
Interactive Options
wangai init supports these choices:
- workflow:
claude,codex,gemini,all - stack:
react,vue,next,nuxt - features: router, TypeScript, ESLint, state manager
- project context: project name, summary, framework, language, styling
If project context is omitted, fields are set to 待补充 and a reminder is printed.
Non-Interactive Example
wangai init --workflow all --stack next --router y --ts y --eslint y --state redux --project-name MyProject --project-summary "Internal developer platform" --framework "Next.js" --language "TypeScript" --styling "Tailwind CSS" --lang zh --git-exclude y --yesTemplate System
Template-driven generation:
templates/registry.json: template-to-target mappingtemplates/claude/*: Claude templatestemplates/codex/*: Codex templatestemplates/gemini/*: Gemini templates
To update behavior:
- Edit template files under
templates/* - Update mappings in
templates/registry.json - Run
wangai initagain
Publish
npm login
npm publish --access public