Cursor CLIconfigurationbuilt-in
/auto-run
Toggle auto-run (default) or set explicitly on/off/status. Controls whether tools run without asking for confirmation.
Syntax
/auto-run [on|off|status]Example
/auto-run offWhen to use
- ▸Disabling auto-run for sensitive codebases
- ▸Checking current auto-run state with /auto-run status
- ▸Enabling for trusted repos to remove confirmation prompts
More Cursor CLI commands
exploration
/ask
Switch to Ask mode for read-only exploration — the agent searches and answers questions without editing any files.
setup
/commands
Create or edit custom slash commands for repetitive workflows.
context-management
/compress
Summarize conversation to free context window space while keeping a high-level record of what happened.
diagnostics
/feedback
Share feedback with the Cursor team directly from the CLI.