Skip to content

Instantly share code, notes, and snippets.

@turboBasic
Last active April 4, 2025 15:54
Show Gist options
  • Save turboBasic/f0fc4c36033bb4b0df612b56863cc31d to your computer and use it in GitHub Desktop.
Save turboBasic/f0fc4c36033bb4b0df612b56863cc31d to your computer and use it in GitHub Desktop.
Get field from Bitwarden item #zsh
#!/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