diff --git a/cmd/root.go b/cmd/root.go index 5e1e7c682..7962a0b3d 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -22,9 +22,10 @@ var ( // rootCmd represents the base command when called without any subcommands var rootCmd = &cobra.Command{ - Use: "evcc", - Short: "EV Charge Controller", - Run: run, + Use: "evcc", + Short: "EV Charge Controller", + Version: fmt.Sprintf("%s (%s)", server.Version, server.Commit), + Run: run, } func bind(cmd *cobra.Command, flag string) {