Skip to main content
Calico Open Source 3.33 (latest) documentation

calicoctl version

This section describes the calicoctl version command.

Read the calicoctl Overview for a full list of calicoctl commands.

Displaying the help text for 'calicoctl version' commands​

Run calicoctl version --help to display the following help menu for the commands.

Display version information for calicoctl, and for the cluster when it can be reached.

Usage:
calicoctl version [flags]

Examples:
# Show client and cluster versions.
calicoctl version

# Show only the client version.
calicoctl version --client

Flags:
--client Display the client version only.
-c, --config string Path to the file containing connection configuration.
-h, --help help for version
--poll string Poll for changes to the cluster information at a frequency specified using POLL duration.

Global Flags:
--allow-version-mismatch Allow client and cluster versions mismatch
--context string The name of the kubeconfig context to use
-l, --log-level string Set the log level (panic, fatal, error, warn, info, debug) (default "panic")

Example​

Use calicoctl version to obtain the following data.

FieldValue
Client VersionVersion of calicoctl
Build dateTime and date of calicoctl build
Git commitGit commit number of calicoctl
Cluster Version*Version number of calico/node and Calico
Cluster Type*Other details about the cluster

* To obtain these values, you must configure calicoctl to connect to your datastore.

See also​