Skip to content
SHC Docs

shc ctx

manage CLI contexts

Inspect, update, login, and logout of named CLI contexts. Persists to paths.ConfigHome()/context.json.

shc ctx [flags]
--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 tenant
--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)