kdeconnect-cli
Use KDE Connect for sharing files or text to a device, ringing it, unlocking it, and much more. tldr-pages
On several platforms
Several platforms
List all devices
kdeconnect-cli --list-devicesIdentifyList available (paired and reachable) devices
kdeconnect-cli --list-availableIdentifyRequest pairing with a specific device, specifying its ID
kdeconnect-cli --pair --device device_idIdentifyRing a device, specifying its name
kdeconnect-cli --ring --name "device_name"IdentifyShare a URL or file with a paired device, specifying its ID
kdeconnect-cli --share url --device device_idIdentifySend an SMS with an optional attachment to a specific number
kdeconnect-cli --name "device_name" --send-sms "message" --destination phone_number --attachment path/to/fileIdentifyUnlock a specific device
kdeconnect-cli --name "device_name" --unlockIdentifySimulate a key press on a specific device
kdeconnect-cli --name "device_name" --send-keys keyIdentify