tldr/pages/common/kdeconnect-cli.md

37 lines
1023 B
Markdown
Raw Normal View History

2021-05-14 00:56:40 +01:00
# kdeconnect-cli
> Use KDE Connect for sharing files or text to a device, ringing it, unlocking it, and much more.
2021-05-14 00:56:40 +01:00
> More information: <https://kdeconnect.kde.org>.
- List all devices:
`kdeconnect-cli --list-devices`
- 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}}`
- Ring a device, specifying its name:
2021-05-14 00:56:40 +01:00
`kdeconnect-cli --ring --name "{{device_name}}"`
2021-05-14 00:56:40 +01:00
- Share an URL or file with a paired device, specifying its ID:
2021-05-14 00:56:40 +01: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:
`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:
`kdeconnect-cli --name "{{device_name}}" --unlock`
2021-05-14 00:56:40 +01:00
- Simulate a key press on a specific device:
`kdeconnect-cli --name "{{device_name}}" --send-keys {{key}}`