ARCHE
FamiliesDocsExamplesBlogGitHub ↗
Documentation

Start

  • Getting started
  • Philosophy

Guides

  • First hour
  • Agent context
  • Verification
  • Package managers
  • Scaffold lifecycle
  • Showcase & portfolio

Walkthroughs

  • TypeScript fullstack
  • Convex product
  • Rust API & fullstack
  • Solana family
  • Customize & experiments
  • Automation (JSON/MCP)

CLI

  • Overview
  • Flags
  • Subcommands
  • Generated output

Presets

  • Preset catalog

Stack

  • TypeScript architecture
  • Convex
  • Rust
  • Solana
  • Authentication
  • Prisma store
  • tRPC

Operations

  • Deployment
  • Environment variables
  • Workers & queues
  • CI & testing
  • Scaling
  • Security
  • Troubleshooting

Reference

  • Stack links
  • Capabilities
  • This source repo
  • Code examples
← Documentation

Scaffold lifecycle

How arche create copies, transforms, cleans up, and writes agent context—maintainer view.

1 min read

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

StageWhat changes
CopyPolyglot or family stub from apps/cli/src/templates/
TransformsRust, Solana, Convex, ORM/database rewrites
CleanupRemoves demo, worker, tests per flags (toolings/scripts/template-cleanup.ts)
Agent contextAGENTS.md, .docs/, .plans/, symlinks
Portfoliopackage.json#portfolio, optional SHOWCASE.mdx

Flags that affect output

  • --no-showcase — skip demo surfaces and SHOWCASE.mdx
  • --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

See This source repository and repo docs/cli-development.md.