Socotra
CLI · command

socotra init

Scaffold a new socotra.yaml in the working directory.


Synopsis

socotra init [--template <name>] [--output text|json]

Options

OptionTypeDefaultDescription
--templatestringmodular-monolithArchitecture template. Choices: modular-monolith, clean-architecture
--outputtext | jsontextOutput format

Exit codes

CodeMeaning
0socotra.yaml created successfully
1File already exists or unknown template

Behavior

  • Creates socotra.yaml in 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 json

JSON output:

{
  "created": true,
  "path": "D:/projects/MyApp/socotra.yaml",
  "template": "modular-monolith"
}
Schema 1.1 · CLI 1.0