Skip to Content
CLI Commands

cnspec

The cnspec CLI is a cloud-native security testing tool for assessing the security of your entire infrastructure.

cnspec is a cloud-native security testing tool for your entire infrastructure. Use it to scan assets for misconfigurations and vulnerabilities using security policies, so you can find and fix security issues before they become problems.

To learn more, read What Is cnspec?. To get started, read Installation Overview.

Options

      --api-proxy string        Set the proxy for communications with Mondoo Platform API
      --auto-update             Enable automatic updates of cnspec and its providers; overrides auto_update in the config file (default true)
      --config string           Set config file path (default $HOME/.config/mondoo/mondoo.yml)
  -h, --help                    help for cnspec
      --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
      --strict                  Default MQL strict mode for policies that do not declare one: every link in an MQL chain must resolve
  -v, --verbose                 Enable verbose output

SEE ALSO

On this page