In order to install Mac command line developer tools you can use the xcode-select command. Except from the man page.
xcode-select – Manages the active developer directory for Xcode and BSD tools.
This can be coupled with the install flag to perform install. You will be prompted for some approvals and if you proceed it will begin the install. Download may take a little while
xcode-select –install