anchorectl inventory

Inventory list operation.

Every command on this page also accepts the global flags.

Subcommands

inventory delete

Delete inventory from the system.

anchorectl inventory delete [flags]

Aliases: del

Flags

FlagTypeEnvironment variableDefaultRequiredDescription
--typestringANCHORECTL_INVENTORY_INVENTORY_TYPE""YesThe type of inventory to delete.
--contextstringANCHORECTL_CONTEXT""NoThe inventory context.
--image-digeststringANCHORECTL_IMAGE_DIGEST""NoThe image digest to delete inventory for.
-o, --outputstringANCHORECTL_FORMATtextNoThe format to show the results. Allowable values: text, json, json-raw, id. See Output Formats.
-y, --yesboolANCHORECTL_CONFIRMfalseNoConfirm the deletion of the inventory.

inventory list

Returns a list of the images that are in use.

anchorectl inventory list [flags]

Flags

FlagTypeEnvironment variableDefaultRequiredDescription
--contextstringANCHORECTL_INVENTORY_CONTEXT""NoLimit results to a specific image context.
--image-digeststringANCHORECTL_INVENTORY_IMAGE_DIGEST""NoSearch for a specific image digest.
-o, --outputstringANCHORECTL_FORMATtextNoThe format to show the results. Allowable values: text, json, json-raw, id. See Output Formats.
--typestringANCHORECTL_INVENTORY_TYPE""NoThe inventory type to limit results (e.g. Kubernetes).

inventory watch

Inventory subscription operations.

anchorectl inventory watch [command]

Subcommands

inventory watch activate

Watching a runtime inventory context will cause images to be automatically scheduled for analysis on discovery.

anchorectl inventory watch activate INVENTORY_CONTEXT [flags]

Arguments

ArgumentDescription
INVENTORY_CONTEXTInventory context.

Flags

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

inventory watch deactivate

Runtime inventory context to stop watching.

anchorectl inventory watch deactivate INVENTORY_CONTEXT [flags]

Arguments

ArgumentDescription
INVENTORY_CONTEXTRuntime inventory context.

Flags

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

inventory watch list

List all runtime inventory which have a watch configured.

anchorectl inventory watch list [flags]

Flags

FlagTypeEnvironment variableDefaultRequiredDescription
-k, --keystringANCHORECTL_SUBSCRIPTION_KEY""NoFilter on this specific inventory context.
-o, --outputstringANCHORECTL_FORMATtextNoThe format to show the results. Allowable values: text, json, json-raw, id. See Output Formats.
Last modified September 22, 2026