lula tools upgrade
.less than a minute
Upgrade OSCAL document to a new version if possible.
Validate an OSCAL document against the OSCAL schema version provided. If the document is valid, upgrade it to the provided OSCAL version. Otherwise, return or write as ValidationError. Yaml formatting handled by gopkg/yaml.v3 and while objects will maintain deep equality, visual representation may be different than the input file.
lula tools upgrade [flags]
To Upgrade an existing OSCAL file:
lula tools upgrade -f <path to oscal> -v <version>
-h, --help help for upgrade
-f, --input-file string the path to a oscal json schema file
-o, --output-file string the path to write the linted oscal json schema file (default is the input file)
-r, --validation-result string the path to write the validation result file
-v, --version string the version of the oscal schema to validate against (default is the latest supported version) (default "1.1.2")
-l, --log-level string Log level when running Lula. Valid options are: warn, info, debug, trace (default "info")
Was this page helpful?