symfonic.cli¶
cli ¶
Symfonic scaffolding CLI package.
Provides scaffold() used by symfonic init <project-name> to
generate a complete starter project (FastAPI backend + webapp +
docker-compose + auth + orgs + admin + chat) and a StarterDomain
plugin skeleton with clear customization checkpoints.
scaffold ¶
scaffold(project_name: str, components: list[str], llm_provider: str, output_dir: Path, force: bool = False) -> Path
Generate a starter project under <output_dir>/<project_name>/.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
project_name
|
str
|
Directory-safe slug (letters, digits, dashes, underscores). |
required |
components
|
list[str]
|
Subset of |
required |
llm_provider
|
str
|
One of |
required |
output_dir
|
Path
|
Parent directory where the project folder will be created. |
required |
force
|
bool
|
If True, overwrite files in an existing target directory instead of failing. |
False
|
Returns:
| Type | Description |
|---|---|
Path
|
The absolute path of the newly-created project directory. |
Raises:
| Type | Description |
|---|---|
ScaffolderError
|
When inputs are invalid or the target directory already exists (and force is False). |