Notewell

CLI reference

The notewell binary exposes four commands. Run notewell <command> --help for the full flag list.

notewell init

Scaffold a new project in the given directory.

notewell init [DIR] [--force]
FlagDescription
--forceWrite into a non-empty directory instead of refusing.

notewell serve

Render the site in memory and serve it. The default mode for local writing and for running behind a proxy.

notewell serve [DIR] [--addr ADDR] [--watch] [--no-cache]
FlagDefaultDescription
--addr127.0.0.1:8080Bind address.
--watchfalseWatch the content folder and live-reload on change.
--no-cachefalseDisable response caching; useful while writing.

notewell build

Render the site to static files and exit.

notewell build [DIR] [--out DIR] [--minify]
FlagDefaultDescription
--outpublicOutput directory.
--minifyfalseMinify HTML and CSS.

notewell version

Print the version and build information, then exit.

notewell version
# notewell 1.4.2 (linux/amd64, built 2026-05-30)

Exit codes

CodeMeaning
0Success.
1Generic failure (parse error, render error).
2Invalid usage or unknown flag.
3Address already in use.