You can do so by following the instructions in this article.
IMPORTANT When changing the hostname of a macOS device through the command line (scutil -set HostName), make sure that you add. Once the Agent has been installed, the Datto RMM icon will be displayed in the menu bar of your computer.