CLI-115 Generic API tool for any sonarqube cloud api#80
CLI-115 Generic API tool for any sonarqube cloud api#80
Conversation
Remediation Agent Summary 📊
Issues requiring manual fix (1)
Note Help us improve the Agent! |
|
Hi @subdavis! Thanks for the contribution 🙏 We are reconsidering our command tree and discussing with the team what the top-level commands should be. We will definitely consider this PR and use case in the reflection. Give me a couple of days and I will come back to you |
SonarQube reviewer guideSummary: Add a new Review Focus:
Start review at:
|
|
@subdavis small update, we have this epic planned at the beginning of Q2: https://sonarsource.atlassian.net/browse/CLI-100. We likely won't touch this PR until then |




General API client using built-in templates
This is a vibe-coded proof of concept based on
gh apiand a similar tool I built before.Give power users the ability to build reusable automations and agent skills to do anything through the SonarQube Cloud API.
Slack thread: https://sonarsource.slack.com/archives/C0ADT7VMGHW/p1772447653087179
Template variables
{organization}{project}Examples
sonar api get '/api/issues/search?projects={project}&organization={organization}sonar api post '/api/user_tokens/generate' --data '{"name":"test-cli-token"}'sonar api get '/api/system/status'sonar api get '/api/organizations/search?member=true'sonar api get '/sca/releases?projectKey={project}'V1 vs V2 Behavior
/apiuseSONARCLOUD_API_URLDraft status. I'll clean up the code later if we want to pursue this.
If this feature could be considered in-scope, we can refine the interface and make sure we're covering all the edge cases.
please don't do a code review yet :)