promptgarten ๐ŸŒฑ

Command reference ยท Cursor CLI

agent sandbox reset

Resets the sandbox configuration to its default values.

agent sandbox reset is a subcommand from the "agent sandbox" category and resets individual changes to the sandbox configuration back to the default values ("Reset sandbox configuration to defaults"). Sibling subcommands are agent sandbox enable (enable sandbox mode for command execution), agent sandbox disable (disable the sandbox and use allowlist mode instead), and agent sandbox run <cmd> [args...], which lets you run a single command with workspace read/write access inside a sandbox; run additionally comes with a --network flag that defaults to false. According to Cursor's general sandbox configuration reference, the default filesystem access is "workspace_readwrite" and the default network rule is "deny", meaning network access is blocked by default unless explicitly allowed.

โœ… WHEN TO USE IT?

Restore a clean starting state after several experiments with paths or network rules

Run agent sandbox reset after repeatedly experimenting with sandbox enable/disable and network settings

Make sure no old sandbox customizations remain active before a new project

agent sandbox reset, followed by agent sandbox enable, to start with a guaranteed clean configuration

โ›” WHEN NOT TO?

Only a single setting should be changed, not all of them

agent sandbox reset resets the entire configuration, not just a single value.

Better: Use agent sandbox enable/disable or the --network flag on agent sandbox run in a targeted way

SOURCES

MORE COMMANDS ยท Cursor CLI

agent sandbox run <cmd> [args...]agent sandbox help [command]agent worker startagent worker debugagent worker help [command]agent bedrockGlobal Options (Flags)/opus/composer/fast/model/run-everything

All commands ยท Cursor CLI โ†’

Share:๐•in๐Ÿ’ฌ