CLI · command
socotra init
Scaffold a new socotra.yaml in the working directory.
Synopsis
socotra init [--template <name>] [--output text|json]Options
Exit codes
Behavior
- Creates
socotra.yamlin the working directory. - Prompts before overwriting an existing file.
- In JSON mode the overwrite prompt is skipped and an error is returned if the file exists.
Examples
socotra init
socotra init --template clean-architecture
socotra init --output jsonJSON output:
{
"created": true,
"path": "D:/projects/MyApp/socotra.yaml",
"template": "modular-monolith"
}Schema 1.1 · CLI 1.0