Skip to content

kx secret

Lists Secrets exactly as kx get does. With --decode, prints an indexed Secret’s data in plaintext, or every Secret in the namespace when no index is given.

Unrecognized flags are passed through to kubectl.

Usage

kx secret [OPTIONS] [index]... [kubectl flags]

Aliases

kx secrets

Arguments

ArgumentDescription
[index]...Row number from the current listing; run kx state to see it

Options

OptionDescription
-A, --all-namespacesList across every namespace; each row is indexed and carries its own namespace
--decodeShow Secret data in plaintext; every Secret in the namespace when no index is given
-k, --key stringWith --decode, print only this key’s value
-m, --match stringMatch by name (substring, case-insensitive)
-n, --namespace stringNamespace to list from; defaults to the current namespace
-w, --watchRedraw the listing live as resources change; a watch never completes, so results are not indexed
-y, --yesSkip the confirmation prompt for a namespace-wide --decode

Global options

OptionDescription
--no-colorDisable styled output
-h, --helpShow this message and exit

Examples

kx secret
kx secret 1 --decode
kx secret 1 --decode -k tls.crt
kx secret 1..3
kx secret 3..