Too many flags setting configurators/installers/authenticators 'webroot' -> 'apache'

I am trying to setup https on my raspberry pi 2 through ssh. After passing the argument [pi@raspberrypi]$ ./letsencrypt-auto --apache
I get the output.

Checking for new version…
Requesting root privileges to run letsencrypt…
sudo /home/pi/.local/share/letsencrypt/bin/letsencrypt --no-self-upgrade --apache
Use of --agree-dev-preview is deprecated.
Too many flags setting configurators/installers/authenticators ‘webroot’ -> ‘apache’

I have 3 virtual hosts running in apache with no problems. Do I NEED to supply them as command line arguments? Please Help!

Is the webroot plugin specified in cli.ini perhaps?

What is the cli.ini file? A config file for the executable? Also excuse my ignorance but webroot is the directory that Apache2 refers to when looking for websites right?

Did you get this resolved? I have the same issue. my cli.ini

text = True
agree-tos = True
authenticator = webroot
server =

Hey I didn’t l use the cli.ini file at all. I deleted it and the client by default. My issue was that the DNS of my domain was not pointing to my server, it was redirecting to my server with some garbage IP being set as the default as my domain by my registrar. I changed the DNS and everything worked

Do you know where the cli.ini file is located?

By default, Certbot checks /etc/letsencrypt/cli.ini, and $XDG_CONFIG_HOME/letsencrypt/cli.ini or ~/.config/letsencrypt/cli.ini.