Thank you for pwsafe.
I intended using Password Gorilla as a gui and Pwsafe as a CLI but it seems pwsafe is not compatible with V3 database format.
$ pwsafe -v --list -f /tmp/Gorilla.psafe3
rng seeded with 1024 bytes from /home/adrian/.rnd
Enter passphrase for /tmp/Gorilla.psafe3:
Passphrase is incorrect
Enter passphrase for /tmp/Gorilla.psafe3: