Skip to main content
To view version details for a specific cockroach binary, run the cockroach version , or run cockroach --version:

Response

The cockroach version command outputs the following fields:
FieldDescription
Build TagThe CockroachDB version. To return just the build tag, use cockroach version --build-tag.
Build TimeThe date and time when the binary was built.
DistributionThe 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 .
PlatformThe platform that the binary can run on.
Go VersionThe version of Go in which the source code is written.
C CompilerThe C compiler used to build the binary.
Build Commit IDThe SHA-1 hash of the commit used to build the binary.
Build TypeThe 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