SonarScanner CLI is the scanner to use when there is no specific scanner for you Build System.
Please note that SonarScanner CLI does not officially support ARM architecture.
To download the SonarScanner CLI you can visit the below site.
https://docs.sonarsource.com/sonarqube-server/latest/analyzing-source-code/scanners/sonarscanner
once you open the link you will find various versions of scanner based on the operating system.
For this blog I am choosing windows

I have downloaded and extracted the files in my local.
Here you will find 4 folders inside the extracted folder.

Here “lib” file contains the SonarScanner CLI Jar file.
“Jre” is the Java Runtime Environment.
“Conf” is the properties file where you can configure server URL and the token.

“bin” will have the executable files to run the SonarScanner.

Please note that you need to add path for the .bat file to make them executable from anywhere on our machine.

Once done you are good with the SonarScanner CLI installation.
To verify the installation, just open the PowerShell and type sonar-scanner.bat –version
You should be able to see the SonarScanner CLI version as shown below.

We’re a SonarQube Gold Partner. For licensing, demos, or implementation, reach out to devops@ecanarys.com
Canarys is a SonarQube Gold Partner, delivering end-to-end DevOps solutions using Atlassian, GitLab, GitHub, Azure DevOps, Kubernetes, and more serving clients across 30+ cities in India, APAC, and the USA.