see on GitHub

Commands : How to get server build number?

To check with what version of server commands you are working use GetBuildNumber command from GlobalAdmin.

Syntax

BuildNumber GetBuildNumber();


public class BuildNumber
{
	public string ProductVersion { get; set; }

	public string BuildVersion { get; set; }
}

Return Value BuildNumber Information about current product (server) version and build number.
ProductVersion string String representing current product version e.g. "3.0.0 / 6dce79a"
BuildVersion string String indicating current build version e.g. "3260"

Example

BuildNumber buildNumber = store
	.DatabaseCommands
	.GlobalAdmin
	.GetBuildNumber();

Remarks

BuildVersion for custom builds is "13"