Get Context

Description

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.

Command

codefresh get contexts [name..]

Aliases

codefresh get ctx [name..]

codefresh get context [name..]

Arguments

Option Alias Default Description
name context name

Options

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)

Examples

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