CLI

The juicer command-line tool — build, serve, config.

Juicer’s CLI has three subcommands: build, serve, and config.

Global options

FlagWhat
-b, --baseurl <URL>Override baseURL from the config
-c, --config <name>Pick a baseline config (simple / standard / norme); default is standard
-h, --helpPrint usage and exit
-v, --verbosePrint step-by-step build progress
--versionPrint the version and exit

build

Build the site to <src>/public/ (or -d <dst> to override).

sbt 'juicerJVM/run build -s . -d public'
FlagWhat
-s, --source <p>Site source directory (default: .)
-d, --dest <p>Output directory (default: <src>/<publicDir>)
-D, --draftsInclude draft: true pages

serve

Build, then start a local HTTP server.

sbt 'juicerJVM/run serve -s . -p 8080'
FlagWhat
-s, --source <p>Site source directory
-d, --dest <p>Output directory
--host <h>Bind host (default: localhost)
-p, --port <p>Listen port (default: 8080)
-D, --draftsInclude drafts
Note

serve is currently JVM-only — com.sun.net.httpserver doesn’t exist on Scala.js or Native. The build itself works on all three platforms; serving is the lone JVM exception.

config

Print the merged site config (after baseline + overlay + CLI overrides).

sbt 'juicerJVM/run config -s .'

Useful for debugging “why is my htmlDir doing that?” — the answer is right there in the printed config.