2021-05-14 00:56:40 +01:00
|
|
|
# kdeconnect-cli
|
|
|
|
|
2022-11-28 20:08:56 +00:00
|
|
|
> KDE's Connect CLI.
|
2021-05-14 00:56:40 +01:00
|
|
|
> More information: <https://kdeconnect.kde.org>.
|
|
|
|
|
|
|
|
- List all devices:
|
|
|
|
|
|
|
|
`kdeconnect-cli --list-devices`
|
|
|
|
|
2021-06-18 18:03:45 +01:00
|
|
|
- List available (paired and reachable) devices:
|
2021-05-14 00:56:40 +01:00
|
|
|
|
|
|
|
`kdeconnect-cli --list-available`
|
|
|
|
|
|
|
|
- Request pairing with a specific device, specifying its ID:
|
|
|
|
|
|
|
|
`kdeconnect-cli --pair --device {{device_id}}`
|
|
|
|
|
2021-06-18 18:03:45 +01:00
|
|
|
- Ring a device, specifying its name:
|
2021-05-14 00:56:40 +01:00
|
|
|
|
2022-11-28 20:08:56 +00:00
|
|
|
`kdeconnect-cli --ring --name "{{device_name}}"`
|
2021-05-14 00:56:40 +01:00
|
|
|
|
2021-06-18 18:03:45 +01:00
|
|
|
- Share an URL or file with a paired device, specifying its ID:
|
2021-05-14 00:56:40 +01:00
|
|
|
|
2022-11-28 20:08:56 +00:00
|
|
|
`kdeconnect-cli --share {{url|path/to/file}} --device {{device_id}}`
|
2021-05-14 00:56:40 +01:00
|
|
|
|
|
|
|
- Send an SMS with an optional attachment to a specific number:
|
|
|
|
|
2022-11-28 20:08:56 +00:00
|
|
|
`kdeconnect-cli --name "{{device_name}}" --send-sms "{{message}}" --destination {{phone_number}} --attachment {{path/to/file}}`
|
2021-05-14 00:56:40 +01:00
|
|
|
|
|
|
|
- Unlock a specific device:
|
|
|
|
|
2022-11-28 20:08:56 +00:00
|
|
|
`kdeconnect-cli --name "{{device_name}}" --unlock`
|
2021-05-14 00:56:40 +01:00
|
|
|
|
|
|
|
- Simulate a key press on a specific device:
|
|
|
|
|
2022-11-28 20:08:56 +00:00
|
|
|
`kdeconnect-cli --name "{{device_name}}" --send-keys {{key}}`
|