Skip to main content
Creates a momentic.config.yaml and the project layout used by the rest of the CLI. The command prompts before overwriting any existing files.
npx momentic init
New projects are scaffolded with fileFormat: v2. Sample tests and modules emitted by the onboarding wizard are written in the simplified format directly, so no follow-up migration is needed. Existing v1 projects should run momentic migrate simplified-format instead of re-running init.

Options

--name <name>
string
Project name to write into the generated momentic.config.yaml. When omitted, the wizard prompts for one and defaults to app.

Examples

Scaffold a project in the current directory:
npx momentic init
Scaffold a project non-interactively with a fixed name:
npx momentic init --name checkout-app