format
Format Cortex content files to meet standards and validate new or modified content.
This command formats new or modified files to align with the Cortex standard. This is useful when developing a new integration, script, playbook, incident field, incident type, indicator field, indicator type, layout, or dashboard. When formatting is complete, the validate command runs and notifies you of any issues the formatter could not fix.
Set the fromVersion key in different files
Run without the fromVersion flag
If the source file name already exists in the content repository
If the
fromVersionkey exists already in the current file, thefromVersionkey will not change.If the
fromVersionkey does not exist in the current file:If the
fromVersionkey exists in an old file in the content repository, set thefromVersionkey as in the old file.If the
fromVersionkey does not exist in an old file in the content repository, the system sets thefromVersionkey to default1.0.0.
If the source file name does not exist in content repository
If the
fromVersionkey exists already in the current file, thefromVersionkey will not change.If the
fromVersionkey does not exist in the current file, the system sets thefromVersionkey to5.0.0.
Run with the fromVersion flag
If the
fromVersionkey exists already in the current file, the system sets thefromVersionkey to the required version.If the
fromVersionkey does not exist in the current file, add thefromVersionkey and set it to the required version.
Last updated
Was this helpful?
