spec-editor init
Initialize a new specification project at the –path directory.
Interactive mode asks about LLM provider, API key, error reporting,
web UI, and — unless --methodology was given — the project’s domain,
then either picks the best-matching catalog methodology or (on request)
generates one for that domain. On re-init, existing
values are shown as defaults.
Interactive: spec-editor init
Non-interactive: spec-editor init --non-interactive
Pick by domain: spec-editor init --non-interactive --domain "mobile banking"
Generate: spec-editor init --non-interactive --domain "..." --generate-methodology --yes
Usage
spec-editor init [OPTIONS]
Options
| Option | Type | Default | Description |
|---|---|---|---|
--path, -p |
path | . |
Project directory to initialize (default: current directory) |
--methodology, -m |
text | Methodology name (skips domain selection/generation entirely) | |
--domain |
text | Domain description for methodology selection (6.5b) or generation (6.5c, needs –generate-methodology) | |
--generate-methodology |
flag | Generate a new methodology for –domain instead of picking from the catalog (6.5c) | |
--yes |
flag | Auto-confirm the methodology selection/generation prompts (required with –non-interactive –generate-methodology) | |
--non-interactive |
flag | Skip interactive prompts, use defaults | |
--with-example |
flag | Include a sample requirements document to try spec-editor run | |
--dry-run |
flag | Show what would be created without writing anything | |
--json |
flag | Output as JSON |