macos,

How to install Apple Command Line Tools

Nov 13, 2021 · 1 min read · Post a comment

Apple Command Line Tools are part of the Xcode, the official integrated development environment (IDE) for macOS. The installation is a one-liner, so let’s just jump right into it.

Prerequisites

  • macOS shell environment

Solution

Step 1. Open Terminal and run the following command:

xcode select --install

Step 2. Verify installation.

xcode-select -p

Output:

/Library/Developer/CommandLineTools/

Conclusion

Although you could install the full Xcode package which requires 40GB of disk space, it’s not recommended unless you are developing apps for an Apple device. Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.