# How do I install command line tools without installing Xcode?

I would like to install command line tools without installing Xcode as it is more than 4GB and I don't want to waste that much space since all I need are the command line tools. I have used xcode-select --install command but I still get an error message

active developer path ("/Applications/Xcode 2.app/Contents/Developer") does not exist, use xcode-select --switch path/to/Xcode.app to specify the Xcode that you wish to use for command line developer tools (or see man xcode-select)


Does anybody have an idea?