I just installed Cursor CLI but i cant’ get it to work on terminal (any terminal on windows). The command “agent” doesnt work. I understand that is probably a need to setup some environment variables that didnt occurred during installation… but which one ? I tried to find on documentation but i couldn’t find anything, how can i get it to work ?
Hey, thanks for the request.
Cursor CLI is currently only supported on macOS, Linux, and Windows via WSL. Native Windows (CMD, PowerShell) isn’t supported.
To use the CLI on Windows:
- Install WSL if you don’t have it yet: run
wsl --installin PowerShell as admin - Open a WSL terminal (Ubuntu or another distro)
- Install the CLI:
curl https://cursor.com/install -fsS | bash - Add it to your PATH:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc source ~/.bashrc - Check it:
agent --version