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.

The documented form is the flat alias wheels deploy extract-secrets; wheels deploy secrets extract is equivalent. Older CLI runtimes intercepted the nested wheels deploy secrets <verb> form in the top-level secrets command (#2697), which is why the flat aliases exist (#2699). On the current runtime the nested form also reaches deploy dispatch.

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