mac,

How to Install Apple Command Line Tools

Nov 13, 2021 · 1 min read · Post a comment
How to Install Apple Command Line Tools

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 a terminal and run the following command:

~ xcode select --install

Step 2. Verify 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.