version

Print the client and server versions for the current context

  1. kubectl version

Print the client and server version information for the current context.

Usage

$ kubectl version

Flags

NameShorthandDefaultUsage
clientfalseIf true, shows client version only (no server required).
outputoOne of ‘yaml’ or ‘json’.
shortfalseIf true, print just the version number.