# Sonar CLI

> Use the SonarQube CLI to access and understand SonarQube analysis results. Use when the user asks about SonarQube issues.

- Skill: `bkircher/sonar-cli` (Agent Skill)
- Install (CLI): `npx skillmds@latest add bkircher/sonar-cli`
- Raw SKILL.md: https://api.skillmd.com/api/skills/bkircher/sonar-cli/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: bkircher (https://skillmd.com/u/bkircher)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/bkircher/sonar-cli

---


## Authentication

Knauf-Group accounts are hosted in the SonarQube Cloud EU region.

```sh
# Log in (opens browser for interactive auth)
sonar auth login -o knauf-group -s https://sonarcloud.io

# Check authentication status
sonar auth status
```

## Find projects and issues

```sh
# List all projects
sonar list projects | jq

# List issues for a project
sonar list issues -p Knauf-Group_pas-frontend --severities HIGH,BLOCKER --statuses OPEN
```

## Secret scanning

Run secret scanning only on individual files, not directories or full repositories.

```sh
# Scan a file for hard-coded secrets
sonar analyze secrets ./Dockerfile
```

