Lukspinentry is a script I found online to use pinentry via command line