February 4, 2023
How to Install Xcode Command Line Tools [Video]

How to Install Xcode Command Line Tools [Video]

Posted January 31, 2023 at 2:49pm by iClarified · 2822 views
These are instructions on how to install Xcode Command Line Tools on Mac without installing the entire Xcode package.

The Command Line Tools package is a small self-contained package available for download separately from Xcode that allows you to do command line development in macOS. It consists of the macOS SDK and command-line tools such as Clang, the Apple LLVM compiler, linker, and Make, which are installed in the /Library/Developer/CommandLineTools directory. If you use Xcode, these tools are also embedded within the Xcode IDE.

Follow the steps below to get started...




INSTALL XCODE COMMAND LINE TOOLS


Step One


Launch Terminal from your dock or from the Applications > Utilities folder.
How to Install Xcode Command Line Tools [Video]

Step Two


Type the following command into the Terminal window and press Return.

xcode-select --install

How to Install Xcode Command Line Tools [Video]


Step Three


A popup window will appear that reads:

The "Xcode-select" command requires the command line developer tools. Would you like to install the tools now? Choose Install to download and install the command line developer tools now.

Click Install

How to Install Xcode Command Line Tools [Video]


Step Four


Apple will then present a License Agreement for you to agree to.

Click Agree.

How to Install Xcode Command Line Tools [Video]


Step Five


macOS will now download and install the Xcode Command Line Tools.

How to Install Xcode Command Line Tools [Video]

Step Six


Once the installation has completed. Apple will inform you that "The software was installed."

Click Done.

How to Install Xcode Command Line Tools [Video]

Step Seven


To verify a successful installation, simply try to use a command line tool or execute the following command:

xcode-select -p

How to Install Xcode Command Line Tools [Video]

This should display the path to Command Line Tools. It will look something like this:

/Library/Developer/CommandLineTools

How to Install Xcode Command Line Tools [Video]

If this is not the answer you received or if you received an error message, then try one of the alternative installation methods shared below.


ALTERNATIVE WAYS TO INSTALL XCODE COMMAND LINE TOOLS



Apple Developer Website


If you have an Apple Developer account, you can install Xcode Command Line Tools by downloading them from the dev center. This does not require you to have Xcode installed or even a download of the large Xcode package. Apple developers can navigate to https://developer.apple.com/download/all/ then search for "Command Line Tools for Xcode". Apple offers a DMG that can be downloaded for easy installation.

Homebrew


Mac users can also install Xcode tools using the Homebrew package manager. Xcode Command Line Tools are installed as part of the Homebrew installation. You can find instructions on how to install Homebrew here:
How to Install Homebrew on Mac

UNINSTALL XCODE COMMAND LINE TOOLS


You can find instruction on how to uninstall Xcode command line tools here:
How to Uninstall Xcode Command Line Tools [Video]
Add Comment
Would you like to be notified when someone replies or adds a new comment?
Yes (All Threads)
Yes (This Thread Only)
No
iClarified Icon
Notifications
Would you like to be notified when we post a new Apple news article or tutorial?
Yes
No
Comments
You must login or register to add a comment...
Recent. Read the latest Apple News.
RECENT
Tutorials. Help is here.
TUTORIALS
Where to Download macOS Ventura
AppleTV Firmware Download Locations
Where to Download iPod touch Firmware Files From
Where To Download iPad Firmware Files From
Where To Download iPhone Firmware Files From
Deals. Save on Apple devices and accessories.
DEALS