add_plugin
Install authentication, payment, storage, production, and DevOps plugins into a BackGen project. Each plugin injects source files, registers routes, and updates dependencies.
Instructions
Installs a feature plugin into an existing BackGen-generated project. Each plugin injects its own source files (controllers, routes, middleware, services), registers routes in app.ts, adds npm dependencies, injects environment variables into .env, and updates the .backgenrc.json manifest with ownership tracking. Call list_plugins first to see all available options with descriptions and categories. Run doctor afterwards to verify the project is healthy. IMPORTANT: jwt and clerk conflict — they cannot be installed together. The devops shorthand ('ci-github', 'dependabot', 'codeql', 'docker-registry', 'release') installs the full DevOps suite.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | Absolute or relative path to the existing BackGen-generated project directory. Defaults to the current working directory. Example: '/home/user/projects/my-api'. | |
| plugin | Yes | Plugin to install. Categories: auth (jwt, clerk — mutually exclusive, pick one), payment (stripe), storage (s3), production (ratelimit), devops (ci-github, dependabot, codeql, docker-registry, release — install all with backgen add devops). Use list_plugins first to see descriptions. |