Dear community,
We’re excited to announce SonarQube CLI v1.10.0, a release that introduces a new sonar config command for persistent settings, adds OpenCode and secrets allowlist support, and delivers several reliability fixes across authentication, updates, and hooks.
What’s new
Persistent settings with sonar config
- A new
sonar configcommand lets you manage CLI settings that persist across invocations:sonar config set <key> <value>,sonar config get <key>,sonar config unset <key>, andsonar config list. Sensitive values are stored in the OS keychain and never printed, while non-sensitive values are stored in aconfig.propertiesfile scoped to your OS user account. - Supported keys include
network.proxy.https,network.proxy.http,log.level,telemetry.enabled,stats.enabled, and settings for the CA certificate and mTLS client certificate (path, key file, and passphrase). Runsonar config listto see them all. - Stored network settings take effect for outbound calls, following the precedence
sonar-env > stored-config > generic-env. For example,SONAR_HTTPS_PROXY_URLoverrides a storednetwork.proxy.https, which overridesHTTPS_PROXY. A storedlog.levelapplies at startup, withLOG_LEVELtaking precedence. - Telemetry and stats are now controlled with
sonar config set telemetry.enabledandsonar config set stats.enabled, replacing thesonar config telemetryandsonar config statssubcommands. Your existing preferences carry forward unchanged, andDO_NOT_TRACKkeeps working independently. sonar system resetnow also removes yoursonar configsettings, including sensitive values stored in the keychain.
OpenCode integration
- The new
sonar integrate opencodecommand sets up the full SonarQube experience for OpenCode:- Secrets scanning on file reads and prompt submission.
- Per-edit quality analysis with Sonar Vortex after the agent edits or writes a file.
- Sonar Vortex context guidance for agents.
- Automatic configuration of the SonarQube MCP server in
opencode.json.
Manage the secrets allowlist
- The new
sonar allowlist secretscommand group makes the secrets allowlist usable directly from the CLI, withshow,add,remove, andclearsubcommands. Thesonar-secretsbinary is installed automatically if needed. addrequires an interactive terminal, so an allowlist entry always needs a human decision. It can’t be run from an agent or script.
Smaller improvements
sonar list org(aliassonar list orgs) prints the organizations you can access, with the same--formatoptions as otherlistcommands.- The organization picker in
sonar auth loginnow shows each organization’s name, key, whether you administer it, and which one is active. - Branch resolution (including for
quality gate) now takes into account analyses done on your currently checked-out branch, even when there is no pull request. - When
sonar run mcpis started by an MCP client without being authenticated, the client now receives a clear “Not authenticated. Run ‘sonar auth login’ to authenticate.” message instead of a generic connection error. - Updated the bundled secrets scanner to 2.53.0.13730: it accepts multiple files via stdin with the
--input-batchflag, improves CA certificate handling, and its macOS and Windows binaries are now signed. The Unix/macOS binary was also renamed to end with.bin. - Updated Sonar Vortex context augmentation to 0.23.0.5451.
Fixes
- Pre-push hook scanned the wrong content:
sonar hook git-pre-pushnow scans the commits being pushed rather than the working-tree files, which could differ when pushing a non-checked-out branch, multiple refs, or with uncommitted changes. sonar contextwithout a keychain: An unavailable keychain (for example in containers and CI) is no longer fatal, and the error message now points to environment authentication instead of suggesting you install libsecret.sonar updateon Linux: Fixed an error shown after a successful update when the telemetry flush worker couldn’t start from the replaced binary.
You can find more information about this release here.
Run the sonar update command to get the latest SonarQube CLI version and enjoy these new capabilities!
Happy coding,
Farah