### [Linux 安裝 AnyDesk](http://deb.anydesk.com/howto.html)
AnyDesk DEB repository how-to
Run the following commands as root user:
- add repository key to Trusted software providers list
```
wget -qO - https://keys.anydesk.com/repos/DEB-GPG-KEY | apt-key add -
```
- add the repository:
```
echo "deb http://deb.anydesk.com/ all main" > /etc/apt/sources.list.d/anydesk-stable.list
```
- update apt cache:
```
apt update
```
- install anydesk:
```
apt install anydesk
```
### [Linux 的命令界面](https://support.anydesk.com/zh-tw/knowledge/command-line-interface-for-linux)
```bash
# 展示 AnyDesk-ID.
anydesk --get-id
# 展示 AnyDesk-Alias.
anydesk --get-alias
# 展示 客戶端的在線狀態。
anydesk --get-status
# 展示 當前的 AnyDesk 客戶端版本。
anydesk --version
# 打開默認設置頁面。
anydesk --settings
# 設置無人值守訪問的指定密碼。 (需要以root身份使用)。
echo <password> | anydesk --set-password
```
### [MacOS](https://support.anydesk.com/knowledge/command-line-interface-for-macos#clientcommpara)
```
# --get-id Return the AnyDesk-ID.
# --get-status Return the client's online status.
# --version Return the AnyDesk version
/Applications/AnyDesk.app/Contents/MacOS/AnyDesk <parameter>
# 取得目前狀態
/Applications/AnyDesk.app/Contents/MacOS/AnyDesk --get-status
# 取得目前 ID
/Applications/AnyDesk.app/Contents/MacOS/AnyDesk --get-id
# Register the specified license key.
echo <license_key> | /Applications/AnyDesk.app/Contents/MacOS/AnyDesk --register-license
# Set the specified password for unattended access. (Requires administrative privileges)
echo <password>| sudo /Applications/AnyDesk.app/Contents/MacOS/AnyDesk --set-password
```