commands.sh

kubectl version

all

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

More info →

Options (1)

-o, --outputboolean

Output the client and server version information for the current context in JSON

Example: kubectl version {{[-o|--output]}} json

Examples (4)

Print the client and server version information for the current context

Print the client version only for the current context

Output the client and server version information for the current context in JSON

kubectl version [-o|--output] json

Output the client and server version information for the current context in YAML

kubectl version [-o|--output] yaml
made by @shridhargupta | data from tldr-pages