Hey guys, this is my first post here.
I’d like to know what is the easiest way to use a script that automates manual deployments on demand using netlify-cli
on Windows and at the end of the deployment open the website draft URL using the the default browser.
I’ve run netlify deploy --help
that displayed the option -o, --open Open site after deploy
.
Unfortunately I am unable to get this feature/option to work when using netlify deploy --open
and netlify deploy --prod --open
which did not open site after deploy.
I’m trying to create a one-click script on Windows that manually deploys site and opens the URL.
So far I’ve just created a batch file with the following:
cd "%USERPROFILE%\website"
netlify deploy --dir=_site --open
Version information:
Windows 10 Pro v2004, build 19041.630
netlify -v
netlify-cli/2.68.4 win32-x64 node-v14.15.0
npm -v
6.14.8