Skip to content
✨ Publier v1 is live — a polished docs platform built for the open web.
On this page

publier build

Produce a production build in dist/.

Runs the production build, emitting static HTML, JS, CSS, and assets to dist/. A Publier seat is required.

Usage

Terminal window
publier build

Requirements

publier build requires a Publier seat — run publier login first. A valid cached human credential is checked offline; CI credentials require the online verification path. See the token model and CI prerequisites.

Output

dist/ contains everything you need to deploy:

  • Static HTML for every page
  • Bundled JS and CSS
  • A full-text search index under dist/pagefind/ when pagefind() is registered
  • llms.txt when enabled, plus per-page Markdown and llms-full.txt when llms.full: true; see AI outputs

Point any static host at dist/ and you’re done. See the deployment guide for ready-made recipes.

Exit codes

CodeMeaning
0Build succeeded.
1Not signed in, or the account holds no Publier seat.
5Build failed for another reason.