Get Context


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

Possible values:
- config
- secret
- helm-repository
- yaml
- secret-yaml
- git

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)


Get context NAME

codefresh get context NAME

Get all contexts

codefresh get contexts

Get all secret contexts

codefresh get context --type secret

Get all git based contexts for github kind

codefresh get context --type git.github

Get all helm-repository contexts

codefresh get context --type helm-repository