Output Options and Recommendations
Safety can output the result of a vulnerability scan to a variety of different output formats.
The default output is screen
output, which prints the scan to the command line screen.
Use the --output
argument to configure which output format Safety generates. The --output
command line argument can be set to the following values: screen
, json
, html
, spdx
, spdx@2.2
, spdx@2.3
, none
.
Screen and text output
--output screen
(default) will print the results to the screen
Results can be easily saved to a text file. For example:
For more detailed output, add the --detailed-output
flag
Additional Output Options
Full details on each output option can be found here:
SBOM (SPDX, SPDX@2.2, SPDX@2.3)
Last updated