CLI Commands

cnquery bundle init

Generate an example query pack file that you can use as a starting point for writing custom query packs. If you don't provide a filename, cnquery creates example-pack.mql.yaml.

cnquery bundle init

Create a query pack at a specific path:

cnquery bundle init my-pack.mql.yaml

Options

  -h, --help   help for init

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