SonarQube CLI
SonarSource SA · Developer command-line interface for SonarQube analysis, quality gates, issues and supported coding-agent integrations.
brew install --cask sonarqube-cli- 30-day installs
- 1,381
- #232 in App
- 1-year installs
- 4.8K
- Last 365 days
- Latest version
- 1.13.1.18209
- Download size
- 93MB
- bin
- Release cadence
- Every 2 weeks
- 3 releases in 30 days
About
SonarQube CLI is SonarSource's command-line interface for developers working with SonarQube projects. Its executable is sonar; it is distinct from SonarScanner CLI (sonar-scanner), an IDE and a SonarQube server. It suits developers who want quality and security feedback, issue inspection and supported coding-agent integrations from a terminal.
Features
- Analyze supported local changes and detect supported security issues and secrets.
- Inspect project quality gates, issues and file-level results.
- Retrieve project context and integrate supported coding agents through hooks and MCP configuration.
- Link a working repository to a SonarQube project and import connected DevOps repositories.
- Use structured output for scripts and inspect authentication or update status.
- Review local usage statistics where available.
Some commands have separate maturity labels: version 1.9 introduces repository import in Open Beta and local statistics in Alpha. Feature availability also depends on the connected service, project configuration, edition and entitlements; installing the CLI does not grant every server-side feature.
Install and platform requirements
Install the official macOS ARM64 binary or use brew install --cask sonarqube-cli, then follow the official quickstart to authenticate and connect a project. This cask distributes the Apple Silicon macOS build. The official README also lists Linux x86-64 and ARM64 and Windows x86-64 builds; it does not list a native Intel macOS build. Rosetta does not make an ARM64 executable run on an Intel Mac. The reviewed CLI documentation does not specify an exact minimum macOS release, so no numeric minimum is asserted here.
The CLI needs access to SonarQube Cloud or a self-hosted SonarQube Server version 25.1 or later. Git 2.x is optional for Git-hook integrations, and coding-agent integrations need the corresponding supported agent. Follow each analysis feature's additional requirements; do not apply SonarScanner CLI's Java requirements indiscriminately to this different package. The cask's architecture restriction is not a claim that every ARM-based operating system is supported.
Authentication, integrations and privacy
Use an account and permissions appropriate to your SonarQube service and project. The official quickstart requires user tokens for token authentication; project, global and scoped organization tokens do not work properly with this CLI. Current versions also support the documented browser authentication flow. Protect credentials and follow your organization's approved storage and rotation practices.
Commands contact the configured SonarQube service, and analysis or agent features can transmit code or related project context according to their documented workflow. This is not a guarantee that all analysis is offline. Check your organization's policies before sending private repositories or enabling agent integrations.
Integration commands can write configuration, install supporting components and change hooks. Inspect those changes, especially shared Git hooks, global agent configuration and MCP entries. Version 1.9 migrates older project-level integrations to global configuration on first use; manually link the project if its key cannot be discovered. Existing agent tools, hook frameworks, credentials supplied through environment variables and server policies can affect behavior; this is not a blanket conflict with other development tools.
The README documents anonymous usage telemetry and Sentry error reporting with an opt-out. Local statistics introduced in 1.9 have a separate consent flag independent of general telemetry; local statistics consent does not disable other network features. Review current telemetry documentation and project privacy requirements.
Accounts, cost and license
The CLI source is licensed under LGPL version 3 or later. Downloading this client does not itself purchase SonarQube Cloud, a commercial Server edition or a coding-agent subscription. Cloud and server plans, private-project capabilities, advanced analysis and agent entitlements have their own accounts, terms and possible charges. Consult current service pricing rather than assuming all analysis is free or included in this binary.
The official macOS ARM64 1.9.0.15656 binary is 67,267,232 bytes according to HTTP HEAD. Installed components, caches and analysis data can need additional space.
Sources: Official CLI, README and platform requirements, Quickstart, License, Release history.
At a glance
- Price
- Free with in-app purchases
- Chip
- Apple silicon
- Auto-updates
- No
- Repository
- Open source · LGPL-3.0 · Updated 0 days ago★306
- Developer
- SonarSource SA
- Homebrew
- Available; updated by Homebrew
- Also known as
- sonarqube-cli
- Homepage
- www.sonarsource.com/sonarqube/cli
- Token
- sonarqube-cli
Checked
What’s new in 1.13.1.18209
New · OpenNavo editorial
- FixedStartup warning no longer prints on every command.
How to install SonarQube CLI on Mac
Install without Homebrew
Download the same file Homebrew uses: Install Details
Uninstall SonarQube CLI and optional data cleanup
brew uninstall --cask sonarqube-cliA regular uninstall removes the app and keeps its settings and caches.
Questions about SonarQube CLI
Is SonarQube CLI safe?
SonarQube CLI is in Homebrew’s official catalog and has not been disabled. Since September 2026, Homebrew disables apps that fail macOS Gatekeeper checks. When installing, Homebrew checks the download from binaries.sonarsource.com against its SHA-256 checksum. It was installed 1,381 times through Homebrew in the last 30 days.
Is SonarQube CLI free?
SonarQube CLI is free to download and offers in-app purchases. Source: www.sonarsource.com/plans-and-pricing, checked Oct 25, 2026.
Is SonarQube CLI open source?
SonarQube CLI’s source code is public on GitHub (SonarSource/sonarqube-cli) under the LGPL-3.0 license.
How do I completely uninstall SonarQube CLI on a Mac?
Run brew uninstall --cask sonarqube-cli.
Does SonarQube CLI run on Apple silicon (M1 and later) Macs?
Yes, and only there: it does not install on Intel Macs.
What is the latest version of SonarQube CLI?
The latest version is 1.13.1.18209, added to Homebrew on Nov 24, 2026. Run brew upgrade --cask sonarqube-cli to update it.
What else does installing SonarQube CLI add?
It also adds 1 command-line tool: sonar.
Similar Apps
- Devin DesktopA coding IDE and agent command center for reviewing changes, organizing coding sessions and using supported local or cloud agents.
- ConductorA Mac workspace manager for parallel coding agents, isolated Git worktrees, terminal tasks, diff review and optional collaborative cloud workspaces.
- BBEditA Mac text and code editor with powerful search, project navigation, syntax tools and remote-file editing.
- MaestroAn open-source desktop command center for coordinating AI coding agents, terminal sessions, project files and automated Markdown playbooks.