One-liner to configure Forge CLI with your ngrok configuration

Annoyingly, the default ngrok configuration can live in multiple directories, depending on your OS. Personally, I don’t want to move or recreate it. I just want Forge use it. So here’s a 1-line Bash script to “wire up” the 2:

forge settings set ngrok-config-path "$(ngrok config check | sed 's/^Valid configuration file at *//')"
5 Likes