How to update Xcode from command line

asked10 years ago
last updated7 years ago
viewed664.1k times
Up Vote562Down Vote

I am trying to update Xcode from the command line. Initially I tried running:

xcode-select --install

which resulted in this message:

xcode-select: error: command line tools are already installed, use "Software Update" to install updates

So the question remains, is there a way to update Xcode from the command line?