Cobra can simplify the version command to a flag on root. Or be added in addition to the command. https://github.com/spf13/cobra#version-flag