CLI Guide
GWEN has two user-facing command-line tools:
- Scaffold CLI:
@djodjonx/create-gwen-app - Project CLI:
gwen(from@djodjonx/gwen-cli)
Scaffold a new project
bash
npx @djodjonx/create-gwen-app my-game
cd my-game
pnpm install
pnpm devDaily workflow
bash
gwen prepare
gwen dev
gwen build
gwen preview
gwen lint
gwen format
gwen infoWhy gwen prepare matters
gwen prepare generates .gwen/ type artifacts and metadata used by the runtime and IDE tooling.
In practice:
gwen devandgwen buildrun prepare-related steps automatically.- You can still run
gwen prepareexplicitly when debugging type generation.
Common command examples
Development
bash
gwen dev --port 3000 --openProduction build
bash
gwen build --out-dir distPreview build
bash
gwen preview --preview-port 5000Lint and format
bash
gwen lint --fix
gwen format --checkPackage scope reference
All official packages are on the @djodjonx scope, including:
@djodjonx/create-gwen-app@djodjonx/gwen-cli@djodjonx/gwen-engine-core@djodjonx/gwen-kit