stack-effect init

Scaffold a new Effect project in a subdirectory (or '.' for the current directory). Runs interactively unless --yes is passed.

Usage

stack-effect init [flags] [<project-name>]

Arguments

ArgumentTypeDescription
project-namestringOptional.

Options

OptionDescription
--root, -r <dir>Root directory of the repository (defaults to cwd)
--yes, -ySkip confirmation prompts (uses defaults where available)
--dry-runPreview changes without writing to disk
--show-filesInclude generated file contents in a dry-run preview
--runtime choiceRuntime to use (choices: bun, node)
--typescript choiceTypeScript major version to configure (choices: 6, 7)
--no-gitSkip git repository initialization
--trustSkip finalize script approval prompt and run all scripts

Examples

Create a new project in ./my-app interactively

stack-effect init my-app

Initialize in the current directory using the folder name

stack-effect init . --yes

Non-interactive with explicit options

stack-effect init my-app --yes --runtime bun --no-git