cursor-docs/latest/content · Jun 26, 20:20 UTC
pages/cli/installation.txt
TXT950 B29 lines
route: /docs/cli/installation title: Installation description: Install Cursor CLI on macOS, Linux, and Windows with a single command. Verify installation and configure PATH for optimal setup. Installation macOS, Linux and Windows (WSL) Install Cursor CLI with a single command: curl https://cursor.com/install -fsS | bash Windows (native) Install Cursor CLI on Windows using PowerShell: irm 'https://cursor.com/install?win32=true' | iex Verification After installation, verify that Cursor CLI is working correctly: agent --version Post-installation setup Add ~/.local/bin to your PATH: For bash: echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc source ~/.bashrc For zsh: echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc source ~/.zshrc Start using Cursor Agent: agent Updates Cursor CLI will try to auto-update by default to ensure you always have the latest version. To manually update Cursor CLI to the latest version: agent update