Commands
obscuro set
Encrypt and store a secret
Usage
obscuro set KEY [flags]Use obscuro set KEY -n production to write to a namespace.
Named namespaces are created automatically on first write. Without -n, secrets
are stored in default.
Flags
| Flag | What it does |
|---|---|
--value | Pass the secret value inline |
--value-file | Read value from a file (use - for stdin) |
If you don't pass either flag, Obscuro prompts you interactively.
Examples
# Inline value
obscuro set DB_PASSWORD --value "s3cret"
# From a file
obscuro set TLS_CERT --value-file ./cert.pem
# From stdin
echo "token123" | obscuro set API_KEY --value-file -
# Interactive prompt
obscuro set SECRET_KEY