I am using certbot --nginx to generate certificates for new sites that I add to my nginx configuration. When I add a new nginx conf file (example: sub.newdomain.com.conf), I am running this command to generate the cert for this new domain/conf file. I want to automate this entire process via some script or server function, but the certbot --nginx command requires manually interaction. First it asks which conf file to use (so I provide that) then it asks whether or not to add redirect (and I provide my answer).
Is there any way for me provide these instructions as part of the command?