codespeak init

Initialize a new CodeSpeak project in the current directory.

Synopsis

codespeak init

Description

Creates the necessary configuration files and project structure for a new CodeSpeak project. If inside a Git repository, the project is created at the Git repo root (not necessarily the current directory).

By default, this creates:

project/
โ”œโ”€โ”€ .codespeak/      # Internal state used by CodeSpeak
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ codespeak.json   # Project configuration
โ””โ”€โ”€ spec/
    โ””โ”€โ”€ main.cs.md   # Your spec โ€” edit this to describe what you want to build

If run inside an existing codebase, it creates codespeak.json at the repo root without generating a spec directory. You then manually register specs and configure which files CodeSpeak can modify.

Error messages

ErrorCauseResolution
CodeSpeak project at {path} already initializedRunning init in a directory that already has codespeak.jsonThe project is already set up โ€” edit codespeak.json directly

See also