How to install Cursor CLI on Linux
Posted on January 16, 2025 • 1 minutes • 102 words
Cursor on Linux is offered as an AppImage. The CLI integration is currently broken on Linux.
Here’s a workaround to install Cursor CLI on Linux.
- Create a file with the following content:
#!/bin/bash
# Wrapper script to launch Cursor IDE
# Directory where AppImages are stored
APPIMAGE_DIR="$HOME/Applications"
# Find the most recent Cursor AppImage
CURSOR_APPIMAGE=$(ls -t "$APPIMAGE_DIR"/cursor-*.AppImage | head -n 1)
if [ -z "$CURSOR_APPIMAGE" ]; then
echo "Error: Cursor AppImage not found in $APPIMAGE_DIR"
exit 1
fi
# Launch Cursor
"$CURSOR_APPIMAGE" --no-sandbox "$@" &> "$(mktemp /tmp/cursor.XXXXX)" &
disown
- Make it executable with
chmod +x cursor
and move it to your PATH.