swagger-ui-serve

npm version Downloads

Launches Swagger UI with the passed Open API Specification pre-loaded.

npx swagger-ui-serve ./example-specification.json
Argument Description
--specification (-s) Path to the Open API specification JSON
--port (-p) Port to run Swagger on. Default is 3000