To install SonarScanner and add the bin directory to the system's PATH environment variable, you can follow these steps:
bin
Download SonarScanner:
Visit the SonarScanner download page: https://docs.sonarqube.org/latest/analysis/scan/sonarscanner/arrow-up-right
Choose the appropriate distribution for your operating system and download the package.
Extract the downloaded package to a directory of your choice.
Add to the Path Variable
export PATH="/path/to/sonar-scanner/bin:$PATH"
Verify the installation:
Open a new command prompt or terminal window.
Run the command sonar-scanner --version
sonar-scanner --version
Last updated 2 years ago