Use a tool like ansi-to-html to create html stubs of the CLI output to be included in the documentation. https://www.npmjs.com/package/ansi-to-html