Skip to content
SHC Docs

shc ctx

manage CLI contexts

Reference for the ctx CLI group. Source: modules/ctx/commands/.

Running shc ctx with no subcommand inspects or updates the active context. The flags below set fields on it; with no flags it prints the resolved context.

FlagTypeRequiredHelp
-t / --tenantstrnoset tenant
-s / --stackstrnoset stack
-e / --environmentstrnoset environment
--clusterstrnoset active cluster
--resetboolnoreset context to defaults
SubcommandDescription
loginregister a cluster and persist its access token
logoutclear the token from a context

register a cluster and persist its access token

FlagTypeRequiredHelp
--urlstryescluster URL (https://…)
--tokenstrnoauth token (raw bearer JWT)
--token-execstrnoshell command that prints a fresh token to stdout each call
--insecureboolnoskip TLS verification
--castrnopath to a CA bundle for TLS verification
--colorintnopin the HUD background tint (palette index 0-8; 0 = neutral)

Source: modules/ctx/commands/

clear the token from a context

The optional positional [name] selects the context; it defaults to the active cluster.

Source: modules/ctx/commands/