CLI reference
Every Publier CLI command, what it does, and when to use it.
The publier CLI scaffolds new sites, runs the dev server, builds for production, and manages your license token.
Commands
publier newScaffold a new site from a built-in template. No token required.
publier devStart the development server with hot reload.
publier buildProduce a production build in dist/.
publier loginCache your license token locally.
publier logoutRemove the cached license token.
publier doctorDiagnose config, license, and environment issues.
Preview
There is no publier preview command. Use your project’s preview script (bun run preview, which calls bunx --bun astro preview in scaffolded projects) to serve dist/ locally.
Tokens
publier dev and publier build both require a valid license token. See the token model for where Publier looks for it and how precedence works.