Command-Line Interface for macOS

Table of Contents

Installation Command

As of AnyDesk 6.3.0 for macOS, a PKG installer is available for custom clients. These can be installed using the following script:

sudo installer -pkg AnyDesk.pkg -target /

Warning: The above command will not automatically start up the AnyDesk client and Service. 

After running it, AnyDesk will need to be started in order to use the below commands.

Back to Top

Client Commands

These commands can be used to interact with the AnyDesk client through the command-line interface or scripts in the form:

Command Description
/Applications/AnyDesk.app/Contents/MacOS/AnyDesk <parameter> See Client Command Parameters.
echo <license_key> | /Applications/AnyDesk.app/Contents/MacOS/AnyDesk --register-license Register the specified license key.
echo <password>| sudo /Applications/AnyDesk.app/Contents/MacOS/AnyDesk --set-password Set the specified password for unattended access. (Requires administrative privileges)


Client Command Parameters

Parameter Description
--get-alias Return the AnyDesk-Alias. 
--get-id Return the AnyDesk-ID. 
--get-status Return the client's online status. 
--version

Return the AnyDesk version

Connection Commands

A connection can be established through the command-line interface.
When requesting a connection through the command line, several parameters can be appended.

They are used in the form:

/Applications/AnyDesk.app/Contents/MacOS/AnyDesk <ID/Alias> <additional parameters>
Parameter Description
--file-transfer AnyDesk will start a File Transfer session.
--fullscreen AnyDesk will start an interactive session in fullscreen mode.
--plain AnyDesk will start an interactive session in a plain window without borders or menu points.

 

Back to Top