Get Image

Description

Get a specific image or an array of images.

Passing [id] argument will cause a retrieval of a specific image.
In case of not passing [id] argument, a list will be returned.

Command

codefresh get images [id..]

Aliases

codefresh get img [id..]

codefresh get image [id..]

Arguments

Option Alias Default Description
id Docker Image id

Options

Option Alias Default Description
–help Print help information
–limit 25 Limit amount of returned results
–all - a Return images from all possible registries (by default only r.cfcr.io images will be returned)
–label - l Filter by a list of annotated labels
–tag - t Filter by a list of tags
–sha - s Filter by specific commit sha
–image-name Filter by specific image name
–branch Filter by specific branch
–page 1 Paginated page

Output Options

Option Alias Default Description
–output - o Output format

Possible values:
- json
- yaml
- wide
- name
- id
–watch - w Watching updates to a particular resource
–watch-interval 3 Interval time at watching mode (in seconds)

Examples

Get image ID

codefresh get image ID

Get all images

codefresh get images

Get all images that their name contains the word ‘node’

codefresh get images --image-name node

Get all images that are annotated with ‘value1’ for ‘key1’

codefresh get images -l key1=value1