Passing on Netlify site URL as a variable

Currently this is the code I have but it seems to fail with the URL being passed as an environmental variable.

npm install netlify-cli -g
cd WebApp
mkdir netlify-deploy
cp -r ./wwwroot ./netlify-deploy
netlify link --id NETLIFY_SITE_ID
netlify deploy -p
url=$(URL_DEV)

as i get this error

/bin/bash: line 6: URL_DEV: command not found

Not sure how to pass on the site url further down the line, any help would be greatly appreciated

Hey there, :wave:

Can you share a link to your Netlify site as well as your project repo? This will help us dig into the obstacle you are encountering.

Thanks!