serve
Start VulnAPI as an HTTP server that exposes a REST API, allowing scans to be triggered programmatically rather than through the CLI.
vulnapi serve [flags]| Flag | Default | Description |
|---|---|---|
-p, --port <port> | 8080 | Port to listen on |
Examples
Section titled “Examples”Start on the default port
vulnapi serveStart on a custom port
vulnapi serve --port 9090Exit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
0 | Server exited cleanly |
1 | Fatal error (port already in use, etc.) |