I’m sure this has been covered because I’ve read a lot of stuff. Some of it seems to contradict other stuff (highly likely I’ve misunderstood) and I am still confused.
I have successfully deployed my site, https://leo-learning-studio.netlify.app/ (main branch), to Netlify using netlify-cli. What I want is to set up a staging version based on the staging branch in my repo. I tried various iterations using the --alias flag though as I now understand it this is not what that flag does. I’ve moved on to creating a new Netlify site, https://leo-learning-staging-studio.netlify.app/, set up almost identically to the main version which works fine. I manually init’ed a new site, updated my $NETLIFY_SITE_ID with the one produced in the init. Added the new deploy key to the repository. However, when my pipeline runs it fails with the error, “Site not found”. Can anyone give me any idea of what I am doing wrong? Thanks.