Skip to content

Instantly share code, notes, and snippets.

@bitdivine
Last active July 30, 2022 04:12
Show Gist options
  • Save bitdivine/14a2941756e1e0d00221599f3ae900fa to your computer and use it in GitHub Desktop.
Save bitdivine/14a2941756e1e0d00221599f3ae900fa to your computer and use it in GitHub Desktop.
dfinity ic dapp url
DAPP_NAME="${1}"
export DFX_NETWORK
export DAPP_NAME
jq -r '.networks[env.DFX_NETWORK].config.HOST' dfx.json | awk -F '://' -v canister_id="$(jq -r .[env.DAPP_NAME][env.DFX_NETWORK] canister_ids.json)" '{print $1 FS "." canister_id $2}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment