Updated
Reference for the selfdoc serve command — usage, flags, arguments, and examples for the serve subcommand of the selfdoc CLI.
#selfdoc serve
Serve the documentation site locally with live reload
Effect: mutating
#Flags
| Name | Short | Type | Presence | Env | Description |
|---|---|---|---|---|---|
--port | -p | int | optional | HTTP port number to serve on (e.g., 3000). Omitted, the server binds port 8000 | |
--drafts, --no-drafts | bool | optional | Rebuild the site with draft posts included before starting the local server. Omitted, drafts are left out; pass --drafts to include them |