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.
codefresh get environments [id..]
codefresh get env [id..]
codefresh get environment [id..]
| Option | Alias | Default | Description |
|---|---|---|---|
| id | environment id or name |
| Option | Alias | Type | Default | Description |
|---|---|---|---|---|
| --help | Print help information |
| 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) |
codefresh get environment ID
codefresh get environments