It's basically takes your api schema file path or url as argument and visualizes with the swagger-ui[1] package.
Easiest way to see it in action:
`npx swagger-viewer@latest https://petstore.swagger.io/v2/swagger.json`
[1] https://www.npmjs.com/package/swagger-ui-dist