Mac OS X: Install Command Line Tools without Xcode

Command line tools on Mac OS X is included with Xcode but you may not want to install the entire Xcode to get git, svn and other packages.

So simply open the terminal and run this command:

xcode-select –install

A dialog will then open asking if you want to “Get Xcode”, “Not Now” or “Install” so you’ll click the “Install” button.

A download will start and the size is about 130Mb. Once it’s done downloading and installing, you can use any of the packages included in command lines.

This works on OS X Mavericks, Yosemite and I’ve tested it on El Capitan as well, no problems at all.

How to Install Command Line Tools in OS X Mavericks & Yosemite (Without Xcode)

Source: How to Install Command Line Tools in OS X Mavericks & Yosemite (Without Xcode)

Shares

2 Comments

  1. It is –install.

    Options:
    -h, –help print this help message and exit
    -p, –print-path print the path of the active developer directory
    -s , –switch set the path for the active developer directory
    –install open a dialog for installation of the command line developer tools
    -v, –version print the xcode-select version
    -r, –reset reset to the default command line tools path

Leave a Reply

Your email address will not be published.

*

© 2017 Contrid

Theme by Anders NorénUp ↑

Pin It on Pinterest

%d bloggers like this: