ai-project-bootstrap
Docs / CLI reference / add

add

Put one more technology into a project this tool already generated, without starting over.

cd my-app
npx ai-project-bootstrap add stripe
npx ai-project-bootstrap add stripe --dry-run
npx ai-project-bootstrap add stripe --dir ../my-app

How it works

It loads the project's ai-project.config.json, adds the technology to the saved selection, and regenerates through the same path a --config replay uses — with the same fingerprint-based preservation, so anything you have hand-edited since generation is left alone.

Replacing instead of adding

A category that only allows one choice — payments, database, backend — can be filled when empty, or swapped with --replace. You never name what is being replaced: with one answer per single-select category, it is inferred from the project itself.

npx ai-project-bootstrap add supabase --replace
npx ai-project-bootstrap add supabase --replace --dry-run

What --replace deletes

The old technology's own files — its rule file in every AI tool directory you selected.
Merged output (package.json, .env.example) is regenerated from scratch so it reflects only what is still selected.
If any of the old technology's files were hand-edited since generation, the whole replace is refused and nothing changes. Move or remove them yourself, then run it again.
Multi-select categories just grow

--replace does not apply to analytics, testing or crash-reporting, and there is no add-side way to remove a single item from one yet.

Flags

Flag
Meaning
--replace
Swap out a single-select category's existing answer
--dry-run
Preview the file changes without writing
--dir <path>
Run against a project elsewhere
On this page
How it worksReplacing instead of addingWhat --replace deletesFlags
Source: README.md — Growing a project