Last active
July 30, 2022 04:12
-
-
Save bitdivine/14a2941756e1e0d00221599f3ae900fa to your computer and use it in GitHub Desktop.
dfinity ic dapp url
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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