CLI Commands
cnspec policy graph reachable
Show all nodes reachable from a node in the policy graph.
Show all nodes reachable from a given node in the policy graph, following outbound edges transitively. Pass the node's UID and the path to the bundle file.
cnspec policy graph reachable NODE_UID my-policy.mql.yamlOutput the result as JSON:
cnspec policy graph reachable NODE_UID my-policy.mql.yaml --jsonOptions
-h, --help help for reachable
--json Output as JSONOptions 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