Install Xcode Command Line Tools on Mac

Get git, clang and other dev tools without installing full Xcode.

macOSXcodeTerminalLow risk
Run the command below, then click Install in the dialog that appears. Download takes a few minutes; git and clang are ready afterwards.

01Command

Command
$ xcode-select --install

02What it does

Many developer tools (git, make, clang, Homebrew prerequisites) need Apple's compiler toolchain. This installs just the Command Line Tools (~1–2 GB) instead of the full Xcode IDE, and registers it as the active developer directory via xcode-select.

03Risk

RiskLow risk
CompatibilitymacOS 10.11 El Capitan – 15 Sequoia

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

Last verified: 2025-11-14 · Category: Developer

06Related solutions