Is the file essential for scanning?

Hi, I’m using SonarQube Developer Edition version.

I would like to know if the file is required for code scanning.

Currently, I am succeeding in code scanning with just commands in the terminal without the file.
Instead of a 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 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)