kubectl version

Print the client and server version information for the current context

Options

NameDescription
-o, --output <Output Format>Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-file
--clientIf true, shows client version only (no server required)
--shortIf true, print just the version number