The following example will generate all supported docs for Docker buildx CLI.
git clone https://github.com/docker/cli-docs-tool cd cli-docs-tool/example/ go mod download go run main.go
Generated docs will be available in ./docs
./docs