Skip to content
SHC Docs

shc label

list and describe label values

A label value is key=value (location=hetzner/hel1, tier=gpu). SHC derives node, location, cloud, runtime, storage and endpoint values, and the control-plane value; an operator’s own values come from shc node label. Constraints and node selectors name label values. shc label set changes a value’s own properties and never adds it to a node.

shc label [flags]
-h, --help help for label
--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)
-e, --environment string environment name (default: "prod", or "default" on an estate with no licence and no trial; $SHC_ENVIRONMENT and shc ctx -e override it, and the "master" tenant is always "default")
--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)
-s, --stack string stack name (default: $SHC_STACK)
-t, --tenant string tenant name (default: $SHC_TENANT)
-v, --verbose verbose output (default: $SHC_VERBOSE)
  • shc - Selfhosted Cloud CLI
  • shc label ls - list label values
  • shc label set - set a label value’s description, reservation or backup repo
  • shc label show - show a label value, its nodes, the constraints naming it and the deployments it shapes