Installing CMake command line tools on a Mac

As of version 3.9.4, the “How to Install Command Line Tools” says:

One may add CMake to the PATH:


Or, to install symlinks to ‘/usr/local/bin’, run:

sudo "/Applications/" --install

Or, to install symlinks to another directory, run:

sudo "/Applications/" --install=/path/to/bin

The middle option worked perfectly for what I needed: installing an older version of Swift using swiftenv.

Leave a Comment