new-route
Trigger: user asks to add a new page/route.
Workflow
- Confirm with the user: name (kebab-case), group (
_public+or_session+), and which of--loader,--action,--i18nthey want. - Run from the repo root:
.gaia/cli/gaia scaffold route <name> --group <group> [flags](output paths resolve from the working directory). - Verify:
pnpm typecheckclean;pnpm devreaches the new route.
Flags
--group, required,_public+or_session+--loader, emit a loader stub--action, emit an action stub--i18n, emit the locale file and wire the locale barrel--dry-run, print what would be written without touching the filesystem--json, print the scaffold result as JSON