# How to fetch metric details such as Bugs, Vulnerabilities, etc. using SonarQube CLI?

**URL:** <https://community.sonarsource.com/t/how-to-fetch-metric-details-such-as-bugs-vulnerabilities-etc-using-sonarqube-cli/76105>\
**Category:** SonarQube Server / Community Build\
**Tags:** sonarqube, coverage\
**Created:** [November 15, 2022, 5:07pm UTC](https://community.sonarsource.com/t/how-to-fetch-metric-details-such-as-bugs-vulnerabilities-etc-using-sonarqube-cli/76105 "2022-11-15T17:07:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tharaki\_panabokke](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/tharaki_panabokke/32/39133_2.png) [@tharaki\_panabokke](https://community.sonarsource.com/u/tharaki_panabokke)\
**Post date:** [November 15, 2022, 5:07pm UTC](https://community.sonarsource.com/t/how-to-fetch-metric-details-such-as-bugs-vulnerabilities-etc-using-sonarqube-cli/76105/1 "2022-11-15T17:07:59Z")

</div>

# How to fetch metric details using SonarQube CLI?

Hi,

- Is there any way to fetch the details of the following metrics using the SonarQube CLI?  

- The SonarQube version in use is **9.2.4.50792**

- I looked for the metrics using the **ceTaskUrl** in **report-task.txt** but it only provides the warning count.

Thank you!

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [November 16, 2022, 7:19pm UTC](https://community.sonarsource.com/t/how-to-fetch-metric-details-such-as-bugs-vulnerabilities-etc-using-sonarqube-cli/76105/2 "2022-11-16T19:19:29Z")

</div>

Hi,

Welcome to the community!

Have you tried this via the UI? The best way to master the API is to perform the desired action via the UI and eavesdrop to see which calls the UI made to accomplish the action.

You may also find [this guide](https://community.sonarsource.com/t/how-to-reverse-engineer-the-sonar-web-api/66810) helpful.

&nbsp;  
HTH,  
Ann
