Well, I got it to work again. What I did, was to clean up all installations of bitwarden-cli (there were more than 1, as I fiddled around with it a couple days ago):
devel-su npm uninstall @bitwarden/cli -g
Omit the “-g” flag, if you have an instance installed underneath “defaultuser”. Doesn’t hurt to run the command with and without the -g flag.
Then, I went ahead and installed it again:
devel-su npm install @bitwarden/cli -g
Just to be sure, I linked the “bw” binary from bitwarden-cli to the locations /usr/bin and /usr/local/bin again:
ln -sf /usr/local/bin/node-22.3.0/bin/bw /usr/bin/bw
ln -sf /usr/local/bin/node-22.3.0/bin/bw /usr/local/bin/bw
Afterwards, I was able to log back in using API credentials. It’s all working again. I hope, it’ll stay this way.