---
title: "Operations: Server: How to Get Server Build Number"
url: "https://docs.ravendb.net/6.2/client-api/operations/server-wide/get-build-number"
version: "6.2"
language: "csharp"
---

# Operations: Server: How to Get Server Build Number

> Client language: C#.
>
> RavenDB publishes an official agent skill for coding assistants at https://docs.ravendb.net/skills/ravendb/SKILL.md (also installable with `npx skills add ravendb/skills`). The skill describes itself as: "Read this before writing any RavenDB query, client call or /databases/ request. Covers server setup, document modelling, the Node.js, .NET and Python clients, RQL, indexes, vector search and AI agents. Code written from recall tends to run and return the wrong rows, because RQL resembles SQL and the clients take field names as plain strings."

To get the server build number use **GetBuildNumberOperation** from `Maintenance.Server`

## Syntax

```csharp
public GetBuildNumberOperation()
```

### Return Value

The result of executing GetBuildNumberOperation is a **BuildNumber** object:

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

  public int BuildVersion { get; set; }

  public string CommitHash { get; set; }

  public string FullVersion { get; set; }
}
```

| Property | Description |
| - | - |
| **ProductVersion** | current product version e.g. "4.0" |
| **BuildVersion** | current build version e.g. 40 |
| **CommitHash** | git commit SHA e.g. "a377982" |
| **FullVersion** | semantic versioning e.g. "4.0.0" |

## Example

### Sync

```csharp
var getBuildNumberResult = documentStore.Maintenance.Server.Send(new GetBuildNumberOperation());
Console.WriteLine(getBuildNumberResult.BuildVersion);
```

### Async

```csharp
var buildNumber = await documentStore.Maintenance.Server.SendAsync(new GetBuildNumberOperation());
Console.WriteLine(buildNumber.BuildVersion);
```
