Updated
Reference for the selfdoc init command — usage, flags, arguments, and examples for the init subcommand of the selfdoc CLI.
#selfdoc init
Initialize selfdoc configuration and starter docs template
Effect: mutating
#Flags
| Name | Short | Type | Presence | Env | Description |
|---|---|---|---|---|---|
--base-url | str | required | Base URL the generated site will be served from (e.g. 'https://docs.example.com'). Required: it is the site's own address, which selfdoc cannot infer, and every canonical link, sitemap entry and feed URL is built from it | ||
--author-name | str | required | Display name of the site's author. Required: every page carries structured data naming who wrote it, and a name is a fact about a person that selfdoc cannot invent | ||
--author-url | str | required | Canonical URL identifying the site's author (e.g. 'https://you.example'). Required alongside --author-name: the structured data names an identity, and an identity has an address | ||
--auto-commit, --no-auto-commit | bool | optional | Automatically commit the generated selfdoc.json and the starter page template to git. Omitted, it commits; pass --no-auto-commit to leave the files uncommitted |