10up / wpcli-vulnerability-scanner

WP-CLI command for checking installed plugins and themes for vulnerabilities reported on wpvulndb.com
MIT License
278 stars 40 forks source link

Adding API token to WP-CLI config #34

Open lolnutlolwut opened 5 years ago

lolnutlolwut commented 5 years ago

Hello,

As it stands right now, using the v3 WPVulnDB API, the API token needs to be defined in the site's wp-config.php. This is fine when working with a single WP site, however, I as a tech support rep in a hosting company I work with a lot of different sites on a daily basis. Having to edit the wp-config.php every time can quickly become tedious. Would it be possible to add the API token to the WP-CLI config, so that the same token can be used with all sites on a single server?

oscarssanchez commented 5 years ago

I think this is a good idea. I will bring this to our standup. Thanks for the suggestion @lolnutlolwut . If you would like to go ahead and try implementing it, PR are always welcome too.

Have a great day.