Apple’s command line developer tools add utilities that some applications require. They’re included in Xcode, but you might not need to install Xcode.
Installation varies depending on the version of macOS. Check if a different approach is needed.
For macOS High Sierra 10.13: