A few years ago I started using a npm cli package called google-font-installer since I got too lazy to extract, copy, etc. Sadly, it got deprecated since it's unmaintained. Decided to fork it (I originally intended just to fork the project and fix two lines of code.)! :D... ~70 commits later, I realized I had rewritten almost everything.
Highlights are: Caching of metadata, No API key requirement, WOFF2 support.
I wanted to have a experience like npm install for fonts, think I did that!
https://github.com/tinsever/google-font-cli /
https://www.npmjs.com/package/google-font-cli