Installing Cursor CLI

1 min read

Installation is straightforward: run the official script in your terminal and you'll have the cursor command available. Instructions vary by platform.

macOS / Linux / WSL

Run this in your terminal:

curl https://cursor.com/install -fsS | bash
  • The script automatically downloads and installs the cursor command
  • After installation, close and reopen your terminal, or run source ~/.bashrc / source ~/.zshrc to update your PATH

Windows (PowerShell)

Open PowerShell as Administrator and run:

irm 'https://cursor.com/install?win32=true' | iex

Verify the Installation

cursor --version

If a version number appears, the installation was successful.

First Use: Log In

The first time you run it, you may be prompted to log in to your Cursor account:

cursor auth login

Follow the on-screen instructions to complete login via your browser. On the same machine, you typically won't need to log in again.

Summary

  • macOS / Linux: curl ... | bash
  • Windows: Run irm ... | iex in PowerShell
  • Verify: cursor --version
  • Login: cursor auth login

Next: 02-basic-usage — Learn how to run commands and chat with the AI