XcodesOrg / xcodes

The best command-line tool to install and switch between multiple versions of Xcode.
MIT License
3.6k stars 120 forks source link

Ability To Install Xcode Command Line Tools #268

Open Gerst20051 opened 1 year ago

Gerst20051 commented 1 year ago

It would be helpful to support installing just the command line tools instead of the full Xcode distribution.

Maybe the command would look something like this:

[$]> xcodes install 13.4 --tools

https://developer.apple.com/download/all/?q=Command%20Line%20Tools%20for%20Xcode%2013.4

https://download.developer.apple.com/Developer_Tools/Command_Line_Tools_for_Xcode_13.4/Command_Line_Tools_for_Xcode_13.4.dmg

I would just download it using curl but it seems to require authentication.

[$]> curl https://download.developer.apple.com/Developer_Tools/Command_Line_Tools_for_Xcode_13.4/Command_Line_Tools_for_Xcode_13.4.dmg -o ~/command_line_tools_for_xcode_13.4.dmg