Skip to content

Instantly share code, notes, and snippets.

@sloanlance
Forked from lsloan/ngrok_public_url.sh
Last active August 25, 2020 18:00
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sloanlance/50104b70b89175f58ae24fdb36f98e17 to your computer and use it in GitHub Desktop.
Save sloanlance/50104b70b89175f58ae24fdb36f98e17 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