CLI Commands

cnspec policy upload

Upload a policy bundle to the connected Mondoo Platform space.

Upload a local policy bundle to Mondoo Platform to make it available for scanning across your infrastructure. By default, the bundle is linted before uploading. To learn more, read Manage Policies with cnspec.

cnspec policy upload my.mql.yaml [flags]

Options

  -h, --help                    help for upload
      --no-lint                 Disable linting of the bundle before publishing
      --policy-version string   Override the version of each policy in the bundle

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