CLI Scanner
Estimated reading time: less than 1 minuteThe xss-scan command-line tool runs the XSS analysis engine against an entire project or
specific files.
Command
When called without file arguments, scans all files included by the project's
tsconfig.json. When file paths are provided, only those files are analyzed.
Options
Exit codes
How it works
The CLI creates a TypeScript program from the specified tsconfig.json, loads all source
files, and runs the same analysis engine used by the editor plugin. Diagnostics are
printed to the terminal with colored output. The process exits with the appropriate code
for CI gate integration.