CLI Commands
cnspec policy download
Download a policy from the connected Mondoo Platform space to a local bundle file.
Download a policy from your Mondoo Platform space to a local bundle file. Use this to inspect a policy's contents, make modifications, or back up policies locally.
cnspec policy download POLICY_UIDSave the policy to a specific file:
cnspec policy download POLICY_UID -f my-policy.mql.yamlOptions
-f, --file string Set the output file
-h, --help help for downloadOptions 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 outputSEE ALSO
- cnspec policy - Manage local and upstream policies