# cockroach version

To view version details for a specific `cockroach` binary, run the `cockroach version` command:

    $ cockroach version

    Build Tag:   v20.1.17
    Build Time:  2021-05-17 00:00:00
    Distribution: CCL
    Platform:     darwin amd64
    Go Version:   go1.8.3
    C Compiler:   4.2.1 Compatible Clang 3.8.0 (tags/RELEASE_380/final)
    Build SHA-1:  5b757262d33d814bda1deb2af20161a1f7749df3
    Build Type:   release

The `cockroach version` command outputs the following fields:

Field | Description
--- | ---
`Build Tag` | The CockroachDB version.
`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 v20.1 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 Licensing FAQs.
`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 SHA-1` | 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. If `development`, the binary is for a testing release.

## See also

- Install CockroachDB
- Other Cockroach Commands