Skip to content
SHC Docs

shc cluster repair

repair cluster state

Tidy cluster state by sweeping confirmed-dead nodes through the guarded removal funnel (the non-bypassable quorum floor still protects the cluster from a wedge).

With —force this becomes the DESTRUCTIVE unwedge: it rewrites raft membership to make this node the sole leader. Use it ONLY when quorum is lost and the other voters are truly dead.

shc cluster repair [flags]
--dry-run show what would be done without making changes
--force DESTRUCTIVE quorum-loss recovery — rewrite raft membership to make this node sole leader
-h, --help help for repair
--remove-other-nodes with --force, also remove the other nodes from the cluster
-v, --verbose show detailed repair actions
-y, --yes skip confirmation prompt
--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: $SHC_ENVIRONMENT)
--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)