Is the sonar-project.properties file essential for scanning?

Hi, I’m using SonarQube Developer Edition 9.9.1.69595 version.

I would like to know if the sonar-project.properties file is required for code scanning.

Currently, I am succeeding in code scanning with just commands in the terminal without the sonar-project.properties file.
Instead of a sonar-project.properties file, I’m adding options like “-D"sonar.projectKey”, “-D"sonar.sources=”, “-D"sonar.projectBaseDir='” to the command, and the scan itself appears in the dashboard as if it works.

Am I correct that the sonar-project.properties file is not required for scanning in that version?

It is not required, but some users prefer to keep their configuration in there in order to keep their configuration checked into source control rather than added each time ad-hoc (or stored as part of the CI pipeline)