Which to choose Build or XCodeBuild ?

I have a program that has the original script to call for "Build". In terminal it returns "unknown command". So I tried XCodeBuild and get this

xcode-select: error: tool 'xcodeBuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

How do I do this ?
Which to choose Build or XCodeBuild ?
 
 
Q