create

Description

Annotate a resource with labels.

Command

codefresh create annotation <entity-type> <entity-id> <labels...>

Arguments

Option Alias Default Description
entity-type Type of resource for annotation. required
entity-id Id of resource for annotation. required
labels Labels. required

Options

Option Alias Type Default Description
--help Print help information
--display string annotation to display on build

Examples

Annotate entity with a single label

codefresh create annotation image 2dfacdaad466 coverage=75%

Annotate entity with multiple labels

codefresh create annotation image 2dfacdaad466 coverage=75% tests_passed=true

Annotate entity with multiple labels and display selection

codefresh create annotation image 2dfacdaad466 coverage=75% tests_passed=true --display coverage