[Answered] How To Install Xcode Command Line Tools On MacOs?

Mac users who have installed a new operating system can now install Command Line Tools from the Xcode IDE without having to install the entire Xcode package or create an Apple developer account.

This article will show you how to install the optional and extremely useful Command Line Tools package.

What Is Xcode Command Line?

Mac users gain access to a plethora of useful tools, utilities, and compilers via the Xcode Command Line toolkit, including make, GCC, clang, Perl, svn, git, size, strip, strings, libtool, CPP, and many more. All of these commands are included by default in Linux systems and programs.

These steps are recommended for Mac users running the following operating systems: macOS 10.13 High Sierra, macOS 10.14 Mojave, and macOS 10.15 Catalia and later.

How To Install Xcode Command Line Tool?

  • Navigate to Terminal under /Applications/Utilities/.
  • In Terminal, type the following command string: xcode-options —install
  • Similarly, when you download new software and apps, you will see a popup update window asking you: “The xcode-select command requires the command line developer tools.” “Do you want to install the tools right now?”
  • Click Install to confirm your choice.
  • Allow for the installation of the Xcode Command Line Tools package. It is approximately 130 MB in size and usually installs fairly quickly; however, this depends on your internet connection.
  • When everything is installed, the installer will exit, and you should be able to use any of the new commands you now have access to. Have fun with your new Unix command line tools!

Alternative Method To Install The Command Line Tool

  • If the Terminal combination did not work, navigate to the Finder > Go to Folder… menu.
  • Copy and paste the following path into your browser: /System/Library/CoreServices
  • Find the app called Install Command Line Developer Tools.app in that location; it will have a blue globe icon.
  • Click this app, then use the Terminal method described above.

How To View Everything?

  • /Library/Developer/CommandLineTools/
  • Please keep in mind that this is the root /Library directory of your macOS/OS X, not the /Library directory.
  • All of these tools can also be found in the following locations: /Library/Developer/CommandLineTools/usr/bin/
  • These tools are similar to small executable programs (which they are)

How To Deal With Any Download Error?

  • If you get the error message “Can’t install the software because it is not currently available from the Software Update server,” it means you already have the Xcode package installed on your Mac.
  • Because Xcode was already installed on Mac OS X 10.9 and later, you are unable to download these tools. However, you can uninstall the entire Xcode app if you’d rather only have access to these tools rather than a slew of software that won’t be of much use.

Also read:- What Is The “Aeserver Mac” Background Process On Your Macbook?


There you go, now you’re good to go. Enjoy using the various features of the Xcode command line. However, do make sure you clean up the junk accumulated by the Xcode cause that can become an issue.

If you have any queries regarding any of the steps mentioned then please let us know in the comments.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top