Knowledge Base > DCover CLI > Generating JSON reports

Generating JSON reports

To generate a report using the Diffblue Cover CLI, your project must first be compiled. To do this, use a command such as:

mvn clean install -DskipTests

You can now generate the report and specify where it is created using the format:

--report=path/to/report.json

For example:

dcover create --report=*reportname*.json

or

dcover create --report=*path/reportname*.json

This generates a JSON-formatted summary report to the specified location.

For information on generating HTML reports, please see the page: Generating coverage reports.