CLI Commands

cnspec policy graph paths

Find paths between two nodes in the policy graph.

Find the paths that connect two nodes in the policy graph. Pass the UID of the source node, the UID of the target node, and the path to the bundle file. This helps you understand how one part of a bundle relates to another.

cnspec policy graph paths FROM_UID TO_UID my-policy.mql.yaml

Output the result as JSON:

cnspec policy graph paths FROM_UID TO_UID my-policy.mql.yaml --json

Options

  -h, --help   help for paths
      --json   Output as JSON

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