compozy secret set
Set one write-only credential for the active profile
compozy secret set
Set one write-only credential for the active profile
compozy secret set <providers/<provider>/<slot>|extensions/<extension>/<key>> [flags]Options
--from-env string Import the value from an environment variable (user scope only)
-h, --help help for set
--value-stdin Read the secret value from stdinOptions inherited from parent commands
--json Emit JSON output
-o, --output string Output format: human, json, jsonl, or toon (default "human")
--profile string Act as a profile for this commandOutput Formats
The root -o, --output flag accepts these values. A renderer is supported only when this command writes that result; jsonl is for commands that emit one JSON record per line.
| Format | Command result |
|---|---|
human | Interactive terminal rendering |
json | Machine-readable JSON rendering |
jsonl | One JSON record per line when supported |
toon | Compact agent-readable rendering |
Example:
compozy secret set <providers/<provider>/<slot>|extensions/<extension>/<key>> -o json