Determine xcode command line tools version
Finding the CLI version number depends on the combination of which particular OS and which particular CLI Tools are installed. One of these should work:

On Yosemite &amp; Mavericks:

pkgutil --pkg-info=com.apple.pkg.CLTools_Executables


on Mountain Lion:

pkgutil --pkg-info=com.apple.pkg.DeveloperToolsCLI