Skip to content
SHC Docs

shc vault ls

list secrets

List secret keys, never their values. With no flags the listing is the current tenant’s own keys. -e lists that environment’s keys and -s lists that deployment’s own keys (the environment defaults to “default”). Keys held at another tier are not listed beside them: --scope lists one named tier instead, and the cluster’s global keys are listed only by --scope global. -k filters by key substring and --verbose adds the stack and environment columns. Page long results with --limit/--offset.

shc vault ls [flags]
shc vault ls
shc vault ls -s myblog --verbose
shc vault ls -s myblog --scope stack
shc vault ls --scope global
shc vault ls --limit 200 --offset 200
-e, --environment string environment name
-h, --help help for ls
-k, --key string filter by key substring
--limit int maximum number of rows (0 = all)
--offset int skip the first N rows
--scope string list this scope tier (global|tenant|stack|environment|deployment) instead of the narrowest tier the flags name
-s, --stack string stack name
-v, --verbose show stack/environment columns
--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)
-p, --password string vault password (visible in the process list, prefer --password-file)
--password-file string read the vault password from a file (mode 0600 expected); use '-' to read stdin. Takes precedence over --password and never puts the secret in argv
-t, --tenant string tenant name (default: $SHC_TENANT)