update xcode beta from command line code example Example: update xcode command line sudo rm -rf /Library/Developer/CommandLineTools xcode-select --install