Skip to content

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).

wheels deploy extract-secrets <KEY> --from=<block>
Argument / flagDescription
<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.

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.

illustrative — shell variables not supported by harness
block=$(wheels deploy fetch-secrets --adapter=op --from=op://Prod/App A B)
a=$(wheels deploy extract-secrets A --from="$block")