Command Line Developer Tools Mac Download



  • Create and manage your virtual machines via the command line interface. Run VMs as background processes without the GUI displayed on the Mac desktop (Headless mode). Share Windows network drives with Mac. Download Ubuntu Linux, Fedora Linux, CentOS Linux, Debian GNU/Linux, Mint Linux, Chromium OS, and Android virtual machines.
  • Preferences Downloads Components - Command Line Tools. 这种方法需要安装Xcode,如果你没有安装,可以通过Mac App Store来安装Xcode。 注意:Mac OS X 10.9 Mavericks中取消了此安装方法,可以使用后面的几种方法。 2、通过终端安装 (步骤如图) 打开终端, 输入命令 xcode-select.

Xcode is an IDE from Apple to create apps for iPhone, iPad, Mac, Apple Watch, and Apple TV.You probably need some of its tools without install the entire package.Maybe you want to write a command-line software on macOS, or maybe you need to use Homebrew package manager.In that case, you only need the subset of it: Xcode command-line tools.

Download the free command line tools for Xcode from Apple You'll need to have a free developer account to login and access the downloads. Just search for Command Line Tools and download the appropriate file. The download size is pretty small, and from here, the procedure is pretty standard.

In this post, I documented three most frequently asked questions about the Xcode command-line tools.

How to Install Xcode Command Line Tools

macOS is bundled with xcode-select.By using this command, you can download and install the latest Xcode command-line tools.What you need is to enter the following command.

Here is an example session when I install Xcode command-line tools.

After you entered the previous command on Terminal, a pop-up window will appear for confirmation.Click Install to continue.If you need to rethink again, click Cancel.

A standard License Agreement will appear.If you want to, you can read them all.Click Agree to continue the installation process.

A pop-up window will appear informing you of the download progress.This time you do nothing.Wait until the download process finished.This can take a long time, it depends on your internet speed.

Mac Command Line List

Line

After the downloading finished, the final pop up window will appear.This is to inform you that the Xcode command-line tools were installed on your machine successfully.

How to Uninstall Xcode Command Line Tools

In the case in the future you don’t need it again and want to free some space, you can uninstall it.

Unfortunately, there is no xcode-select --uninstall command.So, you have to do it manually.Just type the following command to the terminal.

It’ll ask your password you used for login.Enter your password and wait until it’s finished.

How to Update Xcode Command Line Tools

As I mention earlier, you probably use Xcode command line tools just for the Homebrew package manager.So am I on the other machine.

One time when I do some check and update, I got the following message.

But when I open macOS Software Update, there is no available at all.

Then I try to re-install from the command-line but got the following error message instead.

Unfortunately, there is also no xcode-select --update command.That means we need to do two manual steps to update Xcode command-line tools: uninstall and install.

So here is the solution.First, uninstall Xcode installation by removing its folder.

Then re-install again from the beginning.

Follow the installation guideline and wait until it’s finished.Xcode command-line tools now updated to the latest version.

Install Command Line Tools

Manually Install Command Line Tools for Xcode

If none of above methods work, you can download the installer manually from Apple Developer.To install the command line tools manually, read following steps.

  1. Visit Apple Developer download page.
  2. Login with your Apple ID.
  3. Search for Command Line Tools for Xcode.
  4. Select the latest version you need.
  5. Download the Command Line Tools for Xcode*.dmg file.
  6. Open the package installer and follow installation instruction.

References

Additional Downloads

Get the latest beta and older versions of Xcode. To view downloads, simply sign in with your Apple ID. Apple Developer Program membership is not required.

Beta Versions of Xcode
Command Line Tools & Older Versions of Xcode

Videos

See the latest advances in Xcode presented at WWDC and other events.

Help and Support

Line

Get step-by-step guidance on how to use Xcode to build, test, and submit apps to the App Store.

Xcode Help Guide
Xcode Support Page

API Reference and Sample Code

Command Line Developer Tools Mac Download Version

Browse the latest documentation including API reference, articles, and sample code.

Command

Mac Install Command Line Tools

Discussion Forums

Apple Command Line Tools

Ask questions and discuss development topics with Apple engineers and other developers.