airshipctl/docs/source/cli/airshipctl_config_set-context.md
Sirisha Gopigiri 21f015b502 Updating cmd files for documentation
This PS updates cmd related to root, completion, document and
version subcommands. It also updates minor details in other
subcommands.

The description and examples are updated for the airshipctl
commands, which will be inturn used for generating documentation.
Please ignore the .md file changes in this PS. They are added for zuul
gates to pass. Here is the PS with generated documention
files https://review.opendev.org/c/airship/airshipctl/+/789250

Relates-To: #280
Change-Id: I562c15c0d25b2e9731c0eb03854d1d348eb435f2
2021-06-09 09:56:21 +00:00

1.3 KiB

airshipctl config set-context

Airshipctl command to create/modify context in airshipctl config file

Synopsis

Creates or modifies context in the airshipctl config file based on the CONTEXT_NAME passed or for the current context if --current flag is specified. It accepts optional flags which include manifest name and management-config name.

airshipctl config set-context CONTEXT_NAME [flags]

Examples


To create a new context named "exampleContext"
# airshipctl config set-context exampleContext --manifest=exampleManifest

To update the manifest of the current-context
# airshipctl config set-context --current --manifest=exampleManifest

Options

      --current                    update the current context
  -h, --help                       help for set-context
      --management-config string   set the management config for the specified context
      --manifest string            set the manifest for the specified context

Options inherited from parent commands

      --airshipconf string   path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
      --debug                enable verbose output

SEE ALSO