CLI Commands

cnspec policy graph export

Export the full policy graph from a bundle file.

Export the full policy graph built from a bundle file. Choose the output format with --format: json for programmatic use or dot for rendering with Graphviz.

Export the graph as JSON:

cnspec policy graph export my-policy.mql.yaml

Export the graph in Graphviz DOT format:

cnspec policy graph export my-policy.mql.yaml --format dot

Options

      --format string   Output format: json, dot (default "json")
  -h, --help            help for export

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")
      --logging-config string   Path to a logging configuration file (YAML or JSON) that selects the log writer, level, and writer-specific options
  -v, --verbose                 Enable verbose output

SEE ALSO

On this page