Celtrix icon indicating copy to clipboard operation
Celtrix copied to clipboard

[FEATURE] Add `celtrix add` sub-command to add integrations to an existing project

Open Nareshkumawat-star opened this issue 1 month ago • 3 comments

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:

  1. Re-scaffold from scratch and manually copy their code
  2. 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.json scripts 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.

Nareshkumawat-star avatar Oct 25 '26 16:10 Nareshkumawat-star

kindly assign thi issue to me

Nareshkumawat-star avatar Oct 25 '26 16:10 Nareshkumawat-star

Assign me this issue .

pratikadamas avatar Oct 26 '26 21:10 pratikadamas

@Nareshkumawat-star @pratikadamas

both make a pr. based on code quality, we merge one of it.

JoeCelaster avatar Oct 29 '26 12:10 JoeCelaster