Homepage

The SonarQube Command Line Interface (CLI) is designed to adapt the SonarQube capabilities to your development workflow.

circle-check

As a software engineer, you can use the SonarQube CLI as your unified command-line interface to interact with the Sonar ecosystem, including SonarQube Server and SonarQube Cloud.

The SonarQube CLI provides you with essential commands to streamline your workflow:

  • Integrate with AI tools like Claude Code and others.

  • Analyze your code for common pitfalls, including Secrets scanning.

  • View and manage the list of reported issues and projects.

Setup your SonarQube CLI

Check out our Quickstart guide to get started. You'll find the installation commands and a list of guides designed around your AI agent.

Command list

For a full list of available commands, see SonarQube CLI commands page.

Do you need help with flags and usage? See the Help page.

Secrets scanning

Scan your source code and configuration files with Sonar’s Secrets Detection Engine to identify and remediate exposed credentials, API keys, and tokens.

Check out the Secrets scanning page for details and the Quickstart secrets detection guide for a quick setup.

Last updated

Was this helpful?