Skip to content

Instantly share code, notes, and snippets.

@lsloan
Last active August 25, 2020 18:00
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save lsloan/b5b2dd029ecf5c8dbd956ddf190353dd to your computer and use it in GitHub Desktop.
Save lsloan/b5b2dd029ecf5c8dbd956ddf190353dd to your computer and use it in GitHub Desktop.
Get the local ngrok public URL, which includes the hostname, extracted using jq
#!/bin/sh --
# Get the local ngrok public URL, which includes the hostname, extracted using jq
# Inspiration: https://gist.github.com/rjz/af40158c529d7c407420fc0de490758b#gistcomment-2594627
curl --silent http://127.0.0.1:4040/api/tunnels | jq -r '.tunnels[0].public_url'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment