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.yamlExport the graph in Graphviz DOT format:
cnspec policy graph export my-policy.mql.yaml --format dotOptions
--format string Output format: json, dot (default "json")
-h, --help help for exportOptions 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 outputSEE ALSO
- cnspec policy graph - Navigate policy bundle structure via graph commands