Cursor CLI and Environment Variables

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:

  1. Install WSL if you don’t have it yet: run wsl --install in PowerShell as admin
  2. Open a WSL terminal (Ubuntu or another distro)
  3. Install the CLI:
    curl https://cursor.com/install -fsS | bash
    
  4. Add it to your PATH:
    echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
    source ~/.bashrc
    
  5. Check it: agent --version

Docs: Installation | Cursor Docs