# Importing Salesforce CLI Code Coverage

CodeScan can take JSON coverage files generated by the Salesforce CLI and apply the coverage in your analysis.

If you are using the Salesforce CLI to run the analysis, [see our guide here](/product-guides/codescan/codescan-integration/codescan-sfdx-plugin/importing-code-coverage-from-sfdx-projects.md).&#x20;

If you have a Git project created in CodeScan Cloud:

* Open your project and navigate to **Project Settings > General Settings** at the top right of the screen
* Click the **CodeScan** tab on the right
* Scroll down to the **Testing** section
* Add the JSON code coverage file name and re-run the analysis

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

{% hint style="info" %}
When you are generating your coverage file with the Salesforce CLI, the JSON file name will be generated dynamically.  Rename this file after it is created to make sure it can be referenced consistently.
{% endhint %}

After the analysis completes you will be able to view the coverage percentage on your project overview.

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


---

# Agent Instructions: 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:

```
GET https://knowledgebase.autorabit.com/product-guides/codescan/report-and-analysis/importing-salesforce-cli-code-coverage.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
