Commit 0282f585 authored by GuessWhoSamFoo's avatar GuessWhoSamFoo
Browse files

Add examples for CLI ref --api-spec and --server for env set


Signed-off-by: default avatarGuessWhoSamFoo <sfoohei@gmail.com>
parent 11938d61
......@@ -25,9 +25,16 @@ ks env set <env-name> [flags]
### Examples
```
#Update the name of the environment 'us-west/staging'.
# Update the name of the environment 'us-west/staging'.
# Updating the name will update the directory structure in 'environments/'.
ks env set us-west/staging --name=us-east/staging
# Setting k8s API version for an environment
ks env set us-west/staging --api-spec=version:v1.8.0
# Updating the server
ks env set us-west/staging --server=https://192.168.99.100:8443
```
### Options
......
......@@ -45,9 +45,16 @@ directory structure in ` + "`environments/`" + `.
### Syntax
`
envSetExample = `#Update the name of the environment 'us-west/staging'.
envSetExample = `# Update the name of the environment 'us-west/staging'.
# Updating the name will update the directory structure in 'environments/'.
ks env set us-west/staging --name=us-east/staging`
ks env set us-west/staging --name=us-east/staging
# Setting k8s API version for an environment
ks env set us-west/staging --api-spec=version:v1.8.0
# Updating the server
ks env set us-west/staging --server=https://192.168.99.100:8443
`
)
func newEnvSetCmd(a app.App) *cobra.Command {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment