Skip to content

serve

Start VulnAPI as an HTTP server that exposes a REST API, allowing scans to be triggered programmatically rather than through the CLI.

Terminal window
vulnapi serve [flags]
FlagDefaultDescription
-p, --port <port>8080Port to listen on

Start on the default port

Terminal window
vulnapi serve

Start on a custom port

Terminal window
vulnapi serve --port 9090
CodeMeaning
0Server exited cleanly
1Fatal error (port already in use, etc.)