reed build
Compile the project into a deployable static site.
reed build [--dir <path>] [--content <path>] [--out <path>] [--strict-tokens] [--strict-components]Compiles docs.json plus your content into a static site. See
Build output for everything it writes.
Prerequisites: a prior successful reed prefetch on this machine, and a
Corepack-resolvable package manager. Given those, build needs no network.
Options
Section titled “Options”--dirpathProject root. Defaults to the current directory.
--contentpathContent directory. Defaults to <dir>/content.
--outpathOutput directory.
--strict-tokensbooleandefault: falseEscalate every warning except DS-D* to an error.
--strict-componentsbooleandefault: falseEscalate DS-D* design-system warnings to errors.
Output safety
Section titled “Output safety”--out is written through a staged atomic replacement: the directory is never a mixture
of old and new files, even if the build fails partway through.
An --out that overlaps a build input is refused. Pointing the output at your content
directory would otherwise let a build consume what it just wrote.
When Corepack is missing
Section titled “When Corepack is missing”Node 16.9 and later ship Corepack, but Node 25 and newer no longer bundle it by default.
On such a machine build fails immediately and says so:
build failed: [reed] Corepack is required but not available on this machine — install/enable Corepack, then run `reed prefetch`.This is a fast, specific failure rather than a silent fallback to the network.
Time limits
Section titled “Time limits”REED_BUILD_TIMEOUT_MSenvdefault: 1800000Ceiling for the site build, in milliseconds — 30 minutes by default.
REED_INSTALL_TIMEOUT_MSenvdefault: 900000Ceiling for dependency installation, in milliseconds — 15 minutes by default.
Set either to 0 to remove its ceiling. These exist to turn a hang into an error, not to
police slow builds. A negative or non-numeric value is rejected rather than ignored, so a
typo cannot silently restore an unbounded build.