To install the command line developer tools, simply run the following command in the terminal:
xcode-select –install