To install Wordfence CLI, use the following command:
pip install wordfence
Wordfence CLI offers functionalities like malware scanning and vulnerability checks for your WordPress site.
To conduct a malware scan and export the results as a CSV file, use this command:
wordfence malware-scan --output-format csv --output-path /home/wordfence-cli-scan.csv .
This scans the current directory for malware and saves the results to /home/wordfence-cli-scan.csv
.
To perform a vulnerability scan and save the results in CSV format, use this command:
wordfence vuln-scan --output-format csv --output-path /home/wordfence-cli-scan.csv .
This will scan the current directory for vulnerabilities and record the findings in /home/wordfence-cli-scan.csv
.
For more detailed information about the Wordfence CLI, including updates and advanced usage examples, please visit the official GitHub repository: