How to assign project tags via sonar-project.properties or CLI flags

Hi Sonar Community,

I am looking for a way to add project tags to my projects without having to manually configure them through the UI.

Is there a native property/flag (something like sonar.projectTags="backend, microservice") that can be passed through sonar cli?

Thanks in advance

  • Sonarqube Server Enterprise 2026.2.1
  • How is SonarQube deployed: Helm

HI,

Welcome to the community!

Your only other option here is to directly make the API call the UI uses.

 
HTH,
Ann