I am in the process of migrating my stuff to @codeberg I am really looking forward to it
Just a quick attribution: I took the image of the corgi from pixabay. The user who uploaded it is: huoadg5888
I know that attribution is not required by pixabay but someone might want this picture in a higher resolution. :)
A quick example: I have my Fosstodon API Token stored in a custom field called Token. This is how i get it in my script via bitwarden-cli:
TOKEN=$(bw get item <item ID> | jq -r '.fields | . | select(.name == "Token") | .value')
Now i can use TOKEN everywhere i need it. #lasttoot
Did you know that you can use the bitwarden-cli to interact with your bitwarden vault programmatically? I am using it in several scripts to read API Tokens from my vault instead of hardcoding them.
bitwarden-cli returns the data in json. But you can use jq to slice the json to the needed size.
Pro Tip: Use jq with the -r flag to get the raw output.
Studying Computer Science
Interested in: DevOps, Linux, F(L)OSS and Education
Fan of containers and nixos
Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.