sscli inject
Overview
sscli inject adds feature modules to an existing project without overwriting it. It auto-detects the template type from the projectβs root files (pyproject.toml β python-saas, Gemfile β rails-api, astro.config.mjs + src/content/docs β docs-site, astro.config.mjs β static-landing, package.json β react-client).
Last verified with sscli v3.2.8
Usage
sscli inject --path <PATH> [--template <TEMPLATE>] --features <FEATURE,...>Options
| Flag | Type | Required | Description |
|---|---|---|---|
--path / -p | PATH | Yes | Path to the existing project directory |
--template / -t | TEXT | No | Template type override (auto-detects if omitted) |
--features / -f | TEXT | Yes | Comma-separated features: commerce, auth, admin, sqlite, ingestor, tunnel, seo_analyzer, payment, merchant_dashboard, sandbox |
--use-ast-injection | BOOL | No | Use AST-based injection (experimental) |
Feature Availability
| Feature | Tier | Templates |
|---|---|---|
commerce | ALPHA | rails-api, python-saas, react-client |
auth | PRO | rails-api, python-saas, react-client |
admin | PRO | python-saas, react-client |
sqlite | FREE | python-saas |
ingestor | PRO | python-saas |
tunnel | PRO | rails-api, python-saas, react-client |
seo_analyzer | FREE | static-landing |
payment | ALPHA | react-client |
merchant_dashboard | PRO | react-client (requires commerce) |
sandbox | FREE | rails-api, rails-fullstack, python-saas, react-client, static-landing, docs-site |
Examples
# Inject commerce into an existing Rails APIsscli inject --path ./my-api --features commerce# Inject multiple features (auto-detect template)sscli inject --path ./my-service --features auth,admin# Force template type and injectsscli inject --path ./my-project --template python-saas --features sqlite# Inject sandbox policy into an existing docs portalsscli inject --path ./seedsource-docs --template docs-site --features sandbox