[FEATURE] Add `celtrix add` sub-command to add integrations to an existing project
Is your feature request related to a problem? Celtrix is great for initial scaffolding but provides no upgrade path. If a user scaffolds MERN without auth and later wants to add Clerk authentication, they have to either:
- Re-scaffold from scratch and manually copy their code
- Set up Clerk manually (defeating the purpose of Celtrix)
Describe the solution you'd like
A new celtrix add sub-command:
celtrix add husky # add Husky + lint-staged config
celtrix add biome # add Biome linting config
celtrix add auth # interactive: choose Clerk or Better Auth
celtrix add prisma # add Prisma with interactive DB selection
celtrix add vercel-ai # add Vercel AI SDK boilerplate
How it works
- Detects the existing project type by reading
package.json+celtrix.json(a new lock file tracking scaffold choices) - Installs the required npm packages
- Writes the integration config files
- Updates existing
package.jsonscripts as needed - Does NOT overwrite existing user files
New file: commands/add.js, utils/projectDetector.js
Why this matters This is the most common pain point after initial scaffolding — users grow out of their initial stack.
kindly assign thi issue to me
Assign me this issue .
@Nareshkumawat-star @pratikadamas
both make a pr. based on code quality, we merge one of it.