I am on Windows 11 and just installed Cursor CLI via:
irm 'https://cursor.com/install?win32=true' | iex
per the docs at https://cursor.com/docs/cli/overview.
Before I run agent and see what it can do, I am finding myself asking:
- Will Cursor CLI respect the ‘Privacy Legacy Mode’ set in
Cursor IDE>Settings? - Will it only run within the repo I run
agentfrom in the terminal? - Will it respect the
.gitignoreand.cursorignorefiles within the repo etc?
I have seen posts like Cursor CLI and Editor should sync which make it clear that, currently, the Cursor CLI and Cursor IDE environments are somewhat ‘separate’, so that is why I am not assuming that the CLI ‘inherits’ the same settings as the IDE.
I have looked at the pages underneath the CLI section in the docs but could not locate that information:
https://cursor.com/docs/cli/usinghttps://cursor.com/docs/cli/shell-modehttps://cursor.com/docs/cli/acphttps://cursor.com/docs/cli/headlesshttps://cursor.com/docs/cli/reference/slash-commandshttps://cursor.com/docs/cli/reference/parametershttps://cursor.com/docs/cli/reference/authenticationhttps://cursor.com/docs/cli/reference/permissionshttps://cursor.com/docs/cli/reference/configuration
I came across this doc, not sure if it is closely related or not:
https://cursor.com/docs/reference/ignore-file
I am a bit concerned where it says:
The terminal and MCP server tools used by Agent cannot block access to code governed by .cursorignore
Does that mean Cursor CLI and Cursor (when running in Agent view), can see content of files within Node.js .env files and everything else that is usually protected by .gitignore and .cursorignore?
I’ve attached screenshot of the following settings in case it is relevant:
Cursor Settings > Agents > Approvals & Execution for commands, MCP and more
When I start trying to investigate this topic further, I get lost in these docs
:
https://cursor.com/docs/agent/security/run-modes
