Close-up of site cleaning status

Wordfence CLI is an open source, high performance, multi-process security scanner, written in Python, that quickly scans local and network filesystems to detect PHP malware and WordPress vulnerabilities. Wordfence CLI is open source under GPLv3. We offer both Free and Premium CLI license options. CLI Premium detects all known PHP malware - over 14 million malware variants. CLI Free has a 30 day delay for malware detection. CLI also detects over 11,800 WordPress vulnerabilities, including the very newest vulnerabilities, using our open and continuously updated vulnerability database. Vulnerability scanning is free for all license types.


Wordfence CLI is no longer available for new Free or Premium licenses.

The Free version of Wordfence CLI will reach end of life on October 14, 2026, at which time the Free version will no longer be supported.

Existing Wordfence CLI Premium licenses will remain active and supported until their current license term expires. Premium licenses will not be renewed after expiration, and no new Premium licenses will be issued going forward.

Current Premium customers may continue to access support, documentation, and applicable downloads through the end of their active license term.

How To Install Wordfence CLI

We've drastically improved the installation process starting with CLI version 2.0.1. Simply install the package, run 'wordfence configure' for the first time to configure CLI, and then start scanning. You can install CLI using Python's pip, your Debian based package manager, or your RedHat style package manager. Instructions for each method are below, along with a few alternative methods of installation for Wordfence CLI. Happy scanning!!

Installation Options

Install Wordfence CLI using one of the commands below depending on your operating system. Debian and RPM packages require the package downloaded prior to install. Click here for additional installation help.

Python Package

Python 3 is required. Install commands below are dependent upon operating system.

pip install wordfence
pip3 install wordfence

Debian Package

Debian based linux operating systems Ubuntu, Debian, Mint, Kali

Download
wordfence.deb

sudo apt install ./wordfence.deb

RPM Package

Red Hat Linux based operating systems RHEL, CentOS, Fedora

Download
wordfence-el9.rpm

sudo dnf install ./wordfence-el9.rpm

Alternative Installation Methods


CLI License Terms and Conditions

Wordfence CLI License Terms and Conditions