UnrealBuildTool API Reference?

The most approachable doc is the Unreal Build System in the Programming Guide. It includes some information on building target files.

You can also look through the UnrealBuildTool code itself . You can use this to, for example, see the TargetRules abstract base class implementation.

I haven’t figured out how to get auto-completion working in my own build files.