anchorectl correction

Correction related operations.

Every command on this page also accepts the global flags.

Subcommands

correction add

Add a correction record that will be used to fix false positive vulnerabilities.

anchorectl correction add [flags]

Flags

FlagTypeEnvironment variableDefaultRequiredDescription
--descriptionstringANCHORECTL_CORRECTION_DESCRIPTION""NoOptional description of this correction rule.
-i, --inputstringANCHORECTL_INPUT""NoPath to a JSON input file or - to read from stdin.
--matchstring (repeatable)ANCHORECTL_CORRECTION_MATCH[]NoMatches of the form key=value (e.g. package=spring-core).
-o, --outputstringANCHORECTL_FORMATtextNoThe format to show the results. Allowable values: text, json, json-raw, id. See Output Formats.
--replacestring (repeatable)ANCHORECTL_CORRECTION_REPLACE[]NoReplacements of the form key=value (e.g. cpes=cpe:2.3:a:pivotal_software:spring_framework:3.2.14:::::::*).
--typestringANCHORECTL_CORRECTION_TYPE""NoType of match [supports os, npm, gem, python, java, go].

correction delete

Delete a single correction, looked up via it’s uuid.

anchorectl correction delete ID [flags]

Aliases: del

Arguments

ArgumentDescription
IDThe correction ID.

Flags

FlagTypeEnvironment variableDefaultRequiredDescription
-o, --outputstringANCHORECTL_FORMATtextNoThe format to show the results. Allowable values: text, json, json-raw, id. See Output Formats.

correction get

Returns a single correction, looked up via it’s uuid.

anchorectl correction get ID [flags]

Arguments

ArgumentDescription
IDThe correction ID.

Flags

FlagTypeEnvironment variableDefaultRequiredDescription
-o, --outputstringANCHORECTL_FORMATtextNoThe format to show the results. Allowable values: text, json, json-raw, id. See Output Formats.

correction list

Returns a list of corrections.

anchorectl correction list [flags]

Flags

FlagTypeEnvironment variableDefaultRequiredDescription
-o, --outputstringANCHORECTL_FORMATtextNoThe format to show the results. Allowable values: text, json, json-raw, id. See Output Formats.
Last modified September 22, 2026