install cursor agent cli:
curl https://cursor.com/install -fsS | bash
then create a symlink to the cursor agent cli:
sudo ln -s ~/.local/bin/cursor-agent /usr/local/bin/cursor-agent
more: docs.cursor.com