To read the contents of a secret, you can use the
secrethub read [options] <path>
This automatically fetches and decrypts your secret and writes it to
Alternatively, you can configure the
--clip flag to write the secret to the clipboard.
- The path to the secret version you wish to read. It accepts paths with a version number suffix or end in
:latest. When no version is specified, it assumes
- Copy the secret value to the clipboard. The clipboard is automatically cleared after 45 seconds.