Skip to content

CLI reference

Script Description
pnpm dev dev server on port 4321
pnpm build build to dist/
pnpm preview serve dist/
pnpm check astro check — types and frontmatter schema
pnpm check:links verify every internal link in dist/ resolves
pnpm docs:freeze -- <major> copy current docs into src/content/docs/v<major>/
pnpm deploy build, then wrangler deploy
Terminal window
pnpm docs:freeze -- 1.9

Arguments: a version label (1.9) used in the archive banner. It writes to src/content/docs/v1/ — the major number, so a second call with 1.10 updates the same folder. It refuses to run if the target already exists, unless --force is passed.