How does one install the CLI launcher on Linux? I’m not prompted to install it when I first put it on my system (Fedora 40) and searching for “install” or “command line” or “cli” does not bring anything up.
@hardcoreUFO do you have the path to your binary in your $PATH?
I think I read CLI integration on Linux is broken and disabled in the app image. With help of some nice AI, Sonnet 3.5 probably , I got this:
#!/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
Saved it in ~/.local/bin
as cursor
(or somewhere else in $PATH
), set executable flag chmod u+x cursor
and it is working fine.
3 Likes
NICE simple solution.
Now running cursor
in the terminal brings up Cursor and it lets you open a folder/project.
Running cursor .
opens that path IN Cursor. Just like in VS Code with the code
command.
2 Likes
This worked for me.