CLI Commands

cnspec policy list

List enabled policies in the connected Mondoo Platform space.

List the policies enabled in your Mondoo Platform space to see what's currently being used during scans. Use the --all flag to also see available but disabled policies.

cnspec policy list [-f bundle] [flags]

Options

  -a, --all           List all policies, not only the enabled ones (applicable only for upstream)
  -f, --file string   Set the path to a local bundle file
  -h, --help          help for list

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