diff --git a/pkg/commands/app.go b/pkg/commands/app.go index 2050fd62d33a..a180fd515870 100644 --- a/pkg/commands/app.go +++ b/pkg/commands/app.go @@ -859,9 +859,10 @@ func NewK8sCommand() *cli.Command { ) return &cli.Command{ - Name: "kubernetes", - Aliases: []string{"k8s"}, - Usage: "scan kubernetes vulnerabilities, secrets and misconfigurations", + Name: "kubernetes", + Aliases: []string{"k8s"}, + Usage: "scan kubernetes vulnerabilities, secrets and misconfigurations", + UsageText: "trivy k8s [command options] ", CustomHelpTemplate: cli.CommandHelpTemplate + `EXAMPLES: - cluster scanning: $ trivy k8s --report summary cluster