
This change creates a tool that generates CLI documentation each time `make update-golden` is executed. Change-Id: I4bcdf299cd424f4cff1ecf6503822d304e9a3947 Signed-off-by: Drew Walters <andrew.walters@att.com>
56 lines
1.4 KiB
Markdown
56 lines
1.4 KiB
Markdown
## airshipctl config set-context
|
|
|
|
Manage contexts
|
|
|
|
### Synopsis
|
|
|
|
Create or modify a context in the airshipctl config files.
|
|
|
|
|
|
```
|
|
airshipctl config set-context NAME [flags]
|
|
```
|
|
|
|
### Examples
|
|
|
|
```
|
|
|
|
# Create a new context named "exampleContext"
|
|
airshipctl config set-context exampleContext \
|
|
--namespace=kube-system \
|
|
--manifest=exampleManifest \
|
|
--user=exampleUser
|
|
--cluster-type=target
|
|
|
|
# Update the manifest of the current-context
|
|
airshipctl config set-context \
|
|
--current \
|
|
--manifest=exampleManifest
|
|
|
|
```
|
|
|
|
### Options
|
|
|
|
```
|
|
--cluster string set the cluster for the specified context
|
|
--cluster-type string set the cluster-type for the specified context
|
|
--current update the current context
|
|
-h, --help help for set-context
|
|
--manifest string set the manifest for the specified context
|
|
--namespace string set the namespace for the specified context
|
|
--user string set the user for the specified context
|
|
```
|
|
|
|
### Options inherited from parent commands
|
|
|
|
```
|
|
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config")
|
|
--debug enable verbose output
|
|
--kubeconfig string Path to kubeconfig associated with airshipctl configuration. (default "$HOME/.airship/kubeconfig")
|
|
```
|
|
|
|
### SEE ALSO
|
|
|
|
* [airshipctl config](airshipctl_config.md) - Manage the airshipctl config file
|
|
|