Get Environment

Description

Get a specific environment or an array of environments.

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

Command

codefresh get environments [id..]

Aliases

codefresh get env [id..]

codefresh get environment [id..]

Arguments

Option Alias Default Description
id environment id or name

Options

Option Alias Type Default Description
--help Print help information

Output Options

Option Alias Type 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 boolean false Watching updates to a particular resource
--watch-interval number 3 Interval time at watching mode (in seconds)

Examples

Get environment ID

codefresh get environment ID

Get all environments

codefresh get environments