Skip to content


The get command downloads web-optimized Google Font files in WOFF2 format directly to your project and generates the necessary CSS for easy integration.


Terminal window
hermes get <font-family> [flags]


The get command supports the following flags to customize its operation:

  • -d, --dir string: Specifies the directory where font files will be written. If not provided, Hermes defaults to the current directory.
  • -h, --help: Displays help for the get command, showing all options and usage details.


Terminal window
hermes get inter -d ./public/fonts

This will download the Inter variable font file in the public/fonts/ directory of your current project. NOTE: The specified directory must exist prior to running this command. If no directory is specified, Hermes will download the font file(s) to the current directory.

This command will also generate the following CSS for easy integration into your project:

@font-face {
font-family: 'Inter';
font-style: regular;
font-weight: 100-900;
src: url('../path/to/Inter_regular.woff2') format('woff2');

If you are trying to download a font with spaces in its name, wrap the font name in quotes. For example:

Terminal window
hermes get 'abril fatface'