macOS
brew install --cask sonarqube-clilocal Homebrew cask metadata
cask / rank 1663
Code quality and security for terminal workflows, scripts, and AI agents. Version 1.4.0.3748 via Homebrew Cask; verified 2026-07-28. Also installable with nix: nix profile install nixpkgs#sonarqube-cli.
install
brew install --cask sonarqube-clilocal Homebrew cask metadata
overview
Code quality and security for terminal workflows, scripts, and AI agents
history
SonarQube CLI is SonarSource's command-line interface for SonarQube Cloud and SonarQube Server workflows, combining project and issue queries, secrets scanning, local analysis, and AI-agent integrations under the `sonar` command.
The project is published by SonarSource as a public GitHub repository and documented on the official SonarSource documentation site. Its README describes the CLI as a terminal-oriented interface for catching code quality and security issues before production, with integrations for Git hooks, Claude Code, GitHub Copilot, Codex, CI/CD, and custom automation.
The 1.0.0 release on June 10, 2026 marked the CLI becoming an official public release after beta. That milestone positioned the tool as a practical day-to-day terminal interface for SonarQube, centered on `sonar auth`, `sonar analyze`, `sonar list`, and `sonar integrate`.
SonarSource distributes the CLI through official install scripts, GitHub releases, and Homebrew Cask packaging. Its packaging relevance comes from making SonarQube's quality, security, and secrets workflows available from local shells, automation scripts, and AI-agent setups rather than only from CI pipelines or web UI workflows.
Typical use starts with installation, authentication against SonarQube Cloud or SonarQube Server, and commands such as `sonar auth status`, `sonar analyze`, `sonar list issues`, and `sonar integrate`. The official command reference groups commands into authentication, integrations, analysis, information, configuration, and maintenance.
For headless use, the official environment-variable documentation supports `SONARQUBE_CLI_TOKEN` with either `SONARQUBE_CLI_ORG` for SonarQube Cloud or `SONARQUBE_CLI_SERVER` for SonarQube Server. Saved interactive credentials are otherwise read from the system keychain.
For package-manager users, SonarQube CLI is notable because it packages a vendor-backed code-quality and security workflow as a single local executable named `sonar`. It also installs or coordinates add-on binaries, hooks, MCP configuration, and agent instructions, making its filesystem state and credentials behavior important to understand when packaging, sandboxing, or auditing it.
security posture
No matching local secret-handling manifest was found for sonarqube-cli. Nucleus package metadata is still published here so future coverage has a stable package URL.
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
~/.sonar/sonarqube-cli/state.jsonexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
sonar | binary | Homebrew cask binary | sonarqube-cli-1.4.0.3748-macos-arm64.bin |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | cask:sonarqube-cli |
|---|---|
| Version | 1.4.0.3748 |
| Package manager | Homebrew Cask |
| Homepage | https://www.sonarsource.com/sonarqube/cli/ |
| Last updated | 2026-07-28T21:16:08+02:00 |
| Pulse | updated |
| SHA-256 | 2a23cbbd04c97204f84561032f4cf23f04a057d98f39c278805893fae54854f6 |
| Download URL | https://binaries.sonarsource.com/Distribution/sonarqube-cli/1.4.0.3748/macos/sonarqube-cli-1.4.0.3748-macos-arm64.bin |
| Bottle | not recorded |
| Service | none declared |
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
sonarqube-cli
nix profile install nixpkgs#sonarqube-clisonar
nix profile install nixpkgs#sonarmain/sonar
scoop install main/sonarsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.