The man-and-completions example writes them from the clap definition;
package.sh installs bash, zsh and fish completions and a man page per
subcommand (renamed with the Nightly CLI), the deb links zsh into
vendor-completions, FreeBSD's package.sh installs the same. docs/cli.md
says the CLI follows RFC-0018 and what it does not meet yet.