xcode install command line tools code example
Example 1: reinstall xcode cli tools
# remove currently installed
sudo rm -rf $(xcode-select -print-path)
# reinstall
xcode-select --install
Example 2: Installing Command line tools for Xcode via CLI
Code Block sudo xcode-select --switch /Applications/Xcode-beta.appsudo xcode-select --install