After download the SonarQube Scanner zip file, extract into c:\sonar-scanner for example. Go to your project root and run sonnar-scanner. You can copy command line parameters below.
NOTE: We use non-ssl(http) url for -Dsonar.host.url option in the example below.
cd YOUR_PROJECT_ROOT "c:\sonar-scanner\bin\sonar-scanner.bat" ^ -D"sonar.projectKey=sonarqube-test" ^ -D"sonar.sources=." ^ -D"sonar.host.url=http://18.104.22.168" ^ -D"sonar.login=ceec106b1500685c8cf44ad428e9d231de7b5349"
NOTE: As we installed self-signed dummy SSL certificate for test purpose, we have to make Sonar Scanner client to trust our self-signed dummy certificate, or use non-ssl(http) url for -Dsonar.host.url option. We strongly recommend to register static domain and setup trusted certificate in production. For SSL configuration, please refer to Tutorial: Configure SSL/TLS on Amazon Linux 2
For more details about SonarQube and SonarQube Scanner, please refer to SonarQube Documentation