You are currently browsing legacy 3.0 version of documentation. Click here to switch to the newest 5.2 version.

We can help you with migration to the latest RavenDB

Contact Us Now
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.


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"


BuildNumber buildNumber = store


BuildVersion for custom builds is "13"