How can I install command line tools without installing Xcode?

Hello, I’m a computer science student. I’ve a macbook air, and I’m short on space, so I want to know if it is necessary to install the xcode along with the command line tool or if I can install them separately? Because I don’t need the Xcode as of now. Please help me with this.

I have installed the cli tools when I tried to run something in the past. I can’t remember exactly what I was doing but it asked me to install them.

Apple has a full page on their developer site about installing the tools via cli. It looks like it just installs the cli portion of Xcode.

As far as I’m aware I only have the cli tools installed, not the full Xcode package.

2 Likes

Scroll to commandline tools and download. You will need a dev license.

Try here: https://xcodereleases.com/

You might also want to check out MacPorts (https://www.macports.org/). They provide many useful tools for working on a Mac. I use the gcc compiler suite from there for everything I do. The MacPorts wiki has several useful discussions of working with the CLI toolkit.

2 Likes

I use Homebrew instead.

They list thee options to install the Command Line Tools (CLT) for Xcode:

  1. via xcode-select --install
  2. Xcode from Apple Developer site
  3. Xcode from App Store

These options have all been suggested here above, so I hope the OP succeeded by now.

2 Likes

Hey, this is good, but I’m facing a problem while deleting the installed xcode app. I have deleted the app but that much space has not been vacated.