Last active
April 4, 2025 15:54
-
-
Save turboBasic/f0fc4c36033bb4b0df612b56863cc31d to your computer and use it in GitHub Desktop.
Get field from Bitwarden item #zsh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
item=$1 | |
field=$2 | |
bw get item "$1" \ | |
| jq --raw-output '.fields[] | select(.name == "'"$field"'") | .value' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment