Using the scanner
To start the SonarScanner for NPM, you can either add the analysis to your build files, or use the scanner start command line (with or without npx).
Starting the scanner from the command line
sonar -Dsonar.host.url=https://<MY_SERVER>.com -Dsonar.token=<YOUR_TOKEN> -Dsonar.organization=<YOUR_ORGANIZATION_KEY> Starting the scanner from the command line with npx
npx @sonar/scan -Dsonar.host.url=https://<MY_SERVER>.com -Dsonar.token=<YOUR_TOKEN>Adding the analysis step to your build files
Starting the scanner from the command line with pnpx
Related pages
Last updated
Was this helpful?

