Command-line utility client.cli.exe may be used as a simple API to manage connected USB devices. Command-line utility returns 0 if the requested operation is completed successfully, or non-zero error code (HRESULT). It also prints error description to STDOUT unless the --silent parameter is specified.
The utility supports the following command-line parameters:
| Parameter | Value | Description |
|---|---|---|
-?, --help | Displays the list of supported parameters with short description. | |
--silent | Do not display any error or success messages. | |
| Main Commands | ||
-list | List local USB devices. | |
-add | Add shared USB device. | |
-delete | Delete shared USB device. | |
| Trusted Servers Database Commands | ||
-add-trusted-server | Add server to trusted server database. | |
-delete-trusted-server | Delete server from trusted server database. | |
-list-trusted-servers | List trusted servers and their public keys. | |
-clear-trusted-servers | Delete all trusted servers. | |
| Add/Delete Command Parameters | ||
--server | string | Remote server name/address and, optionally, a port number. |
--device | string | Device identifier on the remote computer. |
--auth-key | string | Optional authentication key. |
| Trusted Servers Command Parameters | ||
--server | string | Remote server name/address and, optionally, a port number. |
--public-key | base64-encoded string | Base-64 encoded server's public key. |