Created
September 28, 2026 09:23
-
-
Save up1/cacd3cbb78e0cd8dc652cf22320b1e11 to your computer and use it in GitHub Desktop.
SonarQube CLI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ติดตั้งบน MacOS | |
| $brew install sonarqube-cli | |
| # ตรวจสอบ | |
| $sonar -v | |
| 1.8.0 | |
| # ทำการ auth ไปยัง SonarQube server ได้ทั้ง on-cloud และ on-prem ที่ติดตั้งเอง | |
| $sonar auth login | |
| # ทำการ scan ระบบงาน | |
| $sonar analyze | |
| $sonar analyze secret | |
| # ทำการ scan แต่ละไฟล์ได้เลย | |
| $sonar analyze --file src/auth.ts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment