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 Default Description
–help Print help information

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 environment ID

codefresh get environment ID

Get all environments

codefresh get environments