Skip to content

KDEConnect CLI Commands

This cheatsheet provides a concise collection of useful kdeconnect-cli commands for managing and interacting with connected devices. From pairing and sharing files to controlling notifications and sending messages, these commands allow you to fully utilize KDE Connect's powerful features through the command line. Perfect for quick access during development or troubleshooting.


List available devices
kdeconnect-cli -l
Send clipboard to device
kdeconnect-cli --send-clipboard -d <deviceID>
Print only the device id
kdeconnect-cli --id-only -l
Request pairing to target device
kdeconnect-cli --pair
Find the device by ringing
kdeconnect-cli --ring -d deviceID
Stop pairing to a said device
kdeconnect-cli --unpair -d deviceID     
Same as ping but you can set the message to display on device
kdeconnect-cli -d deviceID --ping-msg "Hello, there you are! :)"
Share a file or url to device
kdeconnect-cli -d deviceID --share path/OR/url
Share text to device
kdeconnect-cli -d deviceID --share-text textMSGhere
Display the notifications on the device
kdeconnect-cli -d deviceID --list-notifications
Lockdown the device
kdeconnect-cli -d deviceID --lock
Unlock the device
kdeconnect-cli -d deviceID --unlock  
Get encryption info about the device
kdeconnect-cli -d deviceID --encryption-info
Send sms to a destionation number
kdeconnect-cli --send-sms "Hello mate, it's wuseman" --destination <phone_number> -d bc596dd2_9294_4840_bb99_8c73238da48d