wordfence-cli
wordfence-cli copied to clipboard
Change to how CLI Premium license expirations are handled in Wordfence CLI
The first year purchases of Premium CLI licenses are approaching expiration and in testing an expired CLI Premium license it was found that most of the subcommands produced either a generic error message or the message Error: License validation failed.
Test results:
malware-scanandtermsfail to run and provides generic error messageError: Request failedvuln-scan,remediate, andcount-sitesfail to run and provide error messageError: License validation failed.version,help, andconfigureare permitted commands with an expired CLI Premium license
Suggested changes:
- when subcommands
malware-scan,vuln-scan, orremediateare input, I would suggest we prompt the user that their CLI Premium license has expired and direct them to the CLI web page to renew. We can follow that up with a prompt along the lines of "Would you like to run Wordfence CLI under a free license?" with 'yes' running CLI free and 'no' returning the user to the command line. An alternative option would be to prompt to install WF free, overwriting the expired Premium license. - with subcommands
count-sitesandterms, my suggestion is the user should be able to run these commands regardless of the status of the CLI license expiration. - subcommands
version,help, andconfigure- no change suggested