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://myserver.com -Dsonar.token=019d1e2e04eStarting the scanner from the command line with npx
npx @sonar/scan -Dsonar.host.url=https://myserver.com -Dsonar.token=019d1e2e04eAdding the analysis step to your build files
Starting the scanner from the command line with pnpx
Was this helpful?

