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
cursorcommand - After installation, close and reopen your terminal, or run
source ~/.bashrc/source ~/.zshrcto update your PATH
Windows (PowerShell)
Open PowerShell as Administrator and run:
irm 'https://cursor.com/install?win32=true' | iexVerify the Installation
cursor --versionIf 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 loginFollow 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 ... | iexin PowerShell - Verify:
cursor --version - Login:
cursor auth login
Next: 02-basic-usage — Learn how to run commands and chat with the AI