#CLI

The solidocs package ships two commands:

solidocs dev     # dev server with live reload
solidocs build   # static build into .solidocs/dist

#Overriding the config

Every option from solidocs.config.ts can be overridden on the command line. Overrides are merged into the file config and validated together, so both must satisfy the schema.

solidocs build --title "Staging Docs" --base-path /preview/
FlagConfig keyNotes
--config <path>—Use a different config file
--title <text>titleSite title
--description <text>descriptionMeta description
--lang <code>langDocument language
--base-path </p/>basePathNormalized to leading/trailing slashes

#Dev server

solidocs dev
  • Serves the site at http://localhost:3000 (plus your base path)
  • Rebuilds on every file change
  • Live reloads connected browsers over SSE (/_dev/reload)

#Build

solidocs build
  • Prerenders every page to static HTML in .solidocs/dist
  • Emits hashed client bundles and assets next to it
  • Output is deployable to any static host

#npm scripts

The scaffolded package.json wires them up:

{
  "scripts": {
    "dev": "solidocs dev",
    "build": "solidocs build"
  }
}
Last updated: Aug 24, 2026Edit this page ↗