selfdoc v0.37.1 /selfdoc build

Reference for the selfdoc build command — usage, flags, arguments, and examples for the build subcommand of the selfdoc CLI.

#selfdoc build

Build the documentation site from templates and source code

Effect: mutating

#Flags

Flags
NameShortTypeDefaultEnvDescription
--auto-commitboolTrueAutomatically commit updated content hash tracking files to git after the build
--localestrBuild only the specified locale instead of all (e.g., 'en')
--versionstrBuild only the specified version instead of all (e.g., '1.0.0')
--draftsboolInclude posts marked as draft in the build output alongside published posts
--targetstrBuild target: empty for full build ('posts' builds moved to selfblog)
Search