Docs / CLI

Open documentation actions

Add Features

Add supported addons to existing Better Fullstack projects.

The add command updates an existing Better Fullstack project. It reads bts.jsonc, validates requested addons, writes supported files, and updates the project config.

npm create better-fullstack@latest add -- --addons mcp skills

What add does

  • Reads bts.jsonc from the current project, or from --project-dir.
  • Prompts for compatible addons when --addons is omitted.
  • Skips addons that are already installed.
  • Writes addon templates and dependency changes when a new addon is selected.
  • Prints an install command when dependency installation is skipped.

Flags

FlagValues or behavior
--addonspwa tauri starlight biome lefthook husky ruler mcp skills turborepo fumadocs ultracite oxlint opentui wxt msw storybook swr tanstack-query tanstack-table tanstack-virtual tanstack-db tanstack-pacer backend-utils docker-compose none
--project-dirPath to the generated project. Defaults to the current directory.
--installInstall dependencies after adding files. Defaults to false for add.
--package-managernpm pnpm bun yarn
--web-deployRecords a web deployment target after addon processing.
--server-deployRecords a server deployment target after addon processing.

Addon reference

AddonPurpose
mcpGenerated-project MCP server configuration for coding agents.
skillsCurated coding-agent skill files.
turborepoMonorepo orchestration.
docker-composeLocal service orchestration for supported stacks.
biome oxlint ultracite lefthook husky rulerCode quality and hooks.
starlight fumadocsDocumentation sites when compatible with the stack.
tauri pwa wxtDesktop, progressive web app, and browser extension support.
msw storybookTesting and component development utilities.
swr tanstack-query tanstack-table tanstack-virtual tanstack-db tanstack-pacerData fetching and UI utilities.
backend-utilsasyncHandler, ApiResponse, and a global error handler for Hono, Express, Fastify, Elysia, feTS, or NestJS servers.
opentuiTerminal UI support.

Idempotency

bts.jsonc is the source of truth for installed addons. If every requested addon is already present, add reports that no new addons were selected and exits without applying unrelated changes.

  1. Commit or stash current work.
  2. Run add with explicit addon flags.
  3. Review generated file changes.
  4. Install dependencies if the command skipped install.
  5. Run the project's test, lint, or typecheck command.