thv secret set
Set a secret
Synopsis
Create or update a secret with the specified name.
This command supports two input methods for maximum flexibility:
Piped input:
When you pipe data to the command, it reads the secret value from stdin. Examples:
$ echo "my-secret-value" | thv secret set my-secret
$ cat secret-file.txt | thv secret set my-secret
Interactive input:
When you don't pipe data, the command prompts you to enter the secret value securely. The input remains hidden for security. Example:
$ thv secret set my-secret
Enter secret value (input will be hidden): _
The command stores the secret securely using your configured secrets provider. Note that some providers (like 1Password) are read-only and do not support setting secrets.
thv secret set <name> [flags]
Options
-h, --help help for set
Options inherited from parent commands
--debug Enable debug mode
SEE ALSO
- thv secret - Manage secrets