Command reference ยท Cursor CLI
agent sandbox help [command]
Shows help for the sandbox subcommands.
agent sandbox help [command] is a terminal subcommand โ called as cursor-agent sandbox help [command], not as a slash command. It shows help text for the agent sandbox subcommands: enable, disable, reset, and run <cmd> [args...]. Without an argument, it lists all four; with a subcommand as an argument, it shows that subcommand's details, such as the options for run.
Sandbox mode itself runs commands in a restricted environment that blocks file access and network activity by default (--network defaults to false, --sandbox defaults to true). Via run, you can specify additional read/write paths (--allow-paths), read-only paths (--readonly-paths), and gitignore-style blocking patterns (--blocked-patterns); --sb-debug writes sandbox debug logs to a temp folder.
Distinct from this is the interactive slash command /sandbox, which opens a menu for configuring sandbox mode within the session.
โ WHEN TO USE IT?
Look up the available options for sandbox run
cursor-agent sandbox help run
Get an overview of all sandbox subcommands
cursor-agent sandbox help
โ WHEN NOT TO?
Quickly see only the options of the sandbox command you're currently typing
agent sandbox help command is a separate call.
Better: append -h or --help directly, e.g. cursor-agent sandbox run --help
Interactively toggling sandbox mode for the current session
agent sandbox help only shows help text and doesn't change any setting.
Better: use /sandbox within the running session
SOURCES
- Cursor Docs โ CLI Reference: Parameters โ cursor.com