You need to install Node JS if you dont have it already installed
cd path/to/dir
npm install
npm install -g gulp
Documentation on how to get tokens
https://www.figma.com/community/file/823836449723293396/Figma-Webfont-Exporter-Testing-File
gulp figma-webfont-exporter --token <FIGMA_PERSONAL_ACCSESS_TOKEN> --fileId <FIGMA_FILE_ID> --fontName myFontName --page 1
This will produce in the folder dist/<FIGMA_FILE_ID>/
fonts (EOT, SVG, TTF, WOFF, WOFF2) and downloaded SVG files.