shc ctx
shc ctx
Section titled “shc ctx”manage CLI contexts
Synopsis
Section titled “Synopsis”Inspect, update, login, and logout of named CLI contexts. Persists to paths.ConfigHome()/context.json.
shc ctx [flags]Options
Section titled “Options” --cluster string set active cluster -e, --environment string set environment -h, --help help for ctx --reset reset context to defaults -s, --stack string set stack -t, --tenant string set tenantOptions inherited from parent commands
Section titled “Options inherited from parent commands” --config stringArray extra YAML config file to layer on top of auto-discovered config; repeatable, later files win -d, --debug enable debug mode (default: $SHC_DEBUG) --exclude string comma-separated dotted paths to drop --fields string comma-separated columns/keys to show (and their order) --filter string comma-separated dotted paths to keep (drops everything else) -o, --output string output format: tty|text|json|yaml (default: $SHC_OUTPUT) -v, --verbose verbose output (default: $SHC_VERBOSE)SEE ALSO
Section titled “SEE ALSO”- shc - Selfhosted Cloud CLI
- shc ctx login - register a cluster and persist its access token
- shc ctx logout - clear the token from a context
shc@docs:~$