Skip to content

Commit ac677ae

Browse files
authored
[Fleet] Add version flag (#4141)
1 parent 13ee3ff commit ac677ae

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cmd/fleet/main.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,10 @@ func getRunCommand(bi build.Info) func(cmd *cobra.Command, args []string) error
136136

137137
func NewCommand(bi build.Info) *cobra.Command {
138138
cmd := &cobra.Command{
139-
Use: build.ServiceName,
140-
Short: "Fleet Server controls a fleet of Elastic Agents",
141-
RunE: getRunCommand(bi),
139+
Use: build.ServiceName,
140+
Short: "Fleet Server controls a fleet of Elastic Agents",
141+
RunE: getRunCommand(bi),
142+
Version: bi.Version,
142143
}
143144
cmd.Flags().StringP("config", "c", "fleet-server.yml", "Configuration for Fleet Server")
144145
cmd.Flags().Bool(kAgentMode, false, "Running under execution of the Elastic Agent")

0 commit comments

Comments
 (0)