MCPcopy Create free account
hub / github.com/hashicorp/vault / Help

Method Help

command/unwrap.go:29–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27}
28
29func (c *UnwrapCommand) Help() string {
30 helpText := `
31Usage: vault unwrap [options] [TOKEN]
32
33 Unwraps a wrapped secret from Vault by the given token. The result is the
34 same as the "vault read" operation on the non-wrapped secret. If no token
35 is given, the data in the currently authenticated token is unwrapped.
36
37 Unwrap the data in the cubbyhole secrets engine for a token:
38
39 $ vault unwrap 3de9ece1-b347-e143-29b0-dc2dc31caafd
40
41 Unwrap the data in the active token:
42
43 $ vault login 848f9ccf-7176-098c-5e2b-75a0689d41cd
44 $ vault unwrap # unwraps 848f9ccf...
45
46 For a full list of examples and paths, please see the online documentation.
47
48` + c.Flags().Help()
49
50 return strings.TrimSpace(helpText)
51}
52
53func (c *UnwrapCommand) Flags() *FlagSets {
54 return c.flagSet(FlagSetHTTP | FlagSetOutputField | FlagSetOutputFormat)

Callers

nothing calls this directly

Calls 2

FlagsMethod · 0.95
HelpMethod · 0.65

Tested by

no test coverage detected