Does the cursor headless CLI create a codebase index for the analyzed codebase if only the cursor CLI is installed and not the IDE?

I want to use cursor CLI to make a code analysis tool, but I’m not sure if using the headless CLI will cursor build a codebase index for better code analysis results. thanks orz