Features
SonarQube from the terminal: why the quality gate is red, metrics, issues, hotspots and rules, plus an interactive issues dashboard. Built on @kud/sonarqube, the headless core that holds the client, the layered config and the quality-gate model.
- Quality gate, explained — status, new-code period and failing conditions first, with
--failto break a CI step - Issues dashboard — list, detail and a highlighted code snippet in one TUI, with
bto switch branch and keep your filters - Everything else in reach — metrics, measures and their history, hotspots, rules, duplications, quality profiles
- Branch aware —
-bon every command that talks to SonarQube - Layered config — config file, then environment, then flags, with
sonar-project.propertiesas a fallback for the project key - Scriptable —
--jsonon every command that talks to SonarQube
Install
npm install -g @kud/sonarqube-cliTwo binaries, same program: sonarqube and sonarqube-dash (kept for existing scripts). Node 22 or later.
Usage
export SONARQUBE_HOST=https://sonarqube.example.com
export SONARQUBE_TOKEN=<token>
export SONARQUBE_PROJECT=my-project
sonarqube # open the issues dashboard
sonarqube quality-gate # why is the gate red
sonarqube quality-gate --fail # same, exit 1 when it is (for CI)
sonarqube issues --new-code -l 25Running sonarqube with no command opens the dashboard (issues list, detail and a highlighted code snippet; b switches branch and keeps your filters). Outside a terminal it prints help instead. sonarqube issues -i opens it with filters.