Command reference ยท Cursor CLI
agent uninstall-shell-integration
Removes the CLI's shell integration from ~/.zshrc again.
agent uninstall-shell-integration, like its counterpart agent install-shell-integration, is not a slash command in the chat but a standalone terminal subcommand that you run directly in the shell, not inside a running cursor-agent session.
The command reverses the shell integration setup and removes the entries it added from ~/.zshrc. According to the docs, only zsh is explicitly listed as a supported shell here as well.
The command is useful if the shell integration is causing problems, such as conflicts with other tools in your .zshrc, or if you want to remove Cursor CLI completely from your system and cleanly reset the shell configuration in the process. It removes the integration entirely rather than just disabling it โ for a temporary pause, it's the wrong tool; manually commenting out the relevant block is better suited for that.
โ WHEN TO USE IT?
Cleanly reset the shell integration when it's causing problems
agent uninstall-shell-integration
Fully uninstall Cursor CLI and clean up the shell configuration too
Run agent uninstall-shell-integration before actually uninstalling the CLI
โ WHEN NOT TO?
The shell integration should only be paused briefly, not removed
agent uninstall-shell-integration deletes the configuration completely instead of just disabling it.
Better: Manually comment out the relevant block in ~/.zshrc
SOURCES
- Cursor Docs โ CLI Reference: Parameters โ cursor.com
MORE COMMANDS ยท Cursor CLI