====== RustDesk Client Command Line ======
The RustDesk client can do many thing from the command line, though they are not well documented. Running rustdesk --something
allows you to make modifications to the configuration file(s) in a safe manner.
These parameters (--something above) were found by reading the [[https://github.com/rustdesk/rustdesk/blob/master/src/core_main.rs|source code]], and I have not tested all of them, so be very careful.
** All? **
* **--silent-install**: Will perform an installation without asking any silly questions. Excellent for automated deployments
* **--update**: Will look for a new version of the desktop and automatically install it, if possible. **untested**
* **--reinstall**
* **--server**
* **--remove**: assume this will completely remove the software from the system.
* **--tray**
* **--service**
* **--server**
* **--import-config 'encrypted string'**: This appears to allow you to import a configuration from the command line, but on Linux can only be run as root and appears to only update the root user.
* **--password**: sets a static password which can be used (if configured) instead of/in addition to the randomly generated one.rustdesk --password 'somethingstrange'
would allow you to connect the system with the password //somethingstrange//
* **--get-id**: returns the ID of the workstation (so others can connect to it)
* **--check-hwcodec-config**: Checks the hardware codec used on the system
**Windows Only?**
* **--uninstall**
* **--after-install**: script to run after installation
* **--before-uninstall**: script to run before uninstalling
* **--extract**: Assume this is a download and extract instead of a full installation
* **--portable-service**: not sure what this does, but it looks like it is to allow some special support features for the client. May have something to do with the following:
* https://github.com/rustdesk/rustdesk/discussions/4903
* https://rustdesk.com/docs/en/client/windows/windows-portable-elevation/