diff --git a/cli/cmd/root.go b/cli/cmd/root.go index 996878eeaa..7a819ce27b 100644 --- a/cli/cmd/root.go +++ b/cli/cmd/root.go @@ -79,6 +79,8 @@ func Execute() { rootCmd.AddCommand(configureCmd) rootCmd.AddCommand(completionCmd) + rootCmd.SetVersionTemplate(`{{printf "%s\n" .Version}}`) + rootCmd.Execute() }