AI product Open source
SonarQube CLI is a command-line interface from SonarSource for running SonarQube code-quality and security checks from a terminal. It authenticates with SonarQube Cloud or a self-hosted SonarQube Server, lists projects and issues, scans files for hardcoded secrets, and analyzes uncommitted changes for new issues when used with SonarQube Cloud Agentic Analysis.
The CLI supports interactive use, JSON, table, CSV, and token-efficient TOON output for scripting and AI workflows. It can install integrations for Claude Code, GitHub Copilot CLI, Codex, Cursor, and Antigravity, including pre-tool-use secret scanning, SonarQube analysis, and an MCP server for accessing SonarQube data. Git pre-commit and pre-push hooks are also supported.
It can be installed with Homebrew, Mise, or platform-specific scripts on Linux, macOS, and Windows. Authentication uses browser login or environment variables such as SONARQUBE_CLI_TOKEN, with organization or server settings supplied separately. The project is released under the GNU Lesser General Public License, version 3.0, and collects anonymous usage and error data by default with an opt-out setting.
2 uses taken from transcripts — each links to the moment in the video.
Command-line tool installed by the apply-sonar script; provisions the project, authenticates via login, wires configuration, and provides commands the plugin and MCP invoke.
Sonar's CLI that authenticates against SonarQube, provisions the project and MCP server, sets up configuration for the Codex plugin, and lets the agent invoke Sonar commands and list project issues from the terminal.
1 in the library.