Command reference ยท Cursor CLI
agent install-shell-integration
Installs the CLI's shell integration into ~/.zshrc.
agent install-shell-integration sets up the shell integration in ~/.zshrc. Per the docs this explicitly targets zsh; no separate install routine is documented for other shells.
โ WHEN TO USE IT?
Set up shell integration once after installing the CLI
agent install-shell-integration
โ WHEN NOT TO?
Shell integration needs to be removed again
agent install-shell-integration only installs, it doesn't remove anything.
Better: Use agent uninstall-shell-integration
SOURCES
- Cursor Docs โ CLI Reference: Parameters โ cursor.com