Closed sobi3ch closed 2 months ago
Your shell quoting is not correct:
$ echo "test {{ (bitwarden "item" "gitconfig").username.value }}" | cat
test {{ (bitwarden item gitconfig).username.value }}
Use single quotes to preserve the double quotes:
$ echo 'test {{ (bitwarden "item" "gitconfig").username.value }}' | cat
test {{ (bitwarden "item" "gitconfig").username.value }}
Can't believe it, I was probably too tired to pick this up. Works, obviously. Thank you!
What exactly are you trying to do?
Grab secret from my bitwarden vault via template function (bitwarden ...)
What have you tried so far?
I've setup in BitWarden my item
gitconfig
Login to my bitwarden withbw
cli command line Export my BW_SESSION and confirm bw command works (bw get item gitconfig
returned json with my values) Tried to use both example from manualwith the same result:
When I use "get" instead of "item" there is the following msg:
Where else have you checked for solutions?
Output of any commands you've tried with
--verbose
flagOutput of
chezmoi doctor