> ## Documentation Index
> Fetch the complete documentation index at: https://cockroachlabs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# cockroach version

export const InternalLink = ({version, path = "", children, ...props}) => {
  let detectedVersion = version || "stable";
  if (typeof window !== 'undefined' && !version) {
    const match = window.location.pathname.match(/\/docs\/([^/]+)/);
    if (match) {
      detectedVersion = match[1];
    }
  }
  const normalizedPath = path.startsWith("/") ? path.slice(1) : path;
  return <a href={`/docs/${detectedVersion}/${normalizedPath}`} {...props}>
      {children}
    </a>;
};

To view version details for a specific `cockroach` binary, run the `cockroach version` <InternalLink path="cockroach-commands">command</InternalLink>, or run `cockroach --version`:

```shell theme={"theme":{"light":"catppuccin-mocha","dark":"catppuccin-mocha"}}
$ cockroach version
```

```text theme={"theme":{"light":"catppuccin-mocha","dark":"catppuccin-mocha"}}
Build Tag:        v25.2.15
Build Time:       2026-03-09 00:00:00
Distribution:     CCL
Platform:         darwin amd64 (x86_64-apple-darwin19)
Go Version:       go1.15.11
C Compiler:       Clang 10.0.0
Build Commit ID:  ac916850f403f083ea62e2b0dfdfecbbeaaa4d05
Build Type:       release
```

## Response

The `cockroach version` command outputs the following fields:

| Field             | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Build Tag`       | The CockroachDB version.  To return just the build tag, use `cockroach version --build-tag`.                                                                                                                                                                                                                                                                                                                                                                                                                               |
| `Build Time`      | The date and time when the binary was built.                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| `Distribution`    | The scope of the binary. If `CCL`, the binary contains functionality covered by both the CockroachDB Community License (CCL) and the Business Source License (BSL). If `OSS`, the binary contains only functionality covered by the Apache 2.0 license. The v19.2 release converts to Apache 2.0 as of Oct 1, 2022, at which time you can use the `make buildoss` command to build a pure open-source binary. For more details about licensing, see the <InternalLink path="licensing-faqs">Licensing FAQs</InternalLink>. |
| `Platform`        | The platform that the binary can run on.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `Go Version`      | The version of Go in which the source code is written.                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| `C Compiler`      | The C compiler used to build the binary.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `Build Commit ID` | The SHA-1 hash of the commit used to build the binary.                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| `Build Type`      | The type of release. If `release`, `release-gnu`, or `release-musl`, the binary is for a production [release](/docs/releases). If `development`, the binary is for a testing release.                                                                                                                                                                                                                                                                                                                                      |

## See also

* <InternalLink path="install-cockroachdb">Install CockroachDB</InternalLink>
* <InternalLink path="cockroach-commands">`cockroach` Commands Overview</InternalLink>
