No, Xcode not required unless you want to develop iOS, iPadOS, macOS, watchOS, tvOS apps. For building CLI apps you may need the Command Line Tools. It is a small self-contained package available for download separately from Xcode and that allows you to do command line development in macOS.8 Ara 2015