Skip to content

Instantly share code, notes, and snippets.

@sjurgis
Created August 10, 2022 11:03
Show Gist options
  • Save sjurgis/1489a0357811577dc4c520e33be63c4f to your computer and use it in GitHub Desktop.
Save sjurgis/1489a0357811577dc4c520e33be63c4f to your computer and use it in GitHub Desktop.
open lwc component without isUrlAddressable
res=$(echo 'console.log(btoa(JSON.stringify({"componentDef" : "c:'$1'","attributes" :{"recordId" : "0031F00000rMHfAQAW","testAttribute" : "attribute value"}})))' | node)
url=/one/one.app#$res
echo $url
sfdx force:org:open -r -p $url --json | jq -r .result.url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment