# SonarQube CLI

Developer command-line interface for SonarQube analysis, quality gates, issues and supported coding-agent integrations.

> This is the Markdown version of the SonarQube CLI page on OpenNavo, with the same facts as the web page: <https://opennavo.com/apps/sonarqube-cli>

- **Latest version**: `1.13.1.18209`
- **Developer**: SonarSource SA
- **Homepage**: <https://www.sonarsource.com/sonarqube/cli/>
- **Categories**: [Developer Tools](https://opennavo.com/categories/developer-tools)
- **Install**: `brew install --cask sonarqube-cli`
- **30-day installs**: 1,381
- **Homebrew**: Available; updated by Homebrew
- **Download URL**: <https://binaries.sonarsource.com/Distribution/sonarqube-cli/1.13.1.18209/macos/sonarqube-cli-1.13.1.18209-macos-arm64.bin>
- **SHA-256**: `f5de07e980a784a16c535ae51e2816df5961e2ecdb136224158be087f63ea9e2`
- **Commands**: sonar

SHA-256 only checks that the download is complete; it is not a security certification.

## Installation and removal contents

```json
[
  {
    "declaration": {
      "binary": [
        "sonarqube-cli-1.13.1.18209-macos-arm64.bin",
        {
          "target": "sonar"
        }
      ],
      "target": "$HOMEBREW_PREFIX/bin/sonar"
    },
    "phase": "install",
    "sources": [
      "sonarqube-cli-1.13.1.18209-macos-arm64.bin"
    ],
    "target": "$HOMEBREW_PREFIX/bin/sonar",
    "type": "binary"
  },
  {
    "declaration": {
      "zap": [
        {
          "script": {
            "args": [
              "system",
              "reset",
              "--force"
            ],
            "executable": "sonarqube-cli-1.13.1.18209-macos-arm64.bin",
            "must_succeed": false
          }
        }
      ]
    },
    "phase": "cleanup",
    "sources": [],
    "type": "zap"
  }
]
```

## 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](https://www.sonarsource.com/sonarqube/cli/), [README and platform requirements](https://github.com/SonarSource/sonarqube-cli), [Quickstart](https://docs.sonarsource.com/sonarqube-cli/quickstart-guide), [License](https://github.com/SonarSource/sonarqube-cli/blob/master/LICENSE.txt), [Release history](https://github.com/SonarSource/sonarqube-cli/releases).

## System requirements

- Build for macOS 27, 26, 15, 14, 13, 12, 11 · Version: 1.13.1.18209 · Apple silicon · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/s/sonarqube-cli.rb> · Checked 2026-11-28
  - <https://binaries.sonarsource.com/Distribution/sonarqube-cli/1.13.1.18209/macos/sonarqube-cli-1.13.1.18209-macos-arm64.bin>
  - SHA-256: `f5de07e980a784a16c535ae51e2816df5961e2ecdb136224158be087f63ea9e2`

## Price

- Free with in-app purchases — Official website: <https://www.sonarsource.com/plans-and-pricing/> · <https://www.sonarsource.com/plans-and-pricing/> · Checked 2026-10-25

## SonarQube CLI security facts

Only facts that can be checked, each with its source and date. This is not a safety certification. To check the files you downloaded, scan them on your Mac with OpenNavo.

- <https://github.com/SonarSource/sonarqube-cli> · Open source: Yes — <https://github.com/SonarSource/sonarqube-cli> · Checked 2026-11-14

## Uninstall

- `brew uninstall --cask sonarqube-cli`

A regular uninstall removes the app and keeps its settings and caches.

## Latest release notes

### 1.13.1.18209 (2026-11-24)

SonarQube CLI 1.13.1 stops printing the startup warning that 1.13.0 showed on every command.

**Fixed**

- Startup warning no longer prints on every command.

## Facts and sources

- <https://opennavo.com/apps/sonarqube-cli>
- <https://opennavo.com/apps/sonarqube-cli/versions>
- <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/s/sonarqube-cli.rb> · Checked 2026-11-28
- <https://formulae.brew.sh/cask/sonarqube-cli>
- <https://www.sonarsource.com/plans-and-pricing/> · Checked 2026-10-25
- <https://github.com/SonarSource/sonarqube-cli> · Checked 2026-11-14
