I'd like to script the installation of the the Xcode Command Line Tools.
will open a dialog prompting the user to install, but I'd like to trigger the install without the dialog, like using the
Is there a way to do this?
xcode-select --install launches an application that downloads and installs the tools without requiring the user to manually download them or have an Apple Developer account. It appears to use
/System/Library/CoreServices/Install Command Line Developer Tools.app to do this.
I would like to use the same mechanism that Apple is, but without the GUI. I do not want to have to manually download the .dmg containing the tools as this seems fragile. Apple provides several other command-line tools, like
install that download or install software directly from Apple, and I'm looking to find the same for this type of distribution.