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