To list all available schemes for the project in your current directory
xcodebuild -list
Optionally you can pass a path to a project or workspace file
xcodebuild -list -workspace ./MyApp.xcworkspace
xcodebuild -list -project ./MyApp.xcodeproj
Example output
Information about project "Themoji":
Targets:
Themoji
ThemojiUITests
Unit
Build Configurations:
Debug
Release
If no build configuration is specified and -scheme is not passed then "Release" is used.
Schemes:
Themoji
ThemojiUITests
Units