Command Line Tools
wheels deploy secrets extract
Extract one key’s value from a KEY=VALUE block. Useful inside hooks or wrapper scripts that pipe from wheels deploy fetch-secrets.
Invoke it through the flat alias wheels deploy extract-secrets — the nested wheels deploy secrets extract form is shadowed at the shell by the CLI’s own secrets command (#2697, #2699).
Synopsis
Section titled “Synopsis”wheels deploy extract-secrets <KEY> --from=<block>Arguments and flags
Section titled “Arguments and flags”| Argument / flag | Description |
|---|---|
<KEY> | Required positional. Key to extract. There is no --key= flag — the parser ignores it, and the command returns an empty string. |
--from=<block> | The KEY=VALUE newline-separated text to extract from. |
Behavior
Section titled “Behavior”Scans --from line-by-line and returns the value for the first line whose key equals the positional <KEY>. Returns an empty string if the key isn’t present.
Example
Section titled “Example”block=$(wheels deploy fetch-secrets --adapter=op --from=op://Prod/App A B)a=$(wheels deploy extract-secrets A --from="$block")