airshipctl/docs/source/cli/airshipctl_config_get-context.md
chumkid 02d2fc7e4a Show the context name and current context using get-context command
The command "airshipctl config get-context" will display the name of the contexts as well as the current context name.

Relates-To: #475
Change-Id: I8234d74f6b98869e27e4974a54b68230d8be8565
2021-05-19 13:42:22 +05:30

976 B

airshipctl config get-context

Get context information from the airshipctl config

Synopsis

Display information about contexts such as associated manifests, users, and clusters.

airshipctl config get-context CONTEXT_NAME [flags]

Examples


# List all contexts
airshipctl config get-contexts

# Display the current context
airshipctl config get-context --current

# Display a specific context
airshipctl config get-context exampleContext

Options

      --current       get the current context
      --format yaml   choose between yaml or `table`, default is `yaml` (default "yaml")
  -h, --help          help for get-context

Options inherited from parent commands

      --airshipconf string   Path to file for airshipctl configuration. (default "$HOME/.airship/config")
      --debug                enable verbose output

SEE ALSO