This page describes what happens inside apps/cli/src/lib/scaffold.ts when you run arche create. Generated users rarely need it; contributors and advanced automators do.
Pipeline
Loading diagram…
Key stages
| Stage | What changes |
|---|---|
| Copy | Polyglot or family stub from apps/cli/src/templates/ |
| Transforms | Rust, Solana, Convex, ORM/database rewrites |
| Cleanup | Capability helpers strip live-demo paths and patch leaked wiring when flags omit --live-demo |
| Live demo | Optional overlay from apps/cli/src/templates/addons/live-demo/ when --live-demo is set |
| Agent context | AGENTS.md, .docs/, .plans/, symlinks |
| Portfolio | package.json#portfolio, optional SHOWCASE.mdx |
Flags that affect output
--no-showcase— skip demo surfaces andSHOWCASE.mdx--live-demo— opt-in Relay Run / chat / lattice capability (separate from--showcase)--no-worker— drop worker workspace and queue admin routes--no-ci/--no-docker— skip those generators--dry-run— plan only
Maintainer commands
Develop the CLI from this repo:
terminal
bun run dev:cli -- --help
bun test apps/cli
bun run template:sync:check
bun run repo:doctor:stricttemplate:sync:check enforces a minimal fullstack template and a self-contained live-demo addon.
See This source repository and repo docs/cli-development.md.