I found out that Homebrew install the Xcode Command Line Tools as well.
The big benefit is for me that I can do it from a terminal (even ssh) and the installer do not show a UI-Pop-Window, which blocks me from use with remote terminal.
Tested with Homebrew version 2.1.10 (git revision b7d38f; last commit 2019-08-12).
For me that steps was much easier, then downloading dmg package from apple and copy it by ssh to the target machine.
The installer command will generate (copied from the website)
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
the following output:
==> This script will install:
==> The following new directories will be created:
==> The Xcode Command Line Tools will be installed.
Downloading Command Line Tools (macOS Mojave version 10.14) for Xcode
Downloaded Command Line Tools (macOS Mojave version 10.14) for Xcode
Installing Command Line Tools (macOS Mojave version 10.14) for Xcode
Done with Command Line Tools (macOS Mojave version 10.14) for Xcode