MacOS – How to open Xcode from Terminal

macosxcode

kmorrison@Karls-MacBook-Pro ~ $ xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
kmorrison@Karls-MacBook-Pro ~ $ xcode
-bash: xcode: command not found

How do I open Xcode?

Best Answer

Xcode is an app in /Applications — there's no CLI tool called xcode.

  • For the GUI application, launch it from the Applications folder or with open -a Xcode.
  • For the CLI build tool, it's called xcodebuild.