> For the complete documentation index, see [llms.txt](https://docs.mobb.ai/mobb-user-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mobb.ai/mobb-user-docs/integrating-sast-findings/checkmarx/generating-checkmarx-one-json-report-from-cli.md).

# Generating Checkmarx One JSON Report from CLI

## Introduction

The Checkmarx One CLI provides the ability to generate a higher fidelity JSON report that helps Mobb generate a more in-depth fix analysis compared to the JSON report generated directly from the Checkmarx One UI. This guide walks through the process of running the Checkmarx One CLI to generate this high fidelity JSON report.

## Downloading Checkmarx One CLI

1. The first step is to download the latest version of the Checkmarx One CLI from the following [link](https://github.com/Checkmarx/ast-cli/releases/tag/2.3.0).
2. Select the version that runs on your Operating System that runs on your workstation.

## Locating the Scan ID

1. Login to your Checkmarx One account.
2. Go to Scan Management -> Scans.\
   Locate the relevant scan and copy the Scan ID as shown:

<figure><img src="/files/YBhBtIKzElX0ebMDi7bq" alt=""><figcaption></figcaption></figure>

## Generate JSON Report

1. Extract the the Checkmarx One CLI
2. Open a terminal and navigate to the root folder of the CLI command

For example (Powershell):

```powershell
cd C:\ast-cli_2.2.0_windows_x64
```

3. Authenticate to the Checkmarx One CLI. You will need a Checkmarx One API Key to perform this step. If you're not sure where to get the API key, click [here](https://docs.checkmarx.com/en/34965-188712-creating-api-keys.html).

```powershell
.\cx.exe configure set --prop-name cx_apikey --prop-value <YOUR_CHECKMARX_API_KEY>
```

* Replace `<YOUR_CHECKMARX_API_KEY>` with your Checkmarx One API key generated

4. Run the report command to generate a json report

```powershell
.\cx.exe results show --scan-id <YOUR_SCAN_ID> --report-format=json --output-name report
```

Replace `<YOUR_SCAN_ID>` with your the Scan ID you captured during the step above.

There should now be a file called `report.json` located in the same directory as your terminal's directory location. You can now proceed to submit this report file with Mobb following the steps [here](/mobb-user-docs/integrating-sast-findings/checkmarx.md#option-1-upload-vulnerability-report).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.mobb.ai/mobb-user-docs/integrating-sast-findings/checkmarx/generating-checkmarx-one-json-report-from-cli.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
