Skip to content

mochi secret get ​

Get the value of a secret in the current vault.

shell
mochi secret get REFERENCE [flags]

Examples ​

shell
mochi secret get MY_TOKEN
mochi secret get MY_TOKEN --as-plain-text
mochi secret get MY_TOKEN --copy

Options ​

FlagTypeDescription
--copyCopy the secret value to the clipboard
-h, --helphelp for get
-o, --outputstringOutput format. One of: yaml, json, or tui.
-p, --plaintextOutput the secret value as plain text instead of an obfuscated string
-V, --vaultstringVault name to use instead of the current vault.

Options inherited from parent commands ​

FlagTypeDescription
-L, --log-levelstringLog verbosity level (debug, info, fatal) (default "info")
--syncSync flow cache and workspaces

See also ​