How to open Xcode from Terminal?
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.