31 tools· updated nov 2026

Cursor CLI YOLO mode: --yolo is --force, and deny rules still win

Marek.

  • cursor
  • coding-agents
  • agent-security

Cursor CLI YOLO mode is the --yolo flag. It is an alias of -f, or --force. The docs describe it in one line: "Force allow commands unless explicitly denied". Deny rules in cli-config.json still apply. Inside a session, /run-everything on flips the same switch. /auto-run is an alias.

# Start the CLI with no command prompts
agent --yolo
agent --force "fix the failing tests"

# Scripts: print mode plus --force, as in the headless docs
agent -p --force "Refactor this code to use modern ES6+ syntax"

# Inside a session
/run-everything on
  • One switch, two names. --yolo and -f, --force do the same thing, per the parameters page.
  • What it keeps. Explicit denies. The permissions page says "Deny rules take precedence over allow rules".
  • The command name. Today it is agent. The older cursor-agent still works as an alias, per Cursor's January 2026 forum post.
  • Scripts. Pass -p with --force. The headless page says that without --force, changes "are only proposed, not applied".
  • How I know. I do not run Cursor CLI. It is not installed on my machine. This post reads the Cursor docs and the CLI changelog on 25 October 2026.

The Claude Code flag with the same job, and what still stops Claude under it, is in my --dangerously-skip-permissions post. This one is the Cursor side.

How do I turn on YOLO mode in Cursor CLI?

Add --yolo or --force to the launch line. Or type /run-everything on in a running session. The slash commands page lists /run-everything [on|off|status] with /auto-run as an alias.

The CLI changelog ties these together. Its March 2026 entry says auto-approval "is controlled by /auto-run (and --force/--yolo) separately from the Shift+Tab mode cycle". So YOLO is not a mode like Plan or Ask. It is a separate toggle.

--yolo itself arrived in February 2026. That entry calls it "Fully autonomous runs that auto-approve consistently across trust, MCP, and command approvals". A separate flag, --approve-mcps, approves all MCP servers on its own.

The CLI can also remember the choice. An April 2026 entry says it "offers to persist 'Run Everything' after repeated use". The configuration page lists an approvalMode field. Its values are allowlist, auto-review and unrestricted. The page does not say which value --force writes.

Does Cursor have a bypass permissions mode?

Not by that name. "Bypass permissions" is Claude Code wording. There it is a real mode, bypassPermissions, set by --dangerously-skip-permissions. Cursor calls its version Run Everything. In the CLI that is --force. The parameters page has no flag that skips permission checks. Its only skip flag, --skip-worktree-setup, is about worktree setup scripts.

The difference is the fine print. "Unless explicitly denied" means your deny list stays in charge. The CLI also enforces a team admin's command denylist. That shipped in v2026.08.11, per the changelog.

How do I skip permissions in Cursor CLI scripts?

Use print mode with --force. The headless page gives this pattern for batch jobs. It also warns what happens without the flag: "Without --force, changes are only proposed, not applied."

The docs disagree with each other here. The parameters page says -p "Has access to all tools, including write and shell". The using page says "Cursor has full write access in non-interactive mode". The headless page says the opposite for file edits. I cannot settle it without a run. For a script, I would pass --force anyway.

Trust is the second gate. A January 2026 entry says non-interactive runs in untrusted workspaces "fail with guidance unless --trust (or --force) is passed". So --force also clears the trust check in headless runs.

What still stops Cursor CLI under --force?

Explicit deny rules. The permissions page puts them in the permissions object of ~/.cursor/cli-config.json. A project can have its own .cursor/cli.json. Only permissions work at project level.

Rules are tokens. Shell(rm) matches a command by its first word. Read(.env*) and Write(**/*.key) match paths with globs. WebFetch(domain) and Mcp(server:tool) cover fetches and MCP tools. The token shapes below come from the docs. The pick is mine:

{
  "version": 1,
  "editor": { "vimMode": false },
  "permissions": {
    "allow": ["Shell(git)", "Shell(npm)"],
    "deny": ["Shell(rm)", "Read(.env*)", "Write(**/.env*)"]
  }
}

The sandbox is a separate switch, --sandbox enabled or --sandbox disabled. In the editor's run modes table, Run Everything has no sandbox. The CLI docs do not say what --force does to a sandbox you turned on. I have not tested it.

Watch the file names. cli-config.json holds allow and deny tokens. permissions.json is another file. The run modes page fills it with plain-English instructions for Auto-review. The March 2026 changelog says the CLI reads the same permissions.json as the editor.

Is Cursor CLI YOLO mode the same as YOLO mode in the Cursor editor?

Same idea, different names over time. The editor got "Yolo Mode" in version 0.44, in December 2024. The 0.44 changelog says "With Yolo Mode, the agent can auto-run terminal commands". The name changed since. Today's run modes page calls it Run Everything: "Every tool call runs automatically."

In the editor it lives in Settings > Agents > Approvals & Execution. The page lists three modes. Auto-review is the recommended default. The run modes page also lists file-deletion and external-file protections. These "can require approval even when a mode would otherwise run automatically". The CLI pages do not mention them. I would not count on them in the terminal.

How does Cursor CLI compare with Claude Code and Codex?

I use Claude Code and Codex every day. Cursor CLI I only read.

AgentNo-prompt switchWhat still stops it, per the docs
Claude Code--dangerously-skip-permissionsDeny rules, explicit ask rules, hook denies, the rm breaker on critical paths
Codex CLI--dangerously-bypass-approvals-and-sandbox, or -a never with a sandboxWith -a never, the sandbox you chose. The full bypass drops both
Cursor CLI-f, --force, alias --yolo; /run-everything in a sessionExplicit denies in cli-config.json, team admin denylist

Codex splits prompts and sandbox into two flags. My post on skipping permissions in Codex covers that. opencode has a hidden --dangerously-skip-permissions alias, see opencode --dangerously-skip-permissions. Copilot CLI and Gemini CLI have their own posts: Copilot CLI --allow-all-tools and Gemini CLI YOLO mode.

Frequently asked questions

Is --yolo the same as --force in Cursor CLI?

Yes. The parameters page lists --yolo as "Alias for --force". The short form is -f.

Does cursor-agent --force still work?

Per Cursor's forum post on the January 2026 release, agent is "the new primary entrypoint" and cursor-agent "still works as an alias".

Does --force ignore deny rules?

No. The flag allows commands "unless explicitly denied". Put commands that must never run in permissions.deny.

Did you test this?

No. Cursor CLI is not installed on my machine. This post reads the Cursor docs and the CLI changelog on 25 October 2026. The Claude Code and Codex rows come from my own posts.

The verdict

From the docs, --force is one switch with one rule. Your deny list is the boundary. I would run it in a throwaway checkout or a --worktree, with Shell(rm) and the env files denied. In scripts I would pass --force and --trust on purpose, not by habit.

Sources, read on 25 October 2026: Cursor CLI parameters, permissions, configuration, slash commands, headless, using and changelog pages, the Cursor run modes page, the 0.44 changelog and the Cursor forum post for the January 2026 CLI release.