Cursor is an excellent AI-powered code editor, but it doesn't treat Linux as a first-class citizen. Unlike macOS and Windows, which have distribution-specific installers, Linux users are left with an AppImage that doesn't integrate well with the system. This means no cursor or code commands in your terminal, making it less convenient to use.
This repository aims to solve that problem by providing a set of shell scripts that will:
- Download and install Cursor for you
- Provide a
cursorcommand that you can run from your shell - Allow you to easily update Cursor when new versions are released
You can install the Cursor Linux Installer using either curl or wget. Choose the method you prefer:
# Install stable version (default)
curl -fsSL https://raw.githubusercontent.com/watzon/cursor-linux-installer/main/install.sh | bash
# Install latest version
curl -fsSL https://raw.githubusercontent.com/watzon/cursor-linux-installer/main/install.sh | bash -s -- latest# Install stable version (default)
wget -qO- https://raw.githubusercontent.com/watzon/cursor-linux-installer/main/install.sh | bash
# Install latest version
wget -qO- https://raw.githubusercontent.com/watzon/cursor-linux-installer/main/install.sh | bash -s -- latestThe installation script will:
- Download the
cursor.shscript and save it ascursorin~/.local/bin/ - Make the script executable
- Download and install the latest version of Cursor
To uninstall the Cursor Linux Installer, you can run the uninstall script:
bash -c "$(curl -fsSL https://raw.githubusercontent.com/watzon/cursor-linux-installer/main/uninstall.sh)"or
bash -c "$(wget -qO- https://raw.githubusercontent.com/watzon/cursor-linux-installer/main/uninstall.sh)"
The uninstall script will:
- Remove the
cursorscript from~/.local/bin/ - Remove the Cursor AppImage
- Ask if you want to remove the Cursor configuration files
After installation, you can use the cursor command to launch Cursor or update it:
- To launch Cursor:
cursor - To update Cursor:
cursor --update [options]- Update to stable version:
cursor --updateorcursor --update stable - Update to latest version:
cursor --update latest - Additional arguments can be passed after
--updateto control the update behavior
- Update to stable version:
- To check Cursor version:
cursor --versionorcursor -v- Shows the installed version of Cursor if available
- Returns an error if Cursor is not installed or version cannot be determined
If you encounter a warning that ~/.local/bin is not in your PATH, you can add it by running:
export PATH="$HOME/.local/bin:$PATH"or add it to your shell profile (e.g., .bashrc, .zshrc, etc.):
echo "export PATH=\"\$HOME/.local/bin:\$PATH\"" >> ~/.bashrc
source ~/.bashrcThis software is released under the MIT License.
If you find a bug or have a feature request, please open an issue on GitHub.
If you want to contribute to the project, please fork the repository and submit a pull request.