Hello! Is it possible to use netlify-cli in a build.sh script? Locally I can easily use netlify env:set... to set a few environment variables. Currently I’m copying the COMMIT_REF and CONTEXT variables to the UI so that I can access them at runtime.
However, netlify-cli requires linking it to a site, which I’m not sure is possible in a continuous deployment environment on Netlify.
Is the API the only option in this case to take advantage of the automatic CD system?
I’m sorry, I don’t understand your question completely. If you deploy using git push, Netlify will automatically build and deploy your site. Why would the CLI be needed there?