diff --git a/cli/cmd/component.go b/cli/cmd/component.go index d08f997c6..b90772f1a 100644 --- a/cli/cmd/component.go +++ b/cli/cmd/component.go @@ -238,7 +238,10 @@ func v1ComponentCommand(c *cliState, cmd *cobra.Command, component lwcomponent.C "args", c.componentParser.componentArgs, "cli_flags", c.componentParser.cliArgs) - // @jon-stewart: TODO: v1 dailyComponentUpdateAvailable + if component.ApiInfo != nil && component.InstalledVersion().LessThan(component.ApiInfo.Version) { + format := "%s v%s available: to update, run `lacework component update %s`\n\n" + cli.OutputHuman(fmt.Sprintf(format, cmd.Use, component.ApiInfo.Version, cmd.Use)) + } envs := []string{ fmt.Sprintf("LW_COMPONENT_NAME=%s", cmd.Use),