Dear community,
We’re excited to announce SonarQube CLI v1.4.0, a release focused on enterprise network readiness and smoother agentic workflow. So here is what’s new:
MCP Server: Enterprise Network Support
The run mcp command, used for agents integrations, now forwards the proxy settings, custom CA certificates, and mTLS configuration already stored in the CLI to the MCP server container. If you are part of an organization with strict network requirements, you can run agent integrations without extra hoops. run mcp also now detects and uses container runtimes (e.g. Docker) running inside WSL on Windows.
Agentic Workflow Improvements
- Auto-detect Git Branch —
sonar analyze agenticand its hooks now automatically detect the current git branch and pass it as context, so results are accurate without needing to pass--branchmanually. - Agent-Friendly Syntax Hints — Interactive prompts now show the equivalent non-interactive flag before prompting, so AI agents can discover the right flag instead of stalling while waiting for input.
- Git Worktree Support — Project key resolution for Vortex agentic analysis and context augmentation now works correctly from a git worktree.
- Clearer Hook Failures — Pre-commit/pre-push hooks no longer fail silently when you’re unauthenticated or the secrets scanner binary is missing; they now surface a clear error.
Command & API Updates
sonar updateis the new name forsonar self-updatefollowing more common command naming. The old command still works but now prints a deprecation warning pointing to the new one.sonar apiautomatically rewrites/api/v2/...paths to the correct host when connected to SonarQube Cloud, fixing failures against endpoints like SCA issue releases.- The beta label has been removed from
analyze dependency-risksas it’s fully supported now.
Installation & Distribution
- Homebrew and Mise are now documented as supported installation methods in the README and in our documentation.
- The macOS binary is now signed under the updated Apple Developer ID for SonarSource Sàrl.
Get Started
Update now to get all the benefits with the following command:
sonar update
Find out more about this release here and enjoy using SonarQube directly from your terminal!
Stay tuned for more updates.
Farah.