gfcli
gfcli is the command from the npm package google-font-cli. It uses google-webfonts-helper so you do not need a Google Fonts API key. You can fuzzy-search families, download TTF or WOFF2 files, install fonts on Linux, macOS, or Windows, or copy a Google Fonts stylesheet URL to the clipboard.
How it works
Section titled “How it works”- Catalog: on first use (or after cache expiry), the tool downloads the full font list from
https://gwfh.mranftl.com/api/fontsand stores it under~/.gfcli/cache.json(24-hour TTL). Use--refresh-cacheto bypass a valid cache. - Per family: for downloads, installs, or CSS URLs, each family is resolved against that catalog, then details are fetched from
https://gwfh.mranftl.com/api/fonts/{slug}(slug derived from the family name). - Install vs download:
gfcli installalways uses TTF files from GWFH.gfcli downloadcan pass--woff2or--ttf. Saving to disk via the Node API follows the same rule:install/installAsyncuse TTF only;saveAt/saveAtAsynctake aformatargument. - Platforms: Linux and macOS copy fonts into the user font directory. Windows uses a short script so fonts are registered the same way as a manual install.
Next steps
Section titled “Next steps”- Getting started: install and prerequisites
- CLI commands:
search,download,install,copy, cache, performance - Troubleshooting: permissions, cache, “font not found”
- Node module & API:
require('google-font-cli'),GoogleFontList,GoogleFont