Overview
Xcode Command Line Tools (CLT) provides essential developer utilities for macOS including Git, compilers (clang), make, and other UNIX tools — without needing the full Xcode IDE.
Installation
# Interactive install (shows GUI prompt)
xcode-select --install
# Silent install via softwareupdate (for MDM/Scripts)
softwareupdate --install "Command Line Tools for Xcode-16" --agree-to-license
# Verify installation
xcode-select -p
# Expected: /Library/Developer/CommandLineTools
Key Tools Included
git
Full Git installation including git-credential-osxkeychain which stores credentials
securely in the macOS Keychain.
clang & clang++
Apple's LLVM-based C and C++ compiler. Required by Homebrew for compiling packages and by many Python packages with native extensions.
make & xcodebuild
Build system utilities. xcodebuild allows building Xcode projects from the command line,
useful in CI/CD pipelines.
Updating CLT
# Remove existing CLT and reinstall
sudo rm -rf /Library/Developer/CommandLineTools
xcode-select --install
# Or use softwareupdate
softwareupdate --list | grep "Command Line Tools"
Enterprise Deployment
For managed Macs, use the Command Line Tools for Xcode package from Apple Developer Downloads.
Deploy the .pkg silently via Jamf Pro policy or munki. This avoids the interactive
prompt triggered by xcode-select --install.