CLI Commands

cnquery bundle lint

Validate a query pack to ensure it compiles correctly and all queries and references are valid. Run this before publishing a query pack to catch errors early.

cnquery bundle lint my-pack.mql.yaml

Options

  -h, --help   help for lint

Options inherited from parent commands

      --api-proxy string   Set the proxy for communications with Mondoo Platform API
      --auto-update        Enable automatic provider installation and update (default true)
      --config string      Set config file path (default $HOME/.config/mondoo/mondoo.yml)
      --log-level string   Set the log level: error, warn, info, debug, trace (default "info")
  -v, --verbose            Enable verbose output

SEE ALSO

On this page