Get Build


Get a specific build or an array of builds.

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


codefresh get builds [id..]


codefresh get build [id..]


Option Alias Default Description
id Build id


Option Alias Default Description
--help Print help information
--limit -l 25 Limit amount of returned results
--page -p 1 Paginated page
--status -s Filter results by statuses

Possible values:
- running
- success
- error
- terminated
- terminating
- pending-approval
- delayed
- pending
- elected
--trigger -t Filter results by triggers

Possible values:
- build
- launch-image
- launch-composition
--pipeline-id --pid Filter results by pipeline id
--pipeline-name --pipeline Filter results by pipeline name
--branch -b Filter results by branch
--commit-id --revision,r,sha Filter results by commit revision sha
--pipeline-trigger-id Filter results by pipeline trigger id

Output Options

Option Alias Default Description
--select-columns --sc Columns to select for table output
--output -o Output format

Possible values:
- json
- yaml
- wide
- name
- id
--date-format --df Provide predefined or custom date format. Predefined options: [“default”, “date”, “datetime”, “date-diff”]
--pretty Use colors and signs for output
--watch -w Watching updates to a particular resource
--watch-interval 3 Interval time at watching mode (in seconds)


Get build ID

codefresh get build ID

Get all builds

codefresh get builds

Get all builds that are executions of pipeline “ID”

codefresh get builds --pipeline-id ID

Get all builds that are executions of pipelines that are named “NAME”

codefresh get builds --pipeline-name NAME

Get all builds that their status is error

codefresh get builds --status=error