how to upgrade xcode command line tools code example
Example: update xcode command line
sudo rm -rf /Library/Developer/CommandLineTools
xcode-select --install
sudo rm -rf /Library/Developer/CommandLineTools
xcode-select --install