stack-effect create

Create a greenfield stack-effect project from compact target specs.

Usage

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

Arguments

ArgumentTypeDescription
project-namestringOptional.

Options

OptionDescription
--target <targetKind>/<targetName>:<moduleId>[,...]Target spec as <targetKind>/<targetName>:<moduleId>[,<moduleId>...]
--root, -r <dir>Root directory of the repository (defaults to cwd)
--runtime choiceRuntime to use (choices: bun, node)
--package-manager choiceOverride the default package manager. bun implies --runtime bun; pnpm/npm imply --runtime node. (choices: bun, pnpm, npm)
--typescript choiceTypeScript major version to configure (choices: 6, 7)
--monorepo stringOverride the default monorepo tool
--lint stringOverride the default lint tool
--format stringOverride the default format tool
--test stringOverride the default test framework
--no-gitSkip git repository initialization
--yes, -ySkip confirmation prompts (uses defaults where available)
--trustSkip finalize script approval prompt and run all scripts
--dry-runPreview changes without writing to disk
--show-filesInclude generated file contents in a dry-run preview

Examples

Create a full-stack chat app, expanding default targets and required dependencies

stack-effect create chat-app --target client-react/web:client-react-chat

Preview a create command without writing files

stack-effect create chat-app --target client-react/web:client-react-chat --target package/ai:package-ai-chat-service,package-ai-toolkit-math --dry-run