Files
tldr/pages.zh/common/kdeconnect-cli.md

36 lines
980 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# kdeconnect-cli
> 使用 KDE Connect 分享文件或文本到设备、响铃、解锁设备等更多功能。
> 更多信息: <https://kdeconnect.kde.org>。
- 列出所有设备:
`kdeconnect-cli --list-devices`
- 列出可用(已配对和可达的)设备:
`kdeconnect-cli --list-available`
- 请求与特定设备配对,指定其 ID
`kdeconnect-cli --pair --device {{device_id}}`
- 响铃设备,指定其名称:
`kdeconnect-cli --ring --name "{{device_name}}"`
- 与已配对设备共享 URL 或文件,指定其 ID
`kdeconnect-cli --share {{url|path/to/file}} --device {{device_id}}`
- 向特定号码发送 SMS 并可选添加附件:
`kdeconnect-cli --name "{{device_name}}" --send-sms "{{message}}" --destination {{phone_number}} --attachment {{path/to/file}}`
- 解锁特定设备:
`kdeconnect-cli --name "{{device_name}}" --unlock`
- 在特定设备上模拟按键:
`kdeconnect-cli --name "{{device_name}}" --send-keys {{key}}`