// Module included in the following assemblies:
//
// * microshift_architecture/microshift-version-api.adoc

:_content-type: CONCEPT
[id="microshift-version-api_{context}"]

= Checking the {product-title} version using the API

.Procedure

* To get the version number using the OpenShift CLI (`oc`), view the `kube-public/microshift-version` config map by running the following command:
+
[source,terminal]
----
$ oc get configmap -n kube-public microshift-version -o yaml
----

.Example output
[source,yaml]
----
apiVersion: v1
data:
  major: "4"
  minor: "10"
  version: 4.10.0-0.microshift-e6980e25
kind: ConfigMap
metadata:
  creationTimestamp: "2022-08-08T21:06:11Z"
  name: microshift-version
  namespace: kube-public
----
