I have a command which outputs a key with pass key/ffff.kdbx and a second command which takes a key from stdin to open a database keepassxc --pw-stdin
pass key/ffff.kdbx
keepassxc --pw-stdin