How to create sonarqube project by using the automation,not using the UI

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
  • what are you trying to achieve
  • what have you tried so far to achieve this
    i want to create sonarqube project for Jenkins automation , but i don’t want to create project manually by going to the sonarqube UI, so i want to create a project for analysis by automation,is there any scripts or other things for create a project by automatically in ci/cd process

If the user executing analysis has the global Create Projects permission, a project will get created automatically when analysis is triggered for the first time.

If you’re discussing automation outside the context of performing analysis, the api/projects domain of the Web API (documentation linked in the footer of your instance) will be your friend.