Get a specific context or an array of contexts.
Passing [name] argument will cause a retrieval of a specific context.
In case of not passing [name] argument, a list will be returned.
codefresh get contexts [name..]
codefresh get ctx [name..]
codefresh get context [name..]
| Option | Alias | Default | Description |
|---|---|---|---|
| name | context name |
| Option | Alias | Type | Default | Description |
|---|---|---|---|---|
| --help | Print help information | |||
| --type | Context type Possible values: - config - git.bitbucket-server - git.bitbucket - git.github - git.gitlab - git.stash - helm-repository - secret-yaml - secret - storage.gc - storage.s3 - yaml - secret-store.kubernetes - secret-store.kubernetes-runtime |
|||
| --decrypt | Either to show decoded credentials or not | |||
| --prepare | Activate tokens in case its invalid |
| 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 context NAME
codefresh get contexts
codefresh get context --decrypt
codefresh get context --type secret
codefresh get context --type git.github
codefresh get context --type helm-repository