WP CLI issue passing the password
-
Hello,
I am trying to optimize the process of setting up SMTP auth on WordPress sites with using WP CLI tool.
Everything works perfect, the only issue I have is when passing the password value to the plugin.
No matter the environment, plugins, versions, etc. The password I provide via WP CLI isn’t working.
100% I’m passing the password value incorrectly and I would like to know, how to correctly pass the value.
The commands that I run are below:wp plugin install smtp-mailer --activate &&
wp option update smtp_mailer_options --format=json '{"smtp_host": "<hostname>","smtp_port": "465","type_of_encryption": "ssl","smtp_auth": true,"smtp_username": "<email>","smtp_password": "<password>","from_email": "<email>","from_name": "<email>"}'So, everything is passed perfectly, only passing “smtp_password”: “<password>” attribute doesn’t work.
Everytime I have to go to administration and manually paste the password and save the changes.
The topic ‘WP CLI issue passing the password’ is closed to new replies.