Cannot seem to download command line tools

command linexcode

I'm trying to download and install Command Line Tools for my Mac through Xcode, but it is not in the downloads section like youtube videos tell me to go. So, I manually download it and install it, and it still does not show up. I need this so I can download MacPorts. Any suggestions on how to get it? Or how to see if I already have it? Thanks!

Best Answer

Run xcode-select --install

This will prompt you to download and install the CLTs using softwareupdate.