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
- Terminal
Solution
Step 1. Open Terminal and run the following command:
~ xcode select --install
Step 2. Verify the installation.
~ xcode-select -p
Example output:
/Library/Developer/CommandLineTools/
Conclusion
Although you could install the full Xcode package which requires 40GB 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.